简体   繁体   English

以编程方式设置唤醒时间

[英]Programmatically set wake on time

We are creating a display system which we will be running on top of Windows 7 embedded. 我们正在创建一个将在嵌入式Windows 7上运行的显示系统。 The computers will not have keyboard or mouse, thus will have no direct user interaction. 这些计算机将没有键盘或鼠标,因此将没有直接的用户交互。

Since these computers will only be used during certain times we would like to define schedules for them and make them power off (including their screens), and automatically power on again at specific times. 由于这些计算机仅在特定时间使用,因此我们希望为其定义时间表,并使其关闭电源(包括其屏幕),并在特定时间自动重新打开电源。

For this, we need to be able to set the bios WakeOnRTC timer from code. 为此,我们需要能够通过代码设置bios WakeOnRTC计时器。 It is not sufficient to wake from hibernate or sleep, as referred to at Schedule machine to wake up . 它不足以从休眠或睡眠状态中唤醒,如称为在附表机醒来

I know from others that MythBuntu can do this, but that is Linux-based. 我从其他人那里知道MythBuntu可以做到这一点,但这是基于Linux的。 I've also heard this is easier to achieve with UEFI-bioses that are emerging. 我还听说,使用新兴的UEFI生物酶更容易实现这一目标。

At this point we are open to select any bios if anyone has a solution. 在这一点上,如果有人有解决方案,我们可以选择任何BIOS。

I'm not going to put too much because this question has already been answered, see the following links. 我不会说太多,因为已经回答了这个问题,请参见以下链接。

C#: How to wake up system which has been shutdown? C#:如何唤醒已关闭的系统? http://www.codeproject.com/Articles/49798/Wake-the-PC-from-standby-or-hibernation http://www.codeproject.com/Articles/49798/Wake-the-PC-from-standby-or-hibernation

In short the solution revolves around the following two Win32 API functions: 简而言之,解决方案围绕以下两个Win32 API函数:

  • CreateWaitableTimer CreateWaitableTimer
  • SetWaitableTimer SetWaitableTimer
  • 声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

     
    粤ICP备18138465号  © 2020-2024 STACKOOM.COM