How to distinguish start method
-
Hello ! Who can tell me how to distinguish the following case: case1: Prog.exe is started by double click. case2: Prog.exe is started by operating system. case3: prog.exe is started by other program.(for example: ShellExecute()) Distinguish means in the prog, to distinguish. Thanks!
-
Hello ! Who can tell me how to distinguish the following case: case1: Prog.exe is started by double click. case2: Prog.exe is started by operating system. case3: prog.exe is started by other program.(for example: ShellExecute()) Distinguish means in the prog, to distinguish. Thanks!
-
It's a very interesting question, but I'm not sure there is a way. Just for curiosity, why do you want to distinguish them? Best, Jun
:), the requirement is that: There is a program (let's name it A.exe), if user double click the A.exe, it doesn't reponse, by other words, user can't start it by double click. But the A.exe can be started by another program B.exe, and after user setting, the A.exe can start when the user log in the system(XP or vista). Best Regards,
-
:), the requirement is that: There is a program (let's name it A.exe), if user double click the A.exe, it doesn't reponse, by other words, user can't start it by double click. But the A.exe can be started by another program B.exe, and after user setting, the A.exe can start when the user log in the system(XP or vista). Best Regards,
-
Hello ! Who can tell me how to distinguish the following case: case1: Prog.exe is started by double click. case2: Prog.exe is started by operating system. case3: prog.exe is started by other program.(for example: ShellExecute()) Distinguish means in the prog, to distinguish. Thanks!
If you require prog.exe to be started with a parameter, you'll foil all double click attempts. For instance, "prog.exe" just terminates, but "prog.exe /run" makes it run.
-- 100% natural. No superstitious additives.