开发者

Windows 7 catch sleep/suspend messages

开发者 https://www.devze.com 2022-12-29 05:19 出处:网络
I\'m wondering if it\'s possible to catch Windows 7 Sleep/Suspend Messages. Can't catch 开发者_如何学Csleep/suspend messages (winXP)Use PInvoke to call the Win32 API RegisterPowerSettingNotifica

I'm wondering if it's possible to catch Windows 7 Sleep/Suspend Messages.

Can't catch 开发者_如何学Csleep/suspend messages (winXP)


Use PInvoke to call the Win32 API RegisterPowerSettingNotification. Details here.


Doesn't SystemEvents.PowerModeChanged work for you?

Best

0

精彩评论

暂无评论...
验证码 换一张
取 消