C# – Detect time of last user interaction with the OS

GetLastInputInfo. Documented at PInvoke.net.

Leave a Comment