ReactOS 0.4.15-dev-8219-ge8b88cf
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
14typedef struct _REG_TZI_FORMAT
15{
22
23typedef LONG
25 IN HKEY hZoneKey,
27
28BOOL
31
32LONG
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
44VOID
48
49// Returns TRUE if AutoDaylight is ON.
50// Returns FALSE if AutoDaylight is OFF.
51BOOL
53
54VOID
56 IN BOOL EnableAutoDaylightTime);
static const WCHAR Description[]
Definition: oid.c:1266
unsigned int BOOL
Definition: ntddk_ex.h:94
_Out_ PULONG _Out_ PULONG pIndex
Definition: ndis.h:4565
long LONG
Definition: pedump.c:60
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
SYSTEMTIME StandardDate
Definition: tzlib.h:19
LONG Bias
Definition: tzlib.h:16
LONG StandardBias
Definition: tzlib.h:17
LONG DaylightBias
Definition: tzlib.h:18
SYSTEMTIME DaylightDate
Definition: tzlib.h:20
#define OPTIONAL
Definition: typedefs.h:41
uint32_t * PULONG
Definition: typedefs.h:59
#define IN
Definition: typedefs.h:39
uint16_t * PWCHAR
Definition: typedefs.h:56
#define OUT
Definition: typedefs.h:40
VOID EnumerateTimeZoneList(IN PENUM_TIMEZONE_CALLBACK Callback, IN PVOID Context OPTIONAL)
Definition: tzlib.c:223
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
struct _REG_TZI_FORMAT * PREG_TZI_FORMAT
VOID SetAutoDaylight(IN BOOL EnableAutoDaylightTime)
Definition: tzlib.c:323
LONG(* PENUM_TIMEZONE_CALLBACK)(IN HKEY hZoneKey, IN PVOID Context OPTIONAL)
Definition: tzlib.h:24
BOOL GetAutoDaylight(VOID)
Definition: tzlib.c:283
struct _REG_TZI_FORMAT REG_TZI_FORMAT
BOOL GetTimeZoneListIndex(IN OUT PULONG pIndex)
Definition: tzlib.c:20
_In_ WDFCOLLECTION _In_ ULONG Index
_In_ WDFINTERRUPT _In_ PFN_WDF_INTERRUPT_SYNCHRONIZE Callback
Definition: wdfinterrupt.h:458