I found the Shutdown command but I also found that Shutdown command cannot be used for sleep and hibernation modes. In examples I found DllCall for these modes. If I understand correctly then:
DllCall(“PowrProf\SetSuspendState”, “int”, 0, “int”, 0, “int”, 0) ; Sleepand
DllCall(“PowrProf\SetSuspendState”, “int”, 1, “int”, 0, “int”, 0) ; Hibernation
But please can somebody tell me, how to enter to “Hybrid sleep”? Hybrid sleep is sleep mode that is secured by storing data from memory on the hard drive (like hibernation).
Thank you.