帮帮我,关于SetSuspendState Hibernate,请 [英] Help me, Please about SetSuspendState Hibernate
问题描述
我尝试用C#进行17天的小编程!但它无法完成.我不想在60秒内自动关闭电源然后再打开.
我使用:
System.Windows.Forms.Application.SetSuspendState(PowerState.Hibernate,true,false)
它工作正常. .在60秒内关闭电源并重新打开电源.但我不想恢复我想像计算机上的新电源一样进行引导(不要在引导时使用F8).我使用"CreateWaitableTimer"但是我不知道它何时进入休眠状态.
我不希望断电!!像stanby一样闪烁,然后我使用``PowerState.Hibernate''
,当它再次唤醒时(在60秒内),我想像计算机上的新电源一样启动.
你能
对不起,我的英语不好,但是我必须尝试一下.
谢谢Advanced,
xcover
I try to make some small programe by C# for 17 day!!! but it can't complete any more. I wan't to make auto power-off and on again in 60 secound.
and I use :
System.Windows.Forms.Application.SetSuspendState(PowerState.Hibernate, true, false)
It work fine.. power is off and on agian in 60 secound. but I don't want to resume. I want to boot like new power on my computter(by not use F8 on boot) . I use "CreateWaitableTimer" But I don't no how it work when it take to hibernate.
I want power off not!! light flash like stanby and then I use "PowerState.Hibernate"
and when it wakeup again (in 60 second) I want to boot like new power on my computter.
do you can understand me ?
Sorry I am bad in english but I must be try.
Thank advanced,
xcover
推荐答案
您想要的是不可能的.首先,您要休眠,然后,您不想恢复休眠的会话,而是像平常一样启动.在这种情况下,只需重新启动计算机即可.
What you want is impossible. First, you want to hibernate, then, you do not want to resume the hibernated session but boot like normal. In that case, simply restart the computer.
这篇关于帮帮我,关于SetSuspendState Hibernate,请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!