gpt4 book ai didi

c++ - 当计算机处于 sleep 状态时电源状态发生变化时,我可以收到通知吗?

转载 作者:太空宇宙 更新时间:2023-11-04 11:40:11 25 4
gpt4 key购买 nike

我正在编写一个 Windows 服务应用程序,我很好奇是否有一种方法可以在系统处于 sleep 状态时电源从 AC 切换到 DC(或反之亦然)时接收通知?

最佳答案

我想你想要RegisterPowerSettingNotificationRegisterSuspendResumeNotification .很可能还有许多其他 API here .

关于c++ - 当计算机处于 sleep 状态时电源状态发生变化时,我可以收到通知吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21691731/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com