[英]Can I get a notification when power state changes while computer is asleep?
我正在编写Windows服务应用程序,很好奇在系统处于睡眠状态时电源从AC切换到DC(反之亦然)时是否有办法接收通知?
I think you want RegisterPowerSettingNotification and RegisterSuspendResumeNotification . 我认为您想要RegisterPowerSettingNotification和RegisterSuspendResumeNotification 。 And quite possibly many of the other APIs here .
而且很可能许多其他的API 在这里 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.