1


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

Idov
  • 5,006
  • 17
  • 69
  • 106

1 Answers1

2

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

Erik
  • 88,732
  • 13
  • 198
  • 189
  • I understand that I can use the module base address as the "HMODULE" that GetModuleFileName requests? :) – Idov Apr 15 '11 at 15:43
  • 2
    @Idov: Yep - HMODULE really is the base address a DLL is loaded at. – Erik Apr 15 '11 at 15:44