Compartir a través de


LocalFileTimeToFileTime (Windows Embedded CE 6.0)

1/6/2010

This function converts a local file time to a file time based on the UTC.

Syntax

BOOL LocalFileTimeToFileTime(
  const FILETIME* lpLocalFileTime,
  LPFILETIME lpFileTime
);

Parameters

  • lpLocalFileTime
    [in] Pointer to a FILETIME structure that specifies the local file time to be converted into a UTC-based file time.
  • lpFileTime
    [out] Pointer to a FILETIME structure to receive the converted UTC-based file time. This parameter cannot be the same as the lpLocalFileTime parameter.

Return Value

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

This function uses the current settings for the time zone and daylight saving time. Therefore, if it is daylight saving time, this function will take daylight saving time into account, even if you are converting standard time.

Requirements

Header winbase.h
Library coredll.lib
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Time Functions
FileTimeToLocalFileTime
FILETIME

Other Resources

Timer Driver Reference