다음을 통해 공유


IEnumDebugModules2

This interface enumerates a list of modules.

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 IDebugProgram2::EnumModules to obtain this interface.

Methods in Vtable Order

The following table shows the methods of IEnumDebugModules2.

Method

Description

IEnumDebugModules2::Next

Retrieves a specified number of modules in an enumeration sequence.

IEnumDebugModules2::Skip

Skips a specified number of modules in an enumeration sequence.

IEnumDebugModules2::Reset

Resets an enumeration sequence to the beginning.

IEnumDebugModules2::Clone

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

IEnumDebugModules2::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

Reference

IDebugProgram2

IDebugProgram2::EnumModules

Concepts

Core Interfaces