wcl |
The wclPowerEventsMonitor type exposes the following members.
| Name | Description | |
|---|---|---|
| wclPowerEventsMonitor | Creates new object of the wclPowerEventsMonitor class. |
| Name | Description | |
|---|---|---|
| Active | Gets the monitor's state. | |
| MessageProcessing | Gets and sets the monitor's message processing method. |
| Name | Description | |
|---|---|---|
| Close | Stops listening for the power events and releases all resources. | |
| DoPowerStateChanged | Fires the OnChanged event. | |
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object) | |
| GetPowerStatus | Retrieves the power status of the system. The status indicates whether the system is running on AC or DC power, whether the battery is currently charging, how much battery life remains, and if battery saver is on or off. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| MessageReceived | The method called when a new notification message received. | |
| Open | Opens the power state changes monitor and starts listening for events. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| OnPowerStateChanged | The event fires when the system's power state has been changed. |