/// <summary>
 /// Suspends the system by shutting power down in hibernation.
 /// </summary>
 public static void HybernateSystem()
 {
     PowerManagementNative.SetSuspendState(true, false, false);
 }
 /// <summary>
 /// Suspends the system by shutting power down in a sleep state.
 /// </summary>
 public static void SleepSystem()
 {
     PowerManagementNative.SetSuspendState(false, false, false);
 }