Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Using System.Diagnostics;
- {
- Process.Start("Shutdown", "-i");
- }
- WinPower.Execute(WinPower.PowerOption.PowerOff);
- WinPower.Execute(WinPower.PowerOption.Reboot);
- WinPower.Execute(WinPower.PowerOption.Sleep);
- WinPower.Execute(WinPower.PowerOption.Hibernate);
- rundll32.exe powrprof.dll,SetSuspendState 0,1,1 // dormir
- rundll32.exe powrprof.dll,SetSuspendState 1,1,1 // hibernar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement