Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |
---|---|
Retrieves a specified number of threads in the enumeration sequence. |
|
Skips a specified number of threads in an enumeration sequence. |
|
Resets an enumeration sequence to the beginning. |
|
Creates an enumerator that contains the same enumeration state as the current one. |
|
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