From a1a0bdfa4ea268e8a6a28e8931b1b73b902dee84 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Fri, 22 Mar 2019 21:30:01 -0500 Subject: [PATCH] windows.kernel32: add almost useless timezone function --- basis/windows/kernel32/kernel32.factor | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/basis/windows/kernel32/kernel32.factor b/basis/windows/kernel32/kernel32.factor index c6a86e2824..d1b994f82d 100644 --- a/basis/windows/kernel32/kernel32.factor +++ b/basis/windows/kernel32/kernel32.factor @@ -270,6 +270,20 @@ STRUCT: TIME_ZONE_INFORMATION { DaylightDate SYSTEMTIME } { DaylightBias LONG } ; +STRUCT: DYNAMIC_TIME_ZONE_INFORMATION + { Bias LONG } + { StandardName WCHAR[32] } + { StandardDate SYSTEMTIME } + { StandardBias LONG } + { DaylightName WCHAR[32] } + { DaylightDate SYSTEMTIME } + { DaylightBias LONG } + { TimeZoneKeyName WCHAR[128] } + { DynamicDaylightTimeDisabled BOOLEAN } ; + +TYPEDEF: DYNAMIC_TIME_ZONE_INFORMATION* PDYNAMIC_TIME_ZONE_INFORMATION + + STRUCT: FILETIME { dwLowDateTime DWORD } { dwHighDateTime DWORD } ; @@ -1366,6 +1380,9 @@ ALIAS: GetDiskFreeSpaceEx GetDiskFreeSpaceExW ! FUNCTION: GetDriveTypeA FUNCTION: UINT GetDriveTypeW ( LPCTSTR lpRootPathName ) ALIAS: GetDriveType GetDriveTypeW + +FUNCTION: DWORD GetDynamicTimeZoneInformation ( PDYNAMIC_TIME_ZONE_INFORMATION pTimeZoneInformation ) + FUNCTION: void* GetEnvironmentStringsW ( ) ! FUNCTION: GetEnvironmentStringsA ALIAS: GetEnvironmentStrings GetEnvironmentStringsW -- 2.34.1