title: How to detect out of idle state in windows?
body: <p>I use GetLastInputInfo() to understand if the user is afk. I run it one in a few minutes.</p>
  
  <p>Is there a effective way to catch out of idle state (window of the application could be rolled up)? </p>
  
  <p>I dont like using GetLastInputInfo() for this as I have to spam checking it every few seconds. And I dont like to check raw WM_INPUT as some devices could be not registered (some gamepads, usb mouse maybe and so on).</p>
  
  <p>What is the best way to resolve this?</p>