title: How to calculate system idle time out and put the machine to sleep?
body: <p>Is there anything that provides a system-wide last user input information? We want to use C# to get the idle time for the system across all sessions and put the machine to sleep if nobody is using the machine for X minutes.</p>
  
  <p>It appears that GetLastInputInfo is user specific. <a href="http://msdn.microsoft.com/en-us/library/ms646302(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms646302(VS.85).aspx</a></p>