Release 0.9.39.
[wine/gsoc-2012-control.git] / dlls / oleaut32 / tests / tmarshal.idl
blobff7a00a9e1a091a73ca50d0324155a08798e7b6b
1 /*
2 * Copyright (C) 2005 Robert Shearman
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.
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.
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
20 #include "tmarshal_dispids.h"
21 import "ocidl.idl";
24 uuid(d96d8a3e-78b6-4c8d-8f27-059db959be8a),
25 version(1.0),
26 helpstring("Test Typelib")
28 library TestTypelib
30 importlib("stdole2.tlb");
32 typedef enum tagSTATE
34 STATE_UNWIDGETIFIED = 1,
35 STATE_WIDGETIFIED
36 } STATE;
38 coclass ApplicationObject2;
41 odl,
42 uuid(a1f8cae3-c947-4c5f-b57d-c87b9b5f3586),
43 oleautomation,
44 dual
46 interface IWidget : IDispatch
48 [propput, id(DISPID_TM_NAME)]
49 HRESULT Name([in] BSTR name);
50 [propget, id(DISPID_TM_NAME)]
51 HRESULT Name([out, retval] BSTR *name);
53 [id(DISPID_TM_DOSOMETHING)]
54 HRESULT DoSomething([in] double number, [out] BSTR *str1, [in, defaultvalue("")] BSTR str2, [in, optional] VARIANT *opt);
56 [propget, id(DISPID_TM_STATE)]
57 HRESULT State([out, retval] STATE *state);
58 [propput, id(DISPID_TM_STATE)]
59 HRESULT State([in] STATE state);
61 [id(DISPID_TM_MAP)]
62 HRESULT Map([in] BSTR bstrId, [out, retval] BSTR *sValue);
64 [id(DISPID_TM_SETOLECOLOR)]
65 HRESULT SetOleColor([in] OLE_COLOR val);
67 [id(DISPID_TM_GETOLECOLOR)]
68 HRESULT GetOleColor([out, retval] OLE_COLOR *pVal);
70 [propget, id(DISPID_TM_CLONE)]
71 HRESULT Clone([out, retval] IWidget **ppVal);
73 [propget, id(DISPID_TM_CLONEDISPATCH)]
74 HRESULT CloneDispatch([out, retval] IDispatch **ppVal);
76 [propget, id(DISPID_TM_CLONECOCLASS)]
77 HRESULT CloneCoclass([out, retval] ApplicationObject2 **ppVal);
79 [propget, id(DISPID_VALUE)]
80 HRESULT Value([in] VARIANT *value, [out, retval] VARIANT *retval);
82 [id(DISPID_TM_ARRAY)]
83 HRESULT Array([in] SAFEARRAY(BSTR) values);
85 [id(DISPID_TM_VARARRAYPTR)]
86 HRESULT VariantArrayPtr([in] SAFEARRAY(VARIANT) *values);
88 [id(DISPID_TM_VARIANT)]
89 void Variant([in] VARIANT var);
91 [vararg, id(DISPID_TM_VARARG)]
92 void VarArg([in] int numexpect, [in] SAFEARRAY(VARIANT) values);
94 [id(DISPID_TM_ERROR)]
95 HRESULT Error();
99 odl,
100 uuid(a028db05-30f0-4b93-b17a-41c72f831d84),
101 #if 0 /* FIXME: commented out as causes widl to generate incorrect typelib */
102 dual,
103 #endif
104 oleautomation
106 interface IKindaEnumWidget : IUnknown
108 HRESULT Next(
109 [out] IWidget **widget);
111 HRESULT Count(
112 [out] unsigned long *count);
114 HRESULT Reset();
116 HRESULT Clone(
117 [out] IKindaEnumWidget **ppenum);
121 odl,
122 uuid(a028db06-30f0-4b93-b17a-41c72f831d84),
124 interface INonOleAutomation : IUnknown
126 [id(DISPID_NOA_BSTRRET)]
127 BSTR BstrRet();
132 dllname("comm.drv"),
133 uuid(d377f60b-8639-4261-8ee7-75c8340d2cc9),
135 module BadModule
138 entry("Foo"),
140 HRESULT BadModuleFoo();
144 dllname("oleaut32.dll"),
145 uuid(d377f60c-8639-4261-8ee7-75c8340d2cc9),
147 module BadEntry
150 entry("Foo"),
152 HRESULT BadEntryFoo();
156 uuid(bb171948-10ec-407a-9a57-2f85f797ff1a),
157 appobject,
159 coclass ApplicationObject2
161 interface IWidget;
162 [source] interface IWidget;
166 odl,
167 uuid(375f8a9d-33d0-44f3-b972-61f8407899e0)
169 interface ItestIF1 : IUnknown
171 HRESULT fn1([in] int x);
172 HRESULT fn2([out,retval] int *x);
176 odl,
177 uuid(094056a3-666f-4956-be12-1859668310b8)
179 interface ItestIF2 : ItestIF1
181 HRESULT fn3([in] int y);
185 odl,
186 uuid(33baba09-2e68-43ab-81fe-d84b403df2e5)
188 dispinterface ItestIF3
190 interface ItestIF2;
194 odl,
195 uuid(a01005c7-7491-42eb-94f3-668e37ce60a6)
197 dispinterface ItestIF4
199 properties:
200 methods:
201 [id(0x1c)] HRESULT fn([in] int z);
205 odl,
206 uuid(4ab61e25-c09f-4239-8f7f-7a018ea0199f),
207 dual
209 interface ItestIF5 : ItestIF2
211 [id(0x1234)] HRESULT fn4([in] int a);
212 [id(0x1235)] HRESULT fn5([in] int a);
216 odl,
217 uuid(ec236d8e-2cc7-44f2-b394-36c86ff3da74)
219 interface ItestIF6 : IDispatch
221 [id(0x1234)] HRESULT fn4([in] int a);
222 [id(0x1235)] HRESULT fn5([in] int a);
226 odl,
227 uuid(f711b105-554d-4751-818c-46fcc5d7c0d5),
228 dual
230 interface ItestIF7 : ItestIF6
232 [id(0x1236)] HRESULT fn6([in] int a);
236 odl,
237 uuid(bdfa260b-ef40-43d3-b071-cddec919f132)
239 interface ItestIF8
241 HRESULT fn1([in] int x);
242 HRESULT fn2([out,retval] int *x);
246 odl,
247 uuid(51033a23-dc37-4f19-aa34-4d8a670458a0)
250 interface ItestIF9 : ItestIF8
252 HRESULT fn3([in] int y);
256 odl,
257 uuid(2e8f14fe-0bce-42f0-8b7d-3af8393c7967)
259 dispinterface ItestIF10
261 interface ItestIF9;
265 odl,
266 uuid(7d9e9371-482e-4944-9b19-511fc705236f)
268 dispinterface ItestIF11
270 interface ItestIF7;