UPSGetState function (upssvc.h)
The UPSGetState function returns the operational state of the UPS.
Syntax
DWORD UPSGetState();
Return value
The UPSGetState function returns one of the following DWORD values:
Return code | Description |
---|---|
|
Utility-supplied power is normal. |
|
Utility-supplied power is inadequate, and the UPS batteries are discharging. |
|
Utility-supplied power is inadequate, and the UPS batteries are critically low. |
|
Communication with the UPS is not currently established. |
Remarks
This is a nonblocking call.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | upssvc.h (include Upssvc.h) |