The ExitProcess callback method is called by the engine when an exit-processdebugging event occurs in the target.
_Analysis_noreturn_ HRESULT ExitProcess( ULONG ExitCode );
Specifies the exit code for the process.
This method returns a DEBUG_STATUS_XXX value, which indicates how the execution of the target should proceed after the engine processes this event. For details on how the engine treats this value, see Monitoring Events.
This method is only called by the engine if the DEBUG_EVENT_EXIT_PROCESS flag is set in the mask returned by IDebugEventCallbacks::GetInterestMask.
|Header||dbgeng.h (include Dbgeng.h)|