SymGetSymFromAddr64 Function

Debug Help Library

SymGetSymFromAddr64 Function

Locates the symbol for the specified address.

Note  This function is provided only for compatibility. Applications should use SymFromAddr.

BOOL WINAPI SymGetSymFromAddr64(
  __in          HANDLE hProcess,
  __in          DWORD64 Address,
  __out         PDWORD64 Displacement,
  __out         PIMAGEHLP_SYMBOL64 Symbol



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


The address for which a symbol is to be located. The address does not have to be on a symbol boundary. If the address comes after the beginning of a symbol and before the end of the symbol (the beginning of the symbol plus the symbol size), the symbol is found.


The displacement from the beginning of the symbol, or zero.


A pointer to an IMAGEHLP_SYMBOL64 structure.

Return Value

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.


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

The SymGetSymFromAddr64 function locates the symbol for a specified address. The modules are searched for the one the address belongs to. When the module is found, its symbol table is searched for a match. When the symbol is found, the symbol information is copied into the Symbol buffer provided by the caller. The caller must allocate the Symbol buffer properly and fill in the required parameters in the IMAGEHLP_SYMBOL64 structure before calling SymGetSymFromAddr64.

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 FunctionsIMAGEHLP_SYMBOL64

Send comments about this topic to Microsoft

Build date: 9/25/2007

© 2007 Microsoft Corporation. All rights reserved.