How to get the last windows active time by windows api

后端 未结 2 1746
长情又很酷
长情又很酷 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.

提交回复
热议问题