Returns the application thread object associated with the thread that is currently running.
Syntax
HRESULT GetCurrentThread( IDebugApplicationThread **ppat );
Parameters
- ppat
- [out] Address of an IDebugApplicationThread interface.
Return Value
Returns S_OK if successful, or an error code otherwise.