Guest amohr Posted October 24, 2008 Posted October 24, 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?
Recommended Posts