The GetExitCode method returns the exit code of the current process if that process has already run through to completion.
HRESULT GetExitCode( PULONG Code );
Receives the exit code of the process. If the process is still running, Code will be set to STILL_ACTIVE.
This method may also return error values. See Return Values for more details.
||The method was successful.|
||The process is still running.|
This method is available only for live user-mode debugging.
|Header||dbgeng.h (include Dbgeng.h)|