ICorDebugThread::GetHandle Method

Gets the current handle for the active part of this ICorDebugThread.

Syntax

HRESULT GetHandle (
    [out] HTHREAD *phThreadHandle
);

Parameters

phThreadHandle [out] A pointer to an HTHREAD that is the handle of the active part of this thread.

Remarks

The handle may change as the process executes, and may be different for different parts of the thread.

This handle is owned by the debugging API. The debugger should duplicate it before using it.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 1.0