Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. [System.Runtime.InteropServices.DllImport("coredll.dll")] private static externInt32 SetSystemPowerState(Char[] psState, Int32 StateFlags, Int32 Options);
  2.  
  3. static void Main(string[] args)
  4. {
  5. const int POWER_STATE_RESET = 0x800000;
  6. SetSystemPowerState(null, POWER_STATE_RESET, 0);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement