Reputation: 17988
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?
Upvotes: 1
Views: 729
Reputation: 54640
Pass NULL as the first parameter to GetModuleFileName().
Upvotes: 3