Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets the state of this thread.
Syntax
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. |
Return Value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Value | Description |
|---|---|
S_OK |
The method succeeded. |
Remarks
This method gets the state of this thread.