4 #pragma GCC system_header
7 #ifndef COM_NO_WINDOWS_H
15 #ifdef NONAMELESSUNION
16 #define __VARIANT_NAME_1 n1
17 #define __VARIANT_NAME_2 n2
18 #define __VARIANT_NAME_3 n3
19 #define __VARIANT_NAME_4 n4
22 #define __VARIANT_NAME_1
23 #define __VARIANT_NAME_2
24 #define __VARIANT_NAME_3
25 #define __VARIANT_NAME_4
27 #define DISPID_UNKNOWN (-1)
28 #define DISPID_VALUE (0)
29 #define DISPID_PROPERTYPUT (-3)
30 #define DISPID_NEWENUM (-4)
31 #define DISPID_EVALUATE (-5)
32 #define DISPID_CONSTRUCTOR (-6)
33 #define DISPID_DESTRUCTOR (-7)
34 #define DISPID_COLLECT (-8)
36 #define FADF_STATIC (2)
37 #define FADF_EMBEDDED (4)
38 #define FADF_FIXEDSIZE (16)
39 #define FADF_RECORD (32)
40 #define FADF_HAVEIID (64)
41 #define FADF_HAVEVARTYPE (128)
42 #define FADF_BSTR (256)
43 #define FADF_UNKNOWN (512)
44 #define FADF_DISPATCH (1024)
45 #define FADF_VARIANT (2048)
46 #define FADF_RESERVED (0xf0e8)
47 #define FADF_DATADELETED (0x1000)
48 #define FADF_CREATEVECTOR (0x2000)
49 #define PARAMFLAG_NONE (0)
50 #define PARAMFLAG_FIN (1)
51 #define PARAMFLAG_FOUT (2)
52 #define PARAMFLAG_FLCID (4)
53 #define PARAMFLAG_FRETVAL (8)
54 #define PARAMFLAG_FOPT (16)
55 #define PARAMFLAG_FHASDEFAULT (32)
56 #define IDLFLAG_NONE PARAMFLAG_NONE
57 #define IDLFLAG_FIN PARAMFLAG_FIN
58 #define IDLFLAG_FOUT PARAMFLAG_FOUT
59 #define IDLFLAG_FLCID PARAMFLAG_FLCID
60 #define IDLFLAG_FRETVAL PARAMFLAG_FRETVAL
61 #define IMPLTYPEFLAG_FDEFAULT 1
62 #define IMPLTYPEFLAG_FSOURCE 2
63 #define IMPLTYPEFLAG_FRESTRICTED 4
64 #define IMPLTYPEFLAG_FDEFAULTVTABLE 8
66 typedef _COM_interface ITypeLib
*LPTYPELIB
;
67 typedef _COM_interface ITypeLib2
*LPTYPELIB2
;
68 typedef _COM_interface ICreateTypeInfo
*LPCREATETYPEINFO
;
69 typedef _COM_interface ICreateTypeInfo2
*LPCREATETYPEINFO2
;
70 typedef _COM_interface ICreateTypeLib
*LPCREATETYPELIB
;
71 typedef _COM_interface ICreateTypeLib2
*LPCREATETYPELIB2
;
72 typedef _COM_interface ITypeComp
*LPTYPECOMP
;
73 typedef _COM_interface ITypeInfo
*LPTYPEINFO
;
74 typedef _COM_interface ITypeInfo2
*LPTYPEINFO2
;
75 typedef _COM_interface IErrorInfo
*LPERRORINFO
;
76 typedef _COM_interface IDispatch
*LPDISPATCH
;
77 typedef _COM_interface IEnumVARIANT
*LPENUMVARIANT
;
78 typedef _COM_interface ICreateErrorInfo
*LPCREATEERRORINFO
;
79 typedef _COM_interface ISupportErrorInfo
*LPSUPPORTERRORINFO
;
80 typedef _COM_interface IRecordInfo
*LPRECORDINFO
;
82 extern const IID IID_ITypeLib
;
83 extern const IID IID_ITypeLib2
;
84 extern const IID IID_ICreateTypeInfo
;
85 extern const IID IID_ICreateTypeInfo2
;
86 extern const IID IID_ICreateTypeLib
;
87 extern const IID IID_ICreateTypeLib2
;
88 extern const IID IID_ITypeInfo
;
89 extern const IID IID_ITypeInfo2
;
90 extern const IID IID_IErrorInfo
;
91 extern const IID IID_IDispatch
;
92 extern const IID IID_IEnumVARIANT
;
93 extern const IID IID_ICreateErrorInfo
;
94 extern const IID IID_ISupportErrorInfo
;
95 extern const IID IID_IRecordInfo
;
96 extern const IID IID_ITypeMarshal
;
98 typedef enum tagSYSKIND
{
99 SYS_WIN16
,SYS_WIN32
,SYS_MAC
101 typedef enum tagLIBFLAGS
{
102 LIBFLAG_FRESTRICTED
=1,LIBFLAG_FCONTROL
=2,LIBFLAG_FHIDDEN
=4,
103 LIBFLAG_FHASDISKIMAGE
=8
105 typedef struct tagTLIBATTR
{
112 } TLIBATTR
,*LPTLIBATTR
;
114 typedef struct tagSAFEARRAYBOUND
{
117 }SAFEARRAYBOUND
,*LPSAFEARRAYBOUND
;
118 typedef struct _wireSAFEARR_BSTR
123 typedef struct _wireSAFEARR_UNKNOWN
{
125 IUnknown
**apUnknown
;
127 typedef struct _wireSAFEARR_DISPATCH
{
129 LPDISPATCH
*apDispatch
;
131 typedef struct _wireSAFEARR_VARIANT
{
133 struct _wireVARIANT
*aVariant
;
135 typedef enum tagSF_TYPE
{
142 SF_UNKNOWN
=VT_UNKNOWN
,
143 SF_DISPATCH
=VT_DISPATCH
,
144 SF_VARIANT
=VT_VARIANT
146 typedef struct _wireBRECORD
{
149 LPRECORDINFO
* pRecInfo
;
152 typedef struct _wireSAFEARR_BRECORD
{
154 wireBRECORD
* aRecord
;
156 typedef struct _wireSAFEARR_HAVEIID
{
158 IUnknown
** apUnknown
;
161 typedef struct _wireSAFEARRAY_UNION
{
164 SAFEARR_BSTR BstrStr
;
165 SAFEARR_UNKNOWN UnknownStr
;
166 SAFEARR_DISPATCH DispatchStr
;
167 SAFEARR_VARIANT VariantStr
;
168 SAFEARR_BRECORD RecordStr
;
169 SAFEARR_HAVEIID HaveIidStr
;
170 BYTE_SIZEDARR ByteStr
;
171 WORD_SIZEDARR WordStr
;
172 DWORD_SIZEDARR LongStr
;
173 HYPER_SIZEDARR HyperStr
;
176 typedef struct _wireSAFEARRAY
{
181 SAFEARRAYUNION uArrayStructs
;
182 SAFEARRAYBOUND rgsabound
[1];
184 typedef wireSAFEARRAY
*wirePSAFEARRAY
;
185 typedef struct tagSAFEARRAY
{
191 SAFEARRAYBOUND rgsabound
[1];
192 }SAFEARRAY
,*LPSAFEARRAY
;
193 #if defined (__GNUC__) && !defined (NONAMELESSUNION)
194 __extension__
/* no named members */
196 typedef struct tagVARIANT
{
197 _ANONYMOUS_UNION
union {
198 struct __tagVARIANT
{
203 _ANONYMOUS_UNION
union {
210 VARIANT_BOOL boolVal
;
218 unsigned char *pbVal
;
224 VARIANT_BOOL
*pboolVal
;
225 _VARIANT_BOOL
*pbool
;
231 LPDISPATCH
*ppdispVal
;
233 struct tagVARIANT
*pvarVal
;
248 _ANONYMOUS_STRUCT
struct {
250 struct IRecordInfo
*pRecInfo
;
256 } VARIANT
,*LPVARIANT
;
257 typedef VARIANT VARIANTARG
;
258 typedef VARIANT
*LPVARIANTARG
;
259 typedef struct _wireVARIANT
{
266 _ANONYMOUS_UNION
union {
273 VARIANT_BOOL boolVal
;
280 wirePSAFEARRAY parray
;
287 VARIANT_BOOL
*pboolVal
;
293 LPDISPATCH
*ppdispVal
;
294 wirePSAFEARRAY
*pparray
;
295 struct _wireVARIANT
*pvarVal
;
312 typedef DISPID MEMBERID
;
313 typedef DWORD HREFTYPE
;
314 typedef enum tagTYPEKIND
{
315 TKIND_ENUM
,TKIND_RECORD
,TKIND_MODULE
,TKIND_INTERFACE
,TKIND_DISPATCH
,
316 TKIND_COCLASS
,TKIND_ALIAS
,TKIND_UNION
,TKIND_MAX
318 typedef struct tagTYPEDESC
{
319 _ANONYMOUS_UNION
union {
320 struct tagTYPEDESC
*lptdesc
;
321 struct tagARRAYDESC
*lpadesc
;
326 typedef struct tagARRAYDESC
{
329 SAFEARRAYBOUND rgbounds
[1];
331 typedef struct tagPARAMDESCEX
{
333 VARIANTARG varDefaultValue
;
334 }PARAMDESCEX
,*LPPARAMDESCEX
;
335 typedef struct tagPARAMDESC
{
336 LPPARAMDESCEX pparamdescex
;
338 }PARAMDESC
,*LPPARAMDESC
;
339 typedef struct tagIDLDESC
{
343 typedef struct tagELEMDESC
{
345 _ANONYMOUS_UNION
union {
349 } ELEMDESC
,*LPELEMDESC
;
350 typedef struct tagTYPEATTR
{
354 MEMBERID memidConstructor
;
355 MEMBERID memidDestructor
;
356 LPOLESTR lpstrSchema
;
357 ULONG cbSizeInstance
;
369 }TYPEATTR
,*LPTYPEATTR
;
370 typedef struct tagDISPPARAMS
{
372 DISPID
*rgdispidNamedArgs
;
376 typedef struct tagEXCEPINFO
{
380 BSTR bstrDescription
;
384 HRESULT(__stdcall
* pfnDeferredFillIn
)(struct tagEXCEPINFO
*);
386 } EXCEPINFO
,*LPEXCEPINFO
;
387 typedef enum tagCALLCONV
{
388 CC_FASTCALL
,CC_CDECL
,CC_MSCPASCAL
,CC_PASCAL
=CC_MSCPASCAL
,
389 CC_MACPASCAL
,CC_STDCALL
,CC_FPFASTCALL
,CC_SYSCALL
,CC_MPWCDECL
,
390 CC_MPWPASCAL
,CC_MAX
=CC_MPWPASCAL
392 typedef enum tagFUNCKIND
{
393 FUNC_VIRTUAL
,FUNC_PUREVIRTUAL
,FUNC_NONVIRTUAL
,
394 FUNC_STATIC
,FUNC_DISPATCH
396 typedef enum tagINVOKEKIND
{
397 INVOKE_FUNC
=1,INVOKE_PROPERTYGET
,INVOKE_PROPERTYPUT
=4,
398 INVOKE_PROPERTYPUTREF
=8
400 typedef struct tagFUNCDESC
{
403 ELEMDESC
*lprgelemdescParam
;
411 ELEMDESC elemdescFunc
;
413 }FUNCDESC
,*LPFUNCDESC
;
414 typedef enum tagVARKIND
{
415 VAR_PERINSTANCE
,VAR_STATIC
,VAR_CONST
,VAR_DISPATCH
417 typedef struct tagVARDESC
{
419 LPOLESTR lpstrSchema
;
420 _ANONYMOUS_UNION
union {
424 ELEMDESC elemdescVar
;
427 } VARDESC
,*LPVARDESC
;
428 typedef enum tagTYPEFLAGS
{
429 TYPEFLAG_FAPPOBJECT
=1,TYPEFLAG_FCANCREATE
=2,TYPEFLAG_FLICENSED
=4,
430 TYPEFLAG_FPREDECLID
=8,TYPEFLAG_FHIDDEN
=16,TYPEFLAG_FCONTROL
=32,
431 TYPEFLAG_FDUAL
=64,TYPEFLAG_FNONEXTENSIBLE
=128,
432 TYPEFLAG_FOLEAUTOMATION
=256,TYPEFLAG_FRESTRICTED
=512,
433 TYPEFLAG_FAGGREGATABLE
=1024,TYPEFLAG_FREPLACEABLE
=2048,
434 TYPEFLAG_FDISPATCHABLE
=4096,TYPEFLAG_FREVERSEBIND
=8192
436 typedef enum tagFUNCFLAGS
{
437 FUNCFLAG_FRESTRICTED
=1,FUNCFLAG_FSOURCE
=2,FUNCFLAG_FBINDABLE
=4,
438 FUNCFLAG_FREQUESTEDIT
=8,FUNCFLAG_FDISPLAYBIND
=16,FUNCFLAG_FDEFAULTBIND
=32,
439 FUNCFLAG_FHIDDEN
=64,FUNCFLAG_FUSESGETLASTERROR
=128,FUNCFLAG_FDEFAULTCOLLELEM
=256,
440 FUNCFLAG_FUIDEFAULT
=512,FUNCFLAG_FNONBROWSABLE
=1024,FUNCFLAG_FREPLACEABLE
=2048,
441 FUNCFLAG_FIMMEDIATEBIND
=4096
443 typedef enum tagVARFLAGS
{
444 VARFLAG_FREADONLY
=1,VARFLAG_FSOURCE
=2,VARFLAG_FBINDABLE
=4,VARFLAG_FREQUESTEDIT
=8,
445 VARFLAG_FDISPLAYBIND
=16,VARFLAG_FDEFAULTBIND
=32,VARFLAG_FHIDDEN
=64,VARFLAG_FRESTRICTED
=128,
446 VARFLAG_FDEFAULTCOLLELEM
=256,VARFLAG_FUIDEFAULT
=512,VARFLAG_FNONBROWSABLE
=1024,
447 VARFLAG_FREPLACEABLE
=2048,VARFLAG_FIMMEDIATEBIND
=4096
449 typedef struct tagCLEANLOCALSTORAGE
{
450 IUnknown
*pInterface
;
454 typedef struct tagCUSTDATAITEM
{
457 } CUSTDATAITEM
,*LPCUSTDATAITEM
;
458 typedef struct tagCUSTDATA
{
460 LPCUSTDATAITEM prgCustData
;
461 } CUSTDATA
,*LPCUSTDATA
;
463 typedef enum tagDESCKIND
{
464 DESCKIND_NONE
=0,DESCKIND_FUNCDESC
=DESCKIND_NONE
+1,
465 DESCKIND_VARDESC
=DESCKIND_FUNCDESC
+1,DESCKIND_TYPECOMP
=DESCKIND_VARDESC
+1,
466 DESCKIND_IMPLICITAPPOBJ
=DESCKIND_TYPECOMP
+1,
467 DESCKIND_MAX
=DESCKIND_IMPLICITAPPOBJ
+1
470 typedef union tagBINDPTR
{
471 LPFUNCDESC lpfuncdesc
;
474 } BINDPTR
,*LPBINDPTR
;
476 #define INTERFACE IDispatch
477 DECLARE_INTERFACE_(IDispatch
,IUnknown
)
479 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
480 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
481 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
482 STDMETHOD(GetTypeInfoCount
)(THIS_ UINT
*) PURE
;
483 STDMETHOD(GetTypeInfo
)(THIS_ UINT
,LCID
,LPTYPEINFO
*) PURE
;
484 STDMETHOD(GetIDsOfNames
)(THIS_ REFIID
,LPOLESTR
*,UINT
,LCID
,DISPID
*) PURE
;
485 STDMETHOD(Invoke
)(THIS_ DISPID
,REFIID
,LCID
,WORD
,DISPPARAMS
*,VARIANT
*,EXCEPINFO
*,UINT
*) PURE
;
490 #define IDispatch_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
491 #define IDispatch_AddRef(p) (p)->lpVtbl->AddRef(p)
492 #define IDispatch_Release(p) (p)->lpVtbl->Release(p)
493 #define IDispatch_GetTypeInfoCount(p,a) (p)->lpVtbl->GetTypeInfoCount(p,a)
494 #define IDispatch_GetTypeInfo(p,a,b,c) (p)->lpVtbl->GetTypeInfo(p,a,b,c)
495 #define IDispatch_GetIDsOfNames(p,a,b,c,d,e) (p)->lpVtbl->GetIDsOfNames(p,a,b,c,d,e)
496 #define IDispatch_Invoke(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Invoke(p,a,b,c,d,e,f,g,h)
499 #define INTERFACE IEnumVARIANT
500 DECLARE_INTERFACE_(IEnumVARIANT
,IUnknown
)
502 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
503 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
504 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
505 STDMETHOD(Next
)(THIS_ ULONG
,VARIANT
*,ULONG
*) PURE
;
506 STDMETHOD(Skip
)(THIS_ ULONG
) PURE
;
507 STDMETHOD(Reset
)(THIS
) PURE
;
508 STDMETHOD(Clone
)(THIS_ IEnumVARIANT
**) PURE
;
512 #define INTERFACE ITypeComp
513 DECLARE_INTERFACE_(ITypeComp
,IUnknown
)
515 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
516 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
517 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
518 STDMETHOD(Bind
)(THIS_ LPOLESTR
,ULONG
,WORD
,LPTYPEINFO
*,DESCKIND
*,LPBINDPTR
) PURE
;
519 STDMETHOD(BindType
)(THIS_ LPOLESTR
,ULONG
,LPTYPEINFO
*,LPTYPECOMP
*) PURE
;
523 #define INTERFACE ITypeInfo
524 DECLARE_INTERFACE_(ITypeInfo
,IUnknown
)
526 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
527 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
528 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
529 STDMETHOD(GetTypeAttr
)(THIS_ LPTYPEATTR
*) PURE
;
530 STDMETHOD(GetTypeComp
)(THIS_ LPTYPECOMP
*) PURE
;
531 STDMETHOD(GetFuncDesc
)(THIS_ UINT
,LPFUNCDESC
*) PURE
;
532 STDMETHOD(GetVarDesc
)(THIS_ UINT
,LPVARDESC
*) PURE
;
533 STDMETHOD(GetNames
)(THIS_ MEMBERID
,BSTR
*,UINT
,UINT
*) PURE
;
534 STDMETHOD(GetRefTypeOfImplType
)(THIS_ UINT
,HREFTYPE
*) PURE
;
535 STDMETHOD(GetImplTypeFlags
)(THIS_ UINT
,INT
*) PURE
;
536 STDMETHOD(GetIDsOfNames
)(THIS_ LPOLESTR
*,UINT
,MEMBERID
*) PURE
;
537 STDMETHOD(Invoke
)(THIS_ PVOID
,MEMBERID
,WORD
,DISPPARAMS
*,VARIANT
*,EXCEPINFO
*,UINT
*) PURE
;
538 STDMETHOD(GetDocumentation
)(THIS_ MEMBERID
,BSTR
*,BSTR
*,DWORD
*,BSTR
*) PURE
;
539 STDMETHOD(GetDllEntry
)(THIS_ MEMBERID
,INVOKEKIND
,BSTR
*,BSTR
*,WORD
*) PURE
;
540 STDMETHOD(GetRefTypeInfo
)(THIS_ HREFTYPE
,LPTYPEINFO
*) PURE
;
541 STDMETHOD(AddressOfMember
)(THIS_ MEMBERID
,INVOKEKIND
,PVOID
*) PURE
;
542 STDMETHOD(CreateInstance
)(THIS_ LPUNKNOWN
,REFIID
,PVOID
*) PURE
;
543 STDMETHOD(GetMops
)(THIS_ MEMBERID
,BSTR
*) PURE
;
544 STDMETHOD(GetContainingTypeLib
)(THIS_ LPTYPELIB
*,UINT
*) PURE
;
545 STDMETHOD_(void,ReleaseTypeAttr
)(THIS_ LPTYPEATTR
) PURE
;
546 STDMETHOD_(void,ReleaseFuncDesc
)(THIS_ LPFUNCDESC
) PURE
;
547 STDMETHOD_(void,ReleaseVarDesc
)(THIS_ LPVARDESC
) PURE
;
552 #define ITypeInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
553 #define ITypeInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
554 #define ITypeInfo_Release(p) (p)->lpVtbl->Release(p)
555 #define ITypeInfo_GetTypeAttr(p,a) (p)->lpVtbl->GetTypeAttr(p,a)
556 #define ITypeInfo_GetTypeComp(p,a) (p)->lpVtbl->GetTypeComp(p,a)
557 #define ITypeInfo_GetFuncDesc(p,a,b) (p)->lpVtbl->GetFuncDesc(p,a,b)
558 #define ITypeInfo_GetVarDesc(p,a,b) (p)->lpVtbl->GetVarDesc(p,a,b)
559 #define ITypeInfo_GetNames(p,a,b,c,d) (p)->lpVtbl->GetNames(p,a,b,c,d)
560 #define ITypeInfo_GetRefTypeOfImplType(p,a,b) (p)->lpVtbl->GetRefTypeOfImplType(p,a,b)
561 #define ITypeInfo_GetImplTypeFlags(p,a,b) (p)->lpVtbl->GetImplTypeFlags(p,a,b)
562 #define ITypeInfo_GetIDsOfNames(p,a,b,c) (p)->lpVtbl->GetIDsOfNames(p,a,b,c)
563 #define ITypeInfo_Invoke(p,a,b,c,d,e,f,g) (p)->lpVtbl->Invoke(p,a,b,c,d,e,f,g)
564 #define ITypeInfo_GetDocumentation(p,a,b,c,d,e) (p)->lpVtbl->GetDocumentation(p,a,b,c,d,e)
565 #define ITypeInfo_GetDllEntry(p,a,b,c,d,e) (p)->lpVtbl->GetDllEntry(p,a,b,c,d,e)
566 #define ITypeInfo_GetRefTypeInfo(p,a,b) (p)->lpVtbl->GetRefTypeInfo(p,a,b)
567 #define ITypeInfo_AddressOfMember(p,a,b,c) (p)->lpVtbl->AddressOfMember(p,a,b,c)
568 #define ITypeInfo_CreateInstance(p,a,b,c) (p)->lpVtbl->CreateInstance(p,a,b,c)
569 #define ITypeInfo_GetMops(p,a,b) (p)->lpVtbl->GetMops(p,a,b)
570 #define ITypeInfo_GetContainingTypeLib(p,a,b) (p)->lpVtbl->GetContainingTypeLib(p,a,b)
571 #define ITypeInfo_ReleaseTypeAttr(p,a) (p)->lpVtbl->ReleaseTypeAttr(p,a)
572 #define ITypeInfo_ReleaseFuncDesc(p,a) (p)->lpVtbl->ReleaseFuncDesc(p,a)
573 #define ITypeInfo_ReleaseVarDesc(p,a) (p)->lpVtbl->ReleaseVarDesc(p,a)
576 #define INTERFACE ITypeInfo2
577 DECLARE_INTERFACE_(ITypeInfo2
,ITypeInfo
)
579 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
580 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
581 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
582 STDMETHOD(GetTypeAttr
)(THIS_ LPTYPEATTR
*) PURE
;
583 STDMETHOD(GetTypeComp
)(THIS_ LPTYPECOMP
*) PURE
;
584 STDMETHOD(GetFuncDesc
)(THIS_ UINT
,LPFUNCDESC
*) PURE
;
585 STDMETHOD(GetVarDesc
)(THIS_ UINT
,LPVARDESC
*) PURE
;
586 STDMETHOD(GetNames
)(THIS_ MEMBERID
,BSTR
*,UINT
,UINT
*) PURE
;
587 STDMETHOD(GetRefTypeOfImplType
)(THIS_ UINT
,HREFTYPE
*) PURE
;
588 STDMETHOD(GetImplTypeFlags
)(THIS_ UINT
,INT
*) PURE
;
589 STDMETHOD(GetIDsOfNames
)(THIS_ LPOLESTR
*,UINT
,MEMBERID
*) PURE
;
590 STDMETHOD(Invoke
)(THIS_ PVOID
,MEMBERID
,WORD
,DISPPARAMS
*,VARIANT
*,EXCEPINFO
*,UINT
*) PURE
;
591 STDMETHOD(GetDocumentation
)(THIS_ MEMBERID
,BSTR
*,BSTR
*,DWORD
*,BSTR
*) PURE
;
592 STDMETHOD(GetDllEntry
)(THIS_ MEMBERID
,INVOKEKIND
,BSTR
*,BSTR
*,WORD
*) PURE
;
593 STDMETHOD(GetRefTypeInfo
)(THIS_ HREFTYPE
,LPTYPEINFO
*) PURE
;
594 STDMETHOD(AddressOfMember
)(THIS_ MEMBERID
,INVOKEKIND
,PVOID
*) PURE
;
595 STDMETHOD(CreateInstance
)(THIS_ LPUNKNOWN
,REFIID
,PVOID
*) PURE
;
596 STDMETHOD(GetMops
)(THIS_ MEMBERID
,BSTR
*) PURE
;
597 STDMETHOD(GetContainingTypeLib
)(THIS_ LPTYPELIB
*,UINT
*) PURE
;
598 STDMETHOD_(void,ReleaseTypeAttr
)(THIS_ LPTYPEATTR
) PURE
;
599 STDMETHOD_(void,ReleaseFuncDesc
)(THIS_ LPFUNCDESC
) PURE
;
600 STDMETHOD_(void,ReleaseVarDesc
)(THIS_ LPVARDESC
) PURE
;
601 STDMETHOD(GetTypeKind
)(THIS_ TYPEKIND
*) PURE
;
602 STDMETHOD(GetTypeFlags
)(THIS_ ULONG
*) PURE
;
603 STDMETHOD(GetFuncIndexOfMemId
)(THIS_ MEMBERID
,INVOKEKIND
,UINT
*) PURE
;
604 STDMETHOD(GetVarIndexOfMemId
)(THIS_ MEMBERID
,UINT
*) PURE
;
605 STDMETHOD(GetCustData
)(THIS_ REFGUID
,VARIANT
*) PURE
;
606 STDMETHOD(GetFuncCustData
)(THIS_ UINT
,REFGUID
,VARIANT
*) PURE
;
607 STDMETHOD(GetParamCustData
)(THIS_ UINT
,UINT
,REFGUID
,VARIANT
*) PURE
;
608 STDMETHOD(GetVarCustData
)(THIS_ UINT
,REFGUID
,VARIANT
*) PURE
;
609 STDMETHOD(GetImplTypeCustData
)(THIS_ UINT
,REFGUID
,VARIANT
*) PURE
;
610 STDMETHOD(GetDocumentation2
)(THIS_ MEMBERID
,LCID
,BSTR
*,DWORD
*,BSTR
*) PURE
;
611 STDMETHOD(GetAllCustData
)(THIS_ CUSTDATA
*) PURE
;
612 STDMETHOD(GetAllFuncCustData
)(THIS_ UINT
,CUSTDATA
*) PURE
;
613 STDMETHOD(GetAllParamCustData
)(THIS_ UINT
,UINT
,CUSTDATA
*) PURE
;
614 STDMETHOD(GetAllVarCustData
)(THIS_ UINT
,CUSTDATA
*) PURE
;
615 STDMETHOD(GetAllImplTypeCustData
)(THIS_ UINT
,CUSTDATA
*) PURE
;
619 #define INTERFACE ITypeLib
620 DECLARE_INTERFACE_(ITypeLib
,IUnknown
)
622 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
623 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
624 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
625 STDMETHOD_(UINT
,GetTypeInfoCount
)(THIS
) PURE
;
626 STDMETHOD(GetTypeInfo
)(THIS_ UINT
,ITypeInfo
**) PURE
;
627 STDMETHOD(GetTypeInfoType
)(THIS_ UINT
,TYPEKIND
*) PURE
;
628 STDMETHOD(GetTypeInfoOfGuid
)(THIS_ REFGUID
,ITypeInfo
**) PURE
;
629 STDMETHOD(GetLibAttr
)(THIS_ TLIBATTR
**) PURE
;
630 STDMETHOD(GetTypeComp
)(THIS_ ITypeComp
*) PURE
;
631 STDMETHOD(GetDocumentation
)(THIS_ INT
,BSTR
*,BSTR
*,DWORD
*,BSTR
*) PURE
;
632 STDMETHOD(IsName
)(THIS_ LPOLESTR
,ULONG
,BOOL
*) PURE
;
633 STDMETHOD(FindName
)(THIS_ LPOLESTR
,ULONG
,ITypeInfo
**,MEMBERID
*,USHORT
*) PURE
;
634 STDMETHOD_(void,ReleaseTLibAttr
)(THIS_ TLIBATTR
*) PURE
;
638 #define INTERFACE ITypeLib2
639 DECLARE_INTERFACE_(ITypeLib2
,ITypeLib
)
641 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
642 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
643 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
644 STDMETHOD_(UINT
,GetTypeInfoCount
)(THIS
) PURE
;
645 STDMETHOD(GetTypeInfo
)(THIS_ UINT
,ITypeInfo
**) PURE
;
646 STDMETHOD(GetTypeInfoType
)(THIS_ UINT
,TYPEKIND
*) PURE
;
647 STDMETHOD(GetTypeInfoOfGuid
)(THIS_ REFGUID
,ITypeInfo
**) PURE
;
648 STDMETHOD(GetLibAttr
)(THIS_ TLIBATTR
**) PURE
;
649 STDMETHOD(GetTypeComp
)(THIS_ ITypeComp
*) PURE
;
650 STDMETHOD(GetDocumentation
)(THIS_ INT
,BSTR
*,BSTR
*,DWORD
*,BSTR
*) PURE
;
651 STDMETHOD(IsName
)(THIS_ LPOLESTR
,ULONG
,BOOL
*) PURE
;
652 STDMETHOD(FindName
)(THIS_ LPOLESTR
,ULONG
,ITypeInfo
**,MEMBERID
*,USHORT
*) PURE
;
653 STDMETHOD_(void,ReleaseTLibAttr
)(THIS_ TLIBATTR
*) PURE
;
654 STDMETHOD(GetCustData
)(THIS_ REFGUID
,VARIANT
*) PURE
;
655 STDMETHOD(GetLibStatistics
)(THIS_ ULONG
*,ULONG
*) PURE
;
656 STDMETHOD(GetDocumentation2
)(THIS_ INT
,LCID
,BSTR
*,DWORD
*,BSTR
*) PURE
;
657 STDMETHOD(GetAllCustData
)(THIS_ CUSTDATA
*) PURE
;
661 EXTERN_C
const IID IID_IErrorInfo
;
662 #define INTERFACE IErrorInfo
663 DECLARE_INTERFACE_(IErrorInfo
, IUnknown
)
665 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
666 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
667 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
668 STDMETHOD(GetGUID
)(THIS_ GUID
*) PURE
;
669 STDMETHOD(GetSource
)(THIS_ BSTR
*) PURE
;
670 STDMETHOD(GetDescription
)(THIS_ BSTR
*) PURE
;
671 STDMETHOD(GetHelpFile
)(THIS_ BSTR
*) PURE
;
672 STDMETHOD(GetHelpContext
)(THIS_ DWORD
*) PURE
;
677 #define IErrorInfo_QueryInterface(T,a,b) (T)->lpVtbl->QueryInterface(T,a,b)
678 #define IErrorInfo_AddRef(T) (T)->lpVtbl->AddRef(T)
679 #define IErrorInfo_Release(T) (T)->lpVtbl->Release(T)
680 #define IErrorInfo_GetGUID(T,a) (T)->lpVtbl->GetGUID(T,a)
681 #define IErrorInfo_GetSource(T,a) (T)->lpVtbl->GetSource(T,a)
682 #define IErrorInfo_GetDescription(T,a) (T)->lpVtbl->GetDescription(T,a)
683 #define IErrorInfo_GetHelpFile(T,a) (T)->lpVtbl->GetHelpFile(T,a)
684 #define IErrorInfo_GetHelpContext(T,a) (T)->lpVtbl->GetHelpContext(T,a)
687 EXTERN_C
const IID IID_ICreateErrorInfo
;
688 #define INTERFACE ICreateErrorInfo
689 DECLARE_INTERFACE_(ICreateErrorInfo
, IUnknown
)
691 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*)PURE
;
692 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
693 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
694 STDMETHOD(SetGUID
)(THIS_ REFGUID
) PURE
;
695 STDMETHOD(SetSource
)(THIS_ LPOLESTR
) PURE
;
696 STDMETHOD(SetDescription
)(THIS_ LPOLESTR
) PURE
;
697 STDMETHOD(SetHelpFile
)(THIS_ LPOLESTR
) PURE
;
698 STDMETHOD(SetHelpContext
)(THIS_ DWORD
) PURE
;
702 EXTERN_C
const IID IID_ISupportErrorInfo
;
703 #define INTERFACE ISupportErrorInfo
704 DECLARE_INTERFACE_(ISupportErrorInfo
, IUnknown
)
706 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
707 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
708 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
709 STDMETHOD(InterfaceSupportsErrorInfo
)(THIS_ REFIID
) PURE
;
713 EXTERN_C
const IID IID_IRecordInfo
;
714 #define INTERFACE IRecordInfo
715 DECLARE_INTERFACE_(IRecordInfo
, IUnknown
)
717 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
718 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
719 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
720 STDMETHOD(RecordInit
)(THIS_ PVOID
) PURE
;
721 STDMETHOD(RecordClear
)(THIS_ PVOID
) PURE
;
722 STDMETHOD(RecordCopy
)(THIS_ PVOID
, PVOID
) PURE
;
723 STDMETHOD(GetGuid
)(THIS_ GUID
*) PURE
;
724 STDMETHOD(GetName
)(THIS_ BSTR
*) PURE
;
725 STDMETHOD(GetSize
)(THIS_ ULONG
*) PURE
;
726 STDMETHOD(GetTypeInfo
)(THIS_ ITypeInfo
**) PURE
;
727 STDMETHOD(GetField
)(THIS_ PVOID
,LPCOLESTR
,VARIANT
*) PURE
;
728 STDMETHOD(GetFieldNoCopy
)(THIS_ PVOID
,LPCOLESTR
,VARIANT
*,PVOID
*) PURE
;
729 STDMETHOD(PutField
)(THIS_ ULONG
,PVOID
,LPCOLESTR
, VARIANT
*) PURE
;
730 STDMETHOD(PutFieldNoCopy
)(THIS_ ULONG
,PVOID
,LPCOLESTR
,VARIANT
*) PURE
;
731 STDMETHOD(GetFieldNames
)(THIS_ ULONG
*,BSTR
*) PURE
;
732 STDMETHOD_(BOOL
,IsMatchingType
)(THIS_ THIS
) PURE
;
733 STDMETHOD_(PVOID
,RecordCreate
)(THIS
) PURE
;
734 STDMETHOD(RecordCreateCopy
)(THIS_ PVOID
,PVOID
*) PURE
;
735 STDMETHOD(RecordDestroy
)(THIS_ PVOID
) PURE
;
740 #define IRecordInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
741 #define IRecordInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
742 #define IRecordInfo_Release(p) (p)->lpVtbl->Release(p)
743 #define IRecordInfo_RecordInit(p,a) (p)->lpVtbl->RecordInit(p,a)
744 #define IRecordInfo_RecordClear(p,a) (p)->lpVtbl->RecordClear(p,a)
745 #define IRecordInfo_RecordCopy(p,a,b) (p)->lpVtbl->RecordCopy(p,a,b)
746 #define IRecordInfo_GetGuid(p,a) (p)->lpVtbl->GetGuid(p,a)
747 #define IRecordInfo_GetName(p,a) (p)->lpVtbl->GetName(p,a)
748 #define IRecordInfo_GetSize(p,a) (p)->lpVtbl->GetSize(p,a)
749 #define IRecordInfo_GetTypeInfo(p,a) (p)->lpVtbl->GetTypeInfo(p,a)
750 #define IRecordInfo_GetField(p,a,b,c) (p)->lpVtbl->GetField(p,a,b,c)
751 #define IRecordInfo_GetFieldNoCopy(p,a,b,c,d) (p)->lpVtbl->GetFieldNoCopy(p,a,b,c,d)
752 #define IRecordInfo_PutField(p,a,b,c,d) (p)->lpVtbl->PutField(p,a,b,c,d)
753 #define IRecordInfo_PutFieldNoCopy(p,a,b,c,d) (p)->lpVtbl->PutFieldNoCopy(p,a,b,c,d)
754 #define IRecordInfo_GetFieldNames(p,a,b) (p)->lpVtbl->GetFieldNames(p,a,b)
755 #define IRecordInfo_IsMatchingType(p,a) (p)->lpVtbl->IsMatchingType(p,a)
756 #define IRecordInfo_RecordCreate(p) (p)->lpVtbl->RecordCreate(p)
757 #define IRecordInfo_RecordCreateCopy(p,a,b) (p)->lpVtbl->RecordCreateCopy(p,a,b)
758 #define IRecordInfo_RecordDestroy(p,a) (p)->lpVtbl->RecordDestroy(p,a)
761 EXTERN_C
const IID IID_ITypeMarshal
;
762 #define INTERFACE ITypeMarshal
763 DECLARE_INTERFACE_(ITypeMarshal
, IUnknown
)
765 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
766 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
767 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
768 STDMETHOD(Size
)(THIS_ PVOID
,DWORD
,PVOID
,ULONG
*) PURE
;
769 STDMETHOD(Marshal
)(THIS_ PVOID
,DWORD
,PVOID
,ULONG
,BYTE
*,ULONG
*) PURE
;
770 STDMETHOD(Unmarshal
)(THIS_ PVOID
,DWORD
,ULONG
,BYTE
*,ULONG
*) PURE
;
771 STDMETHOD(Free
)(THIS_ PVOID
) PURE
;