tags:

views:

95

answers:

1

If I had a dll (foo.dll) that was LoadLibrary'd into an application (bar.exe), how do I get the string "bar.exe" from within foo.dll?

+2  A: 

Pass NULL as the first parameter to GetModuleFileName().

jeffamaphone