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