2 * Copyright (C) 2019 Daniel Lehman
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef _APISETTIMEZONE_
20 #define _APISETTIMEZONE_
26 typedef struct _TIME_DYNAMIC_ZONE_INFORMATION
29 WCHAR StandardName
[32];
30 SYSTEMTIME StandardDate
;
32 WCHAR DaylightName
[32];
33 SYSTEMTIME DaylightDate
;
35 WCHAR TimeZoneKeyName
[128];
36 BOOLEAN DynamicDaylightTimeDisabled
;
37 } DYNAMIC_TIME_ZONE_INFORMATION
, *PDYNAMIC_TIME_ZONE_INFORMATION
;
39 typedef struct _TIME_ZONE_INFORMATION
42 WCHAR StandardName
[32];
43 SYSTEMTIME StandardDate
;
45 WCHAR DaylightName
[32];
46 SYSTEMTIME DaylightDate
;
48 } TIME_ZONE_INFORMATION
, *PTIME_ZONE_INFORMATION
, *LPTIME_ZONE_INFORMATION
;
50 #define TIME_ZONE_ID_INVALID ((DWORD)0xFFFFFFFF)
51 #define TIME_ZONE_ID_UNKNOWN 0
52 #define TIME_ZONE_ID_STANDARD 1
53 #define TIME_ZONE_ID_DAYLIGHT 2
55 WINBASEAPI DWORD WINAPI
EnumDynamicTimeZoneInformation(DWORD
, DYNAMIC_TIME_ZONE_INFORMATION
*);
56 WINBASEAPI DWORD WINAPI
GetDynamicTimeZoneInformation(PDYNAMIC_TIME_ZONE_INFORMATION
);
57 WINBASEAPI DWORD WINAPI
GetDynamicTimeZoneInformationEffectiveYears(const DYNAMIC_TIME_ZONE_INFORMATION
*,DWORD
*,DWORD
*);
58 WINBASEAPI DWORD WINAPI
GetTimeZoneInformation(LPTIME_ZONE_INFORMATION
);
59 WINBASEAPI BOOL WINAPI
GetTimeZoneInformationForYear(USHORT
,DYNAMIC_TIME_ZONE_INFORMATION
*,TIME_ZONE_INFORMATION
*);
60 WINBASEAPI BOOL WINAPI
SetDynamicTimeZoneInformation(const DYNAMIC_TIME_ZONE_INFORMATION
*);
61 WINBASEAPI BOOL WINAPI
SetTimeZoneInformation(const TIME_ZONE_INFORMATION
*);
62 WINBASEAPI BOOL WINAPI
SystemTimeToTzSpecificLocalTime(const TIME_ZONE_INFORMATION
*,const SYSTEMTIME
*,LPSYSTEMTIME
);
63 WINBASEAPI BOOL WINAPI
SystemTimeToTzSpecificLocalTimeEx(const DYNAMIC_TIME_ZONE_INFORMATION
*,const SYSTEMTIME
*,LPSYSTEMTIME
);
64 WINBASEAPI BOOL WINAPI
TzSpecificLocalTimeToSystemTime(const TIME_ZONE_INFORMATION
*,const SYSTEMTIME
*,LPSYSTEMTIME
);
65 WINBASEAPI BOOL WINAPI
TzSpecificLocalTimeToSystemTimeEx(const DYNAMIC_TIME_ZONE_INFORMATION
*,const SYSTEMTIME
*,LPSYSTEMTIME
);
71 #endif /* _APISETTIMEZONE_ */