Export (0) Print
Expand All

Power Setting GUIDs

Power setting GUIDs identify power change events. This topic lists power setting GUIDs for notifications that are most useful to applications. An application should register for each power change event that might impact its behavior. Notification is sent each time a setting changes.

Power setting GUIDs are defined in WinNT.h.

GUID_ACDC_POWER_SOURCE
5d3e9a59-e9D5-4b00-a6bd-ff34ff516548

The system power source has changed. The Data member is a DWORD with values from the SYSTEM_POWER_CONDITION enumeration that indicates the current power source.

PoAc (0) - The computer is powered by an AC power source (or similar, such as a laptop powered by a 12V automotive adapter).
PoDc (1) - The computer is powered by an onboard battery power source.
PoHot (2) - The computer is powered by a short-term power source such as a UPS device.
GUID_BATTERY_PERCENTAGE_REMAINING
a7ad8041-b45a-4cae-87a3-eecbb468a9e1

The remaining battery capacity has changed. The granularity varies from system to system but the finest granularity is 1 percent. The Data member is a DWORD that indicates the current battery capacity remaining as a percentage from 0 through 100.

GUID_CONSOLE_DISPLAY_STATE
6fe69556-704a-47a0-8f24-c28d936fda47

The current monitor's display state has changed.

Windows 7, Windows Server 2008 R2, Windows Vista, and Windows Server 2008:  This notification is available starting with Windows 8 and Windows Server 2012.

The Data member is a DWORD with one of the following values.

0x0 - The display is off.
0x1 - The display is on.
0x2 - The display is dimmed.
GUID_GLOBAL_USER_PRESENCE
786E8A1D-B427-4344-9207-09E70BDCBEA9

The user status associated with any session has changed. This represents the combined status of user presence across all local and remote sessions on the system.

This notification is sent only services and other programs running in session 0. User-mode applications should register for GUID_SESSION_USER_PRESENCE instead.

Windows 7, Windows Server 2008 R2, Windows Vista, and Windows Server 2008:  This notification is available starting with Windows 8 and Windows Server 2012.

The Data member is a DWORD with one of the following values.

PowerUserPresent (0) - The user is present in any local or remote session on the system.
PowerUserInactive (2) - The user is not present in any local or remote session on the system.
GUID_IDLE_BACKGROUND_TASK
515c31d8-f734-163d-a0fd-11a0-8c91e8f1

The system is busy. This indicates that the system will not be moving into an idle state in the near future and that the current time is a good time for components to perform background or idle tasks that would otherwise prevent the computer from entering an idle state.

There is no notification when the system is able to move into an idle state. The idle background task notification does not indicate whether a user is present at the computer. The Data member has no information and can be ignored.

GUID_MONITOR_POWER_ON
02731015-4510-4526-99e6-e5a17ebd1aea

The primary system monitor has been powered on or off. This notification is useful for components that actively render content to the display device, such as media visualization. These applications should register for this notification and stop rendering graphics content when the monitor is off to reduce system power consumption. The Data member is a DWORD that indicates the current monitor state.

0x0 - The monitor is off.
0x1 - The monitor is on.

Windows 8 and Windows Server 2012:  New applications should use GUID_CONSOLE_DISPLAY_STATE instead of this notification.

GUID_POWERSCHEME_PERSONALITY
245d8541-3943-4422-b025-13A7-84F679B7

The active power scheme personality has changed. All power schemes map to one of these personalities. The Data member is a GUID that indicates the new active power scheme personality.

GUID_MIN_POWER_SAVINGS (8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c)

High Performance - The scheme is designed to deliver maximum performance at the expense of power consumption savings.

GUID_MAX_POWER_SAVINGS (a1841308-3541-4fab-bc81-f71556f20b4a)

Power Saver - The scheme is designed to deliver maximum power consumption savings at the expense of system performance and responsiveness.

GUID_TYPICAL_POWER_SAVINGS (381b4222-f694-41f0-9685-ff5bb260df2e)

Automatic - The scheme is designed to automatically balance performance and power consumption savings.

GUID_SESSION_DISPLAY_STATUS
2B84C20E-AD23-4ddf-93DB-05FFBD7EFCA5

The display associated with the application's session has been powered on or off.

Windows 7, Windows Server 2008 R2, Windows Vista, and Windows Server 2008:  This notification is available starting with Windows 8 and Windows Server 2012.

This notification is sent only to user-mode applications. Services and other programs running in session 0 do not receive this notification. The Data member is a DWORD with one of the following values.

0x0 - The display is off.
0x1 - The display is on.
0x2 - The display is dimmed.
GUID_SESSION_USER_PRESENCE
3C0F4548-C03F-4c4d-B9F2-237EDE686376

The user status associated with the application's session has changed.

Windows 7, Windows Server 2008 R2, Windows Vista, and Windows Server 2008:  This notification is available starting with Windows 8 and Windows Server 2012.

This notification is sent only to user-mode applications running in an interactive session. Services and other programs running in session 0 should register for GUID_GLOBAL_USER_PRESENCE. The Data member is a DWORD with one of the following values.

PowerUserPresent (0) - The user is providing input to the session.
PowerUserInactive (2) - The user activity timeout has elapsed with no interaction from the user.

Note  All applications that run in an interactive user-mode session should use this setting. When kernel mode applications register for monitor status they should use GUID_CONSOLE_DISPLAY_STATUS instead.

GUID_SYSTEM_AWAYMODE
98a7f580-01f7-48aa-9c0f-44352c29e5C0

The system is entering or exiting away mode. The Data member is a DWORD that indicates the current away mode state.

0x0 - The computer is exiting away mode.
0x1 - The computer is entering away mode.

Requirements

Header

WinNT.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft