Getting user Idle time in C#?

后端 未结 3 1656
天涯浪人
天涯浪人 2020-12-31 11:16

I found this tutorial on how getting Idle time of the user Idle Time.

The problem is that it will only work if the application runs on the user.

And my appli

3条回答
  •  -上瘾入骨i
    2020-12-31 11:38

    The recommended approach for doing something like this is to have a separate application running which communicates the user session data to the service. You can configure the application at the start of the user session by adding it to the registry under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

    You can read more details on this approach in the following KB Article

    http://support.microsoft.com/kb/308403

提交回复
热议问题