다음을 통해 공유


IDebugProcess3::GetDebugReason

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This method returns the reason that the process was launched for debugging.

Syntax

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

IDebugProcess3
DEBUG_REASON