 | wclPowerEventsMonitorGetPowerStatus Method |
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.
Namespace: wclCommonAssembly: wclCommon (in wclCommon.dll) Version: 8.0.6.0
Syntaxpublic bool GetPowerStatus(
out wclPowerStatus Status
)
Public Function GetPowerStatus (
<OutAttribute> ByRef Status As wclPowerStatus
) As Boolean
public:
bool GetPowerStatus(
[OutAttribute] wclPowerStatus% Status
)
Parameters
- Status wclPowerStatus
-
A wclPowerStatus structure that receives status
information.
Return Value
Boolean
If the method succeed the return value is
True. If the method
failed the returning value is
False.
See Also