다음을 통해 공유


IEnumDebugThreads2

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

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 IDebugProcess2::EnumThreads to obtain this interface representing a list of all threads in all programs running in a process. Call IDebugProgram2::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

IEnumDebugThreads2::Next

Retrieves a specified number of threads in the enumeration sequence.

IEnumDebugThreads2::Skip

Skips a specified number of threads in an enumeration sequence.

IEnumDebugThreads2::Reset

Resets an enumeration sequence to the beginning.

IEnumDebugThreads2::Clone

Creates an enumerator that contains the same enumeration state as the current one.

IEnumDebugThreads2::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 IDebugProcess3::Execute, IDebugProcess3::Continue, and IDebugProcess3::Step.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Reference

IDebugProcess2::EnumThreads

IDebugProgram2::EnumThreads

IDebugProcess3::Step

IDebugProcess3::Continue

IDebugProcess3::Execute

Concepts

Core Interfaces