added sysprog entities
This commit is contained in:
70
SYSPROG/STPROCINS/MSWIN_TIME_ZONE_INFORMATION_EQUATES.txt
Normal file
70
SYSPROG/STPROCINS/MSWIN_TIME_ZONE_INFORMATION_EQUATES.txt
Normal file
@ -0,0 +1,70 @@
|
||||
compile insert msWin_Time_Zone_Information_Equates
|
||||
/*
|
||||
** Copyright (C) 1992-2023 Revelation Software Inc. All Rights Reserved **
|
||||
|
||||
Author : Captain C
|
||||
Date : June 2023
|
||||
Purpose : Equates for use with the Windows API TIME_ZONE_INFORMATION structure
|
||||
|
||||
|
||||
Comments
|
||||
========
|
||||
|
||||
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;
|
||||
|
||||
|
||||
Amended Date Reason
|
||||
======= ==== ======
|
||||
*/
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _MSWIN_TIME_ZONE_INFORMATION_EQUATES_
|
||||
#define _MSWIN_TIME_ZONE_INFORMATION_EQUATES_
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$uses @APPID*DLLSTRUCT**MSWIN_TIME_ZONE_INFORMATION
|
||||
|
||||
declare function msWin_GetTimeZoneInformation
|
||||
|
||||
equ TIME_ZONE_INFORMATION$ to "MSWIN_TIME_ZONE_INFORMATION"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Structure "field positions"
|
||||
|
||||
equ TZI_POS_BIAS$ to 1
|
||||
equ TZI_POS_STANDARDNAME$ to 2
|
||||
equ TZI_POS_STANDARDDATE$ to 3
|
||||
equ TZI_POS_STANDARDBIAS$ to 4
|
||||
equ TZI_POS_DAYLIGHTNAME$ to 5
|
||||
equ TZI_POS_DAYLIGHTDATE$ to 6
|
||||
equ TZI_POS_DAYLIGHTBIAS$ to 7
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// msWin_GetTimeZoneInformation() - return value (prefixed "TZI_" to avoid
|
||||
// conflicts with PS_SYSTEM_EQUATES)
|
||||
|
||||
equ TZI_TIME_ZONE_ID_UNKNOWN$ to 0
|
||||
equ TZI_TIME_ZONE_ID_STANDARD$ to 1
|
||||
equ TZI_TIME_ZONE_ID_DAYLIGHT$ to 2
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
#endif
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user