Platform SDK: Debugging and Error Handling |
The SymEnumModulesCallback function is an application-defined callback function used with the SymEnumerateModules function. It is called once for each enumerated module, and receives the module information.
The PSYM_ENUMMODULES_CALLBACK type defines a pointer to this callback function. SymEnumModulesCallback is a placeholder for the application-defined function name.
BOOL CALLBACK SymEnumModulesCallback( PSTR ModuleName, ULONG BaseOfDll, PVOID UserContext );
The PSYM_ENUMMODULES_CALLBACK64 type defines a pointer to this callback function. SymEnumModulesCallback64 is a placeholder for the application-defined function name.
BOOL CALLBACK SymEnumModulesCallback64( PSTR ModuleName, DWORD64 BaseOfDll, PVOID UserContext );
If the return value is TRUE, the enumeration will continue.
If the return value is FALSE, the enumeration will stop.
The calling application is called once per module until all modules are enumerated, or until the enumeration callback function returns FALSE.
Windows NT/2000: Requires Windows NT 4.0 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in Dbghelp.h.
Debug Help Library Overview, DbgHelp Functions, SymEnumerateModules