PowerBroadcastStatus Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates the system's power status.
public enum class PowerBroadcastStatus
public enum PowerBroadcastStatus
type PowerBroadcastStatus =
Public Enum PowerBroadcastStatus
- Inheritance
Name | Value | Description |
---|---|---|
QuerySuspend | 0 | The system has requested permission to suspend the computer. An application that grants permission should carry out preparations for the suspension before returning. |
QuerySuspendFailed | 2 | The system was denied permission to suspend the computer. This status is broadcast if any application or driver denied a previous |
Suspend | 4 | The computer is about to enter a suspended state. This event is typically broadcast when all applications and installable drivers have returned |
ResumeCritical | 6 | The system has resumed operation after a critical suspension caused by a failing battery. 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 | 7 | The system has resumed operation after being suspended. |
BatteryLow | 9 | Battery power is low. |
PowerStatusChange | 10 | 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. |
OemEvent | 11 | An Advanced Power Management (APM) BIOS signaled an APM OEM event. |
ResumeAutomatic | 18 | The computer has woken up automatically to handle an event. If the system detects any user activity after broadcasting |
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.
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: