This documentation is archived and is not being maintained.

PowerBroadcastStatus Enumeration

Indicates the system's power status.

[Visual Basic]
Public Enum PowerBroadcastStatus
public enum PowerBroadcastStatus
__value public enum PowerBroadcastStatus
enum PowerBroadcastStatus


PowerBroadcastStatus is used by the ServiceBase class to indicate a change in the system's power status. You can design your application to react to any power status change.


Member name Description
BatteryLow Battery power is low.
OemEvent An Advanced Power Management (APM) BIOS signaled an APM OEM event.
PowerStatusChange A change in the power status of the computer is detected, such as a switch from battery power to A/C. The system also broadcasts this event when remaining battery power slips below the threshold specified by the user or if the battery power changes by a specified percentage.
QuerySuspend The system has requested permission to suspend the computer. An application that grants permission should carry out preparations for the suspension before returning.
QuerySuspendFailed The system was denied permission to suspend the computer. This status is broadcast if any application or driver denied a previous QuerySuspend status.
ResumeAutomatic The computer has woken up automatically to handle an event.
Note   If the system detects any user activity after broadcasting ResumeAutomatic, it will broadcast a ResumeSuspend event to let applications know they can resume full interaction with the user.
ResumeCritical The system has resumed operation after a critical suspension caused by a failing battery.
Note   Because a critical suspension occurs without prior notification, resources and data previously available may not be present when the application receives this event. The application should attempt to restore its state to the best of its ability.
ResumeSuspend The system has resumed operation after being suspended.
Suspend The computer is about to enter a suspended state. This event is typically broadcast when all applications and installable drivers have returned true to a previous QuerySuspend state.


Namespace: System.ServiceProcess

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Serviceprocess (in System.Serviceprocess.dll)

See Also

System.ServiceProcess Namespace | ServiceBase.OnPowerEvent | CanHandlePowerEvent