ICorDebugProcess::IsOSSuspended Method
Gets a value that indicates whether the specified thread has been suspended as a result of the debugger stopping this process.
Syntax
HRESULT IsOSSuspended(
[in] DWORD threadID,
[out] BOOL *pbSuspended);
Parameters
threadID
[in] The ID of thread in question.
pbSuspended
[out] A pointer to a Boolean value that is true
if the specified thread has been suspended; otherwise *pbSuspended
is false
.
Remarks
When the specified thread has been suspended as a result of the debugger stopping this process, the specified thread's Win32 suspend count is incremented by one. The debugger user interface (UI) may want to take this information into account if it displays the operating system (OS) suspend count of the thread to the user.
The IsOSSuspended
method makes sense only in the context of unmanaged debugging. During managed debugging, threads are cooperatively suspended rather than OS-suspended.
Requirements
Platforms: See System Requirements.
Header: CorDebug.idl, CorDebug.h
Library: CorGuids.lib
.NET Framework Versions: Available since 1.0