🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1938

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

#1938
From: 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
Technical Details
Message-ID: <4669b8c1$3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46681a8c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3ffef0a8ce634e6c
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <46681a8c$1@newsgroups.borland.com>
Subject: Re: Who executed a program ? Windows startup or the user
Date: Fri, 8 Jun 2007 13:08:59 -0700
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.82.252.126
Message-ID: <4669b8c1$3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1181333697 75.82.252.126 (8 Jun 2007 13:14:57 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail