Retrieves the state of the thread.
Syntax
HRESULT GetState( DWORD *pState );
Parameters
- pState
- [out] Address of an unsigned long integer value that contains the state of the thread. It is one of the thread state flags.
Return Value
Returns S_OK if successful, or an error code otherwise.