Share via


ICorDebugController::EnumerateThreads Method

Gets an enumerator for the active managed threads in the process.

HRESULT EnumerateThreads (
    [out] ICorDebugThreadEnum **ppThreads
);

Parameters

  • ppThreads
    [out] A pointer to the address of an ICorDebugThreadEnum object that represents an enumerator for all managed threads that are active in the process.

Remarks

A thread is considered active after the ICorDebugManagedCallback::CreateThread callback has been dispatched and before the ICorDebugManagedCallback::ExitThread callback has been dispatched. A managed thread may not necessarily have any managed frames on its stack. Threads can be enumerated even before the ICorDebugManagedCallback::CreateProcess callback. The enumeration will naturally be empty.

Requirements

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

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

ICorDebugController Interface