Battery

Overview of the Battery technology.

To develop Battery, you need these headers:

For the programming guide, see Battery.

Functions

Title Description
UPSCancelWait function The UPSCancelWait function cancels all waits initiated by calls to UPSWaitForStateChange.
UPSGetState function The UPSGetState function returns the operational state of the UPS.
UPSInit function The UPSInit function initializes a UPS minidriver, opens communication to the UPS unit, updates the registry, and causes the minidriver to start monitoring the UPS unit.
UPSStop function The UPSStop function causes a UPS minidriver to stop monitoring its UPS unit.
UPSTurnOff function The UPSTurnOff function turns off the UPS unit's power outlets, after a specified delay time.
UPSWaitForStateChange function The UPSWaitForStateChange function waits until a specified UPS state changes, or until a time-out interval elapses.

Structures

Title Description
BATTERY_REPORTING_SCALE structure Battery miniclass drivers fill in this structure in response to certain BatteryMiniQueryInformation requests.
_BATTERYPROVISIONINGSTATUS structure This structure is for internal use only.
_BATTERY_INFORMATION structure Battery miniclass drivers fill in this structure in response to certain BatteryMiniQueryInformation requests.
_BATTERY_MANUFACTURE_DATE structure Battery miniclass drivers fill in this structure in response to certain BatteryMiniQueryInformation requests.
_BATTERY_STATUS structure The BATTERY_STATUS structure is used by battery miniclass drivers to return status information in response to a call to BatteryMiniQueryStatus.
_CAD_POWER_SOURCE_INFO structure This structure is for internal use only.
_CAD_POWER_SOURCE_INFO_USB structure This structure is for internal use only.
_CHARGINGSTATUSCOMPLETE structure This structure is for internal use only.
_CONFIGURABLE_CHARGER_PROPERTY_HEADER structure The CONFIGURABLE_CHARGER_PROPERTY_HEADER structure is a header that is used to create your own structure as an input to IOCTL_INTERNAL_CONFIGURE_CHARGER_PROPERTY.
_POWERSOURCESTATUS structure This struct is for internal use only.
_POWERSOURCEUPDATE structure This structure is for internal use only.
_POWERSOURCEUPDATEEX structure This structure is for internal use only.

Enumerations

Title Description
_POWERSOURCEID Enumeration This enum is for internal use only.

I/O control codes

Title Description
IOCTL_CAD_DISABLE_CHARGING IOCTL This IOCTL is for internal use only.
IOCTL_CAD_GET_BATTERY_PROVISIONING_STATUS IOCTL This IOCTL is for internal use only.
IOCTL_CAD_GET_CHARGING_STATUS_COMPLETE IOCTL This IOCTL is for internal use only.
IOCTL_CAD_POWER_SOURCE_UPDATE_EX IOCTL This IOCTL is for internal use only.
IOCTL_INTERNAL_CAD_POWER_SOURCE_UPDATE IOCTL This IOCTL is for internal use only.
IOCTL_INTERNAL_CONFIGURE_CHARGER_PROPERTY IOCTL The IOCTL_INTERNAL_CONFIGURE_CHARGER_PROPERTY control code is sent from a configurable charger to a device that handles configurable chargers. It configures charger properties.