20 #ifndef WINPR_TIMEZONE_H
21 #define WINPR_TIMEZONE_H
23 #include <winpr/winpr.h>
24 #include <winpr/wtypes.h>
26 #include <winpr/windows.h>
38 WCHAR StandardName[32];
41 WCHAR DaylightName[32];
49 WCHAR StandardName[32];
52 WCHAR DaylightName[32];
55 WCHAR TimeZoneKeyName[128];
56 BOOLEAN DynamicDaylightTimeDisabled;
65 #define TIME_ZONE_ID_UNKNOWN 0
66 #define TIME_ZONE_ID_STANDARD 1
67 #define TIME_ZONE_ID_DAYLIGHT 2
72 WINPR_API BOOL SystemTimeToFileTime(
const SYSTEMTIME* lpSystemTime, LPFILETIME lpFileTime);
73 WINPR_API BOOL FileTimeToSystemTime(
const FILETIME* lpFileTime, LPSYSTEMTIME lpSystemTime);
75 LPSYSTEMTIME lpUniversalTime,
76 LPSYSTEMTIME lpLocalTime);
78 LPSYSTEMTIME lpLocalTime,
79 LPSYSTEMTIME lpUniversalTime);
87 #if !defined(_WIN32) || \
88 (defined(_WIN32) && (defined(NTDDI_WIN8) && _WIN32_WINNT < 0x0600 || \
89 !defined(NTDDI_WIN8) && _WIN32_WINNT < 0x0501))
100 #if !defined(_WIN32) || (defined(_WIN32) && (_WIN32_WINNT < 0x0601))
104 const SYSTEMTIME* lpUniversalTime, LPSYSTEMTIME lpLocalTime);
107 const SYSTEMTIME* lpLocalTime, LPSYSTEMTIME lpUniversalTime);
111 #if !defined(_WIN32) || (defined(_WIN32) && (_WIN32_WINNT < 0x0602))
113 WINPR_API DWORD EnumDynamicTimeZoneInformation(
115 WINPR_API DWORD GetDynamicTimeZoneInformationEffectiveYears(
120 #pragma comment(lib, "advapi32")