|
Enabling Away Mode with Power Requests
|
bet | 12/20 | Sana | 21.03.2017 | Hajmi | 197.83 Kb. | | #1082 |
The preferred method for an application or service to set Away Mode is to usethe following power management functions:
Function name
|
Description
|
PowerCreateRequest
|
Creates a power context object and returns a handle to it.
|
PowerClearRequest
|
Removes an outstanding availability request on a particular request context object
|
PowerSetRequest
|
Activates a power availability request and indicates the type of request.
|
Developers must be very cautious about enabling Away Mode in their applications because the user expects the system to transition to a Sleep state unless the system is being used for entertainment or file access scenarios. Away Mode is not a substitute for correct support of Sleep.
For more information about these functions see the Power Availability Request whitepaper.
|
| |