Reputation: 153
I need to execute my application without user interaction at machine start up. I need this to run in all Windows XP, Windows Vista, Windows Server 2003, Windows 7 and Windows Server 2008 OSs.
For this, I followed these steps,
And it works for all Workstations and when the Servers have an active console id running. It's pretty obvious because in step 1 I catch the Active Console Id. I found some other ways to start my applications in OSs before Windows Session 0 Isolation was introduced.
Now I need to catch whether WTSGetActiveConsoleSessionId has returned a valid id and if not create a new session and start my application in it or catch an active RDP session an run my application in it or show the logged in users screen for the user to decide (which would be ideal since my application is a screen capturing one). I'm sure their should be a way to do this, and I need your help for this.
Thanks a lot!
Upvotes: 3
Views: 2935
Reputation: 153
I finally found a solution to my problem. Thought of publishing it for the benefit of all readers.
The 7 steps mentioned here are correct.
Adding to them please note that
Hope it saved your time :)
Upvotes: 2