Freigeben über


ICorProfilerInfo::GetHandleFromThread Method

Maps the ID of a thread to a Win32 thread handle.

HRESULT GetHandleFromThread(
    [in]  ThreadID threadId,
    [out] HANDLE  *phThread);

Parameters

Parameter Description

threadId

[in] The thread ID to be mapped.

phThread

[out] A pointer to a Win32 thread handle.

Remarks

The profiler must call the Win32 DuplicateHandle function on the handle before using it.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Reference

ICorProfilerInfo Interface