BatteryDrvrSupportsChangeNotification

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

BOOL BatteryDrvrSupportsChangeNotification(void);

Parameters

None.

Return Values

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

OS Versions: Windows CE 1.0 and later.
Header: Battery.h.
Link Library: Coredll.lib.

See Also

BatteryPDDGetStatus | BatteryGetLifeTimeInfo | Battery Drivers

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.