i need an api that will get the current process exe name, i need to get it becuase i dont know if they renamed the executable to a diffrent name,
Posted on 2004-02-10 00:13:42 by Qages
GetModuleFileName
GetModuleFileNameEx

:wave:
Posted on 2004-02-10 00:24:00 by arkane
and GetCommandLineA passes the exe name as well if im not mistaken
Posted on 2004-02-10 08:04:38 by evlncrn8

and GetCommandLineA passes the exe name as well if im not mistaken


only if a command line is passed, command line wont be passed to my app so cant use that. i thought of that b4 i posted so... thx arkane
Posted on 2004-02-10 14:41:01 by Qages
Hi :)

only if a command line is passed, command line wont be passed to my app so cant use that. i thought of that b4 i posted so... thx arkane

:confused:
AFAIK there's always a command line. GetCommandLineA should never return NULL.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getcommandline.asp
Posted on 2004-02-10 15:36:36 by QvasiModo