SystemTimeToFileTime

SystemTimeToFileTime converts a system time to a file time.

Syntax

BOOL SystemTimeToFileTime(
    const SYSTEMTIME* lpSystemTime,
    LPFILETIME lpFileTime
);

Parameters

lpSystemTime

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

The wDayOfWeek member of the SYSTEMTIME structure is ignored.

lpFileTime

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

Return Value

A non-zero value if the function succeeds, 0 (zero) if the function fails

To get extended error information, call GetLastError.

Requirements

Minimum Supported Version RTX64 2013
Header windows.h
Library Rtx_Rtss.lib