home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / pbt.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  1KB  |  51 lines

  1. /*******************************************************************************
  2. *
  3. *  (C) Copyright 1993 - 1998 Microsoft Corporation
  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.  
  23. #ifndef _INC_PBT
  24. #define _INC_PBT
  25.  
  26. #ifndef WM_POWERBROADCAST
  27. #define WM_POWERBROADCAST               0x218
  28. #endif
  29.  
  30. #define PBT_APMQUERYSUSPEND             0x0000
  31. #define PBT_APMQUERYSTANDBY             0x0001
  32.  
  33. #define PBT_APMQUERYSUSPENDFAILED       0x0002
  34. #define PBT_APMQUERYSTANDBYFAILED       0x0003
  35.  
  36. #define PBT_APMSUSPEND                  0x0004
  37. #define PBT_APMSTANDBY                  0x0005
  38.  
  39. #define PBT_APMRESUMECRITICAL           0x0006
  40. #define PBT_APMRESUMESUSPEND            0x0007
  41. #define PBT_APMRESUMESTANDBY            0x0008
  42.  
  43. #define PBTF_APMRESUMEFROMFAILURE       0x00000001
  44.  
  45. #define PBT_APMBATTERYLOW               0x0009
  46. #define PBT_APMPOWERSTATUSCHANGE        0x000A
  47.  
  48. #define PBT_APMOEMEVENT                 0x000B
  49.  
  50. #endif // _INC_PBT
  51.