diff options
author | Brandon Sneed <nivenh@sourceware.org> | 2008-01-29 21:18:49 +0000 |
---|---|---|
committer | Brandon Sneed <nivenh@sourceware.org> | 2008-01-29 21:18:49 +0000 |
commit | e917b0bc44e45f1e0a78ccda051cd5d40dca20a6 (patch) | |
tree | 04cec0bfb43c08d66d022943a9f2a5a979698538 /winsup/w32api/include/winnt.h | |
parent | 458430dc16ded7ec0f6e249645bda48cc76d2c63 (diff) | |
download | cygnal-e917b0bc44e45f1e0a78ccda051cd5d40dca20a6.tar.gz cygnal-e917b0bc44e45f1e0a78ccda051cd5d40dca20a6.tar.bz2 cygnal-e917b0bc44e45f1e0a78ccda051cd5d40dca20a6.zip |
2008-01-29 Brandon Sneed <nivenh@sourceware.org>
* include/winnt.h (SYSTEM_POWER_CONDITION): typedef.
* include/winuser.h (PBT_POWERSETTINGCHANGE, DEVICE_NOTIFY_WINDOW_HANDLE,
DEVICE_NOTIFY_SERVICE_HANDLE): define.
* include/winuser.h (LPCGUID, HPOWERNOTIFY, POWERBROADCAST_SETTING): typedefs.
* include/winuser.h (GUID_POWERSCHEME_PERSONALITY, GUID_MIN_POWER_SAVINGS,
GUID_MAX_POWER_SAVINGS, GUID_TYPICAL_POWER_SAVINGS, GUID_ACDC_POWER_SOURCE,
GUID_BATTERY_PERCENTAGE_REMAINING, GUID_IDLE_BACKGROUND_TASK,
GUID_SYSTEM_AWAYMODE, GUID_MONITOR_POWER_ON): added externs for GUIDs.
* include/winuser.h (RegisterPowerSettingNotification,
UnregisterPowerSettingNotification): Add prototypes.
* lib/user32.def: Added imports for the above prototypes.
* lib/Makefile.in: Added build support for power-uuid.c.
* lib/power-uuid.c: New file containing power GUID definitions.
Diffstat (limited to 'winsup/w32api/include/winnt.h')
-rw-r--r-- | winsup/w32api/include/winnt.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/winsup/w32api/include/winnt.h b/winsup/w32api/include/winnt.h index 01547ed83..3f63b56fb 100644 --- a/winsup/w32api/include/winnt.h +++ b/winsup/w32api/include/winnt.h @@ -3545,6 +3545,15 @@ typedef enum { PowerActionWarmEject } POWER_ACTION, *PPOWER_ACTION; +#if (_WIN32_WINNT >= 0x0600) +typedef enum { + PoAc = 0, + PoDc = 1, + PoHot = 2, + PoConditionMaximum = 3 +} SYSTEM_POWER_CONDITION, *PSYSTEM_POWER_CONDITION; +#endif + typedef enum _DEVICE_POWER_STATE { PowerDeviceUnspecified, PowerDeviceD0, |