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