如何在特定的日子/时间从hibernate状态中醒来?

我需要每天给定的时间唤醒冬眠的笔记本电脑…我应该使用pinvoke? 如是? 哪一个? 怎么样? 很多!

你可以从睡梦中唤醒电脑,我不知道冬眠。 这个例子告诉你如何做到这一点。 总之你用这两个进口:

[DllImport("kernel32.dll")] public static extern SafeWaitHandle CreateWaitableTimer(IntPtr lpTimerAttributes, bool bManualReset, string lpTimerName); [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] public static extern bool SetWaitableTimer(SafeWaitHandle hTimer, [In] ref long pDueTime, int lPeriod, IntPtr pfnCompletionRoutine, IntPtr lpArgToCompletionRoutine, bool fResume); 

我只在Windows Vista和7上测试过,这些可能在XP上不可用。

我知道这是VB而不是C#,但看看这个例子 ,它确实需要你的主板满足一定的要求。