Source code of Windows XP (NT5)
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.3 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORP., 1993-1996
  4. *
  5. * TITLE: PBT.H
  6. *
  7. * VERSION: 1.0
  8. *
  9. * DATE: 15 Jan 1994
  10. *
  11. * Definitions for the Virtual Power Management Device.
  12. *
  13. ********************************************************************************
  14. *
  15. * CHANGE LOG:
  16. *
  17. * DATE REV DESCRIPTION
  18. * ----------- --- -------------------------------------------------------------
  19. * 15 Jan 1994 TCS Original implementation.
  20. *
  21. *******************************************************************************/
  22. #ifndef _INC_PBT
  23. #define _INC_PBT
  24. #ifndef WM_POWERBROADCAST
  25. #define WM_POWERBROADCAST 0x218
  26. #endif
  27. #define PBT_APMQUERYSUSPEND 0x0000
  28. #define PBT_APMQUERYSTANDBY 0x0001
  29. #define PBT_APMQUERYSUSPENDFAILED 0x0002
  30. #define PBT_APMQUERYSTANDBYFAILED 0x0003
  31. #define PBT_APMSUSPEND 0x0004
  32. #define PBT_APMSTANDBY 0x0005
  33. #define PBT_APMRESUMECRITICAL 0x0006
  34. #define PBT_APMRESUMESUSPEND 0x0007
  35. #define PBT_APMRESUMESTANDBY 0x0008
  36. #define PBTF_APMRESUMEFROMFAILURE 0x00000001
  37. #define PBT_APMBATTERYLOW 0x0009
  38. #define PBT_APMPOWERSTATUSCHANGE 0x000A
  39. #define PBT_APMOEMEVENT 0x000B
  40. #endif // _INC_PBT