Is it somehow possible to detect whether program was started by a user or it was started automatically from registry at Windows start up?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The simplest way i know of would be to add a “–startup” or similar option to the command line for the startup shortcut (or the value in Run), and check for that in your app. If it’s there, then the app is being run by Windows; otherwise, the user is running it.