The GetName method of the IRemoteThread interface returns the name of this thread.
HRESULT GetName(LPOLESTR *ppszName)
S_OK Success.
E_OUTOFMEMORY Insufficient memory.