Debugging Tools for Windows

GetExitCode

The GetExitCode method returns the exit code of the current process if that process has already run through to completion.

HRESULT
  IDebugClient::GetExitCode(
    OUT PULONG  Code
    );

Parameters

Code
Receives the exit code of the process. If the process is still running, Code will be set to STILL_ACTIVE.

Return Value

S_OK
The method was successful.
S_FALSE
The process is still running.

This method may also return error values. See Return Values for more details.

Interface Version

GetExitCode is available in all versions of IDebugClient.

Comments

This method is available only for live user-mode debugging.

Requirements

Headers: Defined in dbgeng.h. Include dbgeng.h. STILL_ACTIVE is defined in winbase.h.

Build machine: CAPEBUILD