THREADSTATE

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 the state of the thread.

Syntax

enum enum_THREADSTATE { 
   THREADSTATE_RUNNING = 0x0001,
   THREADSTATE_STOPPED = 0x0002,
   THREADSTATE_FRESH   = 0x0003,
   THREADSTATE_DEAD    = 0x0004,
   THREADSTATE_FROZEN  = 0x0005
};
typedef DWORD THREADSTATE;
public enum enum_THREADSTATE { 
   THREADSTATE_RUNNING = 0x0001,
   THREADSTATE_STOPPED = 0x0002,
   THREADSTATE_FRESH   = 0x0003,
   THREADSTATE_DEAD    = 0x0004,
   THREADSTATE_FROZEN  = 0x0005
};

Fields

THREADSTATE_RUNNING
Indicates that the thread is running.

THREADSTATE_STOPPED
Indicates that the thread is stopped because of a breakpoint.

THREADSTATE_FRESH
Indicates that the thread has been created, but is not yet running code.

THREADSTATE_DEAD
Indicates that the thread is dead.

THREADSTATE_FROZEN
Indicates that the thread is frozen (no execution can be performed).

Remarks

Used for the dwThreadState field of the THREADPROPERTIES structure.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also