BatteryNotifyOfTimeChange

The BatteryNotifyOfTimeChange function adjusts the elapsed time of the battery upon reset of the system clock — in real time.

Syntax

void WINAPI BattyerNotifyOfTimeChange(BOOL fForward, FILETIME * pftDelta);

At a Glance

Header file: Winbase.h
Component: Getpower
Platforms: H/PC
Versions: 1.01 and later

Parameters

fForward
Set to TRUE for the forward time change and FALSE for the backward time change.
PftDelta
The amount of time change in unit of the 64-bit file time.

Remarks

The BatteryNotifyOfTimeChange function enables the accurate tracking of the batteries' life time. It should be called immediately after SetSystemTime.