Check if no user is currently logged on to Windows

前端 未结 5 812
野的像风
野的像风 2020-12-24 08:42

I\'m writing a Windows Service application which listens for connections and performs certain tasks as instructed from a different application running on another computer on

5条回答
  •  萌比男神i
    2020-12-24 09:09

    The CodeProject article "Using the Local Security Authority to Enumerate User Sessions in .NET" might be what you are looking for. The code enumerates users and can identify which users (if any) are interactive (i.e., which users are real people).

提交回复
热议问题