ReactOS  0.4.15-dev-1068-g467feb9
tzlib.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS TimeZone Utilities Library
3  * LICENSE: GPL-2.0 (https://spdx.org/licenses/GPL-2.0)
4  * PURPOSE: Provides time-zone utility wrappers around Win32 functions,
5  * that are used by different ReactOS modules such as
6  * timedate.cpl, syssetup.dll.
7  * COPYRIGHT: Copyright 2004-2005 Eric Kohl
8  * Copyright 2016 Carlo Bramini
9  * Copyright 2020 Hermes Belusca-Maito
10  */
11 
12 #pragma once
13 
14 typedef struct _REG_TZI_FORMAT
15 {
22 
23 typedef LONG
25  IN HKEY hZoneKey,
27 
28 BOOL
31 
32 LONG
34  IN HKEY hZoneKey,
36  OUT PREG_TZI_FORMAT TimeZoneInfo,
38  IN OUT PULONG DescriptionSize OPTIONAL,
39  OUT PWCHAR StandardName OPTIONAL,
40  IN OUT PULONG StandardNameSize OPTIONAL,
41  OUT PWCHAR DaylightName OPTIONAL,
42  IN OUT PULONG DaylightNameSize OPTIONAL);
43 
44 VOID
48 
49 // Returns TRUE if AutoDaylight is ON.
50 // Returns FALSE if AutoDaylight is OFF.
51 BOOL
53 
54 VOID
56  IN BOOL EnableAutoDaylightTime);
#define IN
Definition: typedefs.h:39
BOOL GetAutoDaylight(VOID)
Definition: tzlib.c:283
static const WCHAR Description[]
Definition: oid.c:1266
uint16_t * PWCHAR
Definition: typedefs.h:56
BOOL GetTimeZoneListIndex(IN OUT PULONG pIndex)
Definition: tzlib.c:20
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
SYSTEMTIME StandardDate
Definition: tzlib.h:19
struct _REG_TZI_FORMAT REG_TZI_FORMAT
LONG(* PENUM_TIMEZONE_CALLBACK)(IN HKEY hZoneKey, IN PVOID Context OPTIONAL)
Definition: tzlib.h:24
static const UCHAR Index[8]
Definition: usbohci.c:18
LONG QueryTimeZoneData(IN HKEY hZoneKey, OUT PULONG Index OPTIONAL, OUT PREG_TZI_FORMAT TimeZoneInfo, OUT PWCHAR Description OPTIONAL, IN OUT PULONG DescriptionSize OPTIONAL, OUT PWCHAR StandardName OPTIONAL, IN OUT PULONG StandardNameSize OPTIONAL, OUT PWCHAR DaylightName OPTIONAL, IN OUT PULONG DaylightNameSize OPTIONAL)
Definition: tzlib.c:141
VOID EnumerateTimeZoneList(IN PENUM_TIMEZONE_CALLBACK Callback, IN PVOID Context OPTIONAL)
Definition: tzlib.c:223
LONG DaylightBias
Definition: tzlib.h:18
struct _REG_TZI_FORMAT * PREG_TZI_FORMAT
LONG StandardBias
Definition: tzlib.h:17
_Out_ PULONG _Out_ PULONG pIndex
Definition: ndis.h:4564
LONG Bias
Definition: tzlib.h:16
#define OPTIONAL
Definition: typedefs.h:41
unsigned int * PULONG
Definition: retypes.h:1
#define OUT
Definition: typedefs.h:40
SYSTEMTIME DaylightDate
Definition: tzlib.h:20
VOID SetAutoDaylight(IN BOOL EnableAutoDaylightTime)
Definition: tzlib.c:323
LPFNPSPCALLBACK Callback
Definition: desk.c:112
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68