[comp.windows.ms] GetModuleFileName to get applications EXE File path

gururaj@eniac.seas.upenn.edu (Ravi Gururaj) (10/19/89)

Thanks to all those who responded to my request. I am posting the
most appropriate method in case others are interested.

GetModuleFileName(hInstance, path_buff, sizeof(path_buff));

will get the full path name of the EXE file regardless of how the
application was loaded.

Thanks to Bill Joy for his reply.