IEnumDebugModules2

This interface enumerates a list of modules.

Syntax

IEnumDebugModules2 : IUnknown

Notes for Implementers

The debug engine (DE) implements this interface to represent a list of modules loaded for a program.

Notes for Callers

Visual Studio calls EnumModules to obtain this interface.

Methods in Vtable Order

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.

Remarks

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.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also