Partager via


Battery Driver IOCTLs

The following table shows the battery driver IOCTLs with a description of the purpose of each.

Programming element Description
IOCTL_BATTERY_GETLEVELS This IOCTL returns the number of levels that the battery driver is capable of returning in the BatteryFlag and BackupBatteryFlag members of the SYSTEM_POWER_STATUS_EX2 structure. The DeviceIoControl function calls this IOCTL.
IOCTL_BATTERY_GETLIFETIMEINFO This IOCTL retrieves the time the user changed the batteries, the amount of time they used the batteries, and the amount of time they used the batteries before replacing them. The DeviceIoControl function calls this IOCTL.
IOCTL_BATTERY_GETSYSTEMPOWERSTATUSEX This IOCTL retrieves information for the GetSystemPowerStatusEx system call. The DeviceIoControl function calls this IOCTL.
IOCTL_BATTERY_GETSYSTEMPOWERSTATUSEX2 This IOCTL retrieves information for the GetSystemPowerStatusEx2 system call. The DeviceIoControl function calls this IOCTL.
IOCTL_BATTERY_NOTIFYOFTIMECHANGE This IOCTL adjusts times to account for the user changing the real time. The DeviceIoControl function calls this IOCTL.
IOCTL_BATTERY_SUPPORTSCHANGENOTIFICATION This IOCTL indicates whether the battery driver can report whether the batteries were changed. The DeviceIoControl function calls this IOCTL.

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.