How to get the last windows active time by windows api

后端 未结 2 1747
长情又很酷
长情又很酷 2021-01-13 16:03

In general, the Screensaver will run when we do nothing for a period of time.
Now i wanna know how to get the unactive time.
In another word,i want to make a progr

相关标签:
2条回答
  • 2021-01-13 16:35

    Look into CallNtPowerInformation() and request a SYSTEM_POWER_INFORMATION structure.

    0 讨论(0)
  • 2021-01-13 16:48

    The CallNtPowerInformation() API is to get the last power information
    I should use GetLastInputInfo()

    0 讨论(0)
提交回复
热议问题