title: How do I determine idle time in my C# application?
body: <p>I want to get the Windows Idle Time from my application. I am using exactly this code:</p>
  
  <p><a href="http://dataerror.blogspot.de/2005/02/detect-windows-idle-time.html" rel="nofollow">http://dataerror.blogspot.de/2005/02/detect-windows-idle-time.html</a></p>
  
  <p>I have tested this on Windows 7 and it is working properly, but I am getting only a zero on Windows 8.</p>
  
  <p>Any ideas how to fix this?</p>