CoFileTimeToDosDateTime

Converts a FILETIME into MS-DOS date and time values.

BOOL CoFileTimeToDosDateTime(
  FILETIME * lpFileTime,
                    //Pointer to the structure to be converted
  LPWORD lpDosDate, //Pointer to the 16-bit MS-DOS date
  LPWORD lpDosTime  //Pointer to the 16-bit MS-DOS time
);
 

Parameters

lpFileTime
[in] Pointer to the FILETIME structure to be converted.
lpDosDate
[out] Pointer to the 16-bit MS-DOS date.
lpDosTime
[out] Pointer to the 16-bit MS-DOS time.

Return Values

TRUE
The FILETIME structure was converted successfully.
FALSE
The FILETIME structure was not converted successfully.

Remarks

This is the inverse of the operation provided by the CoDosDateTimeToFileTime function.

QuickInfo

  Windows NT: Use version 3.1 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in objbase.h.
  Import Library: Included as a resource in ole32.dll.

See Also

CoDosDateTimeToFileTime, CoFileTimeNow