次の方法で共有


THREADPROPERTY_FIELDS

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. 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

Specifies what information about a thread is to be retrieved.

Syntax

enum enum_THREADPROPERTY_FIELDS { 
   TPF_ID           = 0x0001,
   TPF_SUSPENDCOUNT = 0x0002,
   TPF_STATE        = 0x0004,
   TPF_PRIORITY     = 0x0008,
   TPF_NAME         = 0x0010,
   TPF_LOCATION     = 0x0020,
   TPF_ALLFIELDS    = 0xffffffff
};
typedef DWORD THREADPROPERTY_FIELDS;
public enum enum_THREADPROPERTY_FIELDS { 
   TPF_ID           = 0x0001,
   TPF_SUSPENDCOUNT = 0x0002,
   TPF_STATE        = 0x0004,
   TPF_PRIORITY     = 0x0008,
   TPF_NAME         = 0x0010,
   TPF_LOCATION     = 0x0020,
   TPF_ALLFIELDS    = 0xffffffff
};

Fields

TPF_ID
Initialize/use the dwThreadId field of the THREADPROPERTIES structure.

TPF_SUSPENDCOUNT
Initialize/use the dwSuspendCount field of the THREADPROPERTIES structure.

TPF_STATE
Initialize/use the dwThreadState field of the THREADPROPERTIES structure.

TPF_PRIORITY
Initialize/use the bstrPriority field of the THREADPROPERTIES structure.

TPF_NAME
Initialize/use the bstrName field of the THREADPROPERTIES structure.

TPF_LOCATION
Initialize/use the bstrLocation field of the THREADPROPERTIES structure.

TPF_ALLFIELDS
Specifies all fields.

Remarks

These values are passed as an argument to the GetThreadProperties method to indicate which fields of the THREADPROPERTIES structure are to be initialized.

These values are also used in dwFields member of the THREADPROPERTIES structure to indicate which fields are used and valid.

These flags may be combined with a bitwise OR.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also