Пример #1
0
 /// <summary>
 /// 休眠
 /// </summary>
 public static void SetComputerHibernate()
 {
     Win32Funcs.SetSuspendStateWrapper(true, true, true);
 }
Пример #2
0
 /// <summary>
 /// 睡眠
 /// </summary>
 public static void SetComputerSleep()
 {
     Win32Funcs.SetSuspendStateWrapper(false, true, true);
 }