2 * ITypeLib test IDL - we dump it and compare results in typelib.c
4 * Copyright 2007 Google (Mikolaj Zalewski)
5 * Copyright 2006,2015 Dmitry Timoshkov
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #pragma makedep typelib
25 import "oaidl.idl"; /* needed by widl */
27 [uuid(8b05fe77-4a6c-4133-b9cd-8f81747af784)]
30 importlib("stdole2.tlb");
32 typedef [uuid(b14b6bb5-904e-4ff9-b247-bd361f7a0001)]
33 struct g { int g1; } g;
35 [uuid(b14b6bb5-904e-4ff9-b247-bd361f7a0002)]
36 interface test_iface : IUnknown
38 HRESULT test([in] g *ptr);
41 interface child_iface;
42 interface parent_iface;
44 [uuid(b14b6bb5-904e-4ff9-b247-bd361f7aa001)]
45 interface parent_iface : IUnknown
47 HRESULT test1([out,retval] child_iface **iface);
49 [uuid(b14b6bb5-904e-4ff9-b247-bd361f7aa002)]
50 interface child_iface: parent_iface
55 [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753901),restricted]
56 struct _n { int n1; };
57 [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753902),hidden]
59 [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753903),version(1.2),helpcontext(3)]
62 [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753904),restricted]
63 struct _m { int m1; };
64 [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753905),hidden,version(1.2)]
66 [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753906),helpcontext(3)]
69 [dual,uuid(b14b6bb5-904e-4ff9-b247-bd361f7aaedd)]
70 interface IDualIface : IDispatch
75 [uuid(ec5dfcd6-eeb0-4cd6-b51e-8030e1dac009)]
76 interface ISimpleIface : IDispatch
81 [uuid(4029f190-ca4a-4611-aeb9-673983cb96dd)]
90 /* identical to 'test_struct', only guid is different */
91 [uuid(4029f190-ca4a-4611-aeb9-673983cb96de)]
100 typedef [uuid(016fe2ec-b2c8-45f8-b23b-39e53a75396a),restricted]
103 typedef [public] enum _a { a1, a2 } a;
104 typedef [public] enum aa { aa1, aa2 } aa;
105 typedef enum _b { b1, b2 } b;
106 typedef enum bb { bb1, bb2 } bb;
107 typedef [uuid(016fe2ec-b2c8-45f8-b23b-39e53a75396b)] enum _c { c1, c2 } c;
108 typedef [uuid(016fe2ec-b2c8-45f8-b23b-39e53a75396c)] enum cc { cc1, cc2 } cc;
110 typedef [uuid(016fe2ec-b2c8-45f8-b23b-39e53a75396d),restricted,hidden]
111 enum _d { d1, d2 } d;
112 typedef [uuid(016fe2ec-b2c8-45f8-b23b-39e53a75396e),restricted,hidden]
113 enum dd { dd1, dd2 } dd;
115 typedef [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753970),restricted,hidden]
116 struct _e { int e1; } e;
117 typedef [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753971),restricted,hidden]
118 struct ee { int ee1; } ee;
120 typedef [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753972),restricted,hidden]
121 union _f { int f1; BSTR *f2; } f;
122 typedef [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753973),restricted,hidden]
123 union ff { int ff1; BSTR *ff2; } ff;
125 [uuid(ec5dfcd6-eeb0-4cd6-b51e-8030e1dac00a)]
126 interface ITestIface : IDispatch
128 HRESULT test1(a value);
129 HRESULT test2(b value);
130 HRESULT test3(c value);
131 HRESULT test4(d value);
132 HRESULT test5(e value);
133 HRESULT test6(f value);