Share via


BatteryNotifyOfTimeChange (Windows Embedded CE 6.0)

1/6/2010

This function is deprecated and does nothing.

The SetSystemTime and SetLocalTime functions notify the battery driver directly.** For Windows Embedded CE, these functions use IOCTL_BATTERY_NOTIFYOFTIMECHANGE.**

The deprecation of this function does not affect battery drivers.

Syntax

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] Amount the time has changed.

Return Value

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

Header pwinuser.h
Library coredll.lib
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

IOCTL_BATTERY_NOTIFYOFTIMECHANGE

Concepts

Battery Driver Functions

Other Resources

SetLocalTime
SetSystemTime