🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #1907

GetModuleFileName to get applications EXE File path

#1907
From: Ravi Gururaj
Date: Wed, 18 Oct 1989 21:51
9 lines
802 bytes
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.
Technical Details
Message-ID: <15654@netnews.upenn.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!eecae!netnews.upenn.edu!eniac.seas.upenn.edu!gururaj

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!eecae!netnews.upenn.edu!eniac.seas.upenn.edu!gururaj
From: gururaj@eniac.seas.upenn.edu (Ravi Gururaj)
Newsgroups: comp.windows.ms
Subject: GetModuleFileName to get applications EXE File path
Message-ID: <15654@netnews.upenn.edu>
Date: 18 Oct 89 21:51:55 GMT
Sender: news@netnews.upenn.edu
Reply-To: gururaj@eniac.seas.upenn.edu (Ravi Gururaj)
Distribution: usa
Organization: University of Pennsylvania
Lines: 9