IDebugProcess3::GetDebugReason
This method returns the reason that the process was launched for debugging.
Syntax
Parameters
pReason
[out] Returns a value from the DEBUG_REASON enumeration.
Return Value
If successful, returns S_OK
; otherwise, returns error code.