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: See .NET Framework System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

See Also

Reference

ICorDebugController Interface