Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Using System.Diagnostics;
  2.  
  3. {
  4. Process.Start("Shutdown", "-i");
  5. }
  6.  
  7. WinPower.Execute(WinPower.PowerOption.PowerOff);
  8. WinPower.Execute(WinPower.PowerOption.Reboot);
  9. WinPower.Execute(WinPower.PowerOption.Sleep);
  10. WinPower.Execute(WinPower.PowerOption.Hibernate);
  11.  
  12. rundll32.exe powrprof.dll,SetSuspendState 0,1,1 // dormir
  13. rundll32.exe powrprof.dll,SetSuspendState 1,1,1 // hibernar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement