I have a .NET application with both a Service and an application. I ask the service to alert me when the application is not running and vice versa. This is running on over 1000 machines with different logon credentials (normal login user names, ie bob, sam, fred for machine 1-PC, 2-PC, 3-PC).
I want to know when the application is not running so I can address it, however when the computer reboots and waits at the login screen I am constantly being told my app is not running, but actually there is no one logged in. Is there a way to see if a user is logged in? I have seen a few hacks but nothing concrete/no elegant way to achieve this.
That way I will be able to see the service is running, but not expect the application to be running until someone has logged onto the machine.