File Index Symbol Index

// begin_1_0
/******************************************************************************** * * * timezoneapi.h -- ApiSet Contract for api-ms-win-core-timezone-l1 * * * * Copyright (c) Microsoft Corporation. All rights reserved. * * * ********************************************************************************/
#ifdef _MSC_VER
#pragma once
#endif // _MSC_VER
#ifndef _TIMEZONEAPI_H_
#define _TIMEZONEAPI_H_
#include <apiset.h>
#include <apisetcconv.h>
#include <minwindef.h>
#include <minwinbase.h>
#ifdef __cplusplus
extern
"C"
{
#endif
// end_1_0
#pragma region Application Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
// begin_1_0
#define TIME_ZONE_ID_INVALID ((DWORD)0xFFFFFFFF)
typedef
struct
_TIME_ZONE_INFORMATION
{
LONG
Bias
;
WCHAR
StandardName
[
32
];
SYSTEMTIME
StandardDate
;
LONG
StandardBias
;
WCHAR
DaylightName
[
32
];
SYSTEMTIME
DaylightDate
;
LONG
DaylightBias
; }
TIME_ZONE_INFORMATION
, *
PTIME_ZONE_INFORMATION
, *
LPTIME_ZONE_INFORMATION
;
typedef
struct
_TIME_DYNAMIC_ZONE_INFORMATION
{
LONG
Bias
;
WCHAR
StandardName
[
32
];
SYSTEMTIME
StandardDate
;
LONG
StandardBias
;
WCHAR
DaylightName
[
32
];
SYSTEMTIME
DaylightDate
;
LONG
DaylightBias
;
WCHAR
TimeZoneKeyName
[
128
];
BOOLEAN
DynamicDaylightTimeDisabled
; }
DYNAMIC_TIME_ZONE_INFORMATION
, *
PDYNAMIC_TIME_ZONE_INFORMATION
;
_Success_(return != FALSE)
BOOL
SystemTimeToTzSpecificLocalTime
( );
_Success_(return != FALSE)
BOOL
TzSpecificLocalTimeToSystemTime
( );
_Success_(return != FALSE)
BOOL
FileTimeToSystemTime
( );
_Success_(return != FALSE)
BOOL
SystemTimeToFileTime
( );
_Success_(return != TIME_ZONE_ID_INVALID)
DWORD
GetTimeZoneInformation
( );
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion #pragma region Desktop Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
BOOL
SetTimeZoneInformation
( );
#if (_WIN32_WINNT >= 0x0600)
BOOL
SetDynamicTimeZoneInformation
( );
#endif // _WIN32_WINNT >= 0x0600
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion #pragma region Application Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
#if (_WIN32_WINNT >= 0x0600)
_Success_(return != TIME_ZONE_ID_INVALID)
DWORD
GetDynamicTimeZoneInformation
( );
#endif // _WIN32_WINNT >= 0x0600
#if (_WIN32_WINNT >= 0x0601)
_Success_(return != FALSE)
BOOL
GetTimeZoneInformationForYear
( );
#endif // _WIN32_WINNT >= 0x0601
// end_1_0
#if (_WIN32_WINNT >= _WIN32_WINNT_WIN8)
_Success_(return == ERROR_SUCCESS)
DWORD
EnumDynamicTimeZoneInformation
( );
_Success_(return == ERROR_SUCCESS)
DWORD
GetDynamicTimeZoneInformationEffectiveYears
( );
_Success_(return != FALSE)
BOOL
SystemTimeToTzSpecificLocalTimeEx
( );
_Success_(return != FALSE)
BOOL
TzSpecificLocalTimeToSystemTimeEx
( );
#endif /* (_WIN32_WINNT >= _WIN32_WINNT_WIN8) */
#if (NTDDI_VERSION >= NTDDI_WIN10_RS5)
_Success_(return != FALSE)
BOOL
LocalFileTimeToLocalSystemTime
( );
_Success_(return != FALSE)
BOOL
LocalSystemTimeToLocalFileTime
( );
#endif /* (NTDDI_VERSION >= NTDDI_WIN10_RS5) */
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion
// begin_1_0
#ifdef __cplusplus
}
#endif
#endif // _TIMEZONEAPI_H_
// end_1_0