VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/oleauto.h@ 33252

Last change on this file since 33252 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette