C# 监控Windows睡眠与恢复
2021-05-03 03:26
标签:break 监控windows res win sum span obj col case C# 监控Windows睡眠与恢复 标签:break 监控windows res win sum span obj col case 原文地址:http://www.cnblogs.com/akiing/p/7755413.htmlSystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged;
private void SystemEvents_PowerModeChanged(object sender, PowerModeChangedEventArgs e)
{
switch (e.Mode)
{
case PowerModes.Suspend:
break;
case PowerModes.Resume:
break;
}
}