SymEnumerateModules

The SymEnumerateModules function enumerates all modules that have been loaded for the process by the SymLoadModule function.

BOOL SymEnumerateModules(
  IN HANDLE hProcess,                                
  IN PSYM_ENUMMODULES_CALLBACK EnumModulesCallback,  
  IN PVOID UserContext                               
);
 

Parameters

hProcess
Handle to the process that was originally passed to the SymInitialize function.
EnumModulesCallback
Pointer to the enumeration callback function. This function is called once per module. For more information, see SymEnumModulesCallback.
UserContext
A user-defined value or NULL. This value is simply passed to the callback function. Normally, this parameter is used by an application to pass a pointer to a data structure that lets the callback function establish some type of context.

Return Values

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.

Remarks

The SymEnumerateModules function enumerates all modules that have been loaded for the process by SymLoadModule, even if the symbol loading is deferred. The enumeration callback function is called once for each module and is passed the module information.

QuickInfo

  Windows NT: Requires version 4.0 or later.
  Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in imagehlp.h.
  Import Library: Use imagehlp.lib.

See Also

PE Image Helper (ImageHlp) Overview, Symbol Handler, SymEnumModulesCallback, SymInitialize, SymLoadModule