win32api.SetSystemPowerState
SetSystemPowerState(Suspend, Force)
Initiates low power mode to make system sleep or hibernate
Parameters
Comments
Requires Win2k or later.SE_SHUTDOWN_NAME privilege must be enabled.
Win32 API References
SetSystemPowerState(Suspend, Force)
Initiates low power mode to make system sleep or hibernate
SE_SHUTDOWN_NAME privilege must be enabled.