Partager via


THREADPROPERTIES

Describes the properties of a thread.

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 IDebugThread2::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

Reference

Structures and Unions

IDebugThread2::GetThreadProperties

THREADPROPERTY_FIELDS

THREADSTATE