次の方法で共有


Battery Driver IOCTLs (Windows Embedded CE 6.0)

1/6/2010

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.

See Also

Other Resources

Battery Driver Reference