Platform SDK: Debugging and Error Handling

EnumLoadedModulesProc

The EnumLoadedModulesProc function is an application-defined callback function used with the EnumerateLoadedModules function.

The PENUMLOADED_MODULES_CALLBACK type defines a pointer to this callback function. EnumLoadedModulesProc is a placeholder for the application-defined function name.

BOOL EnumLoadedModulesProc(
  PSTR ModuleName,
  ULONG ModuleBase,
  ULONG ModuleSize,
  PVOID UserContext
);

The PENUMLOADED_MODULES_CALLBACK64 type defines a pointer to this callback function. EnumLoadedModulesProc64 is a placeholder for the application-defined function name.

BOOL EnumLoadedModulesProc64(
  PSTR ModuleName,
  DWORD64 ModuleBase,
  ULONG ModuleSize,
  PVOID UserContext
);

Parameters

ModuleName
[in] Pointer to the name of the enumerated module.
ModuleBase
[in] Specifies the module's base address.
ModuleSize
[in] Specifies the size of the module.
UserContext
[in] User-defined data. This value is passed from EnumerateLoadedModules.

Return Value

To continue enumeration, the callback function must return TRUE.

To stop enumeration, the callback function must return FALSE.

Requirements

  Windows NT/2000: Requires Windows 2000. Available as a redistributable for Windows NT 4.0.
  Windows 95/98: Requires Available as a redistributable for Windows 98.
  Header: Declared in Dbghelp.h.

See Also

Debug Help Library Overview, DbgHelp Functions, EnumerateLoadedModules