c# - 从休眠中唤醒时的通知 C#

标签 c# .net hibernation

当系统休眠状态唤醒时,是否可以在我的 C# 2.0 应用程序中获取通知(事件)?

系统进入休眠状态时,我的应用程序正在系统托盘中运行。

最佳答案

看看 SystemEvents.PowerModeChanged Event :

SystemEvents.PowerModeChanged Event

Occurs when the user suspends or resumes the system.

关于c# - 从休眠中唤醒时的通知 C#,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4369000/

相关文章:

C# 异步/等待读取 DbDataReader 的效率(或滥用)

c# - 安装 facebook c# sdk

c# - MVC 5 : Custom AuthorizeAttribute and Caching

c# - 动态更改 Winforms ComboBox 中项目的文本

c# - 我作为 Windows 服务运行的 C# 程序正在阻止 Windows XP 休眠

windows - 如何制作休眠批处理文件?

c# - 如何用更少的代码行简洁地将 List<T> 中的值提取到 M x 1 double[,] 数组中?

c# 类对象 - 存储/检索多值列表的最佳方法是什么?

c# - .net core/standard string.ToLower() 没有文化参数

c++ - 休眠失败时的 Windows 通知