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;
};
成員
dwFields
來自 THREADPROPERTY_FIELDS 列舉的旗標組合,描述此結構中的哪些欄位有效。
dwThreadId
線程標識碼。
dwSuspendCount
線程暫停計數。
dwThreadState
來自 THREADSTATE 列舉的值,表示作業線程的狀態。
bstrPriority
指定線程優先順序的字串;例如,“Above Normal”、“Normal” 或 “Time Critical”。
bstName
線程名稱。
bstrLocation
線程位置(通常是最上層的堆疊框架),通常以目前停止執行的方法名稱表示。
備註
這個結構是由 GetThreadProperties 方法的呼叫填入。 傳回的資訊通常用於填入 [ 線程 ] 視窗。
需求
標頭:msdbg.h
命名空間:Microsoft.VisualStudio.Debugger.Interop
元件:Microsoft.VisualStudio.Debugger.Interop.dll