SystemTimeToFileTimeThe SystemTimeToFileTime function converts a system time to a file time.
BOOL SystemTimeToFileTime( const SYSTEMTIME* lpSystemTime, LPFILETIME lpFileTime);
ParameterslpSystemTime [in] Pointer to a
SYSTEMTIME structure that contains the time to be converted. The wDayOfWeek member of the SYSTEMTIME structure is ignored.
lpFileTime [out] Pointer to a
FILETIME structure to receive the converted system time. Return ValuesIf the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Example Code For an example, see Changing a File Time to the Current Time.