Identifying idle state on a windows machine

Posted by SaM on Stack Overflow See other posts from Stack Overflow or by SaM
Published on 2009-11-09T17:51:32Z Indexed on 2010/06/08 23:22 UTC
Read the original article Hit count: 228

Filed under:
|
|

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn't mean the system has been idle for 10 minutes - scans, downloads, movies - lots of reasons.

So how can we identify whether the system is truly idle or not?

Does anyone know what Window's definition of "idle" is? Must be a combination of thresholds - like less than 5% cpu util, less than 3% disk util etc. - along with the user input parameter...anyone knows the exact definition?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about Windows