How to get the last windows active time by windows api

后端 未结 2 1762
长情又很酷
长情又很酷 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:48

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

提交回复
热议问题