This documentation is archived and is not being maintained.
PowerBroadcastStatus Enumeration
Visual Studio 2010
Indicates the system's power status.
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)
| 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. NoteIf 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. NoteBecause 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. |
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
Note