/// <summary> /// Shutdown the system. /// </summary> public static void ShutDown(ShutdownAction action, ShutdownForceMode forceMode) { ApiHelper.FailIfZero(ExitWindowsEx((uint)action | (uint)forceMode, SHTDN_REASON_FLAG_PLANNED)); }
public static void ShutDown(ShutdownAction action, ShutdownForceMode forceMode) { ApiHelper.FailIfZero(ExitWindowsEx((uint)action | (uint)forceMode, SHTDN_REASON_FLAG_PLANNED)); }