From 6ac5583cf14f41f7d098c0c6dfb13d153199df5c Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 29 Feb 2004 14:12:38 +0000 Subject: [PATCH] - define struct UDATE - define VTBIT_... constants - define missing VAR_... constants - declare functions VarDateFromUdate, VarDateFromUdateEx, VarUdateFromDate svn path=/trunk/; revision=8480 --- reactos/w32api/include/oleauto.h | 34 ++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/reactos/w32api/include/oleauto.h b/reactos/w32api/include/oleauto.h index b505f1a848d..92d2e57535d 100644 --- a/reactos/w32api/include/oleauto.h +++ b/reactos/w32api/include/oleauto.h @@ -16,6 +16,13 @@ #define VARIANT_LOCALBOOL 0x08 #define VAR_TIMEVALUEONLY 0x0001 #define VAR_DATEVALUEONLY 0x0002 +#define VAR_VALIDDATE 0x0004 +#define VAR_CALENDAR_HIJRI 0x0008 +#define VAR_LOCALBOOL 0x0010 +#define VAR_FORMAT_NOSUBSTITUTE 0x0020 +#define VAR_FOURDIGITYEARS 0x0040 +#define VAR_CALENDAR_THAI 0x0080 +#define VAR_CALENDAR_GREGORIAN 0x0100 #define MEMBERID_NIL DISPID_UNKNOWN #define ID_DEFAULTINST (-2) #define DISPATCH_METHOD 1 @@ -102,8 +109,6 @@ #define VARCMP_GT 2 #define VARCMP_NULL 3 -#define VAR_LOCALBOOL 0x10 - #define LOCALE_USE_NLS 0x10000000 #define VARIANT_NOUSEROVERRIDE 0x04 @@ -112,10 +117,6 @@ #define VARIANT_CALENDAR_GREGORIAN 0x40 #define VARIANT_USE_NLS 0x80 -#define VAR_CALENDAR_HIJRI 0x08 -#define VAR_CALENDAR_THAI 0x80 -#define VAR_CALENDAR_GREGORIAN 0x100 - #define NUMPRS_LEADING_WHITE 0x00001 #define NUMPRS_TRAILING_WHITE 0x00002 #define NUMPRS_LEADING_PLUS 0x00004 @@ -133,6 +134,19 @@ #define NUMPRS_NEG 0x10000 #define NUMPRS_INEXACT 0x20000 +#define VTBIT_I1 (1< typedef enum tagREGKIND { @@ -159,6 +173,11 @@ typedef struct tagINTERFACEDATA { UINT cMembers; } INTERFACEDATA,*LPINTERFACEDATA; +typedef struct { + SYSTEMTIME st; + USHORT wDayOfYear; +} UDATE; + typedef struct { int cDig; unsigned long dwInFlags; @@ -180,6 +199,9 @@ WINOLEAUTAPI_(int) DosDateTimeToVariantTime(unsigned short,unsigned short,double WINOLEAUTAPI_(int) VariantTimeToDosDateTime(double,unsigned short*,unsigned short*); WINOLEAUTAPI_(int) VariantTimeToSystemTime(double,LPSYSTEMTIME); WINOLEAUTAPI_(int) SystemTimeToVariantTime(LPSYSTEMTIME, double*); +WINOLEAUTAPI VarDateFromUdate(UDATE*,ULONG,DATE*); +WINOLEAUTAPI VarDateFromUdateEx(UDATE*,LCID,ULONG,DATE*); +WINOLEAUTAPI VarUdateFromDate(DATE,ULONG,UDATE*); WINOLEAUTAPI SafeArrayAllocDescriptor(unsigned int,SAFEARRAY**); WINOLEAUTAPI SafeArrayAllocData(SAFEARRAY*); WINOLEAUTAPI_(SAFEARRAY*) SafeArrayCreate(VARTYPE,unsigned int,SAFEARRAYBOUND*);