LocalFileTimeToFileTime

LocalFileTimeToFileTime converts a local file time to a file time based on the UTC.

Syntax

Copy
BOOL LocalFileTimeToFileTime(
    [in]    const FILETIME* lpLocalFileTime,
    [out]   LPFILETIME lpFileTime
);

Parameters

[in] lpLocalFileTime

Pointer to a FILETIME structure that specifies the local file time to be converted into a UTC-based file time.

[out] lpFileTime

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

If the function succeeds, it returns a non-zero value. If the function fails, it returns 0 (zero). Call GetLastError to get extended error information.

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

Minimum supported version Header Library

wRTOS 1.0 SDK

windows.h

wRTOS_rtss.lib