How can I get the programs address (C++, Win32, GUI)?
For example if the program is in "C:\Program Files\booga.exe", how can I get the same string inside that program?
Printable View
How can I get the programs address (C++, Win32, GUI)?
For example if the program is in "C:\Program Files\booga.exe", how can I get the same string inside that program?
Are you looking for GetCommandLine()?
Thanks...
That will do it.
Code:char lpFilename[MAX_PATH];
GetModuleFileName(NULL, lpFilename, sizeof lpFilename);