次の方法で共有


BatteryNotifyOfTimeChange (Windows CE 5.0)

Send Feedback

This function is deprecated and does nothing. The SetSystemTime and SetLocalTime functions notify the battery driver directly using IOCTL_BATTERY_NOTIFYOFTIMECHANGE. The deprecation of this function does not affect battery drivers.

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 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

IOCTL_BATTERY_NOTIFYOFTIMECHANGE | SetLocalTime | SetSystemTime

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.