🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by Todd Thu, 07 Jun 2007 14:47
Who executed a program ? Windows startup or the user
#1926
Author: Todd
Date: Thu, 07 Jun 2007 14:47
4 lines
977 bytes
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
#1938
Author: Remy Lebeau (TeamB)
Date: Fri, 08 Jun 2007 20:08
14 lines
1280 bytes
"Todd" <NOSPAM@NOSPAM.com> wrote in message
news:46681a8c$1@newsgroups.borland.com...

> 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads