PSYM_ENUMMODULES_CALLBACKW64 callback function (dbghelp.h)

An application-defined callback function used with the SymEnumerateModules64 function. It is called once for each enumerated module, and receives the module information.

The PSYM_ENUMMODULES_CALLBACK64 and PSYM_ENUMMODULES_CALLBACKW64 types define a pointer to this callback function. SymEnumerateModulesProc64 is a placeholder for the application-defined function name.


PSYM_ENUMMODULES_CALLBACKW64 PsymEnummodulesCallbackw64;

BOOL PsymEnummodulesCallbackw64(
  [in]           PCWSTR ModuleName,
  [in]           DWORD64 BaseOfDll,
  [in, optional] PVOID UserContext


[in] ModuleName

The name of the module.

[in] BaseOfDll

The base address where the module is loaded into memory.

[in, optional] UserContext

The user-defined value specified in SymEnumerateModules64, or NULL. Typically, 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 value

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.

This callback function supersedes the PSYM_ENUMMODULES_CALLBACK callback function. PSYM_ENUMMODULES_CALLBACK is defined as follows in DbgHelp.h.

#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
typedef BOOL
    __in PCSTR ModuleName,
    __in ULONG BaseOfDll,
    __in_opt PVOID UserContext


Target Platform Windows
Header dbghelp.h
Redistributable DbgHelp.dll 5.1 or later

See also

DbgHelp Functions