Is there for my .Net application to detect if a user has logged on? It is a Windows Service, so it will be running before logon.
What I want to do is display a “popup” when a user logs on to tell them the status of the application
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.
I think you can modify the service to allow “Service can interact with desktop” (from services control panel) then create a NotifyIcon in your service which can popup messages on specific events. Though I’m not positive if this is possible, I would google “Windows Service” coupled with “NotifyIcon”.
Addendum
Take a look at this SO article on desktop notifications. They go over the cautions of doing so, and way of making this happen (which basically eludes to building a separate application that establishes a perpetual connection that can receive updates from the service and notify accordingly).