Freigeben über


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

Parameter Description

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: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

ICorDebugProcess Interface
ICorDebugProcess2 Interface