my guess: this information is not necessary for a.exe to run, but you may get it from argv[] or so, since the shell may convey the command-line to the program(a.exe).
【在 r******d 的大作中提到】 : my guess: : this information is not necessary for a.exe to run, : but you may get it from argv[] or so, since the shell may : convey the command-line to the program(a.exe).
J*r
5 楼
GetModuleFileName, to get your exe file path - return c:\temp GetCurrentDirectory, to get current process's current directory - return c:\