pbt.h 827 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _INC_PBT
  7. #define _INC_PBT
  8. #define WM_POWERBROADCAST 0x0218
  9. #ifndef _WIN32_WCE
  10. #define PBT_APMQUERYSUSPEND 0x0000
  11. #define PBT_APMQUERYSTANDBY 0x0001
  12. #define PBT_APMQUERYSUSPENDFAILED 0x0002
  13. #define PBT_APMQUERYSTANDBYFAILED 0x0003
  14. #define PBT_APMSUSPEND 0x0004
  15. #define PBT_APMSTANDBY 0x0005
  16. #define PBT_APMRESUMECRITICAL 0x0006
  17. #define PBT_APMRESUMESUSPEND 0x0007
  18. #define PBT_APMRESUMESTANDBY 0x0008
  19. #define PBTF_APMRESUMEFROMFAILURE 0x00000001
  20. #define PBT_APMBATTERYLOW 0x0009
  21. #define PBT_APMPOWERSTATUSCHANGE 0x000A
  22. #define PBT_APMOEMEVENT 0x000B
  23. #define PBT_APMRESUMEAUTOMATIC 0x0012
  24. #endif
  25. #endif