1 #ifndef __WINE_OLEAUTO_H
2 #define __WINE_OLEAUTO_H
5 #include "wine/obj_oleaut.h"
11 struct tagSAFEARRAYBOUND
;
19 BSTR16 WINAPI
SysAllocString16(LPCOLESTR16
);
20 BSTR WINAPI
SysAllocString(const OLECHAR
*);
21 INT16 WINAPI
SysReAllocString16(LPBSTR16
,LPCOLESTR16
);
22 INT WINAPI
SysReAllocString(LPBSTR
,const OLECHAR
*);
23 VOID WINAPI
SysFreeString16(BSTR16
);
24 VOID WINAPI
SysFreeString(BSTR
);
25 BSTR16 WINAPI
SysAllocStringLen16(const char*, int);
26 BSTR WINAPI
SysAllocStringLen(const OLECHAR
*, UINT
);
27 int WINAPI
SysReAllocStringLen16(BSTR16
*, const char*, int);
28 int WINAPI
SysReAllocStringLen(BSTR
*, const OLECHAR
*, UINT
);
29 int WINAPI
SysStringLen16(BSTR16
);
30 int WINAPI
SysStringLen(BSTR
);
32 /*****************************************************************
36 HRESULT WINAPI
SetErrorInfo(ULONG dwReserved
, IErrorInfo
*perrinfo
);
37 HRESULT WINAPI
GetErrorInfo(ULONG dwReserved
, IErrorInfo
**pperrinfo
);
38 HRESULT WINAPI
CreateErrorInfo(ICreateErrorInfo
**pperrinfo
);
40 /*****************************************************************
45 SafeArrayAllocDescriptor(UINT cDims
, struct tagSAFEARRAY
**ppsaOut
);
48 SafeArrayAllocData(struct tagSAFEARRAY
*psa
);
50 struct tagSAFEARRAY WINAPI
51 *SafeArrayCreate(VARTYPE vt
, UINT cDims
, struct tagSAFEARRAYBOUND
*rgsabound
);
54 SafeArrayDestroyDescriptor(struct tagSAFEARRAY
*psa
);
57 SafeArrayPutElement(struct tagSAFEARRAY
*psa
, LONG
*rgIndices
, void *pv
);
60 SafeArrayGetElement(struct tagSAFEARRAY
*psa
, LONG
*rgIndices
, void *pv
);
63 SafeArrayLock(struct tagSAFEARRAY
*psa
);
66 SafeArrayUnlock(struct tagSAFEARRAY
*psa
);
69 SafeArrayGetUBound(struct tagSAFEARRAY
*psa
, UINT nDim
, LONG
*plUbound
);
72 SafeArrayGetLBound(struct tagSAFEARRAY
*psa
, UINT nDim
, LONG
*plLbound
);
75 SafeArrayGetDim(struct tagSAFEARRAY
*psa
);
78 SafeArrayGetElemsize(struct tagSAFEARRAY
*psa
);
81 SafeArrayAccessData(struct tagSAFEARRAY
*psa
, void **ppvData
);
84 SafeArrayUnaccessData(struct tagSAFEARRAY
*psa
);
87 SafeArrayPtrOfIndex(struct tagSAFEARRAY
*psa
, LONG
*rgIndices
, void **ppvData
);
90 SafeArrayCopyData(struct tagSAFEARRAY
*psaSource
, struct tagSAFEARRAY
**psaTarget
);
93 SafeArrayDestroyData(struct tagSAFEARRAY
*psa
);
96 SafeArrayDestroy(struct tagSAFEARRAY
*psa
);
99 SafeArrayCopy(struct tagSAFEARRAY
*psa
, struct tagSAFEARRAY
**ppsaOut
);
101 struct tagSAFEARRAY WINAPI
102 *SafeArrayCreateVector(VARTYPE vt
, LONG lLbound
, ULONG cElements
);
105 SafeArrayRedim(struct tagSAFEARRAY
*psa
, struct tagSAFEARRAYBOUND
*psaboundNew
);
108 /* These are macros that help accessing the VARIANT date type.
111 #define V_UNION(A, B) ((A)->B)
112 #define V_VT(A) ((A)->vt)
114 #define V_UNION(A, B) ((A)->u.B)
115 #define V_VT(A) ((A)->vt)
116 #endif /* cplusplus */
118 #define V_ISBYREF(A) (V_VT(A)&VT_BYREF)
119 #define V_ISARRAY(A) (V_VT(A)&VT_ARRAY)
120 #define V_ISVECTOR(A) (V_VT(A)&VT_VECTOR)
121 #define V_NONE(A) V_I2(A)
123 #define V_UI1(A) V_UNION(A, bVal)
124 #define V_UI1REF(A) V_UNION(A, pbVal)
125 #define V_I2(A) V_UNION(A, iVal)
126 #define V_I2REF(A) V_UNION(A, piVal)
127 #define V_I4(A) V_UNION(A, lVal)
128 #define V_I4REF(A) V_UNION(A, plVal)
129 #define V_R4(A) V_UNION(A, fltVal)
130 #define V_R4REF(A) V_UNION(A, pfltVal)
131 #define V_R8(A) V_UNION(A, dblVal)
132 #define V_R8REF(A) V_UNION(A, pdblVal)
133 #define V_I1(A) V_UNION(A, cVal)
134 #define V_I1REF(A) V_UNION(A, pcVal)
135 #define V_UI2(A) V_UNION(A, uiVal)
136 #define V_UI2REF(A) V_UNION(A, puiVal)
137 #define V_UI4(A) V_UNION(A, ulVal)
138 #define V_UI4REF(A) V_UNION(A, pulVal)
139 #define V_INT(A) V_UNION(A, intVal)
140 #define V_INTREF(A) V_UNION(A, pintVal)
141 #define V_UINT(A) V_UNION(A, uintVal)
142 #define V_UINTREF(A) V_UNION(A, puintVal)
143 #define V_CY(A) V_UNION(A, cyVal)
144 #define V_CYREF(A) V_UNION(A, pcyVal)
145 #define V_DATE(A) V_UNION(A, date)
146 #define V_DATEREF(A) V_UNION(A, pdate)
147 #define V_BSTR(A) V_UNION(A, bstrVal)
148 #define V_BSTRREF(A) V_UNION(A, pbstrVal)
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_BOOL(A) V_UNION(A, boolVal)
154 #define V_BOOLREF(A) V_UNION(A, pboolVal)
155 #define V_UNKNOWN(A) V_UNION(A, punkVal)
156 #define V_UNKNOWNREF(A) V_UNION(A, ppunkVal)
157 #define V_VARIANTREF(A) V_UNION(A, pvarVal)
158 #define V_ARRAY(A) V_UNION(A, parray)
159 #define V_ARRAYREF(A) V_UNION(A, pparray)
160 #define V_BYREF(A) V_UNION(A, byref)
161 #define V_DECIMAL(A) V_UNION(A, decVal)
162 #define V_DECIMALREF(A) V_UNION(A, pdecVal)
168 void WINAPI
VariantInit(struct tagVARIANT
* pvarg
);
169 HRESULT WINAPI
VariantClear(struct tagVARIANT
* pvarg
);
170 HRESULT WINAPI
VariantCopy(struct tagVARIANT
* pvargDest
, struct tagVARIANT
* pvargSrc
);
171 HRESULT WINAPI
VariantCopyInd(struct tagVARIANT
* pvargDest
, struct tagVARIANT
* pvargSrc
);
172 HRESULT WINAPI
VariantChangeType(struct tagVARIANT
* pvargDest
, struct tagVARIANT
* pvargSrc
,
173 USHORT wFlags
, VARTYPE vt
);
174 HRESULT WINAPI
VariantChangeTypeEx(struct tagVARIANT
* pvargDest
, struct tagVARIANT
* pvargSrc
,
175 LCID lcid
, USHORT wFlags
, VARTYPE vt
);
178 * These flags are used for the VariantChangeType and VariantChangeTypeEx APIs.
182 * This one is of general use.
184 #define VARIANT_NOVALUEPROP 0x1
186 * This one is used for conversions of VT_BOOL to VT_BSTR,
187 * the API will convert to "True"|"False" instead of "-1"|"0".
189 #define VARIANT_ALPHABOOL 0x2
191 * This one is used for conversions to or from a VT_BSTR string,
192 * it passes LOCALE_NOUSEROVERRIDE to the core (low-level) coercion routines.
193 * This means it will use the system default locale settings instead of custom
196 #define VARIANT_NOUSEROVERRIDE 0x4
200 * VARTYPE Coercion API
203 /* Omits the date portion and return only the time value.
205 #define VAR_TIMEVALUEONLY ((DWORD)0x00000001)
206 /* Omits the time portion and return only the date value.
208 #define VAR_DATEVALUEONLY ((DWORD)0x00000002)
211 HRESULT WINAPI
VarUI1FromI2(short sIn
, BYTE
* pbOut
);
212 HRESULT WINAPI
VarUI1FromI4(LONG lIn
, BYTE
* pbOut
);
213 HRESULT WINAPI
VarUI1FromR4(FLOAT fltIn
, BYTE
* pbOut
);
214 HRESULT WINAPI
VarUI1FromR8(double dblIn
, BYTE
* pbOut
);
215 HRESULT WINAPI
VarUI1FromDate(DATE dateIn
, BYTE
* pbOut
);
216 HRESULT WINAPI
VarUI1FromBool(VARIANT_BOOL boolIn
, BYTE
* pbOut
);
217 HRESULT WINAPI
VarUI1FromI1(CHAR cIn
, BYTE
*pbOut
);
218 HRESULT WINAPI
VarUI1FromUI2(USHORT uiIn
, BYTE
*pbOut
);
219 HRESULT WINAPI
VarUI1FromUI4(ULONG ulIn
, BYTE
*pbOut
);
220 HRESULT WINAPI
VarUI1FromStr(OLECHAR
* strIn
, LCID lcid
, ULONG dwFlags
, BYTE
* pbOut
);
221 HRESULT WINAPI
VarUI1FromCy(CY cyIn
, BYTE
* pbOut
);
224 HRESULT WINAPI VarUI1FromDec32(DECIMAL*pdecIn, BYTE*pbOut);
225 HRESULT WINAPI VarUI1FromDisp32(IDispatch* pdispIn, LCID lcid, BYTE* pbOut);
228 HRESULT WINAPI
VarI2FromUI1(BYTE bIn
, short* psOut
);
229 HRESULT WINAPI
VarI2FromI4(LONG lIn
, short* psOut
);
230 HRESULT WINAPI
VarI2FromR4(FLOAT fltIn
, short* psOut
);
231 HRESULT WINAPI
VarI2FromR8(double dblIn
, short* psOut
);
232 HRESULT WINAPI
VarI2FromDate(DATE dateIn
, short* psOut
);
233 HRESULT WINAPI
VarI2FromBool(VARIANT_BOOL boolIn
, short* psOut
);
234 HRESULT WINAPI
VarI2FromI1(CHAR cIn
, short*psOut
);
235 HRESULT WINAPI
VarI2FromUI2(USHORT uiIn
, short*psOut
);
236 HRESULT WINAPI
VarI2FromUI4(ULONG ulIn
, short*psOut
);
237 HRESULT WINAPI
VarI2FromStr(OLECHAR
* strIn
, LCID lcid
, ULONG dwFlags
, short* psOut
);
238 HRESULT WINAPI
VarI2FromCy(CY cyIn
, short* psOut
);
240 HRESULT WINAPI VarI2FromDec32(DECIMAL*pdecIn, short*psOut);
241 HRESULT WINAPI VarI2FromDisp32(IDispatch* pdispIn, LCID lcid, short* psOut);
244 HRESULT WINAPI
VarI4FromUI1(BYTE bIn
, LONG
* plOut
);
245 HRESULT WINAPI
VarI4FromI2(short sIn
, LONG
* plOut
);
246 HRESULT WINAPI
VarI4FromR4(FLOAT fltIn
, LONG
* plOut
);
247 HRESULT WINAPI
VarI4FromR8(double dblIn
, LONG
* plOut
);
248 HRESULT WINAPI
VarI4FromDate(DATE dateIn
, LONG
* plOut
);
249 HRESULT WINAPI
VarI4FromBool(VARIANT_BOOL boolIn
, LONG
* plOut
);
250 HRESULT WINAPI
VarI4FromI1(CHAR cIn
, LONG
* plOut
);
251 HRESULT WINAPI
VarI4FromUI2(USHORT uiIn
, LONG
*plOut
);
252 HRESULT WINAPI
VarI4FromUI4(ULONG ulIn
, LONG
*plOut
);
253 HRESULT WINAPI
VarI4FromStr(OLECHAR
* strIn
, LCID lcid
, ULONG dwFlags
, LONG
* plOut
);
254 HRESULT WINAPI
VarI4FromCy(CY cyIn
, LONG
* plOut
);
256 HRESULT WINAPI VarI4FromDec32(DECIMAL*pdecIn, LONG*plOut);
257 HRESULT WINAPI VarI4FromDisp32(IDispatch* pdispIn, LCID lcid, LONG* plOut);
260 HRESULT WINAPI
VarR4FromUI1(BYTE bIn
, FLOAT
* pfltOut
);
261 HRESULT WINAPI
VarR4FromI2(short sIn
, FLOAT
* pfltOut
);
262 HRESULT WINAPI
VarR4FromI4(LONG lIn
, FLOAT
* pfltOut
);
263 HRESULT WINAPI
VarR4FromR8(double dblIn
, FLOAT
* pfltOut
);
264 HRESULT WINAPI
VarR4FromDate(DATE dateIn
, FLOAT
* pfltOut
);
265 HRESULT WINAPI
VarR4FromBool(VARIANT_BOOL boolIn
, FLOAT
* pfltOut
);
266 HRESULT WINAPI
VarR4FromI1(CHAR cIn
, FLOAT
*pfltOut
);
267 HRESULT WINAPI
VarR4FromUI2(USHORT uiIn
, FLOAT
*pfltOut
);
268 HRESULT WINAPI
VarR4FromUI4(ULONG ulIn
, FLOAT
*pfltOut
);
269 HRESULT WINAPI
VarR4FromStr(OLECHAR
* strIn
, LCID lcid
, ULONG dwFlags
, FLOAT
*pfltOut
);
270 HRESULT WINAPI
VarR4FromCy(CY cyIn
, FLOAT
* pfltOut
);
272 HRESULT WINAPI VarR4FromDec32(DECIMAL*pdecIn, FLOAT*pfltOut);
273 HRESULT WINAPI VarR4FromDisp32(IDispatch* pdispIn, LCID lcid, FLOAT* pfltOut);
276 HRESULT WINAPI
VarR8FromUI1(BYTE bIn
, double* pdblOut
);
277 HRESULT WINAPI
VarR8FromI2(short sIn
, double* pdblOut
);
278 HRESULT WINAPI
VarR8FromI4(LONG lIn
, double* pdblOut
);
279 HRESULT WINAPI
VarR8FromR4(FLOAT fltIn
, double* pdblOut
);
280 HRESULT WINAPI
VarR8FromDate(DATE dateIn
, double* pdblOut
);
281 HRESULT WINAPI
VarR8FromBool(VARIANT_BOOL boolIn
, double* pdblOut
);
282 HRESULT WINAPI
VarR8FromI1(CHAR cIn
, double*pdblOut
);
283 HRESULT WINAPI
VarR8FromUI2(USHORT uiIn
, double*pdblOut
);
284 HRESULT WINAPI
VarR8FromUI4(ULONG ulIn
, double*pdblOut
);
285 HRESULT WINAPI
VarR8FromStr(OLECHAR
*strIn
, LCID lcid
, ULONG dwFlags
, double*pdblOut
);
286 HRESULT WINAPI
VarR8FromCy(CY cyIn
, double* pdblOut
);
288 HRESULT WINAPI VarR8FromDec32(DECIMAL*pdecIn, double*pdblOut);
289 HRESULT WINAPI VarR8FromDisp32(IDispatch* pdispIn, LCID lcid, double* pdblOut);
292 HRESULT WINAPI
VarDateFromUI1(BYTE bIn
, DATE
* pdateOut
);
293 HRESULT WINAPI
VarDateFromI2(short sIn
, DATE
* pdateOut
);
294 HRESULT WINAPI
VarDateFromI4(LONG lIn
, DATE
* pdateOut
);
295 HRESULT WINAPI
VarDateFromR4(FLOAT fltIn
, DATE
* pdateOut
);
296 HRESULT WINAPI
VarDateFromR8(double dblIn
, DATE
* pdateOut
);
297 HRESULT WINAPI
VarDateFromStr(OLECHAR
*strIn
, LCID lcid
, ULONG dwFlags
, DATE
*pdateOut
);
298 HRESULT WINAPI
VarDateFromI1(CHAR cIn
, DATE
*pdateOut
);
299 HRESULT WINAPI
VarDateFromUI2(USHORT uiIn
, DATE
*pdateOut
);
300 HRESULT WINAPI
VarDateFromUI4(ULONG ulIn
, DATE
*pdateOut
);
301 HRESULT WINAPI
VarDateFromBool(VARIANT_BOOL boolIn
, DATE
* pdateOut
);
302 HRESULT WINAPI
VarDateFromCy(CY cyIn
, DATE
* pdateOut
);
304 HRESULT WINAPI VarDateFromDec32(DECIMAL*pdecIn, DATE*pdateOut);
305 HRESULT WINAPI VarDateFromDisp32(IDispatch* pdispIn, LCID lcid, DATE* pdateOut);
307 HRESULT WINAPI
VarCyFromUI1(BYTE bIn
, CY
* pcyOut
);
308 HRESULT WINAPI
VarCyFromI2(short sIn
, CY
* pcyOut
);
309 HRESULT WINAPI
VarCyFromI4(LONG lIn
, CY
* pcyOut
);
310 HRESULT WINAPI
VarCyFromR4(FLOAT fltIn
, CY
* pcyOut
);
311 HRESULT WINAPI
VarCyFromR8(double dblIn
, CY
* pcyOut
);
312 HRESULT WINAPI
VarCyFromDate(DATE dateIn
, CY
* pcyOut
);
313 HRESULT WINAPI
VarCyFromStr(OLECHAR
*strIn
, LCID lcid
, ULONG dwFlags
, CY
*pcyOut
);
314 HRESULT WINAPI
VarCyFromBool(VARIANT_BOOL boolIn
, CY
* pcyOut
);
315 HRESULT WINAPI
VarCyFromI1(CHAR cIn
, CY
*pcyOut
);
316 HRESULT WINAPI
VarCyFromUI2(USHORT uiIn
, CY
*pcyOut
);
317 HRESULT WINAPI
VarCyFromUI4(ULONG ulIn
, CY
*pcyOut
);
319 HRESULT WINAPI VarCyFromDec32(DECIMAL*pdecIn, CY*pcyOut);
320 HRESULT WINAPI VarCyFromStr32(OLECHAR32* strIn, LCID lcid, ULONG dwFlags, CY* pcyOut);
321 HRESULT WINAPI VarCyFromDisp32(IDispatch* pdispIn, LCID lcid, CY* pcyOut);
324 HRESULT WINAPI
VarBstrFromUI1(BYTE bVal
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
325 HRESULT WINAPI
VarBstrFromI2(short iVal
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
326 HRESULT WINAPI
VarBstrFromI4(LONG lIn
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
327 HRESULT WINAPI
VarBstrFromR4(FLOAT fltIn
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
328 HRESULT WINAPI
VarBstrFromR8(double dblIn
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
329 HRESULT WINAPI
VarBstrFromCy(CY cyIn
, LCID lcid
, ULONG dwFlags
, BSTR
*pbstrOut
);
330 HRESULT WINAPI
VarBstrFromDate(DATE dateIn
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
331 HRESULT WINAPI
VarBstrFromBool(VARIANT_BOOL boolIn
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
332 HRESULT WINAPI
VarBstrFromI1(CHAR cIn
, LCID lcid
, ULONG dwFlags
, BSTR
*pbstrOut
);
333 HRESULT WINAPI
VarBstrFromUI2(USHORT uiIn
, LCID lcid
, ULONG dwFlags
, BSTR
*pbstrOut
);
334 HRESULT WINAPI
VarBstrFromUI4(ULONG ulIn
, LCID lcid
, ULONG dwFlags
, BSTR
*pbstrOut
);
335 HRESULT WINAPI
VarBstrFromCy(CY cyIn
, LCID lcid
, ULONG dwFlags
, BSTR
* pbstrOut
);
337 HRESULT WINAPI VarBstrFromDec32(DECIMAL*pdecIn, LCID lcid, ULONG dwFlags, BSTR32*pbstrOut);
338 HRESULT WINAPI VarBstrFromDisp32(IDispatch* pdispIn, LCID lcid, ULONG dwFlags, BSTR32* pbstrOut);
341 HRESULT WINAPI
VarBoolFromUI1(BYTE bIn
, VARIANT_BOOL
* pboolOut
);
342 HRESULT WINAPI
VarBoolFromI2(short sIn
, VARIANT_BOOL
* pboolOut
);
343 HRESULT WINAPI
VarBoolFromI4(LONG lIn
, VARIANT_BOOL
* pboolOut
);
344 HRESULT WINAPI
VarBoolFromR4(FLOAT fltIn
, VARIANT_BOOL
* pboolOut
);
345 HRESULT WINAPI
VarBoolFromR8(double dblIn
, VARIANT_BOOL
* pboolOut
);
346 HRESULT WINAPI
VarBoolFromDate(DATE dateIn
, VARIANT_BOOL
* pboolOut
);
347 HRESULT WINAPI
VarBoolFromStr(OLECHAR
* strIn
, LCID lcid
, ULONG dwFlags
, VARIANT_BOOL
* pboolOut
);
348 HRESULT WINAPI
VarBoolFromI1(CHAR cIn
, VARIANT_BOOL
*pboolOut
);
349 HRESULT WINAPI
VarBoolFromUI2(USHORT uiIn
, VARIANT_BOOL
*pboolOut
);
350 HRESULT WINAPI
VarBoolFromUI4(ULONG ulIn
, VARIANT_BOOL
*pboolOut
);
351 HRESULT WINAPI
VarBoolFromCy(CY cyIn
, VARIANT_BOOL
* pboolOut
);
353 HRESULT WINAPI VarBoolFromDec32(DECIMAL*pdecIn, VARIANT_BOOL*pboolOut);
354 HRESULT WINAPI VarBoolFromDisp32(IDispatch* pdispIn, LCID lcid, VARIANT_BOOL* pboolOut);
357 HRESULT WINAPI
VarI1FromUI1(BYTE bIn
, CHAR
*pcOut
);
358 HRESULT WINAPI
VarI1FromI2(short uiIn
, CHAR
*pcOut
);
359 HRESULT WINAPI
VarI1FromI4(LONG lIn
, CHAR
*pcOut
);
360 HRESULT WINAPI
VarI1FromR4(FLOAT fltIn
, CHAR
*pcOut
);
361 HRESULT WINAPI
VarI1FromR8(double dblIn
, CHAR
*pcOut
);
362 HRESULT WINAPI
VarI1FromDate(DATE dateIn
, CHAR
*pcOut
);
363 HRESULT WINAPI
VarI1FromStr(OLECHAR
*strIn
, LCID lcid
, ULONG dwFlags
, CHAR
*pcOut
);
364 HRESULT WINAPI
VarI1FromBool(VARIANT_BOOL boolIn
, CHAR
*pcOut
);
365 HRESULT WINAPI
VarI1FromUI2(USHORT uiIn
, CHAR
*pcOut
);
366 HRESULT WINAPI
VarI1FromUI4(ULONG ulIn
, CHAR
*pcOut
);
367 HRESULT WINAPI
VarI1FromCy(CY cyIn
, CHAR
*pcOut
);
369 HRESULT WINAPI VarI1FromDec32(DECIMAL*pdecIn, CHAR*pcOut);
370 HRESULT WINAPI VarI1FromDisp32(IDispatch*pdispIn, LCID lcid, CHAR*pcOut);
373 HRESULT WINAPI
VarUI2FromUI1(BYTE bIn
, USHORT
*puiOut
);
374 HRESULT WINAPI
VarUI2FromI2(short uiIn
, USHORT
*puiOut
);
375 HRESULT WINAPI
VarUI2FromI4(LONG lIn
, USHORT
*puiOut
);
376 HRESULT WINAPI
VarUI2FromR4(FLOAT fltIn
, USHORT
*puiOut
);
377 HRESULT WINAPI
VarUI2FromR8(double dblIn
, USHORT
*puiOut
);
378 HRESULT WINAPI
VarUI2FromDate(DATE dateIn
, USHORT
*puiOut
);
379 HRESULT WINAPI
VarUI2FromStr(OLECHAR
*strIn
, LCID lcid
, ULONG dwFlags
, USHORT
*puiOut
);
380 HRESULT WINAPI
VarUI2FromBool(VARIANT_BOOL boolIn
, USHORT
*puiOut
);
381 HRESULT WINAPI
VarUI2FromI1(CHAR cIn
, USHORT
*puiOut
);
382 HRESULT WINAPI
VarUI2FromUI4(ULONG ulIn
, USHORT
*puiOut
);
383 HRESULT WINAPI
VarUI2FromCy(CY cyIn
, USHORT
*puiOut
);
385 HRESULT WINAPI VarUI2FromDec32(DECIMAL*pdecIn, USHORT*puiOut);
386 HRESULT WINAPI VarUI2FromDisp32(IDispatch*pdispIn, LCID lcid, USHORT*puiOut);
389 HRESULT WINAPI
VarUI4FromStr(OLECHAR
*strIn
, LCID lcid
, ULONG dwFlags
, ULONG
*pulOut
);
390 HRESULT WINAPI
VarUI4FromUI1(BYTE bIn
, ULONG
*pulOut
);
391 HRESULT WINAPI
VarUI4FromI2(short uiIn
, ULONG
*pulOut
);
392 HRESULT WINAPI
VarUI4FromI4(LONG lIn
, ULONG
*pulOut
);
393 HRESULT WINAPI
VarUI4FromR4(FLOAT fltIn
, ULONG
*pulOut
);
394 HRESULT WINAPI
VarUI4FromR8(double dblIn
, ULONG
*pulOut
);
395 HRESULT WINAPI
VarUI4FromDate(DATE dateIn
, ULONG
*pulOut
);
396 HRESULT WINAPI
VarUI4FromBool(VARIANT_BOOL boolIn
, ULONG
*pulOut
);
397 HRESULT WINAPI
VarUI4FromI1(CHAR cIn
, ULONG
*pulOut
);
398 HRESULT WINAPI
VarUI4FromUI2(USHORT uiIn
, ULONG
*pulOut
);
399 HRESULT WINAPI
VarUI4FromCy(CY cyIn
, ULONG
*pulOut
);
401 HRESULT WINAPI VarUI4FromDec32(DECIMAL*pdecIn, ULONG*pulOut);
402 HRESULT WINAPI VarUI4FromDisp32(IDispatch*pdispIn, LCID lcid, ULONG*pulOut);
404 HRESULT WINAPI VarDecFromUI132(BYTE bIn, DECIMAL*pdecOut);
405 HRESULT WINAPI VarDecFromI232(short uiIn, DECIMAL*pdecOut);
406 HRESULT WINAPI VarDecFromI432(LONG lIn, DECIMAL*pdecOut);
407 HRESULT WINAPI VarDecFromR432(FLOAT fltIn, DECIMAL*pdecOut);
408 HRESULT WINAPI VarDecFromR832(double dblIn, DECIMAL*pdecOut);
409 HRESULT WINAPI VarDecFromDate32(DATE dateIn, DECIMAL*pdecOut);
410 HRESULT WINAPI VarDecFromStr32(OLECHAR32*strIn, LCID lcid, ULONG dwFlags, DECIMAL*pdecOut);
411 HRESULT WINAPI VarDecFromBool32(VARIANT_BOOL boolIn, DECIMAL*pdecOut);
412 HRESULT WINAPI VarDecFromI132(CHAR cIn, DECIMAL*pdecOut);
413 HRESULT WINAPI VarDecFromUI232(USHORT uiIn, DECIMAL*pdecOut);
414 HRESULT WINAPI VarDecFromUI432(ULONG ulIn, DECIMAL*pdecOut);
415 HRESULT WINAPI VarDecFromCy32(CY cyIn, DECIMAL*pdecOut);
416 HRESULT WINAPI VarDecFromDisp32(IDispatch*pdispIn, LCID lcid, DECIMAL*pdecOut);
421 #define VarUI4FromUI4( in, pOut ) ( *(pOut) = (in) )
422 #define VarI4FromI4( in, pOut ) ( *(pOut) = (in) )
424 #define VarUI1FromInt VarUI1FromI4
425 #define VarUI1FromUint VarUI1FromUI4
426 #define VarI2FromInt VarI2FromI4
427 #define VarI2FromUint VarI2FromUI4
428 #define VarI4FromInt VarI4FromI432
429 #define VarI4FromUint VarI4FromUI4
430 #define VarR4FromInt VarR4FromI4
431 #define VarR4FromUint VarR4FromUI4
432 #define VarR8FromInt VarR8FromI4
433 #define VarR8FromUint VarR8FromUI4
434 #define VarDateFromInt VarDateFromI4
435 #define VarDateFromUint VarDateFromUI4
436 #define VarCyFromInt VarCyFromI4
437 #define VarCyFromUint VarCyFromUI4
438 #define VarBstrFromInt VarBstrFromI4
439 #define VarBstrFromUint VarBstrFromUI4
440 #define VarBoolFromInt VarBoolFromI4
441 #define VarBoolFromUint VarBoolFromUI4
442 #define VarI1FromInt VarI1FromI4
443 #define VarI1FromUint VarI1FromUI4
444 #define VarUI2FromInt VarUI2FromI4
445 #define VarUI2FromUint VarUI2FromUI4
446 #define VarUI4FromInt VarUI4FromI4
447 #define VarUI4FromUint VarUI4FromUI432
448 #define VarDecFromInt VarDecFromI432
449 #define VarDecFromUint VarDecFromUI432
450 #define VarIntFromUI1 VarI4FromUI1
451 #define VarIntFromI2 VarI4FromI2
452 #define VarIntFromI4 VarI4FromI432
453 #define VarIntFromR4 VarI4FromR4
454 #define VarIntFromR8 VarI4FromR8
455 #define VarIntFromDate VarI4FromDate
456 #define VarIntFromCy VarI4FromCy
457 #define VarIntFromStr VarI4FromStr
458 #define VarIntFromDisp VarI4FromDisp32
459 #define VarIntFromBool VarI4FromBool
460 #define VarIntFromI1 VarI4FromI1
461 #define VarIntFromUI2 VarI4FromUI2
462 #define VarIntFromUI4 VarI4FromUI4
463 #define VarIntFromDec VarI4FromDec32
464 #define VarIntFromUint VarI4FromUI4
465 #define VarUintFromUI1 VarUI4FromUI1
466 #define VarUintFromI2 VarUI4FromI2
467 #define VarUintFromI4 VarUI4FromI4
468 #define VarUintFromR4 VarUI4FromR4
469 #define VarUintFromR8 VarUI4FromR8
470 #define VarUintFromDate VarUI4FromDate
471 #define VarUintFromCy VarUI4FromCy
472 #define VarUintFromStr VarUI4FromStr
473 #define VarUintFromDisp VarUI4FromDisp32
474 #define VarUintFromBool VarUI4FromBool
475 #define VarUintFromI1 VarUI4FromI1
476 #define VarUintFromUI2 VarUI4FromUI2
477 #define VarUintFromUI4 VarUI4FromUI432
478 #define VarUintFromDec VarUI4FromDec32
479 #define VarUintFromInt VarUI4FromI4
485 typedef struct tagPARAMDATA
{
486 OLECHAR16
* szName
; /* parameter name */
487 VARTYPE vt
; /* parameter type */
488 } PARAMDATA
, * LPPARAMDATA
;
490 typedef struct tagMETHODDATA
{
491 OLECHAR16
* szName
; /* method name */
492 PARAMDATA
* ppdata
; /* pointer to an array of PARAMDATAs */
493 DISPID dispid
; /* method ID */
494 UINT16 iMeth
; /* method index */
495 CALLCONV cc
; /* calling convention */
496 UINT16 cArgs
; /* count of arguments */
497 WORD wFlags
; /* same wFlags as on IDispatch::Invoke() */
499 } METHODDATA
, * LPMETHODDATA
;
501 typedef struct tagINTERFACEDATA
{
502 METHODDATA
* pmethdata
; /* pointer to an array of METHODDATAs */
503 UINT16 cMembers
; /* count of members */
504 } INTERFACEDATA
, * LPINTERFACEDATA
;
506 typedef enum tagREGKIND
514 HRESULT WINAPI
LoadTypeLib(OLECHAR
*szFile
, ITypeLib
**pptLib
);
515 HRESULT WINAPI
LoadTypeLibEx(LPOLESTR szFile
, REGKIND regKind
, ITypeLib
**pptLib
);
516 INT WINAPI
DosDateTimeToVariantTime(USHORT
,USHORT
,DATE
*);
518 #endif /*__WINE_OLEAUTO_H*/