1 | /*
|
---|
2 | * Copyright 2004 Kevin Koltzau
|
---|
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 | * Oracle 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, Oracle 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 DO_NO_IMPORTS
|
---|
29 | import "ocidl.idl";
|
---|
30 | import "oleidl.idl";
|
---|
31 | import "oaidl.idl";
|
---|
32 | import "servprov.idl";
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | cpp_quote("DEFINE_GUID(SID_VariantConversion, 0x1f101481,0xbccd,0x11d0,0x93,0x36,0x00,0xa0,0xc9,0xd,0xca,0xa9);")
|
---|
36 | cpp_quote("DEFINE_GUID(SID_GetCaller, 0x4717cc40,0xbcb9,0x11d0,0x93,0x36,0x00,0xa0,0xc9,0xd,0xca,0xa9);")
|
---|
37 |
|
---|
38 | cpp_quote("#define fdexNameCaseSensitive 0x00000001L")
|
---|
39 | cpp_quote("#define fdexNameEnsure 0x00000002L")
|
---|
40 | cpp_quote("#define fdexNameImplicit 0x00000004L")
|
---|
41 | cpp_quote("#define fdexNameCaseInsensitive 0x00000008L")
|
---|
42 | cpp_quote("#define fdexNameInternal 0x00000010L")
|
---|
43 | cpp_quote("#define fdexNameNoDynamicProperties 0x00000020L")
|
---|
44 |
|
---|
45 | cpp_quote("#define fdexPropCanGet 0x00000001L")
|
---|
46 | cpp_quote("#define fdexPropCannotGet 0x00000002L")
|
---|
47 | cpp_quote("#define fdexPropCanPut 0x00000004L")
|
---|
48 | cpp_quote("#define fdexPropCannotPut 0x00000008L")
|
---|
49 | cpp_quote("#define fdexPropCanPutRef 0x00000010L")
|
---|
50 | cpp_quote("#define fdexPropCannotPutRef 0x00000020L")
|
---|
51 | cpp_quote("#define fdexPropNoSideEffects 0x00000040L")
|
---|
52 | cpp_quote("#define fdexPropDynamicType 0x00000080L")
|
---|
53 | cpp_quote("#define fdexPropCanCall 0x00000100L")
|
---|
54 | cpp_quote("#define fdexPropCannotCall 0x00000200L")
|
---|
55 | cpp_quote("#define fdexPropCanConstruct 0x00000400L")
|
---|
56 | cpp_quote("#define fdexPropCannotConstruct 0x00000800L")
|
---|
57 | cpp_quote("#define fdexPropCanSourceEvents 0x00001000L")
|
---|
58 | cpp_quote("#define fdexPropCannotSourceEvents 0x00002000L")
|
---|
59 |
|
---|
60 | cpp_quote("#define fdexEnumDefault 0x00000001L")
|
---|
61 | cpp_quote("#define fdexEnumAll 0x00000002L")
|
---|
62 |
|
---|
63 | cpp_quote("#define grfdexPropCanAll \\")
|
---|
64 | cpp_quote(" (fdexPropCanGet | fdexPropCanPut | fdexPropCanPutRef | \\")
|
---|
65 | cpp_quote(" fdexPropCanCall | fdexPropCanConstruct | fdexPropCanSourceEvents)")
|
---|
66 | cpp_quote("#define grfdexPropCannotAll \\")
|
---|
67 | cpp_quote(" (fdexPropCannotGet | fdexPropCannotPut | fdexPropCannotPutRef | \\")
|
---|
68 | cpp_quote(" fdexPropCannotCall | fdexPropCannotConstruct | fdexPropCannotSourceEvents)")
|
---|
69 | cpp_quote("#define grfdexPropExtraAll \\")
|
---|
70 | cpp_quote(" (fdexPropNoSideEffects | fdexPropDynamicType)")
|
---|
71 | cpp_quote("#define grfdexPropAll \\")
|
---|
72 | cpp_quote(" (grfdexPropCanAll | grfdexPropCannotAll | grfdexPropExtraAll)")
|
---|
73 |
|
---|
74 | cpp_quote("#define DISPATCH_CONSTRUCT 0x4000")
|
---|
75 |
|
---|
76 | cpp_quote("#define DISPID_THIS (-613)")
|
---|
77 | cpp_quote("#define DISPID_STARTENUM DISPID_UNKNOWN")
|
---|
78 |
|
---|
79 | [
|
---|
80 | object,
|
---|
81 | uuid(A6EF9860-C720-11d0-9337-00A0C90DCAA9),
|
---|
82 | pointer_default(unique)
|
---|
83 | ]
|
---|
84 | interface IDispatchEx : IDispatch
|
---|
85 | {
|
---|
86 | HRESULT GetDispID(
|
---|
87 | [in] BSTR bstrName,
|
---|
88 | [in] DWORD grfdex,
|
---|
89 | [out] DISPID *pid);
|
---|
90 |
|
---|
91 | [local]
|
---|
92 | HRESULT InvokeEx(
|
---|
93 | [in, annotation("__in")] DISPID id,
|
---|
94 | [in, annotation("__in")] LCID lcid,
|
---|
95 | [in, annotation("__in")] WORD wFlags,
|
---|
96 | [in, annotation("__in")] DISPPARAMS *pdp,
|
---|
97 | [out, annotation("__out_opt")] VARIANT *pvarRes,
|
---|
98 | [out, annotation("__out_opt")] EXCEPINFO *pei,
|
---|
99 | [in, unique, annotation("__in_opt")] IServiceProvider *pspCaller);
|
---|
100 |
|
---|
101 | [call_as(InvokeEx)]
|
---|
102 | HRESULT RemoteInvokeEx(
|
---|
103 | [in] DISPID id,
|
---|
104 | [in] LCID lcid,
|
---|
105 | [in] DWORD dwFlags,
|
---|
106 | [in] DISPPARAMS *pdp,
|
---|
107 | [out] VARIANT *pvarRes,
|
---|
108 | [out] EXCEPINFO *pei,
|
---|
109 | [in, unique] IServiceProvider *pspCaller,
|
---|
110 | [in] UINT cvarRefArg,
|
---|
111 | [in, size_is(cvarRefArg)] UINT *rgiRefArg,
|
---|
112 | [in, out, size_is(cvarRefArg)] VARIANT *rgvarRefArg);
|
---|
113 |
|
---|
114 | HRESULT DeleteMemberByName(
|
---|
115 | [in] BSTR bstrName,
|
---|
116 | [in] DWORD grfdex);
|
---|
117 |
|
---|
118 | HRESULT DeleteMemberByDispID(
|
---|
119 | [in] DISPID id);
|
---|
120 |
|
---|
121 | HRESULT GetMemberProperties(
|
---|
122 | [in] DISPID id,
|
---|
123 | [in] DWORD grfdexFetch,
|
---|
124 | [out] DWORD *pgrfdex);
|
---|
125 |
|
---|
126 | HRESULT GetMemberName(
|
---|
127 | [in] DISPID id,
|
---|
128 | [out] BSTR *pbstrName);
|
---|
129 |
|
---|
130 | HRESULT GetNextDispID(
|
---|
131 | [in] DWORD grfdex,
|
---|
132 | [in] DISPID id,
|
---|
133 | [out] DISPID *pid);
|
---|
134 |
|
---|
135 | HRESULT GetNameSpaceParent([out] IUnknown **ppunk);
|
---|
136 | }
|
---|
137 |
|
---|
138 | [
|
---|
139 | object,
|
---|
140 | uuid(A6EF9861-C720-11d0-9337-00A0C90DCAA9),
|
---|
141 | pointer_default(unique)
|
---|
142 | ]
|
---|
143 | interface IDispError : IUnknown
|
---|
144 | {
|
---|
145 | HRESULT QueryErrorInfo(
|
---|
146 | [in] GUID guidErrorType,
|
---|
147 | [out] IDispError **ppde);
|
---|
148 |
|
---|
149 | HRESULT GetNext(
|
---|
150 | [out] IDispError **ppde);
|
---|
151 |
|
---|
152 | HRESULT GetHresult(
|
---|
153 | [out] HRESULT *phr);
|
---|
154 |
|
---|
155 | HRESULT GetSource(
|
---|
156 | [out] BSTR *pbstrSource);
|
---|
157 |
|
---|
158 | HRESULT GetHelpInfo(
|
---|
159 | [out] BSTR *pbstrFileName,
|
---|
160 | [out] DWORD *pdwContext);
|
---|
161 |
|
---|
162 | HRESULT GetDescription(
|
---|
163 | [out] BSTR *pbstrDescription);
|
---|
164 | }
|
---|
165 |
|
---|
166 | [
|
---|
167 | object,
|
---|
168 | uuid(A6EF9862-C720-11d0-9337-00A0C90DCAA9),
|
---|
169 | pointer_default(unique)
|
---|
170 | ]
|
---|
171 | interface IVariantChangeType : IUnknown
|
---|
172 | {
|
---|
173 | HRESULT ChangeType(
|
---|
174 | [in, out, unique] VARIANT *pvarDst,
|
---|
175 | [in, unique] VARIANT *pvarSrc,
|
---|
176 | [in] LCID lcid,
|
---|
177 | [in] VARTYPE vtNew);
|
---|
178 | }
|
---|
179 |
|
---|
180 |
|
---|
181 | [
|
---|
182 | object,
|
---|
183 | uuid(CA04B7E6-0D21-11d1-8CC5-00C04FC2B085),
|
---|
184 | pointer_default(unique)
|
---|
185 | ]
|
---|
186 | interface IObjectIdentity : IUnknown
|
---|
187 | {
|
---|
188 | HRESULT IsEqualObject(
|
---|
189 | [in] IUnknown *punk);
|
---|
190 | }
|
---|
191 |
|
---|
192 | [
|
---|
193 | object,
|
---|
194 | uuid(c5598e60-b307-11d1-b27d-006008c3fbfb),
|
---|
195 | pointer_default(unique)
|
---|
196 | ]
|
---|
197 | interface ICanHandleException : IUnknown
|
---|
198 | {
|
---|
199 | HRESULT CanHandleException(
|
---|
200 | [in] EXCEPINFO *pExcepInfo,
|
---|
201 | [in] VARIANT *pvar);
|
---|
202 | }
|
---|
203 |
|
---|
204 | [
|
---|
205 | object,
|
---|
206 | uuid(10e2414a-ec59-49d2-bc51-5add2c36febc),
|
---|
207 | pointer_default(unique)
|
---|
208 | ]
|
---|
209 | interface IProvideRuntimeContext : IUnknown
|
---|
210 | {
|
---|
211 | HRESULT GetCurrentSourceContext(
|
---|
212 | [out] DWORD_PTR *pdwContext,
|
---|
213 | [out] VARIANT_BOOL *pfExecutingGlobalCode);
|
---|
214 | }
|
---|