comparison foosdk/sdk/foobar2000/helpers/win-systemtime.h @ 1:20d02a178406 default tip

*: check in everything else yay
author Paper <paper@tflc.us>
date Mon, 05 Jan 2026 02:15:46 -0500
parents
children
comparison
equal deleted inserted replaced
0:e9bb126753e7 1:20d02a178406
1 #pragma once
2
3 namespace winTimeWrapper {
4 typedef struct _SYSTEMTIME {
5 uint16_t wYear;
6 uint16_t wMonth;
7 uint16_t wDayOfWeek;
8 uint16_t wDay;
9 uint16_t wHour;
10 uint16_t wMinute;
11 uint16_t wSecond;
12 uint16_t wMilliseconds;
13 } SYSTEMTIME, * PSYSTEMTIME, * LPSYSTEMTIME;
14
15 typedef struct _FILETIME {
16 uint32_t dwLowDateTime;
17 uint32_t dwHighDateTime;
18 } FILETIME, * PFILETIME, * LPFILETIME;
19
20
21 bool SystemTimeToFileTime(const SYSTEMTIME* lpSystemTime, FILETIME* lpFileTime);
22 bool LocalFileTimeToFileTime(const FILETIME* lpLocalFileTime, FILETIME* lpFileTime);
23
24 uint64_t FileTimeToInt(FILETIME);
25 FILETIME FileTimeFromInt(uint64_t);
26
27 #ifdef _WIN32
28 void selfTest();
29 #endif
30 }
31
32 #ifndef _WIN32
33 using namespace winTimeWrapper;
34 #endif