public static void Reboot() { AdjustTokenPrivilegesForShutdown(); ExitWindowsEx((uint)(ExitWindows.Reboot | ExitWindows.ForceIfHung), 0x0); }