Search code examples
c++modulesymbolsdbghelp

Getting debug symbol's module name



Is there a way to get the module's name of a debug symbol obtained by using dbgHelp in C++/Windows?
thanks :)


Solution

  • Use SymGetModuleBase to get the module base address for a symbol - then GetModuleFileName to find the associated DLL/EXE.