1 #ifndef __WINE_OLEAUTO_H
2 #define __WINE_OLEAUTO_H
10 #include "wine/obj_oleaut.h"
13 BSTR16 WINAPI
SysAllocString16(LPCOLESTR16
);
14 BSTR WINAPI
SysAllocString(const OLECHAR
*);
15 INT16 WINAPI
SysReAllocString16(LPBSTR16
,LPCOLESTR16
);
16 INT WINAPI
SysReAllocString(LPBSTR
,const OLECHAR
*);
17 VOID WINAPI
SysFreeString16(BSTR16
);
18 VOID WINAPI
SysFreeString(BSTR
);
19 BSTR16 WINAPI
SysAllocStringLen16(const char*, int);
20 BSTR WINAPI
SysAllocStringLen(const OLECHAR
*, UINT
);
21 int WINAPI
SysReAllocStringLen16(BSTR16
*, const char*, int);
22 int WINAPI
SysReAllocStringLen(BSTR
*, const OLECHAR
*, UINT
);
23 int WINAPI
SysStringLen16(BSTR16
);
24 int WINAPI
SysStringLen(BSTR
);
26 /*****************************************************************
31 SafeArrayAllocDescriptor(UINT cDims
, SAFEARRAY
**ppsaOut
);
34 SafeArrayAllocData(SAFEARRAY
*psa
);
37 SafeArrayCreate(VARTYPE vt
, UINT cDims
, SAFEARRAYBOUND
*rgsabound
);
40 SafeArrayDestroyDescriptor(SAFEARRAY
*psa
);
43 SafeArrayPutElement(SAFEARRAY
*psa
, LONG
*rgIndices
, void *pv
);
46 SafeArrayGetElement(SAFEARRAY
*psa
, LONG
*rgIndices
, void *pv
);
49 SafeArrayLock(SAFEARRAY
*psa
);
52 SafeArrayUnlock(SAFEARRAY
*psa
);
55 SafeArrayGetUBound(SAFEARRAY
*psa
, UINT nDim
, LONG
*plUbound
);
58 SafeArrayGetLBound(SAFEARRAY
*psa
, UINT nDim
, LONG
*plLbound
);
61 SafeArrayGetDim(SAFEARRAY
*psa
);
64 SafeArrayGetElemsize(SAFEARRAY
*psa
);
67 SafeArrayAccessData(SAFEARRAY
*psa
, void **ppvData
);
70 SafeArrayUnaccessData(SAFEARRAY
*psa
);
73 SafeArrayPtrOfIndex(SAFEARRAY
*psa
, LONG
*rgIndices
, void **ppvData
);
76 SafeArrayCopyData(SAFEARRAY
*psaSource
, SAFEARRAY
**psaTarget
);
79 SafeArrayDestroyData(SAFEARRAY
*psa
);
82 SafeArrayDestroy(SAFEARRAY
*psa
);
85 SafeArrayCopy(SAFEARRAY
*psa
, SAFEARRAY
**ppsaOut
);
88 SafeArrayCreateVector(VARTYPE vt
, LONG lLbound
, ULONG cElements
);
91 SafeArrayRedim(SAFEARRAY
*psa
, SAFEARRAYBOUND
*psaboundNew
);
94 /* These are macros that help accessing the VARIANT date type.
97 #define V_UNION(A, B) ((A)->B)
98 #define V_VT(A) ((A)->vt)
100 #define V_UNION(A, B) ((A)->u.B)
101 #define V_VT(A) ((A)->vt)
102 #endif /* cplusplus */
104 #define V_ISBYREF(A) (V_VT(A)&VT_BYREF)
105 #define V_ISARRAY(A) (V_VT(A)&VT_ARRAY)
106 #define V_ISVECTOR(A) (V_VT(A)&VT_VECTOR)
107 #define V_NONE(A) V_I2(A)
109 #define V_UI1(A) V_UNION(A, bVal)
110 #define V_UI1REF(A) V_UNION(A, pbVal)
111 #define V_I2(A) V_UNION(A, iVal)
112 #define V_I2REF(A) V_UNION(A, piVal)
113 #define V_I4(A) V_UNION(A, lVal)
114 #define V_I4REF(A) V_UNION(A, plVal)
115 #define V_R4(A) V_UNION(A, fltVal)
116 #define V_R4REF(A) V_UNION(A, pfltVal)
117 #define V_R8(A) V_UNION(A, dblVal)
118 #define V_R8REF(A) V_UNION(A, pdblVal)
119 #define V_I1(A) V_UNION(A, cVal)
120 #define V_I1REF(A) V_UNION(A, pcVal)
121 #define V_UI2(A) V_UNION(A, uiVal)
122 #define V_UI2REF(A) V_UNION(A, puiVal)
123 #define V_UI4(A) V_UNION(A, ulVal)
124 #define V_UI4REF(A) V_UNION(A, pulVal)
125 #define V_INT(A) V_UNION(A, intVal)
126 #define V_INTREF(A) V_UNION(A, pintVal)
127 #define V_UINT(A) V_UNION(A, uintVal)
128 #define V_UINTREF(A) V_UNION(A, puintVal)
129 #define V_CY(A) V_UNION(A, cyVal)
130 #define V_CYREF(A) V_UNION(A, pcyVal)
131 #define V_DATE(A) V_UNION(A, date)
132 #define V_DATEREF(A) V_UNION(A, pdate)
133 #define V_BSTR(A) V_UNION(A, bstrVal)
134 #define V_BSTRREF(A) V_UNION(A, pbstrVal)
135 #define V_DISPATCH(A) V_UNION(A, pdispVal)
136 #define V_DISPATCHREF(A) V_UNION(A, ppdispVal)
137 #define V_ERROR(A) V_UNION(A, scode)
138 #define V_ERRORREF(A) V_UNION(A, pscode)
139 #define V_BOOL(A) V_UNION(A, boolVal)
140 #define V_BOOLREF(A) V_UNION(A, pboolVal)
141 #define V_UNKNOWN(A) V_UNION(A, punkVal)
142 #define V_UNKNOWNREF(A) V_UNION(A, ppunkVal)
143 #define V_VARIANTREF(A) V_UNION(A, pvarVal)
144 #define V_ARRAY(A) V_UNION(A, parray)
145 #define V_ARRAYREF(A) V_UNION(A, pparray)
146 #define V_BYREF(A) V_UNION(A, byref)
147 #define V_DECIMAL(A) V_UNION(A, decVal)
148 #define V_DECIMALREF(A) V_UNION(A, pdecVal)
154 void WINAPI
VariantInit(VARIANTARG
* pvarg
);
155 HRESULT WINAPI
VariantClear(VARIANTARG
* pvarg
);
156 HRESULT WINAPI
VariantCopy(VARIANTARG
* pvargDest
, VARIANTARG
* pvargSrc
);
157 HRESULT WINAPI
VariantCopyInd(VARIANT
* pvargDest
, VARIANTARG
* pvargSrc
);
158 HRESULT WINAPI
VariantChangeType(VARIANTARG
* pvargDest
, VARIANTARG
* pvargSrc
,
159 USHORT wFlags
, VARTYPE vt
);
160 HRESULT WINAPI
VariantChangeTypeEx(VARIANTARG
* pvargDest
, VARIANTARG
* pvargSrc
,
161 LCID lcid
, USHORT wFlags
, VARTYPE vt
);
164 * These flags are used for the VariantChangeType and VariantChangeTypeEx APIs.
168 * This one is of general use.
170 #define VARIANT_NOVALUEPROP 0x1
172 * This one is used for conversions of VT_BOOL to VT_BSTR,
173 * the API will convert to "True"|"False" instead of "-1"|"0".
175 #define VARIANT_ALPHABOOL 0x2
177 * This one is used for conversions to or from a VT_BSTR string,
178 * it passes LOCALE_NOUSEROVERRIDE to the core (low-level) coercion routines.
179 * This means it will use the system default locale settings instead of custom
182 #define VARIANT_NOUSEROVERRIDE 0x4
186 * VARTYPE Coercion API
189 /* Omits the date portion and return only the time value.
191 #define VAR_TIMEVALUEONLY ((DWORD)0x00000001)
192 /* Omits the time portion and return only the date value.
194 #define VAR_DATEVALUEONLY ((DWORD)0x00000002)
197 HRESULT WINAPI
VarUI1FromI2(short sIn
, BYTE
* pbOut
);
198 HRESULT WINAPI
VarUI1FromI4(LONG lIn
, BYTE
* pbOut
);
199 HRESULT WINAPI
VarUI1FromR4(FLOAT fltIn
, BYTE
* pbOut
);
200 HRESULT WINAPI
VarUI1FromR8(double dblIn
, BYTE
* pbOut
);
201 HRESULT WINAPI
VarUI1FromDate(DATE dateIn
, BYTE
* pbOut
);
202 HRESULT WINAPI
VarUI1FromBool(VARIANT_BOOL boolIn
, BYTE
* pbOut
);
203 HRESULT WINAPI
VarUI1FromI1(CHAR cIn
, BYTE
*pbOut
);
204 HRESULT WINAPI
VarUI1FromUI2(USHORT uiIn
, BYTE
*pbOut
);
205 HRESULT WINAPI
VarUI1FromUI4(ULONG ulIn
, BYTE
*pbOut
);
206 HRESULT WINAPI
VarUI1FromStr(OLECHAR
* strIn
, LCID lcid
, ULONG dwFlags
, BYTE
* pbOut
);
207 HRESULT WINAPI
VarUI1FromCy(CY cyIn
, BYTE
* pbOut
);
210 HRESULT WINAPI VarUI1FromDec32(DECIMAL*pdecIn, BYTE*pbOut);
211 HRESULT WINAPI VarUI1FromDisp32(IDispatch* pdispIn, LCID lcid, BYTE* pbOut);
214 HRESULT WINAPI
VarI2FromUI1(BYTE bIn
, short* psOut
);
215 HRESULT WINAPI
VarI2FromI4(LONG lIn
, short* psOut
);
216 HRESULT WINAPI
VarI2FromR4(FLOAT fltIn
, short* psOut
);
217 HRESULT WINAPI
VarI2FromR8(double dblIn
, short* psOut
);
218 HRESULT WINAPI
VarI2FromDate(DATE dateIn
, short* psOut
);
219 HRESULT WINAPI
VarI2FromBool(VARIANT_BOOL boolIn
, short* psOut
);
220 HRESULT WINAPI
VarI2FromI1(CHAR cIn
, short*psOut
);
221 HRESULT WINAPI
VarI2FromUI2(USHORT uiIn
, short*psOut
);
222 HRESULT WINAPI
VarI2FromUI4(ULONG ulIn
, short*psOut
);
223 HRESULT WINAPI
VarI2FromStr(OLECHAR
* strIn
, LCID lcid
, ULONG dwFlags
, short* psOut
);
224 HRESULT WINAPI
VarI2FromCy(CY cyIn
, short* psOut
);
226 HRESULT WINAPI VarI2FromDec32(DECIMAL*pdecIn, short*psOut);
227 HRESULT WINAPI VarI2FromDisp32(IDispatch* pdispIn, LCID lcid, short* psOut);
230 HRESULT WINAPI
VarI4FromUI1(BYTE bIn
, LONG
* plOut
);
231 HRESULT WINAPI
VarI4FromI2(short sIn
, LONG
* plOut
);
232 HRESULT WINAPI
VarI4FromR4(FLOAT fltIn
, LONG
* plOut
);
233 HRESULT WINAPI
VarI4FromR8(double dblIn
, LONG
* plOut
);
234 HRESULT WINAPI
VarI4FromDate(DATE dateIn
, LONG
* plOut
);
235 HRESULT WINAPI
VarI4FromBool(VARIANT_BOOL boolIn
, LONG
* plOut
);
236 HRESULT WINAPI
VarI4FromI1(CHAR cIn
, LONG
* plOut
);
237 HRESULT WINAPI
VarI4FromUI2(USHORT uiIn
, LONG
*plOut
);
238 HRESULT WINAPI
VarI4FromUI4(ULONG ulIn
, LONG
*plOut
);
239 HRESULT WINAPI
VarI4FromStr(OLECHAR
* strIn
, LCID lcid
, ULONG dwFlags
, LONG
* plOut
);
240 HRESULT WINAPI
VarI4FromCy(CY cyIn
, LONG
* plOut
);
242 HRESULT WINAPI VarI4FromDec32(DECIMAL*pdecIn, LONG*plOut);
243 HRESULT WINAPI VarI4FromDisp32(IDispatch* pdispIn, LCID lcid, LONG* plOut);
246 HRESULT WINAPI
VarR4FromUI1(BYTE bIn
, FLOAT
* pfltOut
);
247 HRESULT WINAPI
VarR4FromI2(short sIn
, FLOAT
* pfltOut
);
248 HRESULT WINAPI
VarR4FromI4(LONG lIn
, FLOAT
* pfltOut
);
249 HRESULT WINAPI
VarR4FromR8(double dblIn
, FLOAT
* pfltOut
);
250 HRESULT WINAPI
VarR4FromDate(DATE dateIn
, FLOAT
* pfltOut
);
251 HRESULT WINAPI
VarR4FromBool(VARIANT_BOOL boolIn
, FLOAT
* pfltOut
);
252 HRESULT WINAPI
VarR4FromI1(CHAR cIn
, FLOAT
*pfltOut
);
253 HRESULT WINAPI
VarR4FromUI2(USHORT uiIn
, FLOAT
*pfltOut
);
254 HRESULT WINAPI
VarR4FromUI4(ULONG ulIn
, FLOAT
*pfltOut
);
255 HRESULT WINAPI
VarR4FromStr(OLECHAR
* strIn
, LCID lcid
, ULONG dwFlags
, FLOAT
*pfltOut
);
256 HRESULT WINAPI
VarR4FromCy(CY cyIn
, FLOAT
* pfltOut
);
258 HRESULT WINAPI VarR4FromDec32(DECIMAL*pdecIn, FLOAT*pfltOut);
259 HRESULT WINAPI VarR4FromDisp32(IDispatch* pdispIn, LCID lcid, FLOAT* pfltOut);
262 HRESULT WINAPI
VarR8FromUI1(BYTE bIn
, double* pdblOut
);
263 HRESULT WINAPI
VarR8FromI2(short sIn
, double* pdblOut
);
264 HRESULT WINAPI
VarR8FromI4(LONG lIn
, double* pdblOut
);
265 HRESULT WINAPI
VarR8FromR4(FLOAT fltIn
, double* pdblOut
);
266 HRESULT WINAPI
VarR8FromDate(DATE dateIn
, double* pdblOut
);
267 HRESULT WINAPI
VarR8FromBool(VARIANT_BOOL boolIn
, double* pdblOut
);
268 HRESULT WINAPI
VarR8FromI1(CHAR cIn
, double*pdblOut
);
269 HRESULT WINAPI
VarR8FromUI2(USHORT uiIn
, double*pdblOut
);
270 HRESULT WINAPI
VarR8FromUI4(ULONG ulIn
, double*pdblOut
);
271 HRESULT WINAPI
VarR8FromStr(OLECHAR
*strIn
, LCID lcid
, ULONG dwFlags
, double*pdblOut
);
272 HRESULT WINAPI
VarR8FromCy(CY cyIn
, double* pdblOut
);
274 HRESULT WINAPI VarR8FromDec32(DECIMAL*pdecIn, double*pdblOut);
275 HRESULT WINAPI VarR8FromDisp32(IDispatch* pdispIn, LCID lcid, double* pdblOut);
278 HRESULT WINAPI
VarDateFromUI1(BYTE bIn
, DATE
* pdateOut
);
279 HRESULT WINAPI
VarDateFromI2(short sIn
, DATE
* pdateOut
);
280 HRESULT WINAPI
VarDateFromI4(LONG lIn
, DATE
* pdateOut
);
281 HRESULT WINAPI
VarDateFromR4(FLOAT fltIn
, DATE
* pdateOut
);
282 HRESULT WINAPI
VarDateFromR8(double dblIn
, DATE
* pdateOut
);
283 HRESULT WINAPI
VarDateFromStr(OLECHAR
*strIn
, LCID lcid
, ULONG dwFlags
, DATE
*pdateOut
);
284 HRESULT WINAPI
VarDateFromI1(CHAR cIn
, DATE
*pdateOut
);
285 HRESULT WINAPI
VarDateFromUI2(USHORT uiIn
, DATE
*pdateOut
);
286 HRESULT WINAPI
VarDateFromUI4(ULONG ulIn
, DATE
*pdateOut
);
287 HRESULT WINAPI
VarDateFromBool(VARIANT_BOOL boolIn
, DATE
* pdateOut
);
288 HRESULT WINAPI
VarDateFromCy(CY cyIn
, DATE
* pdateOut
);
290 HRESULT WINAPI VarDateFromDec32(DECIMAL*pdecIn, DATE*pdateOut);
291 HRESULT WINAPI VarDateFromDisp32(IDispatch* pdispIn, LCID lcid, DATE* pdateOut);
293 HRESULT WINAPI
VarCyFromUI1(BYTE bIn
, CY
* pcyOut
);
294 HRESULT WINAPI
VarCyFromI2(short sIn
, CY
* pcyOut
);
295 HRESULT WINAPI
VarCyFromI4(LONG lIn
, CY
* pcyOut
);
296 HRESULT WINAPI
VarCyFromR4(FLOAT fltIn
, CY
* pcyOut
);
297 HRESULT WINAPI
VarCyFromR8(double dblIn
, CY
* pcyOut
);
298 HRESULT WINAPI
VarCyFromDate(DATE dateIn
, CY
* pcyOut
);
299 HRESULT WINAPI
VarCyFromStr(OLECHAR
*strIn
, LCID lcid
, ULONG dwFlags
, CY
*pcyOut
);
300 HRESULT WINAPI
VarCyFromBool(VARIANT_BOOL boolIn
, CY
* pcyOut
);
301 HRESULT WINAPI
VarCyFromI1(CHAR cIn
, CY
*pcyOut
);
302 HRESULT WINAPI
VarCyFromUI2(USHORT uiIn
, CY
*pcyOut
);
303 HRESULT WINAPI
VarCyFromUI4(ULONG ulIn
, CY
*pcyOut
);
305 HRESULT WINAPI VarCyFromDec32(DECIMAL*pdecIn, CY*pcyOut);
306 HRESULT WINAPI VarCyFromStr32(OLECHAR32* strIn, LCID lcid, ULONG dwFlags, CY* pcyOut);
307 HRESULT WINAPI VarCyFromDisp32(IDispatch* pdispIn, LCID lcid, CY* pcyOut);
310 HRESULT WINAPI
VarBstrFromUI1(BYTE bVal
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
311 HRESULT WINAPI
VarBstrFromI2(short iVal
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
312 HRESULT WINAPI
VarBstrFromI4(LONG lIn
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
313 HRESULT WINAPI
VarBstrFromR4(FLOAT fltIn
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
314 HRESULT WINAPI
VarBstrFromR8(double dblIn
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
315 HRESULT WINAPI
VarBstrFromCy(CY cyIn
, LCID lcid
, ULONG dwFlags
, BSTR
*pbstrOut
);
316 HRESULT WINAPI
VarBstrFromDate(DATE dateIn
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
317 HRESULT WINAPI
VarBstrFromBool(VARIANT_BOOL boolIn
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
318 HRESULT WINAPI
VarBstrFromI1(CHAR cIn
, LCID lcid
, ULONG dwFlags
, BSTR
*pbstrOut
);
319 HRESULT WINAPI
VarBstrFromUI2(USHORT uiIn
, LCID lcid
, ULONG dwFlags
, BSTR
*pbstrOut
);
320 HRESULT WINAPI
VarBstrFromUI4(ULONG ulIn
, LCID lcid
, ULONG dwFlags
, BSTR
*pbstrOut
);
321 HRESULT WINAPI
VarBstrFromCy(CY cyIn
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
323 HRESULT WINAPI VarBstrFromDec32(DECIMAL*pdecIn, LCID lcid, ULONG dwFlags, BSTR32*pbstrOut);
324 HRESULT WINAPI VarBstrFromDisp32(IDispatch* pdispIn, LCID lcid, ULONG dwFlags, BSTR32* pbstrOut);
327 HRESULT WINAPI
VarBoolFromUI1(BYTE bIn
, VARIANT_BOOL
* pboolOut
);
328 HRESULT WINAPI
VarBoolFromI2(short sIn
, VARIANT_BOOL
* pboolOut
);
329 HRESULT WINAPI
VarBoolFromI4(LONG lIn
, VARIANT_BOOL
* pboolOut
);
330 HRESULT WINAPI
VarBoolFromR4(FLOAT fltIn
, VARIANT_BOOL
* pboolOut
);
331 HRESULT WINAPI
VarBoolFromR8(double dblIn
, VARIANT_BOOL
* pboolOut
);
332 HRESULT WINAPI
VarBoolFromDate(DATE dateIn
, VARIANT_BOOL
* pboolOut
);
333 HRESULT WINAPI
VarBoolFromStr(OLECHAR
* strIn
, LCID lcid
, ULONG dwFlags
, VARIANT_BOOL
* pboolOut
);
334 HRESULT WINAPI
VarBoolFromI1(CHAR cIn
, VARIANT_BOOL
*pboolOut
);
335 HRESULT WINAPI
VarBoolFromUI2(USHORT uiIn
, VARIANT_BOOL
*pboolOut
);
336 HRESULT WINAPI
VarBoolFromUI4(ULONG ulIn
, VARIANT_BOOL
*pboolOut
);
337 HRESULT WINAPI
VarBoolFromCy(CY cyIn
, VARIANT_BOOL
* pboolOut
);
339 HRESULT WINAPI VarBoolFromDec32(DECIMAL*pdecIn, VARIANT_BOOL*pboolOut);
340 HRESULT WINAPI VarBoolFromDisp32(IDispatch* pdispIn, LCID lcid, VARIANT_BOOL* pboolOut);
343 HRESULT WINAPI
VarI1FromUI1(BYTE bIn
, CHAR
*pcOut
);
344 HRESULT WINAPI
VarI1FromI2(short uiIn
, CHAR
*pcOut
);
345 HRESULT WINAPI
VarI1FromI4(LONG lIn
, CHAR
*pcOut
);
346 HRESULT WINAPI
VarI1FromR4(FLOAT fltIn
, CHAR
*pcOut
);
347 HRESULT WINAPI
VarI1FromR8(double dblIn
, CHAR
*pcOut
);
348 HRESULT WINAPI
VarI1FromDate(DATE dateIn
, CHAR
*pcOut
);
349 HRESULT WINAPI
VarI1FromStr(OLECHAR
*strIn
, LCID lcid
, ULONG dwFlags
, CHAR
*pcOut
);
350 HRESULT WINAPI
VarI1FromBool(VARIANT_BOOL boolIn
, CHAR
*pcOut
);
351 HRESULT WINAPI
VarI1FromUI2(USHORT uiIn
, CHAR
*pcOut
);
352 HRESULT WINAPI
VarI1FromUI4(ULONG ulIn
, CHAR
*pcOut
);
353 HRESULT WINAPI
VarI1FromCy(CY cyIn
, CHAR
*pcOut
);
355 HRESULT WINAPI VarI1FromDec32(DECIMAL*pdecIn, CHAR*pcOut);
356 HRESULT WINAPI VarI1FromDisp32(IDispatch*pdispIn, LCID lcid, CHAR*pcOut);
359 HRESULT WINAPI
VarUI2FromUI1(BYTE bIn
, USHORT
*puiOut
);
360 HRESULT WINAPI
VarUI2FromI2(short uiIn
, USHORT
*puiOut
);
361 HRESULT WINAPI
VarUI2FromI4(LONG lIn
, USHORT
*puiOut
);
362 HRESULT WINAPI
VarUI2FromR4(FLOAT fltIn
, USHORT
*puiOut
);
363 HRESULT WINAPI
VarUI2FromR8(double dblIn
, USHORT
*puiOut
);
364 HRESULT WINAPI
VarUI2FromDate(DATE dateIn
, USHORT
*puiOut
);
365 HRESULT WINAPI
VarUI2FromStr(OLECHAR
*strIn
, LCID lcid
, ULONG dwFlags
, USHORT
*puiOut
);
366 HRESULT WINAPI
VarUI2FromBool(VARIANT_BOOL boolIn
, USHORT
*puiOut
);
367 HRESULT WINAPI
VarUI2FromI1(CHAR cIn
, USHORT
*puiOut
);
368 HRESULT WINAPI
VarUI2FromUI4(ULONG ulIn
, USHORT
*puiOut
);
369 HRESULT WINAPI
VarUI2FromCy(CY cyIn
, USHORT
*puiOut
);
371 HRESULT WINAPI VarUI2FromDec32(DECIMAL*pdecIn, USHORT*puiOut);
372 HRESULT WINAPI VarUI2FromDisp32(IDispatch*pdispIn, LCID lcid, USHORT*puiOut);
375 HRESULT WINAPI
VarUI4FromStr(OLECHAR
*strIn
, LCID lcid
, ULONG dwFlags
, ULONG
*pulOut
);
376 HRESULT WINAPI
VarUI4FromUI1(BYTE bIn
, ULONG
*pulOut
);
377 HRESULT WINAPI
VarUI4FromI2(short uiIn
, ULONG
*pulOut
);
378 HRESULT WINAPI
VarUI4FromI4(LONG lIn
, ULONG
*pulOut
);
379 HRESULT WINAPI
VarUI4FromR4(FLOAT fltIn
, ULONG
*pulOut
);
380 HRESULT WINAPI
VarUI4FromR8(double dblIn
, ULONG
*pulOut
);
381 HRESULT WINAPI
VarUI4FromDate(DATE dateIn
, ULONG
*pulOut
);
382 HRESULT WINAPI
VarUI4FromBool(VARIANT_BOOL boolIn
, ULONG
*pulOut
);
383 HRESULT WINAPI
VarUI4FromI1(CHAR cIn
, ULONG
*pulOut
);
384 HRESULT WINAPI
VarUI4FromUI2(USHORT uiIn
, ULONG
*pulOut
);
385 HRESULT WINAPI
VarUI4FromCy(CY cyIn
, ULONG
*pulOut
);
387 HRESULT WINAPI VarUI4FromDec32(DECIMAL*pdecIn, ULONG*pulOut);
388 HRESULT WINAPI VarUI4FromDisp32(IDispatch*pdispIn, LCID lcid, ULONG*pulOut);
390 HRESULT WINAPI VarDecFromUI132(BYTE bIn, DECIMAL*pdecOut);
391 HRESULT WINAPI VarDecFromI232(short uiIn, DECIMAL*pdecOut);
392 HRESULT WINAPI VarDecFromI432(LONG lIn, DECIMAL*pdecOut);
393 HRESULT WINAPI VarDecFromR432(FLOAT fltIn, DECIMAL*pdecOut);
394 HRESULT WINAPI VarDecFromR832(double dblIn, DECIMAL*pdecOut);
395 HRESULT WINAPI VarDecFromDate32(DATE dateIn, DECIMAL*pdecOut);
396 HRESULT WINAPI VarDecFromStr32(OLECHAR32*strIn, LCID lcid, ULONG dwFlags, DECIMAL*pdecOut);
397 HRESULT WINAPI VarDecFromBool32(VARIANT_BOOL boolIn, DECIMAL*pdecOut);
398 HRESULT WINAPI VarDecFromI132(CHAR cIn, DECIMAL*pdecOut);
399 HRESULT WINAPI VarDecFromUI232(USHORT uiIn, DECIMAL*pdecOut);
400 HRESULT WINAPI VarDecFromUI432(ULONG ulIn, DECIMAL*pdecOut);
401 HRESULT WINAPI VarDecFromCy32(CY cyIn, DECIMAL*pdecOut);
402 HRESULT WINAPI VarDecFromDisp32(IDispatch*pdispIn, LCID lcid, DECIMAL*pdecOut);
407 #define VarUI4FromUI4( in, pOut ) ( *(pOut) = (in) )
408 #define VarI4FromI4( in, pOut ) ( *(pOut) = (in) )
410 #define VarUI1FromInt VarUI1FromI4
411 #define VarUI1FromUint VarUI1FromUI4
412 #define VarI2FromInt VarI2FromI4
413 #define VarI2FromUint VarI2FromUI4
414 #define VarI4FromInt VarI4FromI432
415 #define VarI4FromUint VarI4FromUI4
416 #define VarR4FromInt VarR4FromI4
417 #define VarR4FromUint VarR4FromUI4
418 #define VarR8FromInt VarR8FromI4
419 #define VarR8FromUint VarR8FromUI4
420 #define VarDateFromInt VarDateFromI4
421 #define VarDateFromUint VarDateFromUI4
422 #define VarCyFromInt VarCyFromI4
423 #define VarCyFromUint VarCyFromUI4
424 #define VarBstrFromInt VarBstrFromI4
425 #define VarBstrFromUint VarBstrFromUI4
426 #define VarBoolFromInt VarBoolFromI4
427 #define VarBoolFromUint VarBoolFromUI4
428 #define VarI1FromInt VarI1FromI4
429 #define VarI1FromUint VarI1FromUI4
430 #define VarUI2FromInt VarUI2FromI4
431 #define VarUI2FromUint VarUI2FromUI4
432 #define VarUI4FromInt VarUI4FromI4
433 #define VarUI4FromUint VarUI4FromUI432
434 #define VarDecFromInt VarDecFromI432
435 #define VarDecFromUint VarDecFromUI432
436 #define VarIntFromUI1 VarI4FromUI1
437 #define VarIntFromI2 VarI4FromI2
438 #define VarIntFromI4 VarI4FromI432
439 #define VarIntFromR4 VarI4FromR4
440 #define VarIntFromR8 VarI4FromR8
441 #define VarIntFromDate VarI4FromDate
442 #define VarIntFromCy VarI4FromCy
443 #define VarIntFromStr VarI4FromStr
444 #define VarIntFromDisp VarI4FromDisp32
445 #define VarIntFromBool VarI4FromBool
446 #define VarIntFromI1 VarI4FromI1
447 #define VarIntFromUI2 VarI4FromUI2
448 #define VarIntFromUI4 VarI4FromUI4
449 #define VarIntFromDec VarI4FromDec32
450 #define VarIntFromUint VarI4FromUI4
451 #define VarUintFromUI1 VarUI4FromUI1
452 #define VarUintFromI2 VarUI4FromI2
453 #define VarUintFromI4 VarUI4FromI4
454 #define VarUintFromR4 VarUI4FromR4
455 #define VarUintFromR8 VarUI4FromR8
456 #define VarUintFromDate VarUI4FromDate
457 #define VarUintFromCy VarUI4FromCy
458 #define VarUintFromStr VarUI4FromStr
459 #define VarUintFromDisp VarUI4FromDisp32
460 #define VarUintFromBool VarUI4FromBool
461 #define VarUintFromI1 VarUI4FromI1
462 #define VarUintFromUI2 VarUI4FromUI2
463 #define VarUintFromUI4 VarUI4FromUI432
464 #define VarUintFromDec VarUI4FromDec32
465 #define VarUintFromInt VarUI4FromI4
471 typedef struct tagPARAMDATA
{
472 OLECHAR16
* szName
; /* parameter name */
473 VARTYPE vt
; /* parameter type */
474 } PARAMDATA
, * LPPARAMDATA
;
476 typedef struct tagMETHODDATA
{
477 OLECHAR16
* szName
; /* method name */
478 PARAMDATA
* ppdata
; /* pointer to an array of PARAMDATAs */
479 DISPID dispid
; /* method ID */
480 UINT16 iMeth
; /* method index */
481 CALLCONV cc
; /* calling convention */
482 UINT16 cArgs
; /* count of arguments */
483 WORD wFlags
; /* same wFlags as on IDispatch::Invoke() */
485 } METHODDATA
, * LPMETHODDATA
;
487 typedef struct tagINTERFACEDATA
{
488 METHODDATA
* pmethdata
; /* pointer to an array of METHODDATAs */
489 UINT16 cMembers
; /* count of members */
490 } INTERFACEDATA
, * LPINTERFACEDATA
;
492 #endif /*__WINE_OLEAUTO_H*/