Edit

ISOSDacInterface::TraverseModuleMap Method

Traverses a module map and invokes a callback for each entry.

Note

This API was originally designed for internal use in the runtime. Although it is now supported for 3rd party use, we recommend working with ICorDebug and ICorProfiler APIs when possible.

Syntax

HRESULT TraverseModuleMap(ModuleMapType mmt, CLRDATA_ADDRESS moduleAddr, MODULEMAPTRAVERSE pCallback, LPVOID token);

Parameters

mmt
[in] A ModuleMapType enumeration value that indicates which module map to traverse.

moduleAddr
[in] The address of the module whose map to traverse.

pCallback
[in] A MODULEMAPTRAVERSE callback function to invoke for each map entry.

token
[in] A caller-defined value that is passed to the callback function.

Remarks

The provided method is part of the ISOSDacInterface interface and corresponds to the 15th slot of the virtual method table.

The MODULEMAPTRAVERSE callback has the following signature: typedef void (*MODULEMAPTRAVERSE)(UINT index, CLRDATA_ADDRESS methodTable,LPVOID token);. The callback receives the map entry index, the method table address for that entry, and the caller-defined token.

Requirements

Platforms: See System Requirements.
Header: None
Library: None
.NET Framework Versions: Available since 4.7

See also