IDebugThread2::GetName
Gets the name of a thread.
HRESULT GetName (
BSTR* pbstrName
);
int GetName (
out string pbstrName
);
Parameters
- pbstrName
[out] Returns the name of the thread.
Return Value
If successful, returns S_OK; otherwise, returns an error code.
Remarks
The retrieved name is always a name that can be displayed and this name describes the thread. The thread name might be derived from a run-time architecture that supports named threads, or it might be a name derived from the debug engine. Alternatively, the name of the thread can be set by a call to the IDebugThread2::SetThreadName method.