Using Away Mode in Applications




Download 197.83 Kb.
bet16/20
Sana21.03.2017
Hajmi197.83 Kb.
#1082
1   ...   12   13   14   15   16   17   18   19   20

Using Away Mode in Applications


Applications for Windows, specifically media applications, should respond when the system transitions into Away Mode and pause local playback of media content. Pausing playback helps extend the experience that the system powered off when it entered Away Mode. Applications can be notified when the system enters and exits Away Mode by registering for a power notification.

The system transitions into Away Mode when an application, such as Windows Media Center, requests Away Mode to be enabled and the user places the system in the Sleep state. When the system enters Away Mode, local audio is muted and the display is turned off. This change gives the illusion to the user that the system is turned off, although the system remains on to transmit media content over the network or to record television content.

Media applications should register for the Away Mode transition notification and pause local playback of media content when the system enters Away Mode. By doing so, the application is in the same state when the system exits Away Mode. The user can then continue interacting with the system.

To register for the Away Mode notification, applications should use the RegisterPowerSettingNotification API and the GUID_SYSTEM_AWAYMODE power event GUID.





Download 197.83 Kb.
1   ...   12   13   14   15   16   17   18   19   20




Download 197.83 Kb.