Gets the state of this thread.

HRESULT GetState(
   DWORD*  pState
);

Parameters

pState

[out] Combination of the following thread state flags:

Constant Value Description

THREAD_STATE_RUNNING

0x00000001

The thread is running.

THREAD_STATE_SUSPENDED

0x00000002

The thread is suspended.

THREAD_BLOCKED

0x00000004

The thread is blocked.

THREAD_OUT_OF_CONTEXT

0x00000008

The thread is out of content.

Expand imageReturn Value

Expand imageRemarks

Expand imageSee Also