C# PC Close - Restart - Al Sleep - Logout Codes

System.Diagnostics.Process.Start("shutdown", "-s -f");

Application.SetSuspendState(PowerState.Suspend, false, false);

System.Diagnostics.Process.Start("shutdown", "-r -f -t 0");

System.Diagnostics.Process.Start("shutdown", "-l -f");

Yorumlar