Share via


BatteryDrvrSupportsChangeNotification (Windows Embedded CE 6.0)

1/6/2010

This function indicates whether the battery driver can report whether the batteries were changed.

Syntax

BOOL BatteryDrvrSupportsChangeNotification(void);

Parameters

None.

Return Value

TRUE indicates that the battery driver supports notification. FALSE indicates that it does not.

Remarks

If FALSE, then the pfBatteriesChangedSinceLastCall parameter to BatteryPDDGetStatus always updates to FALSE. If FALSE, the BatteryGetLifeTimeInfo function does not return meaningful data.

In this example of BatteryDrvrSupportsChangeNotification, the function takes no arguments. This function determines whether the battery driver can report when the batteries were changed. The function returns TRUE to indicate that the battery driver supports notification, and FALSE to indicate that it does not. This example returns FALSE. Because the return value is FALSE, the pfBatteriesChangedSinceLastCall parameter to BatteryPDDGetStatus should always be set to FALSE.

Requirements

Header battery.h
Library coredll.lib
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

BatteryPDDGetStatus
BatteryGetLifeTimeInfo

Concepts

Battery Driver Functions