[This is preliminary documentation and subject to change.]
The RequestWakeupLatency function specifies roughly how quickly the computer should enter the working state.
BOOL RequestWakeupLatency(
LATENCY_TIME latency // latency requirement
);
Value | Description |
---|---|
LT_LOWEST_LATENCY | PowerSystemSleeping1 state (equivalent to ACPI state S0 and APM state Working). |
LT_DONT_CARE | Any latency (default). |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. The function will fail if the device does not support wake-up operations or if the system is entering the sleeping state.
The system uses the wake-up latency requirement when choosing a sleeping state. The latency is not guaranteed, because wake-up time is determined by the hardware design of the particular computer.
To cancel a latency request, call RequestWakeupLatency with LT_DONT_CARE.
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in winbase.h.
Import Library: Use kernel32.lib.
Power Management Overview, Power Management Functions, CancelDeviceWakeupRequest, RequestDeviceWakeup