PC Review


Reply
Thread Tools Rate Thread

Detecting if application was started on login from startup folder

 
 
amohr
Guest
Posts: n/a
 
      24th Oct 2008
Basically I need some way for my application to be able to detect if
explorer launched it in response to it being in the startup folder and
the user logging in. I would like to be able to distinguish between
explorer launching my application at startup, and the user clicking
the link in the startup folder (this precludes using a simple command-
line parameter).

I'd like something similar to keyAELaunchedAsLogInItem
kAEOpenApplication AppleEvent (http://developer.apple.com/
documentation/Carbon/Reference/Apple_Event_Manager/Reference/
reference.html#//apple_ref/doc/c_ref/keyAELaunchedAsLogInItem).

The only thing I saw close to this was the WM_WTSSESSION_CHANGE window
message, however it seems apps launched from the startup folder don't
receive the WTS_SESSION_LOGON in time, and it doesn't seem like it
would work reliably anyway.

ideas?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto logon startup application then only let the user use theapplication started d.warner@mattec.com Windows XP Help 0 12th Mar 2008 02:55 PM
Application Startup event / Splash+Login Screens =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= Microsoft VB .NET 10 12th Jun 2007 05:28 AM
Startup folder error -- items started twice instead of once. Peter Williams Windows XP Help 3 11th Mar 2006 05:28 PM
Very long startup time's when a application is started by explorer Eduard Witteveen Windows XP Performance 0 19th Aug 2005 10:39 AM
duplicate copies of program in startup folder started on login W Batelaan Microsoft Windows 2000 0 7th Jun 2004 06:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:44 AM.