Gets the state of this thread.
[out] Combination of the following thread state flags:
The thread is running.
The thread is suspended.
The thread is blocked.
The thread is out of content.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
The method succeeded.
This method gets the state of this thread.