我想知道是否有可能捕捉到Windows 7睡眠/挂起消息。
Can't catch sleep/suspend messages (winXP)
发布于 2010-05-04 12:28:02
使用PInvoke调用Win32接口RegisterPowerSettingNotification。Details here。
发布于 2010-05-04 19:49:30
难道SystemEvents.PowerModeChanged不适合你吗?
最好的
https://stackoverflow.com/questions/2762272
相似问题