开发者

Windows 7 catch sleep/suspend messages

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜