SymGetModuleBase64 Function

Debug Help Library

SymGetModuleBase64 Function

Retrieves the base address of the module that contains the specified address.

This function supersedes the SymGetModuleBase function. For more information, see Updated Platform Support.

DWORD64 WINAPI SymGetModuleBase64(
  __in          HANDLE hProcess,
  __in          DWORD64 dwAddr



A handle to the process that was originally passed to the SymInitialize function.


The virtual address that is contained in one of the modules loaded by the SymLoadModule64 function.

Return Value

If the function succeeds, the return value is a nonzero virtual address. The value is the base address of the module containing the address specified by the dwAddr parameter.

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


The module table is searched for a module that contains dwAddr. The module is located based on the load address and size of each module.

All DbgHelp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.



Requires DbgHelp.dll 5.1 or later.


Declared in Dbghelp.h.


Use Dbghelp.lib.


Requires Dbghelp.dll.

See Also

DbgHelp FunctionsSymInitialize

Send comments about this topic to Microsoft

Build date: 9/25/2007

© 2007 Microsoft Corporation. All rights reserved.