* include/oleauto.h (struct NUMPARSE, NUMPRS_...): add declarations for struct NUMPARSE
authorMartin Fuchs <fuchs.martin@gmail.com>
Sun, 29 Feb 2004 13:52:18 +0000 (13:52 +0000)
committerMartin Fuchs <fuchs.martin@gmail.com>
Sun, 29 Feb 2004 13:52:18 +0000 (13:52 +0000)
* include/oleauto.h (VarParseNumFromStr, VarNumFromParseNum): add function declarations

svn path=/trunk/; revision=8478

reactos/w32api/include/oleauto.h

index 93ff645..b505f1a 100644 (file)
 #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
+#define NUMPRS_TRAILING_PLUS 0x00008
+#define NUMPRS_LEADING_MINUS 0x00010
+#define NUMPRS_TRAILING_MINUS 0x00020
+#define NUMPRS_HEX_OCT 0x00040
+#define NUMPRS_PARENS 0x00080
+#define NUMPRS_DECIMAL 0x00100
+#define NUMPRS_THOUSANDS 0x00200
+#define NUMPRS_CURRENCY 0x00400
+#define NUMPRS_EXPONENT 0x00800
+#define NUMPRS_USE_ALL 0x01000
+#define NUMPRS_STD 0x01FFF
+#define NUMPRS_NEG 0x10000
+#define NUMPRS_INEXACT 0x20000
+
 #include <oaidl.h>
 
 typedef enum tagREGKIND {
@@ -142,6 +159,15 @@ typedef struct tagINTERFACEDATA {
        UINT cMembers;
 } INTERFACEDATA,*LPINTERFACEDATA;
 
+typedef struct {
+       int cDig;
+       unsigned long dwInFlags;
+       unsigned long dwOutFlags;
+       int cchUsed;
+       int nBaseShift;
+       int nPwr10;
+} NUMPARSE;
+
 WINOLEAUTAPI_(BSTR) SysAllocString(const OLECHAR*);
 WINOLEAUTAPI_(int) SysReAllocString(BSTR*,const OLECHAR*);
 WINOLEAUTAPI_(BSTR) SysAllocStringLen(const OLECHAR*,unsigned int);
@@ -292,6 +318,8 @@ WINOLEAUTAPI CreateErrorInfo(LPCREATEERRORINFO*);
 WINOLEAUTAPI_(unsigned long) OaBuildVersion(void);
 WINOLEAUTAPI VectorFromBstr (BSTR, SAFEARRAY **);
 WINOLEAUTAPI BstrFromVector (SAFEARRAY *, BSTR *);
+WINOLEAUTAPI VarParseNumFromStr(OLECHAR*,LCID,ULONG,NUMPARSE*,BYTE*);
+WINOLEAUTAPI VarNumFromParseNum(NUMPARSE*,BYTE*,ULONG,VARIANT*);
 
 WINOLEAUTAPI VarAdd(LPVARIANT, LPVARIANT, LPVARIANT);
 WINOLEAUTAPI VarSub(LPVARIANT, LPVARIANT, LPVARIANT);