1 | /*
|
---|
2 | * Copyright (C) the Wine project
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_OLEAUTO_H
|
---|
29 | #define __WINE_OLEAUTO_H
|
---|
30 |
|
---|
31 | #include <oaidl.h>
|
---|
32 |
|
---|
33 | #ifdef __cplusplus
|
---|
34 | extern "C" {
|
---|
35 | #endif
|
---|
36 |
|
---|
37 | DEFINE_OLEGUID(IID_StdOle, 0x00020430,0,0);
|
---|
38 |
|
---|
39 | #define STDOLE_MAJORVERNUM 1
|
---|
40 | #define STDOLE_MINORVERNUM 0
|
---|
41 | #define STDOLE_LCID 0
|
---|
42 |
|
---|
43 | #define STDOLE2_MAJORVERNUM 2
|
---|
44 | #define STDOLE2_MINORVERNUM 0
|
---|
45 | #define STDOLE2_LCID 0
|
---|
46 |
|
---|
47 | ULONG WINAPI OaBuildVersion(void);
|
---|
48 |
|
---|
49 | /* BSTR functions */
|
---|
50 | BSTR WINAPI SysAllocString(const OLECHAR*);
|
---|
51 | BSTR WINAPI SysAllocStringByteLen(LPCSTR,UINT);
|
---|
52 | BSTR WINAPI SysAllocStringLen(const OLECHAR*,UINT);
|
---|
53 | void WINAPI SysFreeString(BSTR);
|
---|
54 | INT WINAPI SysReAllocString(LPBSTR,const OLECHAR*);
|
---|
55 | int WINAPI SysReAllocStringLen(BSTR*,const OLECHAR*,UINT);
|
---|
56 | UINT WINAPI SysStringByteLen(BSTR);
|
---|
57 | UINT WINAPI SysStringLen(BSTR);
|
---|
58 |
|
---|
59 | /* IErrorInfo helpers */
|
---|
60 | HRESULT WINAPI SetErrorInfo(ULONG,IErrorInfo*);
|
---|
61 | HRESULT WINAPI GetErrorInfo(ULONG,IErrorInfo**);
|
---|
62 | HRESULT WINAPI CreateErrorInfo(ICreateErrorInfo**);
|
---|
63 |
|
---|
64 | /* SafeArray functions */
|
---|
65 | SAFEARRAY* WINAPI SafeArrayCreate(VARTYPE,UINT,SAFEARRAYBOUND*);
|
---|
66 | SAFEARRAY* WINAPI SafeArrayCreateEx(VARTYPE,UINT,SAFEARRAYBOUND*,LPVOID);
|
---|
67 | SAFEARRAY* WINAPI SafeArrayCreateVector(VARTYPE,LONG,ULONG);
|
---|
68 | SAFEARRAY* WINAPI SafeArrayCreateVectorEx(VARTYPE,LONG,ULONG,LPVOID);
|
---|
69 |
|
---|
70 | HRESULT WINAPI SafeArrayAllocDescriptor(UINT,SAFEARRAY**);
|
---|
71 | HRESULT WINAPI SafeArrayAllocDescriptorEx(VARTYPE,UINT,SAFEARRAY**);
|
---|
72 | HRESULT WINAPI SafeArrayAllocData(SAFEARRAY*);
|
---|
73 | HRESULT WINAPI SafeArrayDestroyDescriptor(SAFEARRAY*);
|
---|
74 | HRESULT WINAPI SafeArrayPutElement(SAFEARRAY*,LONG*,void*);
|
---|
75 | HRESULT WINAPI SafeArrayGetElement(SAFEARRAY*,LONG*,void*);
|
---|
76 | HRESULT WINAPI SafeArrayLock(SAFEARRAY*);
|
---|
77 | HRESULT WINAPI SafeArrayUnlock(SAFEARRAY*);
|
---|
78 | HRESULT WINAPI SafeArrayGetUBound(SAFEARRAY*,UINT,LONG*);
|
---|
79 | HRESULT WINAPI SafeArrayGetLBound(SAFEARRAY*,UINT,LONG*);
|
---|
80 | UINT WINAPI SafeArrayGetDim(SAFEARRAY*);
|
---|
81 | UINT WINAPI SafeArrayGetElemsize(SAFEARRAY*);
|
---|
82 | HRESULT WINAPI SafeArrayGetVartype(SAFEARRAY*,VARTYPE*);
|
---|
83 | HRESULT WINAPI SafeArrayAccessData(SAFEARRAY*,void**);
|
---|
84 | HRESULT WINAPI SafeArrayUnaccessData(SAFEARRAY*);
|
---|
85 | HRESULT WINAPI SafeArrayPtrOfIndex(SAFEARRAY*,LONG*,void **);
|
---|
86 | HRESULT WINAPI SafeArrayCopyData(SAFEARRAY*,SAFEARRAY*);
|
---|
87 | HRESULT WINAPI SafeArrayDestroyData(SAFEARRAY*);
|
---|
88 | HRESULT WINAPI SafeArrayDestroy(SAFEARRAY*);
|
---|
89 | HRESULT WINAPI SafeArrayCopy(SAFEARRAY*,SAFEARRAY**);
|
---|
90 | HRESULT WINAPI SafeArrayRedim(SAFEARRAY*,SAFEARRAYBOUND*);
|
---|
91 | HRESULT WINAPI SafeArraySetRecordInfo(SAFEARRAY*,IRecordInfo*);
|
---|
92 | HRESULT WINAPI SafeArrayGetRecordInfo(SAFEARRAY*,IRecordInfo**);
|
---|
93 | HRESULT WINAPI SafeArraySetIID(SAFEARRAY*,REFGUID);
|
---|
94 | HRESULT WINAPI SafeArrayGetIID(SAFEARRAY*,GUID*);
|
---|
95 |
|
---|
96 | HRESULT WINAPI VectorFromBstr(BSTR,SAFEARRAY**);
|
---|
97 | HRESULT WINAPI BstrFromVector(SAFEARRAY*,BSTR*);
|
---|
98 |
|
---|
99 | /* Object registration helpers */
|
---|
100 | #define ACTIVEOBJECT_STRONG 0
|
---|
101 | #define ACTIVEOBJECT_WEAK 1
|
---|
102 |
|
---|
103 | HRESULT WINAPI RegisterActiveObject(LPUNKNOWN,REFCLSID,DWORD,LPDWORD);
|
---|
104 | HRESULT WINAPI RevokeActiveObject(DWORD,LPVOID);
|
---|
105 | HRESULT WINAPI GetActiveObject(REFCLSID,LPVOID,LPUNKNOWN*);
|
---|
106 |
|
---|
107 | /* IRecordInfo helpers */
|
---|
108 | HRESULT WINAPI GetRecordInfoFromTypeInfo(ITypeInfo*,IRecordInfo**);
|
---|
109 | HRESULT WINAPI GetRecordInfoFromGuids(REFGUID,ULONG,ULONG,LCID,REFGUID,IRecordInfo**);
|
---|
110 |
|
---|
111 | /*
|
---|
112 | * Variants
|
---|
113 | */
|
---|
114 |
|
---|
115 | /* Macros for accessing the fields of the VARIANT type */
|
---|
116 | #if (__STDC__ && !defined(_FORCENAMELESSUNION)) || defined(NONAMELESSUNION)
|
---|
117 | #define V_UNION(A,B) ((A)->n1.n2.n3.B)
|
---|
118 | #define V_VT(A) ((A)->n1.n2.vt)
|
---|
119 | #else
|
---|
120 | #define V_UNION(A,B) ((A)->B)
|
---|
121 | #define V_VT(A) ((A)->vt)
|
---|
122 | #endif
|
---|
123 |
|
---|
124 | #define V_ISBYREF(A) (V_VT(A) & VT_BYREF)
|
---|
125 | #define V_ISARRAY(A) (V_VT(A) & VT_ARRAY)
|
---|
126 | #define V_ISVECTOR(A) (V_VT(A) & VT_VECTOR)
|
---|
127 | #define V_NONE(A) V_I2(A)
|
---|
128 |
|
---|
129 | #define V_ARRAY(A) V_UNION(A,parray)
|
---|
130 | #define V_ARRAYREF(A) V_UNION(A,pparray)
|
---|
131 | #define V_BOOL(A) V_UNION(A,boolVal)
|
---|
132 | #define V_BOOLREF(A) V_UNION(A,pboolVal)
|
---|
133 | #define V_BSTR(A) V_UNION(A,bstrVal)
|
---|
134 | #define V_BSTRREF(A) V_UNION(A,pbstrVal)
|
---|
135 | #define V_BYREF(A) V_UNION(A,byref)
|
---|
136 | #define V_CY(A) V_UNION(A,cyVal)
|
---|
137 | #define V_CYREF(A) V_UNION(A,pcyVal)
|
---|
138 | #define V_DATE(A) V_UNION(A,date)
|
---|
139 | #define V_DATEREF(A) V_UNION(A,pdate)
|
---|
140 | #if (__STDC__ && !defined(_FORCENAMELESSUNION)) || defined(NONAMELESSUNION)
|
---|
141 | #define V_DECIMAL(A) ((A)->n1.decVal)
|
---|
142 | #else
|
---|
143 | #define V_DECIMAL(A) ((A)->decVal)
|
---|
144 | #endif
|
---|
145 | #define V_DECIMALREF(A) V_UNION(A,pdecVal)
|
---|
146 | #define V_DISPATCH(A) V_UNION(A,pdispVal)
|
---|
147 | #define V_DISPATCHREF(A) V_UNION(A,ppdispVal)
|
---|
148 | #define V_ERROR(A) V_UNION(A,scode)
|
---|
149 | #define V_ERRORREF(A) V_UNION(A,pscode)
|
---|
150 | #define V_I1(A) V_UNION(A,cVal)
|
---|
151 | #define V_I1REF(A) V_UNION(A,pcVal)
|
---|
152 | #define V_I2(A) V_UNION(A,iVal)
|
---|
153 | #define V_I2REF(A) V_UNION(A,piVal)
|
---|
154 | #define V_I4(A) V_UNION(A,lVal)
|
---|
155 | #define V_I4REF(A) V_UNION(A,plVal)
|
---|
156 | #define V_I8(A) V_UNION(A,llVal)
|
---|
157 | #define V_I8REF(A) V_UNION(A,pllVal)
|
---|
158 | #define V_INT(A) V_UNION(A,intVal)
|
---|
159 | #define V_INTREF(A) V_UNION(A,pintVal)
|
---|
160 | #ifdef _WIN64
|
---|
161 | #define V_INT_PTR(A) V_I8(A)
|
---|
162 | #define V_INT_PTRREF(A) V_I8REF(A)
|
---|
163 | #else
|
---|
164 | #define V_INT_PTR(A) V_I4(A)
|
---|
165 | #define V_INT_PTRREF(A) V_I4REF(A)
|
---|
166 | #endif
|
---|
167 | #define V_R4(A) V_UNION(A,fltVal)
|
---|
168 | #define V_R4REF(A) V_UNION(A,pfltVal)
|
---|
169 | #define V_R8(A) V_UNION(A,dblVal)
|
---|
170 | #define V_R8REF(A) V_UNION(A,pdblVal)
|
---|
171 | #define V_UINT(A) V_UNION(A,uintVal)
|
---|
172 | #define V_UINTREF(A) V_UNION(A,puintVal)
|
---|
173 | #define V_UI1(A) V_UNION(A,bVal)
|
---|
174 | #define V_UI1REF(A) V_UNION(A,pbVal)
|
---|
175 | #define V_UI2(A) V_UNION(A,uiVal)
|
---|
176 | #define V_UI2REF(A) V_UNION(A,puiVal)
|
---|
177 | #define V_UI4(A) V_UNION(A,ulVal)
|
---|
178 | #define V_UI4REF(A) V_UNION(A,pulVal)
|
---|
179 | #define V_UI8(A) V_UNION(A,ullVal)
|
---|
180 | #define V_UI8REF(A) V_UNION(A,pullVal)
|
---|
181 | #ifdef _WIN64
|
---|
182 | #define V_UINT_PTR(A) V_UI8(A)
|
---|
183 | #define V_UINT_PTRREF(A) V_UI8REF(A)
|
---|
184 | #else
|
---|
185 | #define V_UINT_PTR(A) V_UI4(A)
|
---|
186 | #define V_UINT_PTRREF(A) V_UI4REF(A)
|
---|
187 | #endif
|
---|
188 | #define V_UNKNOWN(A) V_UNION(A,punkVal)
|
---|
189 | #define V_UNKNOWNREF(A) V_UNION(A,ppunkVal)
|
---|
190 | #define V_VARIANTREF(A) V_UNION(A,pvarVal)
|
---|
191 |
|
---|
192 | void WINAPI VariantInit(VARIANT*);
|
---|
193 | HRESULT WINAPI VariantClear(VARIANT*);
|
---|
194 | HRESULT WINAPI VariantCopy(VARIANT*,VARIANT*);
|
---|
195 | HRESULT WINAPI VariantCopyInd(VARIANT*,VARIANT*);
|
---|
196 | HRESULT WINAPI VariantChangeType(VARIANT*,VARIANT*,USHORT,VARTYPE);
|
---|
197 | HRESULT WINAPI VariantChangeTypeEx(VARIANT*,VARIANT*,LCID,USHORT,VARTYPE);
|
---|
198 |
|
---|
199 | /* VariantChangeType/VariantChangeTypeEx flags */
|
---|
200 | #define VARIANT_NOVALUEPROP 0x01 /* Don't get the default value property from IDispatch */
|
---|
201 | #define VARIANT_ALPHABOOL 0x02 /* Coerce to "True"|"False" instead of "-1"|"0" */
|
---|
202 | #define VARIANT_NOUSEROVERRIDE 0x04 /* Pass LOCALE_NOUSEROVERRIDE to low level conversions */
|
---|
203 | #define VARIANT_CALENDAR_HIJRI 0x08 /* Use the Hijri calendar */
|
---|
204 | #define VARIANT_LOCALBOOL 0x10 /* Like VARIANT_ALPHABOOL, but use localised text */
|
---|
205 | #define VARIANT_CALENDAR_THAI 0x20 /* Use the Thai buddhist calendar */
|
---|
206 | #define VARIANT_CALENDAR_GREGORIAN 0x40 /* Use the Gregorian calendar */
|
---|
207 | #define VARIANT_USE_NLS 0x80 /* Format result using NLS calls */
|
---|
208 |
|
---|
209 | /*
|
---|
210 | * Low level Variant coercion functions
|
---|
211 | */
|
---|
212 |
|
---|
213 | #define VT_HARDTYPE VT_RESERVED /* Don't coerce this variant when comparing it to others */
|
---|
214 |
|
---|
215 | /* Flags for low level coercions. LOCALE_ flags can also be passed */
|
---|
216 | #define VAR_TIMEVALUEONLY 0x001 /* Ignore date portion of VT_DATE */
|
---|
217 | #define VAR_DATEVALUEONLY 0x002 /* Ignore time portion of VT_DATE */
|
---|
218 | #define VAR_VALIDDATE 0x004
|
---|
219 | #define VAR_CALENDAR_HIJRI 0x008 /* Use the Hijri calendar */
|
---|
220 | #define VAR_LOCALBOOL 0x010 /* VT_BOOL<->VT_BSTR: Use localised boolean text */
|
---|
221 | #define VAR_FORMAT_NOSUBSTITUTE 0x020 /* Don't change format strings for un-coercable types */
|
---|
222 | #define VAR_FOURDIGITYEARS 0x040 /* Always print years with 4 digits */
|
---|
223 | #define VAR_CALENDAR_THAI 0x080 /* Use the Thai buddhist calendar */
|
---|
224 | #define VAR_CALENDAR_GREGORIAN 0x100 /* Use the Gregorian calendar */
|
---|
225 |
|
---|
226 | #ifndef LOCALE_USE_NLS
|
---|
227 | /* This is missing from native winnls.h, but may be added at some point */
|
---|
228 | #define LOCALE_USE_NLS 0x10000000
|
---|
229 | #endif
|
---|
230 |
|
---|
231 | #define VTDATEGRE_MIN -657434 /* Minimum possible Gregorian date: 1/1/100 */
|
---|
232 | #define VTDATEGRE_MAX 2958465 /* Maximum possible Gregorian date: 31/12/9999 */
|
---|
233 |
|
---|
234 | HRESULT WINAPI VarUI1FromI2(SHORT,BYTE*);
|
---|
235 | HRESULT WINAPI VarUI1FromI4(LONG,BYTE*);
|
---|
236 | HRESULT WINAPI VarUI1FromI8(LONG64,BYTE*);
|
---|
237 | HRESULT WINAPI VarUI1FromR4(FLOAT,BYTE*);
|
---|
238 | HRESULT WINAPI VarUI1FromR8(DOUBLE,BYTE*);
|
---|
239 | HRESULT WINAPI VarUI1FromDate(DATE,BYTE*);
|
---|
240 | HRESULT WINAPI VarUI1FromBool(VARIANT_BOOL,BYTE*);
|
---|
241 | HRESULT WINAPI VarUI1FromI1(signed char,BYTE*);
|
---|
242 | HRESULT WINAPI VarUI1FromUI2(USHORT,BYTE*);
|
---|
243 | HRESULT WINAPI VarUI1FromUI4(ULONG,BYTE*);
|
---|
244 | HRESULT WINAPI VarUI1FromUI8(ULONG64,BYTE*);
|
---|
245 | HRESULT WINAPI VarUI1FromStr(OLECHAR*,LCID,ULONG,BYTE*);
|
---|
246 | HRESULT WINAPI VarUI1FromCy(CY,BYTE*);
|
---|
247 | HRESULT WINAPI VarUI1FromDec(DECIMAL*,BYTE*);
|
---|
248 | HRESULT WINAPI VarUI1FromDisp(IDispatch*,LCID,BYTE*);
|
---|
249 |
|
---|
250 | HRESULT WINAPI VarI2FromUI1(BYTE,SHORT*);
|
---|
251 | HRESULT WINAPI VarI2FromI4(LONG,SHORT*);
|
---|
252 | HRESULT WINAPI VarI2FromI8(LONG64,SHORT*);
|
---|
253 | HRESULT WINAPI VarI2FromR4(FLOAT,SHORT*);
|
---|
254 | HRESULT WINAPI VarI2FromR8(DOUBLE,SHORT*);
|
---|
255 | HRESULT WINAPI VarI2FromDate(DATE,SHORT*);
|
---|
256 | HRESULT WINAPI VarI2FromBool(VARIANT_BOOL,SHORT*);
|
---|
257 | HRESULT WINAPI VarI2FromI1(signed char,SHORT*);
|
---|
258 | HRESULT WINAPI VarI2FromUI2(USHORT,SHORT*);
|
---|
259 | HRESULT WINAPI VarI2FromUI4(ULONG,SHORT*);
|
---|
260 | HRESULT WINAPI VarI2FromUI8(ULONG64,SHORT*);
|
---|
261 | HRESULT WINAPI VarI2FromStr(OLECHAR*,LCID,ULONG,SHORT*);
|
---|
262 | HRESULT WINAPI VarI2FromCy(CY,SHORT*);
|
---|
263 | HRESULT WINAPI VarI2FromDec(DECIMAL*,SHORT*);
|
---|
264 | HRESULT WINAPI VarI2FromDisp(IDispatch*,LCID,SHORT*);
|
---|
265 |
|
---|
266 | HRESULT WINAPI VarI4FromUI1(BYTE,LONG*);
|
---|
267 | HRESULT WINAPI VarI4FromI2(SHORT,LONG*);
|
---|
268 | HRESULT WINAPI VarI4FromI8(LONG64,LONG*);
|
---|
269 | HRESULT WINAPI VarI4FromR4(FLOAT,LONG*);
|
---|
270 | HRESULT WINAPI VarI4FromR8(DOUBLE,LONG*);
|
---|
271 | HRESULT WINAPI VarI4FromDate(DATE,LONG*);
|
---|
272 | HRESULT WINAPI VarI4FromBool(VARIANT_BOOL,LONG*);
|
---|
273 | HRESULT WINAPI VarI4FromI1(signed char,LONG*);
|
---|
274 | HRESULT WINAPI VarI4FromUI2(USHORT,LONG*);
|
---|
275 | HRESULT WINAPI VarI4FromUI4(ULONG,LONG*);
|
---|
276 | HRESULT WINAPI VarI4FromUI8(ULONG64,LONG*);
|
---|
277 | HRESULT WINAPI VarI4FromStr(OLECHAR*,LCID,ULONG,LONG*);
|
---|
278 | HRESULT WINAPI VarI4FromCy(CY,LONG*);
|
---|
279 | HRESULT WINAPI VarI4FromDec(DECIMAL*,LONG*);
|
---|
280 | HRESULT WINAPI VarI4FromDisp(IDispatch*,LCID,LONG*);
|
---|
281 |
|
---|
282 | HRESULT WINAPI VarI8FromUI1(BYTE,LONG64*);
|
---|
283 | HRESULT WINAPI VarI8FromI2(SHORT,LONG64*);
|
---|
284 | HRESULT WINAPI VarI8FromI4(LONG,LONG64*);
|
---|
285 | HRESULT WINAPI VarI8FromR4(FLOAT,LONG64*);
|
---|
286 | HRESULT WINAPI VarI8FromR8(DOUBLE,LONG64*);
|
---|
287 | HRESULT WINAPI VarI8FromDate(DATE,LONG64*);
|
---|
288 | HRESULT WINAPI VarI8FromStr(OLECHAR*,LCID,ULONG,LONG64*);
|
---|
289 | HRESULT WINAPI VarI8FromBool(VARIANT_BOOL,LONG64*);
|
---|
290 | HRESULT WINAPI VarI8FromI1(signed char,LONG64*);
|
---|
291 | HRESULT WINAPI VarI8FromUI2(USHORT,LONG64*);
|
---|
292 | HRESULT WINAPI VarI8FromUI4(ULONG,LONG64*);
|
---|
293 | HRESULT WINAPI VarI8FromUI8(ULONG64,LONG64*);
|
---|
294 | HRESULT WINAPI VarI8FromDec(DECIMAL *pdecIn,LONG64*);
|
---|
295 | HRESULT WINAPI VarI8FromInt(INT intIn,LONG64*);
|
---|
296 | HRESULT WINAPI VarI8FromCy(CY,LONG64*);
|
---|
297 | HRESULT WINAPI VarI8FromDisp(IDispatch*,LCID,LONG64*);
|
---|
298 |
|
---|
299 | HRESULT WINAPI VarR4FromUI1(BYTE,FLOAT*);
|
---|
300 | HRESULT WINAPI VarR4FromI2(SHORT,FLOAT*);
|
---|
301 | HRESULT WINAPI VarR4FromI4(LONG,FLOAT*);
|
---|
302 | HRESULT WINAPI VarR4FromI8(LONG64,FLOAT*);
|
---|
303 | HRESULT WINAPI VarR4FromR8(DOUBLE,FLOAT*);
|
---|
304 | HRESULT WINAPI VarR4FromDate(DATE,FLOAT*);
|
---|
305 | HRESULT WINAPI VarR4FromBool(VARIANT_BOOL,FLOAT*);
|
---|
306 | HRESULT WINAPI VarR4FromI1(signed char,FLOAT*);
|
---|
307 | HRESULT WINAPI VarR4FromUI2(USHORT,FLOAT*);
|
---|
308 | HRESULT WINAPI VarR4FromUI4(ULONG,FLOAT*);
|
---|
309 | HRESULT WINAPI VarR4FromUI8(ULONG64,FLOAT*);
|
---|
310 | HRESULT WINAPI VarR4FromStr(OLECHAR*,LCID,ULONG,FLOAT*);
|
---|
311 | HRESULT WINAPI VarR4FromCy(CY,FLOAT*);
|
---|
312 | HRESULT WINAPI VarR4FromDec(DECIMAL*,FLOAT*);
|
---|
313 | HRESULT WINAPI VarR4FromDisp(IDispatch*,LCID,FLOAT*);
|
---|
314 |
|
---|
315 | HRESULT WINAPI VarR8FromUI1(BYTE,double*);
|
---|
316 | HRESULT WINAPI VarR8FromI2(SHORT,double*);
|
---|
317 | HRESULT WINAPI VarR8FromI4(LONG,double*);
|
---|
318 | HRESULT WINAPI VarR8FromI8(LONG64,double*);
|
---|
319 | HRESULT WINAPI VarR8FromR4(FLOAT,double*);
|
---|
320 | HRESULT WINAPI VarR8FromDate(DATE,double*);
|
---|
321 | HRESULT WINAPI VarR8FromBool(VARIANT_BOOL,double*);
|
---|
322 | HRESULT WINAPI VarR8FromI1(signed char,double*);
|
---|
323 | HRESULT WINAPI VarR8FromUI2(USHORT,double*);
|
---|
324 | HRESULT WINAPI VarR8FromUI4(ULONG,double*);
|
---|
325 | HRESULT WINAPI VarR8FromUI8(ULONG64,double*);
|
---|
326 | HRESULT WINAPI VarR8FromStr(OLECHAR*,LCID,ULONG,double*);
|
---|
327 | HRESULT WINAPI VarR8FromCy(CY,double*);
|
---|
328 | HRESULT WINAPI VarR8FromDec(const DECIMAL*,double*);
|
---|
329 | HRESULT WINAPI VarR8FromDisp(IDispatch*,LCID,double*);
|
---|
330 |
|
---|
331 | HRESULT WINAPI VarDateFromUI1(BYTE,DATE*);
|
---|
332 | HRESULT WINAPI VarDateFromI2(SHORT,DATE*);
|
---|
333 | HRESULT WINAPI VarDateFromI4(LONG,DATE*);
|
---|
334 | HRESULT WINAPI VarDateFromI8(LONG64,DATE*);
|
---|
335 | HRESULT WINAPI VarDateFromR4(FLOAT,DATE*);
|
---|
336 | HRESULT WINAPI VarDateFromR8(DOUBLE,DATE*);
|
---|
337 | HRESULT WINAPI VarDateFromStr(OLECHAR*,LCID,ULONG,DATE*);
|
---|
338 | HRESULT WINAPI VarDateFromI1(signed char,DATE*);
|
---|
339 | HRESULT WINAPI VarDateFromUI2(USHORT,DATE*);
|
---|
340 | HRESULT WINAPI VarDateFromUI4(ULONG,DATE*);
|
---|
341 | HRESULT WINAPI VarDateFromUI8(ULONG64,DATE*);
|
---|
342 | HRESULT WINAPI VarDateFromBool(VARIANT_BOOL,DATE*);
|
---|
343 | HRESULT WINAPI VarDateFromCy(CY,DATE*);
|
---|
344 | HRESULT WINAPI VarDateFromDec(DECIMAL*,DATE*);
|
---|
345 | HRESULT WINAPI VarDateFromDisp(IDispatch*,LCID,DATE*);
|
---|
346 |
|
---|
347 | HRESULT WINAPI VarCyFromUI1(BYTE,CY*);
|
---|
348 | HRESULT WINAPI VarCyFromI2(SHORT sIn,CY*);
|
---|
349 | HRESULT WINAPI VarCyFromI4(LONG,CY*);
|
---|
350 | HRESULT WINAPI VarCyFromI8(LONG64,CY*);
|
---|
351 | HRESULT WINAPI VarCyFromR4(FLOAT,CY*);
|
---|
352 | HRESULT WINAPI VarCyFromR8(DOUBLE,CY*);
|
---|
353 | HRESULT WINAPI VarCyFromDate(DATE,CY*);
|
---|
354 | HRESULT WINAPI VarCyFromStr(OLECHAR*,LCID,ULONG,CY*);
|
---|
355 | HRESULT WINAPI VarCyFromBool(VARIANT_BOOL,CY*);
|
---|
356 | HRESULT WINAPI VarCyFromI1(signed char,CY*);
|
---|
357 | HRESULT WINAPI VarCyFromUI2(USHORT,CY*);
|
---|
358 | HRESULT WINAPI VarCyFromUI4(ULONG,CY*);
|
---|
359 | HRESULT WINAPI VarCyFromUI8(ULONG64,CY*);
|
---|
360 | HRESULT WINAPI VarCyFromDec(DECIMAL*,CY*);
|
---|
361 | HRESULT WINAPI VarCyFromDisp(IDispatch*,LCID,CY*);
|
---|
362 |
|
---|
363 | HRESULT WINAPI VarBstrFromUI1(BYTE,LCID,ULONG,BSTR*);
|
---|
364 | HRESULT WINAPI VarBstrFromI2(SHORT,LCID,ULONG,BSTR*);
|
---|
365 | HRESULT WINAPI VarBstrFromI4(LONG,LCID,ULONG,BSTR*);
|
---|
366 | HRESULT WINAPI VarBstrFromI8(LONG64,LCID,ULONG,BSTR*);
|
---|
367 | HRESULT WINAPI VarBstrFromR4(FLOAT,LCID,ULONG,BSTR*);
|
---|
368 | HRESULT WINAPI VarBstrFromR8(DOUBLE,LCID,ULONG,BSTR*);
|
---|
369 | HRESULT WINAPI VarBstrFromDate(DATE,LCID,ULONG,BSTR*);
|
---|
370 | HRESULT WINAPI VarBstrFromBool(VARIANT_BOOL,LCID,ULONG,BSTR*);
|
---|
371 | HRESULT WINAPI VarBstrFromI1(signed char,LCID,ULONG,BSTR*);
|
---|
372 | HRESULT WINAPI VarBstrFromUI2(USHORT,LCID,ULONG,BSTR*);
|
---|
373 | HRESULT WINAPI VarBstrFromUI8(ULONG64,LCID,ULONG,BSTR*);
|
---|
374 | HRESULT WINAPI VarBstrFromUI4(ULONG,LCID,ULONG,BSTR*);
|
---|
375 | HRESULT WINAPI VarBstrFromCy(CY,LCID,ULONG,BSTR*);
|
---|
376 | HRESULT WINAPI VarBstrFromDec(DECIMAL*,LCID,ULONG,BSTR*);
|
---|
377 | HRESULT WINAPI VarBstrFromDisp(IDispatch*,LCID,ULONG,BSTR*);
|
---|
378 |
|
---|
379 | HRESULT WINAPI VarBoolFromUI1(BYTE,VARIANT_BOOL*);
|
---|
380 | HRESULT WINAPI VarBoolFromI2(SHORT,VARIANT_BOOL*);
|
---|
381 | HRESULT WINAPI VarBoolFromI4(LONG,VARIANT_BOOL*);
|
---|
382 | HRESULT WINAPI VarBoolFromI8(LONG64,VARIANT_BOOL*);
|
---|
383 | HRESULT WINAPI VarBoolFromR4(FLOAT,VARIANT_BOOL*);
|
---|
384 | HRESULT WINAPI VarBoolFromR8(DOUBLE,VARIANT_BOOL*);
|
---|
385 | HRESULT WINAPI VarBoolFromDate(DATE,VARIANT_BOOL*);
|
---|
386 | HRESULT WINAPI VarBoolFromStr(OLECHAR*,LCID,ULONG,VARIANT_BOOL*);
|
---|
387 | HRESULT WINAPI VarBoolFromI1(signed char,VARIANT_BOOL*);
|
---|
388 | HRESULT WINAPI VarBoolFromUI2(USHORT,VARIANT_BOOL*);
|
---|
389 | HRESULT WINAPI VarBoolFromUI4(ULONG,VARIANT_BOOL*);
|
---|
390 | HRESULT WINAPI VarBoolFromUI8(ULONG64,VARIANT_BOOL*);
|
---|
391 | HRESULT WINAPI VarBoolFromCy(CY,VARIANT_BOOL*);
|
---|
392 | HRESULT WINAPI VarBoolFromDec(DECIMAL*,VARIANT_BOOL*);
|
---|
393 | HRESULT WINAPI VarBoolFromDisp(IDispatch*,LCID,VARIANT_BOOL*);
|
---|
394 |
|
---|
395 | HRESULT WINAPI VarI1FromUI1(BYTE,signed char*);
|
---|
396 | HRESULT WINAPI VarI1FromI2(SHORT,signed char*);
|
---|
397 | HRESULT WINAPI VarI1FromI4(LONG,signed char*);
|
---|
398 | HRESULT WINAPI VarI1FromI8(LONG64,signed char*);
|
---|
399 | HRESULT WINAPI VarI1FromR4(FLOAT,signed char*);
|
---|
400 | HRESULT WINAPI VarI1FromR8(DOUBLE,signed char*);
|
---|
401 | HRESULT WINAPI VarI1FromDate(DATE,signed char*);
|
---|
402 | HRESULT WINAPI VarI1FromStr(OLECHAR*,LCID,ULONG,signed char*);
|
---|
403 | HRESULT WINAPI VarI1FromBool(VARIANT_BOOL,signed char*);
|
---|
404 | HRESULT WINAPI VarI1FromUI2(USHORT,signed char*);
|
---|
405 | HRESULT WINAPI VarI1FromUI4(ULONG,signed char*);
|
---|
406 | HRESULT WINAPI VarI1FromUI8(ULONG64,signed char*);
|
---|
407 | HRESULT WINAPI VarI1FromCy(CY,signed char*);
|
---|
408 | HRESULT WINAPI VarI1FromDec(DECIMAL*,signed char*);
|
---|
409 | HRESULT WINAPI VarI1FromDisp(IDispatch*,LCID,signed char*);
|
---|
410 |
|
---|
411 | HRESULT WINAPI VarUI2FromUI1(BYTE,USHORT*);
|
---|
412 | HRESULT WINAPI VarUI2FromI2(SHORT,USHORT*);
|
---|
413 | HRESULT WINAPI VarUI2FromI4(LONG,USHORT*);
|
---|
414 | HRESULT WINAPI VarUI2FromI8(LONG64,USHORT*);
|
---|
415 | HRESULT WINAPI VarUI2FromR4(FLOAT,USHORT*);
|
---|
416 | HRESULT WINAPI VarUI2FromR8(DOUBLE,USHORT*);
|
---|
417 | HRESULT WINAPI VarUI2FromDate(DATE,USHORT*);
|
---|
418 | HRESULT WINAPI VarUI2FromStr(OLECHAR*,LCID,ULONG,USHORT*);
|
---|
419 | HRESULT WINAPI VarUI2FromBool(VARIANT_BOOL,USHORT*);
|
---|
420 | HRESULT WINAPI VarUI2FromI1(signed char,USHORT*);
|
---|
421 | HRESULT WINAPI VarUI2FromUI4(ULONG,USHORT*);
|
---|
422 | HRESULT WINAPI VarUI2FromUI8(ULONG64,USHORT*);
|
---|
423 | HRESULT WINAPI VarUI2FromCy(CY,USHORT*);
|
---|
424 | HRESULT WINAPI VarUI2FromDec(DECIMAL*,USHORT*);
|
---|
425 | HRESULT WINAPI VarUI2FromDisp(IDispatch*,LCID,USHORT*);
|
---|
426 |
|
---|
427 | HRESULT WINAPI VarUI4FromStr(OLECHAR*,LCID,ULONG,ULONG*);
|
---|
428 | HRESULT WINAPI VarUI4FromUI1(BYTE,ULONG*);
|
---|
429 | HRESULT WINAPI VarUI4FromI2(SHORT,ULONG*);
|
---|
430 | HRESULT WINAPI VarUI4FromI4(LONG,ULONG*);
|
---|
431 | HRESULT WINAPI VarUI4FromI8(LONG64,ULONG*);
|
---|
432 | HRESULT WINAPI VarUI4FromR4(FLOAT,ULONG*);
|
---|
433 | HRESULT WINAPI VarUI4FromR8(DOUBLE,ULONG*);
|
---|
434 | HRESULT WINAPI VarUI4FromDate(DATE,ULONG*);
|
---|
435 | HRESULT WINAPI VarUI4FromBool(VARIANT_BOOL,ULONG*);
|
---|
436 | HRESULT WINAPI VarUI4FromI1(signed char,ULONG*);
|
---|
437 | HRESULT WINAPI VarUI4FromUI2(USHORT,ULONG*);
|
---|
438 | HRESULT WINAPI VarUI4FromUI8(ULONG64,ULONG*);
|
---|
439 | HRESULT WINAPI VarUI4FromCy(CY,ULONG*);
|
---|
440 | HRESULT WINAPI VarUI4FromDec(DECIMAL*,ULONG*);
|
---|
441 | HRESULT WINAPI VarUI4FromDisp(IDispatch*,LCID,ULONG*);
|
---|
442 |
|
---|
443 | HRESULT WINAPI VarUI8FromUI1(BYTE,ULONG64*);
|
---|
444 | HRESULT WINAPI VarUI8FromI2(SHORT,ULONG64*);
|
---|
445 | HRESULT WINAPI VarUI8FromI4(LONG,ULONG64*);
|
---|
446 | HRESULT WINAPI VarUI8FromI8(LONG64,ULONG64*);
|
---|
447 | HRESULT WINAPI VarUI8FromR4(FLOAT,ULONG64*);
|
---|
448 | HRESULT WINAPI VarUI8FromR8(DOUBLE,ULONG64*);
|
---|
449 | HRESULT WINAPI VarUI8FromDate(DATE,ULONG64*);
|
---|
450 | HRESULT WINAPI VarUI8FromStr(OLECHAR*,LCID,ULONG,ULONG64*);
|
---|
451 | HRESULT WINAPI VarUI8FromBool(VARIANT_BOOL,ULONG64*);
|
---|
452 | HRESULT WINAPI VarUI8FromI1(signed char,ULONG64*);
|
---|
453 | HRESULT WINAPI VarUI8FromUI2(USHORT,ULONG64*);
|
---|
454 | HRESULT WINAPI VarUI8FromUI4(ULONG,ULONG64*);
|
---|
455 | HRESULT WINAPI VarUI8FromDec(DECIMAL*,ULONG64*);
|
---|
456 | HRESULT WINAPI VarUI8FromInt(INT,ULONG64*);
|
---|
457 | HRESULT WINAPI VarUI8FromCy(CY,ULONG64*);
|
---|
458 | HRESULT WINAPI VarUI8FromDisp(IDispatch*,LCID,ULONG64*);
|
---|
459 |
|
---|
460 | HRESULT WINAPI VarDecFromUI1(BYTE,DECIMAL*);
|
---|
461 | HRESULT WINAPI VarDecFromI2(SHORT,DECIMAL*);
|
---|
462 | HRESULT WINAPI VarDecFromI4(LONG,DECIMAL*);
|
---|
463 | HRESULT WINAPI VarDecFromI8(LONG64,DECIMAL*);
|
---|
464 | HRESULT WINAPI VarDecFromR4(FLOAT,DECIMAL*);
|
---|
465 | HRESULT WINAPI VarDecFromR8(DOUBLE,DECIMAL*);
|
---|
466 | HRESULT WINAPI VarDecFromDate(DATE,DECIMAL*);
|
---|
467 | HRESULT WINAPI VarDecFromStr(OLECHAR*,LCID,ULONG,DECIMAL*);
|
---|
468 | HRESULT WINAPI VarDecFromBool(VARIANT_BOOL,DECIMAL*);
|
---|
469 | HRESULT WINAPI VarDecFromI1(signed char,DECIMAL*);
|
---|
470 | HRESULT WINAPI VarDecFromUI2(USHORT,DECIMAL*);
|
---|
471 | HRESULT WINAPI VarDecFromUI4(ULONG,DECIMAL*);
|
---|
472 | HRESULT WINAPI VarDecFromUI8(ULONG64,DECIMAL*);
|
---|
473 | HRESULT WINAPI VarDecFromCy(CY,DECIMAL*);
|
---|
474 | HRESULT WINAPI VarDecFromDisp(IDispatch*,LCID,DECIMAL*);
|
---|
475 |
|
---|
476 | #define VarUI4FromUI4( in,pOut ) ( *(pOut) = (in) )
|
---|
477 | #define VarI4FromI4( in,pOut ) ( *(pOut) = (in) )
|
---|
478 |
|
---|
479 | #define VarUI1FromInt VarUI1FromI4
|
---|
480 | #define VarUI1FromUint VarUI1FromUI4
|
---|
481 | #define VarI2FromInt VarI2FromI4
|
---|
482 | #define VarI2FromUint VarI2FromUI4
|
---|
483 | #define VarI4FromInt VarI4FromI4
|
---|
484 | #define VarI4FromUint VarI4FromUI4
|
---|
485 | #define VarI8FromInt VarI8FromI4
|
---|
486 | #define VarI8FromUint VarI8FromUI4
|
---|
487 | #define VarR4FromInt VarR4FromI4
|
---|
488 | #define VarR4FromUint VarR4FromUI4
|
---|
489 | #define VarR8FromInt VarR8FromI4
|
---|
490 | #define VarR8FromUint VarR8FromUI4
|
---|
491 | #define VarDateFromInt VarDateFromI4
|
---|
492 | #define VarDateFromUint VarDateFromUI4
|
---|
493 | #define VarCyFromInt VarCyFromI4
|
---|
494 | #define VarCyFromUint VarCyFromUI4
|
---|
495 | #define VarBstrFromInt VarBstrFromI4
|
---|
496 | #define VarBstrFromUint VarBstrFromUI4
|
---|
497 | #define VarBoolFromInt VarBoolFromI4
|
---|
498 | #define VarBoolFromUint VarBoolFromUI4
|
---|
499 | #define VarI1FromInt VarI1FromI4
|
---|
500 | #define VarI1FromUint VarI1FromUI4
|
---|
501 | #define VarUI2FromInt VarUI2FromI4
|
---|
502 | #define VarUI2FromUint VarUI2FromUI4
|
---|
503 | #define VarUI4FromInt VarUI4FromI4
|
---|
504 | #define VarUI4FromUint VarUI4FromUI4
|
---|
505 | #define VarUI8FromInt VarUI8FromI4
|
---|
506 | #define VarUI8FromUint VarUI8FromUI4
|
---|
507 | #define VarDecFromInt VarDecFromI4
|
---|
508 | #define VarDecFromUint VarDecFromUI4
|
---|
509 | #define VarIntFromUI1 VarI4FromUI1
|
---|
510 | #define VarIntFromI2 VarI4FromI2
|
---|
511 | #define VarIntFromI4 VarI4FromI4
|
---|
512 | #define VarIntFromI8 VarI4FromI8
|
---|
513 | #define VarIntFromR4 VarI4FromR4
|
---|
514 | #define VarIntFromR8 VarI4FromR8
|
---|
515 | #define VarIntFromDate VarI4FromDate
|
---|
516 | #define VarIntFromCy VarI4FromCy
|
---|
517 | #define VarIntFromStr VarI4FromStr
|
---|
518 | #define VarIntFromDisp VarI4FromDisp
|
---|
519 | #define VarIntFromBool VarI4FromBool
|
---|
520 | #define VarIntFromI1 VarI4FromI1
|
---|
521 | #define VarIntFromUI2 VarI4FromUI2
|
---|
522 | #define VarIntFromUI4 VarI4FromUI4
|
---|
523 | #define VarIntFromUI8 VarI4FromUI8
|
---|
524 | #define VarIntFromDec VarI4FromDec
|
---|
525 | #define VarIntFromUint VarI4FromUI4
|
---|
526 | #define VarUintFromUI1 VarUI4FromUI1
|
---|
527 | #define VarUintFromI2 VarUI4FromI2
|
---|
528 | #define VarUintFromI4 VarUI4FromI4
|
---|
529 | #define VarUintFromI8 VarUI4FromI8
|
---|
530 | #define VarUintFromR4 VarUI4FromR4
|
---|
531 | #define VarUintFromR8 VarUI4FromR8
|
---|
532 | #define VarUintFromDate VarUI4FromDate
|
---|
533 | #define VarUintFromCy VarUI4FromCy
|
---|
534 | #define VarUintFromStr VarUI4FromStr
|
---|
535 | #define VarUintFromDisp VarUI4FromDisp
|
---|
536 | #define VarUintFromBool VarUI4FromBool
|
---|
537 | #define VarUintFromI1 VarUI4FromI1
|
---|
538 | #define VarUintFromUI2 VarUI4FromUI2
|
---|
539 | #define VarUintFromUI4 VarUI4FromUI4
|
---|
540 | #define VarUintFromUI8 VarUI4FromUI8
|
---|
541 | #define VarUintFromDec VarUI4FromDec
|
---|
542 | #define VarUintFromInt VarUI4FromI4
|
---|
543 |
|
---|
544 | /*
|
---|
545 | * Variant Math operations
|
---|
546 | */
|
---|
547 | #define VARCMP_LT 0
|
---|
548 | #define VARCMP_EQ 1
|
---|
549 | #define VARCMP_GT 2
|
---|
550 | #define VARCMP_NULL 3
|
---|
551 |
|
---|
552 | HRESULT WINAPI VarR4CmpR8(float,double);
|
---|
553 |
|
---|
554 | HRESULT WINAPI VarR8Pow(double,double,double*);
|
---|
555 | HRESULT WINAPI VarR8Round(double,int,double*);
|
---|
556 |
|
---|
557 | HRESULT WINAPI VarDecAbs(const DECIMAL*,DECIMAL*);
|
---|
558 | HRESULT WINAPI VarDecAdd(const DECIMAL*,const DECIMAL*,DECIMAL*);
|
---|
559 | HRESULT WINAPI VarDecCmp(const DECIMAL*,const DECIMAL*);
|
---|
560 | HRESULT WINAPI VarDecCmpR8(const DECIMAL*,DOUBLE);
|
---|
561 | HRESULT WINAPI VarDecDiv(const DECIMAL*,const DECIMAL*,DECIMAL*);
|
---|
562 | HRESULT WINAPI VarDecFix(const DECIMAL*,DECIMAL*);
|
---|
563 | HRESULT WINAPI VarDecInt(const DECIMAL*,DECIMAL*);
|
---|
564 | HRESULT WINAPI VarDecMul(const DECIMAL*,const DECIMAL*,DECIMAL*);
|
---|
565 | HRESULT WINAPI VarDecNeg(const DECIMAL*,DECIMAL*);
|
---|
566 | HRESULT WINAPI VarDecRound(const DECIMAL*,int,DECIMAL*);
|
---|
567 | HRESULT WINAPI VarDecSub(const DECIMAL*,const DECIMAL*,DECIMAL*);
|
---|
568 |
|
---|
569 | HRESULT WINAPI VarCyAbs(const CY,CY*);
|
---|
570 | HRESULT WINAPI VarCyAdd(const CY,const CY,CY*);
|
---|
571 | HRESULT WINAPI VarCyCmp(const CY,const CY);
|
---|
572 | HRESULT WINAPI VarCyCmpR8(const CY,DOUBLE);
|
---|
573 | HRESULT WINAPI VarCyFix(const CY,CY*);
|
---|
574 | HRESULT WINAPI VarCyInt(const CY,CY*);
|
---|
575 | HRESULT WINAPI VarCyMul(const CY,CY,CY*);
|
---|
576 | HRESULT WINAPI VarCyMulI4(const CY,LONG,CY*);
|
---|
577 | HRESULT WINAPI VarCyMulI8(const CY,LONG64,CY*);
|
---|
578 | HRESULT WINAPI VarCyNeg(const CY,CY*);
|
---|
579 | HRESULT WINAPI VarCyRound(const CY,INT,CY*);
|
---|
580 | HRESULT WINAPI VarCySub(const CY,const CY,CY*);
|
---|
581 |
|
---|
582 | HRESULT WINAPI VarAdd(LPVARIANT,LPVARIANT,LPVARIANT);
|
---|
583 | HRESULT WINAPI VarAnd(LPVARIANT,LPVARIANT,LPVARIANT);
|
---|
584 | HRESULT WINAPI VarCat(LPVARIANT,LPVARIANT,LPVARIANT);
|
---|
585 | HRESULT WINAPI VarDiv(LPVARIANT,LPVARIANT,LPVARIANT);
|
---|
586 | HRESULT WINAPI VarEqv(LPVARIANT,LPVARIANT,LPVARIANT);
|
---|
587 | HRESULT WINAPI VarIdiv(LPVARIANT,LPVARIANT,LPVARIANT);
|
---|
588 | HRESULT WINAPI VarImp(LPVARIANT,LPVARIANT,LPVARIANT);
|
---|
589 | HRESULT WINAPI VarMod(LPVARIANT,LPVARIANT,LPVARIANT);
|
---|
590 | HRESULT WINAPI VarMul(LPVARIANT,LPVARIANT,LPVARIANT);
|
---|
591 | HRESULT WINAPI VarOr(LPVARIANT,LPVARIANT,LPVARIANT);
|
---|
592 | HRESULT WINAPI VarPow(LPVARIANT,LPVARIANT,LPVARIANT);
|
---|
593 | HRESULT WINAPI VarSub(LPVARIANT,LPVARIANT,LPVARIANT);
|
---|
594 | HRESULT WINAPI VarXor(LPVARIANT,LPVARIANT,LPVARIANT);
|
---|
595 |
|
---|
596 | HRESULT WINAPI VarAbs(LPVARIANT,LPVARIANT);
|
---|
597 | HRESULT WINAPI VarFix(LPVARIANT,LPVARIANT);
|
---|
598 | HRESULT WINAPI VarInt(LPVARIANT,LPVARIANT);
|
---|
599 | HRESULT WINAPI VarNeg(LPVARIANT,LPVARIANT);
|
---|
600 | HRESULT WINAPI VarNot(LPVARIANT,LPVARIANT);
|
---|
601 |
|
---|
602 | HRESULT WINAPI VarRound(LPVARIANT,int,LPVARIANT);
|
---|
603 |
|
---|
604 | HRESULT WINAPI VarCmp(LPVARIANT,LPVARIANT,LCID,ULONG);
|
---|
605 |
|
---|
606 | HRESULT WINAPI VarBstrCmp(BSTR,BSTR,LCID,ULONG);
|
---|
607 | HRESULT WINAPI VarBstrCat(BSTR,BSTR,BSTR*);
|
---|
608 |
|
---|
609 |
|
---|
610 | typedef struct {
|
---|
611 | SYSTEMTIME st;
|
---|
612 | USHORT wDayOfYear;
|
---|
613 | } UDATE;
|
---|
614 |
|
---|
615 | typedef struct
|
---|
616 | {
|
---|
617 | INT cDig; /* Number of parsed digits */
|
---|
618 | ULONG dwInFlags; /* Acceptable state of the input string (NUMPRS_ flags) */
|
---|
619 | ULONG dwOutFlags; /* Parsed state of the output string (NUMPRS_ flags) */
|
---|
620 | INT cchUsed; /* Number of characters parsed from input string */
|
---|
621 | INT nBaseShift; /* Base of the number (but apparently unused) */
|
---|
622 | INT nPwr10; /* Scale of the number in powers of 10 */
|
---|
623 | } NUMPARSE;
|
---|
624 |
|
---|
625 | #define NUMPRS_LEADING_WHITE 0x00001 /* Leading whitespace */
|
---|
626 | #define NUMPRS_TRAILING_WHITE 0x00002 /* Trailing whitespace */
|
---|
627 | #define NUMPRS_LEADING_PLUS 0x00004 /* Leading '+' sign */
|
---|
628 | #define NUMPRS_TRAILING_PLUS 0x00008 /* Trailing '+' sign */
|
---|
629 | #define NUMPRS_LEADING_MINUS 0x00010 /* Leading '-' sign */
|
---|
630 | #define NUMPRS_TRAILING_MINUS 0x00020 /* Trailing '-' sign */
|
---|
631 | #define NUMPRS_HEX_OCT 0x00040 /* Octal number (with a leading 0) */
|
---|
632 | #define NUMPRS_PARENS 0x00080 /* Parentheses for negative numbers */
|
---|
633 | #define NUMPRS_DECIMAL 0x00100 /* Decimal separator */
|
---|
634 | #define NUMPRS_THOUSANDS 0x00200 /* Thousands separator */
|
---|
635 | #define NUMPRS_CURRENCY 0x00400 /* Currency symbol */
|
---|
636 | #define NUMPRS_EXPONENT 0x00800 /* Exponent (e.g. "e-14") */
|
---|
637 | #define NUMPRS_USE_ALL 0x01000 /* Parse the entire string */
|
---|
638 | #define NUMPRS_STD 0x01FFF /* Standard flags for internal coercions (All of the above) */
|
---|
639 | #define NUMPRS_NEG 0x10000 /* Number is negative (dwOutFlags only) */
|
---|
640 | #define NUMPRS_INEXACT 0x20000 /* Number is represented inexactly (dwOutFlags only) */
|
---|
641 |
|
---|
642 | #define VTBIT_I1 (1 << VT_I1)
|
---|
643 | #define VTBIT_UI1 (1 << VT_UI1)
|
---|
644 | #define VTBIT_I2 (1 << VT_I2)
|
---|
645 | #define VTBIT_UI2 (1 << VT_UI2)
|
---|
646 | #define VTBIT_I4 (1 << VT_I4)
|
---|
647 | #define VTBIT_UI4 (1 << VT_UI4)
|
---|
648 | #define VTBIT_I8 (1 << VT_I8)
|
---|
649 | #define VTBIT_UI8 (1 << VT_UI8)
|
---|
650 | #define VTBIT_R4 (1 << VT_R4)
|
---|
651 | #define VTBIT_R8 (1 << VT_R8)
|
---|
652 | #define VTBIT_CY (1 << VT_CY)
|
---|
653 | #define VTBIT_DECIMAL (1 << VT_DECIMAL)
|
---|
654 |
|
---|
655 | HRESULT WINAPI VarParseNumFromStr(OLECHAR*,LCID,ULONG,NUMPARSE*,BYTE*);
|
---|
656 | HRESULT WINAPI VarNumFromParseNum(NUMPARSE*,BYTE*,ULONG,VARIANT*);
|
---|
657 |
|
---|
658 | INT WINAPI DosDateTimeToVariantTime(USHORT,USHORT,double*);
|
---|
659 | INT WINAPI VariantTimeToDosDateTime(double,USHORT*,USHORT*);
|
---|
660 |
|
---|
661 | INT WINAPI VariantTimeToSystemTime(DOUBLE,LPSYSTEMTIME);
|
---|
662 | INT WINAPI SystemTimeToVariantTime(LPSYSTEMTIME,double*);
|
---|
663 |
|
---|
664 | HRESULT WINAPI VarDateFromUdate(UDATE*,ULONG,DATE*);
|
---|
665 | HRESULT WINAPI VarDateFromUdateEx(UDATE*,LCID,ULONG,DATE*);
|
---|
666 | HRESULT WINAPI VarUdateFromDate(DATE,ULONG,UDATE*);
|
---|
667 |
|
---|
668 | /* Variant formatting */
|
---|
669 | HRESULT WINAPI VarWeekdayName(int,int,int,ULONG,BSTR*);
|
---|
670 | HRESULT WINAPI VarMonthName(int,int,ULONG,BSTR*);
|
---|
671 | HRESULT WINAPI GetAltMonthNames(LCID,LPOLESTR**);
|
---|
672 |
|
---|
673 | HRESULT WINAPI VarFormat(LPVARIANT,LPOLESTR,int,int,ULONG,BSTR*);
|
---|
674 | HRESULT WINAPI VarFormatCurrency(LPVARIANT,int,int,int,int,ULONG,BSTR*);
|
---|
675 | HRESULT WINAPI VarFormatDateTime(LPVARIANT,int,ULONG,BSTR*);
|
---|
676 | HRESULT WINAPI VarFormatNumber(LPVARIANT,int,int,int,int,ULONG,BSTR*);
|
---|
677 | HRESULT WINAPI VarFormatPercent(LPVARIANT,int,int,int,int,ULONG,BSTR*);
|
---|
678 |
|
---|
679 | HRESULT WINAPI VarFormatFromTokens(LPVARIANT,LPOLESTR,LPBYTE,ULONG,BSTR*,LCID);
|
---|
680 | HRESULT WINAPI VarTokenizeFormatString(LPOLESTR,LPBYTE,int,int,int,LCID,int*);
|
---|
681 |
|
---|
682 |
|
---|
683 | /*
|
---|
684 | * IDispatch types and helper functions
|
---|
685 | */
|
---|
686 |
|
---|
687 | /* A structure describing a single parameter to a com object method. */
|
---|
688 | typedef struct tagPARAMDATA
|
---|
689 | {
|
---|
690 | OLECHAR *szName; /* Name of Parameter */
|
---|
691 | VARTYPE vt; /* Type of Parameter */
|
---|
692 | } PARAMDATA, *LPPARAMDATA;
|
---|
693 |
|
---|
694 | /* A structure describing a single method of a com object. */
|
---|
695 | typedef struct tagMETHODDATA
|
---|
696 | {
|
---|
697 | OLECHAR *szName; /* Name of method */
|
---|
698 | PARAMDATA *ppdata; /* Parameters of the method */
|
---|
699 | DISPID dispid; /* Id of the method */
|
---|
700 | UINT iMeth; /* Vtable index of the method */
|
---|
701 | CALLCONV cc; /* Calling convention of the method */
|
---|
702 | UINT cArgs; /* Number of parameters in the method */
|
---|
703 | WORD wFlags; /* Type of the method (DISPATCH_ flags) */
|
---|
704 | VARTYPE vtReturn; /* Type of the return value */
|
---|
705 | } METHODDATA, *LPMETHODDATA;
|
---|
706 |
|
---|
707 | /* Structure describing a single com object */
|
---|
708 | typedef struct tagINTERFACEDATA
|
---|
709 | {
|
---|
710 | METHODDATA *pmethdata; /* Methods of the object */
|
---|
711 | UINT cMembers; /* Number of methods in the object */
|
---|
712 | } INTERFACEDATA, *LPINTERFACEDATA;
|
---|
713 |
|
---|
714 | typedef enum tagREGKIND
|
---|
715 | {
|
---|
716 | REGKIND_DEFAULT,
|
---|
717 | REGKIND_REGISTER,
|
---|
718 | REGKIND_NONE
|
---|
719 | } REGKIND;
|
---|
720 |
|
---|
721 | HRESULT WINAPI DispGetParam(DISPPARAMS*,UINT,VARTYPE,VARIANT*,UINT*);
|
---|
722 | HRESULT WINAPI DispGetIDsOfNames(ITypeInfo*,OLECHAR**,UINT,DISPID*);
|
---|
723 | HRESULT WINAPI DispInvoke(void*,ITypeInfo*,DISPID,WORD,DISPPARAMS*,VARIANT*,
|
---|
724 | EXCEPINFO*,UINT*);
|
---|
725 | HRESULT WINAPI CreateDispTypeInfo(INTERFACEDATA*,LCID,ITypeInfo**);
|
---|
726 | HRESULT WINAPI CreateStdDispatch(IUnknown*,void*,ITypeInfo*,IUnknown**);
|
---|
727 | HRESULT WINAPI DispCallFunc(void*,ULONG_PTR,CALLCONV,VARTYPE,UINT,VARTYPE*,
|
---|
728 | VARIANTARG**,VARIANT*);
|
---|
729 |
|
---|
730 |
|
---|
731 | /*
|
---|
732 | * TypeLib API
|
---|
733 | */
|
---|
734 |
|
---|
735 | ULONG WINAPI LHashValOfNameSysA(SYSKIND,LCID,LPCSTR);
|
---|
736 | ULONG WINAPI LHashValOfNameSys(SYSKIND,LCID,LPCOLESTR);
|
---|
737 |
|
---|
738 | #define LHashValOfName(lcid,name) LHashValOfNameSys(SYS_WIN32,lcid,name)
|
---|
739 | #define WHashValOfLHashVal(hash) ((USHORT)((hash) & 0xffff))
|
---|
740 | #define IsHashValCompatible(hash1,hash2) ((hash1) & 0xff0000 == (hash2) & 0xff0000)
|
---|
741 |
|
---|
742 | #define MEMBERID_NIL DISPID_UNKNOWN
|
---|
743 | #define ID_DEFAULTINST -2
|
---|
744 |
|
---|
745 | #define DISPATCH_METHOD 0x1
|
---|
746 | #define DISPATCH_PROPERTYGET 0x2
|
---|
747 | #define DISPATCH_PROPERTYPUT 0x4
|
---|
748 | #define DISPATCH_PROPERTYPUTREF 0x8
|
---|
749 |
|
---|
750 | #define LOAD_TLB_AS_32BIT 0x20
|
---|
751 | #define LOAD_TLB_AS_64BIT 0x40
|
---|
752 | #define MASK_TO_RESET_TLB_BITS ~(LOAD_TLB_AS_32BIT|LOAD_TLB_AS_64BIT)
|
---|
753 |
|
---|
754 | HRESULT WINAPI CreateTypeLib(SYSKIND,const OLECHAR*,ICreateTypeLib**);
|
---|
755 | HRESULT WINAPI CreateTypeLib2(SYSKIND,LPCOLESTR,ICreateTypeLib2**);
|
---|
756 | HRESULT WINAPI LoadRegTypeLib(REFGUID,WORD,WORD,LCID,ITypeLib**);
|
---|
757 | HRESULT WINAPI LoadTypeLib(const OLECHAR*,ITypeLib**);
|
---|
758 | HRESULT WINAPI LoadTypeLibEx(LPCOLESTR,REGKIND,ITypeLib**);
|
---|
759 | HRESULT WINAPI QueryPathOfRegTypeLib(REFGUID,WORD,WORD,LCID,LPBSTR);
|
---|
760 | HRESULT WINAPI RegisterTypeLib(ITypeLib*,OLECHAR*,OLECHAR*);
|
---|
761 | HRESULT WINAPI UnRegisterTypeLib(REFGUID,WORD,WORD,LCID,SYSKIND);
|
---|
762 | HRESULT WINAPI RegisterTypeLibForUser(ITypeLib*,OLECHAR*,OLECHAR*);
|
---|
763 | HRESULT WINAPI UnRegisterTypeLibForUser(REFGUID,WORD,WORD,LCID,SYSKIND);
|
---|
764 |
|
---|
765 | VOID WINAPI ClearCustData(LPCUSTDATA);
|
---|
766 |
|
---|
767 | #ifdef __cplusplus
|
---|
768 | } /* extern "C" */
|
---|
769 | #endif
|
---|
770 |
|
---|
771 |
|
---|
772 | #endif /*__WINE_OLEAUTO_H*/
|
---|