Re: Current EXE path

Tech-Archive recommends: Fix windows errors by optimizing your registry



"William GS" <WilliamGS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:72192D21-A839-4EE5-A04B-B31C6291C172@xxxxxxxxxxxxxxxx
Hello everybody. How can I obtain the current EXE path?


Take a look at GetModuleFileName/GetModuleFileNameEx. Here is an example of
GetModuleFileNameEx:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/bas
e/enumerating_all_modules_for_a_process.asp

--
Ajay Kalra [MVP - VC++]
ajaykalra@xxxxxxxxx


.