SystemTimeToFileTime

SystemTimeToFileTime converts a system time to a file time.

Syntax

Copy
BOOL SystemTimeToFileTime(
    [in]    const SYSTEMTIME* lpSystemTime,
    [out]   LPFILETIME lpFileTime
);

Parameters

[in] lpSystemTime

A pointer to a SYSTEMTIME structure that contains the time to be converted.

The wDayOfWeek member of the SYSTEMTIME structure is ignored.

[out] lpFileTime

A pointer to a FILETIME structure to receive the converted system time.

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.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

windows.h

wRTOS_rtss.lib