Maps the ID of a thread to a Win32 thread handle.
HRESULT GetHandleFromThread( [in] ThreadID threadId, [out] HANDLE *phThread);
[in] The thread ID to be mapped.
[out] A pointer to a Win32 thread handle.
The profiler must call the Win32
DuplicateHandle function on the handle before using it.
The handle returned from this method is owned by the runtime and the profiler should never close it.
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
.NET Framework Versions: Available since 2.0