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