BatteryNotifyOfTimeChange

This function adjusts times to account for the user changing the real time.

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

Parameters

  • fForward
    [in] TRUE if the time has been adjusted forward. FALSE if the time has been adjusted backwards.
  • pftDelta
    [in] The amount the time has changed.

Return Values

None.

Remarks

This API notifies the battery driver that it needs to update its timing state variables. Otherwise, BatteryGetLifeTimeInfo may not return accurate values. Even though this API does not return a value, it still sets the system error value to ERROR_SUCCESS if successful. Other values indicate an error.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Pwinuser.h.
Link Library: Coredll.lib.

See Also

Battery Drivers

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.