How do I detect that my application is running as service or in an interactive session?

Posted by bogdan on Stack Overflow See other posts from Stack Overflow or by bogdan
Published on 2010-04-19T15:51:08Z Indexed on 2010/04/19 15:53 UTC
Read the original article Hit count: 185

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about c++

Related posts about windows-services