Board index » cppbuilder » Who executed a program ? Windows startup or the user

Who executed a program ? Windows startup or the user


2007-06-07 10:47:40 PM
cppbuilder99
How a program can determine if has launched by the Windows
Startup (via HKLM\Software\Microsoft\Windows\CurrentVersion\Run)
OR has been executed by the user ?
 
 

Re:Who executed a program ? Windows startup or the user

"Todd" < XXXX@XXXXX.COM >wrote in message
Quote
How a program can determine if has launched by the Windows
Startup (via HKLM\Software\Microsoft\Windows\CurrentVersion\Run)
OR has been executed by the user ?
It can't. What you can do, however, is set up the Run key to pass a
command-line parameter to the .exe when launched. The .exe can then
check for that.
Gambit