ICorDebugThread2 Interface

Serves as a logical extension to the ICorDebugThread interface.

interface ICorDebugThread2 : IUnknown {
    
    HRESULT GetActiveFunctions (
        [in] ULONG32        cFunctions,
        [out] ULONG32       *pcFunctions,
        [in, out, size_is(cFunctions), length_is(*pcFunctions)]
            COR_ACTIVE_FUNCTION pFunctions[]
    );
    
    HRESULT GetConnectionID (
        [out] CONNID        *pdwConnectionId
    );
    
    HRESULT GetTaskID (
        [out] TASKID        *pTaskId
    );
    
    HRESULT GetVolatileOSThreadID (
        [out] DWORD         *pdwTid
    );
    
    HRESULT InterceptCurrentException (
        [in] ICorDebugFrame *pFrame
    );
    
}

Methods

Method

Description

ICorDebugThread2::GetActiveFunctions Method

Gets an array of COR_ACTIVE_FUNCTION instances that contain data about the active functions in a thread's frames.

ICorDebugThread2::GetConnectionID Method

Gets a connection identifier for this ICorDebugThread2.

ICorDebugThread2::GetTaskID Method

Gets a task identifier for this ICorDebugThread2.

ICorDebugThread2::GetVolatileOSThreadID Method

Gets the operating system thread identifier for this ICorDebugThread2.

ICorDebugThread2::InterceptCurrentException Method

Allows a debugger to intercept the current exception on a thread.

Requirements

Platforms: See .NET Framework System Requirements.

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

See Also

Reference

ICorDebugThread Interface

Other Resources

Debugging Interfaces