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?
Asked
Active
Viewed 81 times
0
-
1Why does your service need to know that? – Matteo Italia Jul 26 '11 at 11:44
-
It must log the current user name – m-abdi Jul 26 '11 at 11:58
1 Answers
2
You need to enumerate the active logon sessions.
The answers to this question may help.

Community
- 1
- 1

Steve Morgan
- 12,978
- 2
- 40
- 49