Skip to content

Latest commit

 

History

History
131 lines (108 loc) · 2.96 KB

nf-objbase-codosdatetimetofiletime.md

File metadata and controls

131 lines (108 loc) · 2.96 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name req.apiset
NF:objbase.CoDosDateTimeToFileTime
CoDosDateTimeToFileTime function (objbase.h)
Converts the MS-DOS representation of the time and date to a FILETIME structure used by Windows.
CoDosDateTimeToFileTime
CoDosDateTimeToFileTime function [COM]
_com_CoDosDateTimeToFileTime
com.codosdatetimetofiletime
objbase/CoDosDateTimeToFileTime
com\codosdatetimetofiletime.htm
com
eb7af6a3-7547-405e-b96e-3e68a1ac273b
12/05/2018
CoDosDateTimeToFileTime, CoDosDateTimeToFileTime function [COM], _com_CoDosDateTimeToFileTime, com.codosdatetimetofiletime, objbase/CoDosDateTimeToFileTime
objbase.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Ole32.lib
Ole32.dll
Windows
19H1
CoDosDateTimeToFileTime
objbase/CoDosDateTimeToFileTime
c++
APIRef
kbSyntax
DllExport
Ole32.dll
CoDosDateTimeToFileTime
ext-ms-win-com-ole32-l1-1-5 (introduced in Windows 10, version 10.0.15063)

CoDosDateTimeToFileTime function

-description

Converts the MS-DOS representation of the time and date to a FILETIME structure used by Windows.

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

-parameters

-param nDosDate [in]

The MS-DOS date.

-param nDosTime [in]

The MS-DOS time.

-param lpFileTime [out]

A pointer to the FILETIME structure.

-returns

If the function succeeds, the return value is TRUE; otherwise, it is FALSE, probably because of invalid arguments.

-remarks

An MS-DOS date has the following format.

Bits Description
0-4 Days of the month (1-31).
5-8 Months (1 = January, 2 = February, and so forth).
9-15 Year offset from 1980 (add 1980 to get actual year).
 

An MS-DOS time has the following format.

Bits Description
0-4 Seconds divided by 2.
5-10 Minutes (0-59).
11-15 Hours (0-23 on a 24-hour clock).

-see-also

CoFileTimeNow

CoFileTimeToDosDateTime