How to get application name from DLL?

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

+1


a source to share


1 answer


Pass NULL as the first parameter to GetModuleFileName () .



+3


a source







All Articles