| Kai Tietz | 9d937a7 | 2007-08-10 10:41:48 +0000 | [diff] [blame] | 1 | /** |
| 2 | * This file has no copyright assigned and is placed in the Public Domain. |
| Rafaël Carré | 8a67ab4 | 2012-06-28 15:40:59 +0000 | [diff] [blame] | 3 | * This file is part of the mingw-w64 runtime package. |
| Kai Tietz | f29f1a3 | 2010-01-15 21:15:53 +0000 | [diff] [blame] | 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| Kai Tietz | 9d937a7 | 2007-08-10 10:41:48 +0000 | [diff] [blame] | 5 | */ |
| 6 | #ifndef _INC_PBT |
| 7 | #define _INC_PBT |
| 8 | |
| 9 | #define WM_POWERBROADCAST 0x0218 |
| 10 | |
| 11 | #ifndef _WIN32_WCE |
| 12 | #define PBT_APMQUERYSUSPEND 0x0000 |
| 13 | #define PBT_APMQUERYSTANDBY 0x0001 |
| 14 | #define PBT_APMQUERYSUSPENDFAILED 0x0002 |
| 15 | #define PBT_APMQUERYSTANDBYFAILED 0x0003 |
| 16 | #define PBT_APMSUSPEND 0x0004 |
| 17 | #define PBT_APMSTANDBY 0x0005 |
| 18 | #define PBT_APMRESUMECRITICAL 0x0006 |
| 19 | #define PBT_APMRESUMESUSPEND 0x0007 |
| 20 | #define PBT_APMRESUMESTANDBY 0x0008 |
| 21 | #define PBTF_APMRESUMEFROMFAILURE 0x00000001 |
| 22 | #define PBT_APMBATTERYLOW 0x0009 |
| 23 | #define PBT_APMPOWERSTATUSCHANGE 0x000A |
| 24 | #define PBT_APMOEMEVENT 0x000B |
| 25 | #define PBT_APMRESUMEAUTOMATIC 0x0012 |
| 26 | #endif |
| 27 | |
| 28 | #endif |