Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Converts the MS-DOS representation of the time and date to a FILETIME structure used by Windows.
Syntax
BOOL CoDosDateTimeToFileTime(
[in] WORD nDosDate,
[in] WORD nDosTime,
[out] FILETIME *lpFileTime
);
Parameters
[in] nDosDate
The MS-DOS date.
[in] nDosTime
The MS-DOS time.
[out] lpFileTime
A pointer to the FILETIME structure.
Return value
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). |
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) |