m-abdi
m-abdi

Reputation: 540

How to specify whether the windows is logged in or not in C# service application?

I've implemented a service application, that works fine all the time, both when the user has logged in and when the windows is in log in mode, but need to know whether the user has been logged or windows is in logged off mode. how can i do that?

Upvotes: 0

Views: 86

Answers (1)

Steve Morgan
Steve Morgan

Reputation: 13091

You need to enumerate the active logon sessions.

The answers to this question may help.

Upvotes: 2

Related Questions