共用方式為


THREADPROPERTIES

說明執行緒的屬性。

typedef struct _tagTHREADPROPERTIES { 
   THREADPROPERTY_FIELDS dwFields;
   DWORD                 dwThreadId;
   DWORD                 dwSuspendCount;
   DWORD                 dwThreadState;
   BSTR                  bstrPriority;
   BSTR                  bstrName;
   BSTR                  bstrLocation;
} THREADPROPERTIES;
public struct THREADPROPERTIES { 
   public uint   dwFields;
   public uint   dwThreadId;
   public uint   dwSuspendCount;
   public uint   dwThreadState;
   public string bstrPriority;
   public string bstrName;
   public string bstrLocation;
};

Members

  • dwFields
    從的旗標組合THREADPROPERTY_FIELDS描述此結構中的哪一個欄位都有效的列舉。

  • dwThreadId
    執行緒識別碼。

  • dwSuspendCount
    執行緒會暫停次數。

  • dwThreadState
    介於THREADSTATE表示作業的執行緒狀態列舉型別。

  • bstrPriority
    字串,指定執行緒的優先順序。 比方說,"高於一般"、"標準",或者"時間嚴重"。

  • bstName
    執行緒名稱。

  • bstrLocation
    執行緒位置 (通常是最上層堆疊框架),通常會以目前停止執行方法的名稱。

備註

這個結構會填入由呼叫IDebugThread2::GetThreadProperties方法。 因此傳回的資訊通常用於填入執行緒視窗。

需求

標頭: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

組件: Microsoft.VisualStudio.Debugger.Interop.dll

請參閱

參考

結構和等位

IDebugThread2::GetThreadProperties

THREADPROPERTY_FIELDS

THREADSTATE