Compartilhar via


BatteryDrvrSupportsChangeNotification (Compact 2013)

3/26/2014

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

See Also

Reference

Battery Driver Functions
BatteryPDDGetStatus
BatteryGetLifeTimeInfo