IDebugProcess3::GetDebugReason
This method returns the reason that the process was launched for debugging.
HRESULT GetDebugReason(
DEBUG_REASON* pReason
);
int GetDebugReason(
out enum_DEBUG_REASON pReason
);
- pReason
[out] Returns a value from the DEBUG_REASON enumeration.
If successful, returns S_OK; otherwise, returns error code.