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
精彩评论