Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 2.36 KB

ienumdebugmodules2.md

File metadata and controls

57 lines (44 loc) · 2.36 KB
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
IEnumDebugModules2
IEnumDebugModules2
maiak
maiak
mijacobs
debug-diagnostics

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