I\'m creating a service that will run processes on user interactive session. I found how to start process from session 0 in a service, I found how to catch when a user is lo
Use Environment.UserInteractive. It returns Boolean.
Environment.UserInteractive