source: trunk/include/win/oleauto.h@ 4114

Last change on this file since 4114 was 3850, checked in by sandervl, 25 years ago

YD: header updates

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