IDkmThreadSuspension.GetSuspensionCount(DkmThread, Boolean) 方法

定义

返回此线程的当前挂起计数。

public:
 System::UInt32 GetSuspensionCount(Microsoft::VisualStudio::Debugger::DkmThread ^ thread, bool showInternal);
public uint GetSuspensionCount (Microsoft.VisualStudio.Debugger.DkmThread thread, bool showInternal);
abstract member GetSuspensionCount : Microsoft.VisualStudio.Debugger.DkmThread * bool -> uint32
Public Function GetSuspensionCount (thread As DkmThread, showInternal As Boolean) As UInteger

参数

thread
DkmThread

中DkmThread 表示在目标进程中运行的线程。

showInternal
Boolean

中传递 true 以返回线程的真实挂起计数。 返回 false 以仅查看调试对象进程中发生的挂起,或返回 true 以便 InternalSuspension 挂起的对象。

返回

UInt32

弄线程的挂起计数。 如果 ShowInternal 为 false,则将从该值减去内部线程挂起计数。

适用于