Share via


ICorDebugProcess::IsOSSuspended Method

Gets a value that indicates whether the specified thread has been suspended as a result of the debugger stopping this process.

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 .NET Framework System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

See Also

Reference

ICorDebugProcess Interface

ICorDebugProcess2 Interface