Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.2 KiB

  1. /*++ BUILD Version: 0000 Increment this if a change has global effects
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. pbt.h
  5. Abstract:
  6. Definitions for the Virtual Power Management Device.
  7. Revision History:
  8. DATE REV DESCRIPTION
  9. ----------- --- ----------------------------------------
  10. 15 Jan 1994 TCS Original implementation.
  11. --*/
  12. #ifndef _INC_PBT
  13. #define _INC_PBT
  14. #define WM_POWERBROADCAST 0x0218
  15. #ifndef _WIN32_WCE
  16. #define PBT_APMQUERYSUSPEND 0x0000
  17. #define PBT_APMQUERYSTANDBY 0x0001
  18. #define PBT_APMQUERYSUSPENDFAILED 0x0002
  19. #define PBT_APMQUERYSTANDBYFAILED 0x0003
  20. #define PBT_APMSUSPEND 0x0004
  21. #define PBT_APMSTANDBY 0x0005
  22. #define PBT_APMRESUMECRITICAL 0x0006
  23. #define PBT_APMRESUMESUSPEND 0x0007
  24. #define PBT_APMRESUMESTANDBY 0x0008
  25. #define PBTF_APMRESUMEFROMFAILURE 0x00000001
  26. #define PBT_APMBATTERYLOW 0x0009
  27. #define PBT_APMPOWERSTATUSCHANGE 0x000A
  28. #define PBT_APMOEMEVENT 0x000B
  29. #define PBT_APMRESUMEAUTOMATIC 0x0012
  30. #endif
  31. #endif // _INC_PBT