WinAPI:可等待的计时器是否在睡眠状态后恢复?

WinAPI: Are waitable timers resumed after a sleep state?

我读了 msdn 关于休眠状态和软件恢复的文章,我想知道:

  1. 根据System Wake-up Events, Your application can restore a computer that is in a sleep state to the working state by using a scheduled timer or a device event. This is known as a wake-up event. Use a waitable timer object指定系统唤醒的时间。
  2. 根据Operational Mode Events,当应用程序收到系统即将进入休眠的通知时,它应该迅速执行任何必要的操作并return 跳出消息循环。在超时之前处理此消息时,系统允许每个应用程序最多两秒钟。因此,通过处理 一些 电源管理事件来中断计划的操作是一种很好的做法。