none
GetLastInputInfo() and GetTickCount() returning wrong values RRS feed

  • Question

  • We use a Windows API GetLastInputInfo to get the time of last input event and we use Windows API GetTickCount to get the time elapsed since the system start and then subtracting former from later, gives the time elapsed since last user input.
    This used to work correctly but recently on some systems (on those I do not have access), API is returning incorrect value.
    On a system, GetLastInputInfo is returning the same value 179508743 (~2 days) each time when we call it in every 5 minutes for 2-3 hours while the user was very actively working (using mouse/keyboard) for all these hours. Seems like Windows is somehow not able to recognize user input.
    Can somone tell me what could be the cause behind the API providing such wrong value?







    Friday, August 5, 2016 6:08 AM

Answers