How do I detect that my application is running as service or in an interactive session?
- by bogdan
I'm writing an application that is able to run as a service or standalone but I want to detect if the application was executed as a service or in a normal user session.