FileTimeToSystemTime

  BOOL FileTimeToSystemTime(lpft, lpst)    
  LPFILETIME lpft; /* address of file time to convert */
  LPSYSTEMTIME lpst; /* address of converted system time */

The FileTimeToSystemTime function converts a 64-bit file time value to a time in system time format.

Parameters

lpft

Points to a FILETIME structure to convert to system date and time format. The FILETIME structure has the following format:

typedef struct _FILETIME { /* ft */

DWORD dwLowDateTime; /* low 32 bits */

DWORD dwHighDateTime; /* high 32-bits */

} FILETIME, *PFILETIME, *LPFILETIME;

lpst

Points to a SYSTEMTIME structure that receives the converted file time. The SYSTEMTIME structure has the following format:

typedef struct _SYSTEMTIME { /* st */

WORD wYear;

WORD wMonth;

WORD wDayOfWeek;

WORD wDay;

WORD wHour;

WORD wMinute;

WORD wSecond;

WORD wMilliseconds;

} SYSTEMTIME;

typedef SYSTEMTIME *PSYSTEMTIME, *LPSYSTEMTIME;

Return Value

The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.

See Also

SystemTimeToFileTime, FileTimeToDosDateTime, DosDateTimeToFileTime