THREADPROPERTIES
Note
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Describes the properties of a thread.
Syntax
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
A combination of flags from the THREADPROPERTY_FIELDS enumeration, describing which fields in this structure are valid.
dwThreadId
The thread ID.
dwSuspendCount
The thread suspend count.
dwThreadState
A value from the THREADSTATE enumeration indicating the state of the operating thread.
bstrPriority
A string specifying the thread priority; for example, "Above Normal", "Normal", or "Time Critical".
bstName
The thread name.
bstrLocation
The thread location (usually the topmost stack frame), typically expressed as the name of the method where execution is currently halted.
Remarks
This structure is filled in by a call to the GetThreadProperties method. The information so returned is typically used in populating the Threads window.
Requirements
Header: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dll
See Also
Structures and Unions
GetThreadProperties
THREADPROPERTY_FIELDS
THREADSTATE