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) |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for