ICorProfilerInfo::GetHandleFromThread Method
Maps the ID of a thread to a Win32 thread handle.
Syntax
HRESULT GetHandleFromThread(
[in] ThreadID threadId,
[out] HANDLE *phThread);
Parameters
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.
The handle returned from this method is owned by the runtime and the profiler should never close it.
Requirements
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: Available since 2.0
See also
Cộng tác với chúng tôi trên GitHub
Bạn có thể tìm thấy nguồn cho nội dung này trên GitHub, nơi bạn cũng có thể tạo và xem lại các vấn đề và yêu cầu kéo. Để biết thêm thông tin, hãy xem hướng dẫn dành cho người đóng góp của chúng tôi.
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho