Standby method
The Standby method puts a computer into standby.
Syntax
HRESULT Standby();
Parameters
This method has no parameters.
Return value
Standby returns a standard HRESULT value.
Remarks
The Standby method sends a PBT_APMQUERYSUSPEND event to each application to request permission to suspend operations.
To use Standby, the caller cannot be running as a service.. When Standby is complete, this method stops any wake timers that the Console::SetWakeTimer method set.
The Standby method puts the computer into the sleep state that was last set by calling the Console::SetSleepStateInfo or Console::SetSleepStateInfoEx methods. If neither of these methods were called, the Standby method keeps the computer at the S0 sleep state.
See also
Send comments about this topic to Microsoft
Build date: 1/12/2012