title: Detect existing idle application
body: <p>I have a problem and I need a approach for the next problem:</p>
  
  <p>Lets say there is an application "A". This application "A" can be used only if you have a license. There are couple of users that use this application and "reserve" the license for them, if the license is free. But, sometimes the user who "reserved" the license, forget to "unreserved". </p>
  
  <p>The main question: <strong>How can I detect if a user is not using the application for X minutes (the application is in idle state)?</strong>
  It doesn't mean that the user is not active on the computer - he is using another applications on the computer, but he doesn't use this particular application "A" . (The user have to login so he can use the license. That means that even he exits the application, minimizes the application or simply the application is in the background of other applications, he still poses the license)</p>
  
  <p>I read about GetLastInputInfo, but I don't believe that it's going to help me in my situation. All I want is to get info if the user is interactive with the application.</p>
  
  <p>I'm using C++. 
  OS: Windows 10 x64bit.</p>