简体   繁体   中英

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?

You need to enumerate the active logon sessions.

The answers to this question may help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM