Share via


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
);

Parameters

  • pReason
    [out] Returns a value from the DEBUG_REASON enumeration.

Return Value

If successful, returns S_OK; otherwise, returns error code.

See Also

Reference

IDebugProcess3

DEBUG_REASON