| 3722 | typedef unsigned __int32 lutime_t; // define it ourselves since we don't include time.h |
| 3723 | |
| 3724 | FILETIME timet2filetime(const lutime_t t) |
| 3725 | { LONGLONG i = Int32x32To64(t,10000000) + 116444736000000000; |
| 3726 | FILETIME ft; |
| 3727 | ft.dwLowDateTime = (DWORD) i; |
| 3728 | ft.dwHighDateTime = (DWORD)(i >>32); |
| 3729 | return ft; |
| 3730 | } |
| 3731 | |
| 3732 | FILETIME dosdatetime2filetime(WORD dosdate,WORD dostime) |
| 3733 | { // date: bits 0-4 are day of month 1-31. Bits 5-8 are month 1..12. Bits 9-15 are year-1980 |