C# 监控Windows睡眠与恢复

2021-05-03 03:26

阅读:469

标签:break   监控windows   res   win   sum   span   obj   col   case   

SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged;

private void SystemEvents_PowerModeChanged(object sender, PowerModeChangedEventArgs e)
        {
            switch (e.Mode)
            {
                case PowerModes.Suspend:
                    break;
                case PowerModes.Resume:
                    break;
            }
        }

 

C# 监控Windows睡眠与恢复

标签:break   监控windows   res   win   sum   span   obj   col   case   

原文地址:http://www.cnblogs.com/akiing/p/7755413.html


评论


亲,登录后才可以留言!