description | title | ms.date | ms.topic | f1_keywords | helpviewer_keywords | author | ms.author | manager | ms.subservice | ||
---|---|---|---|---|---|---|---|---|---|---|---|
This interface enumerates a list of modules. |
IEnumDebugModules2 |
11/04/2016 |
reference |
|
|
maiak |
maiak |
mijacobs |
debug-diagnostics |
This interface enumerates a list of modules.
IEnumDebugModules2 : IUnknown
The debug engine (DE) implements this interface to represent a list of modules loaded for a program.
Visual Studio calls EnumModules to obtain this interface.
The following table shows the methods of IEnumDebugModules2
.
Method | Description |
---|---|
Next | Retrieves a specified number of modules in an enumeration sequence. |
Skip | Skips a specified number of modules 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 enumerator. |
GetCount | Gets the number of modules. |
Visual Studio uses this interface primarily to update the Modules window.
For the purposes of debugging in Visual Studio, a program is a logical sequence of code instructions that can cross module boundaries, hence the need for a list of modules for a single IDebugProgram2 interface. The first module in the list typically contains the initial entry point for the associated program.
Header: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dll