win32api.SetSystemPowerState
SetSystemPowerState(Suspend, Force)
Initiates low power mode to make system sleep or hibernate
Parameters
Suspend : boolean
True - system is suspended. False - initiates hibernation.Force : boolean
True - power state occurs unconditionally. False - applications are
queried for permission.Comments
Requires Win2k or later.
SE_SHUTDOWN_NAME privilege must be enabled.
Win32 API References
Search for SetSystemPowerState at msdn, google or google groups.