IEnumDebugThreads2

This interface enumerates the threads running in the current debug session.

Syntax

IEnumDebugThreads2 : IUnknown

Notes for Implementers

The debug engine (DE) implements this interface to represent a list of threads in a program.

Notes for Callers

Call EnumThreads to obtain this interface representing a list of all threads in all programs running in a process. Call EnumThreads to obtain this interface representing a list of threads running in a program.

Methods in Vtable Order

The following table shows the methods of IEnumDebugThreads2.

Method Description
Next Retrieves a specified number of threads in the enumeration sequence.
Skip Skips a specified number of threads in an enumeration sequence.
Reset Resets an enumeration sequence to the beginning.
Clone Creates an enumerator that contains the same enumeration state as the current one.
GetCount Gets the number of threads in an enumerator.

Remarks

Visual Studio typically obtains this interface to update the Threads window as well as to obtain the first thread of the list, in order to call Execute, Continue, and Step.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also