예제 #1
0
 public static void ForceReboot()
 {
     AdjustToken();
     NativeMethod.ExitWindowsEx(EWX.REBOOT | EWX.FORCE, 0);
 }
예제 #2
0
 public static void Reboot()
 {
     AdjustToken();
     NativeMethod.ExitWindowsEx(EWX.REBOOT, 0);
 }
예제 #3
0
 public static void ForceLogoff()
 {
     AdjustToken();
     NativeMethod.ExitWindowsEx(EWX.LOGOFF | EWX.FORCE, 0);
 }
예제 #4
0
 public static void Logoff()
 {
     AdjustToken();
     NativeMethod.ExitWindowsEx(EWX.LOGOFF, 0);
 }
예제 #5
0
 public static void ForceShutdown()
 {
     AdjustToken();
     NativeMethod.ExitWindowsEx(EWX.POWEROFF | EWX.FORCE, 0);
 }
예제 #6
0
 public static void DoShutdown()
 {
     AdjustToken();
     NativeMethod.ExitWindowsEx(EWX.POWEROFF, 0);
 }