Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

PBT_ constants (Constants)
 
.
Summary
Power-management events (wParam values for WM_POWERBROADCAST messages)

C# Constants:

const UInt32 PBT_APMQUERYSUSPEND         = 0x0000;
const UInt32 PBT_APMQUERYSTANDBY         = 0x0001;

const UInt32 PBT_APMQUERYSUSPENDFAILED       = 0x0002;
const UInt32 PBT_APMQUERYSTANDBYFAILED       = 0x0003;

const UInt32 PBT_APMSUSPEND          = 0x0004;
const UInt32 PBT_APMSTANDBY          = 0x0005;

const UInt32 PBT_APMRESUMECRITICAL       = 0x0006;
const UInt32 PBT_APMRESUMESUSPEND        = 0x0007;
const UInt32 PBT_APMRESUMESTANDBY        = 0x0008;

const UInt32 PBTF_APMRESUMEFROMFAILURE       = 0x00000001;

const UInt32 PBT_APMBATTERYLOW           = 0x0009;
const UInt32 PBT_APMPOWERSTATUSCHANGE    = 0x000A;

const UInt32 PBT_APMOEMEVENT         = 0x000B;
const UInt32 PBT_APMRESUMEAUTOMATIC      = 0x0012;

VB Constants:

  PBT_APMQUERYSUSPEND         = &H0
  PBT_APMQUERYSTANDBY         = &H1

  PBT_APMQUERYSUSPENDFAILED       = &H2
  PBT_APMQUERYSTANDBYFAILED       = &H3

  PBT_APMSUSPEND          = &H4
  PBT_APMSTANDBY          = &H5

  PBT_APMRESUMECRITICAL       = &H6
  PBT_APMRESUMESUSPEND        = &H7
  PBT_APMRESUMESTANDBY        = &H8

  PBTF_APMRESUMEFROMFAILURE       = &H1

  PBT_APMBATTERYLOW           = &H9
  PBT_APMPOWERSTATUSCHANGE    = &HA

  PBT_APMOEMEVENT         = &HB
  PBT_APMRESUMEAUTOMATIC      = &H12

Delphi constants:

  PBT_APMQUERYSUSPEND     = $0
  PBT_APMQUERYSTANDBY     = $1

  PBT_APMQUERYSUSPENDFAILED   = $2
  PBT_APMQUERYSTANDBYFAILED   = $3

  PBT_APMSUSPEND          = $4
  PBT_APMSTANDBY          = $5

  PBT_APMRESUMECRITICAL       = $6
  PBT_APMRESUMESUSPEND    = $7
  PBT_APMRESUMESTANDBY    = $8

  PBTF_APMRESUMEFROMFAILURE   = $1

  PBT_APMBATTERYLOW       = $9
  PBT_APMPOWERSTATUSCHANGE    = $A

  PBT_APMOEMEVENT         = $B
  PBT_APMRESUMEAUTOMATIC      = $12

Notes:

None.

 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions