| 23 | namespace |
| 24 | { |
| 25 | static SC::TimeMs fileDescriptorWindowsFileTimeToTimeMs(const FILETIME& fileTime) |
| 26 | { |
| 27 | ULARGE_INTEGER fileTimeValue; |
| 28 | fileTimeValue.LowPart = fileTime.dwLowDateTime; |
| 29 | fileTimeValue.HighPart = fileTime.dwHighDateTime; |
| 30 | if (fileTimeValue.QuadPart == 0) |
| 31 | { |
| 32 | return {}; |
| 33 | } |
| 34 | fileTimeValue.QuadPart -= 116444736000000000ULL; |
| 35 | return SC::TimeMs{static_cast<SC::int64_t>(fileTimeValue.QuadPart / 10000ULL)}; |
| 36 | } |
| 37 | |
| 38 | static SC::FileDescriptorEntryType fileDescriptorWindowsEntryTypeFromAttributes(DWORD attributes, DWORD reparseTag) |
| 39 | { |
no outgoing calls
no test coverage detected