CoFileTimeToDosDateTime function (objbase.h)

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

Note  This function is provided for compatibility with 16-bit Windows.
 

Syntax

BOOL CoFileTimeToDosDateTime(
  [in]  FILETIME *lpFileTime,
  [out] LPWORD   lpDosDate,
  [out] LPWORD   lpDosTime
);

Parameters

[in] lpFileTime

A pointer to the FILETIME structure.

[out] lpDosDate

Receives the MS-DOS date.

[out] lpDosTime

Receives the MS-DOS time.

Return value

If the function succeeds, the return value is TRUE; otherwise, it is FALSE.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objbase.h
Library Ole32.lib
DLL Ole32.dll
API set ext-ms-win-com-ole32-l1-1-5 (introduced in Windows 10, version 10.0.15063)

See also

CoDosDateTimeToFileTime

CoFileTimeNow