[OLEAUT32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
[reactos.git] / rostests / winetests / oleaut32 / test_tlb.idl
1 /*
2 * ITypeLib test IDL - we dump it and compare results in typelib.c
3 *
4 * Copyright 2007 Google (Mikolaj Zalewski)
5 * Copyright 2006,2015 Dmitry Timoshkov
6 *
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.
11 *
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.
16 *
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
20 */
21
22 #pragma makedep ident
23 #pragma makedep typelib
24
25 import "oaidl.idl"; /* needed by widl */
26
27 [uuid(8b05fe77-4a6c-4133-b9cd-8f81747af784)]
28 library Test
29 {
30 importlib("stdole2.tlb");
31
32 typedef [uuid(b14b6bb5-904e-4ff9-b247-bd361f7a0001)]
33 struct g { int g1; } g;
34
35 [uuid(b14b6bb5-904e-4ff9-b247-bd361f7a0002)]
36 interface test_iface : IUnknown
37 {
38 HRESULT test([in] g *ptr);
39 }
40
41 interface child_iface;
42 interface parent_iface;
43
44 [uuid(b14b6bb5-904e-4ff9-b247-bd361f7aa001)]
45 interface parent_iface : IUnknown
46 {
47 HRESULT test1([out,retval] child_iface **iface);
48 }
49 [uuid(b14b6bb5-904e-4ff9-b247-bd361f7aa002)]
50 interface child_iface: parent_iface
51 {
52 HRESULT test2(void);
53 }
54
55 [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753901),restricted]
56 struct _n { int n1; };
57 [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753902),hidden]
58 typedef struct _n n;
59 [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753903),version(1.2),helpcontext(3)]
60 typedef struct _n nn;
61
62 [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753904),restricted]
63 struct _m { int m1; };
64 [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753905),hidden,version(1.2)]
65 typedef struct _m m;
66 [uuid(016fe2ec-b2c8-45f8-b23b-39e53a753906),helpcontext(3)]
67 typedef struct _m mm;
68
69 [dual,uuid(b14b6bb5-904e-4ff9-b247-bd361f7aaedd)]
70 interface IDualIface : IDispatch
71 {
72 HRESULT test();
73 }
74
75 [uuid(ec5dfcd6-eeb0-4cd6-b51e-8030e1dac009)]
76 interface ISimpleIface : IDispatch
77 {
78 HRESULT test();
79 }
80
81 [uuid(4029f190-ca4a-4611-aeb9-673983cb96dd)]
82 struct test_struct
83 {
84 HRESULT hr;
85 VARIANT_BOOL b;
86 IDispatch *disp;
87 BSTR bstr;
88 };
89
90 /* identical to 'test_struct', only guid is different */
91 [uuid(4029f190-ca4a-4611-aeb9-673983cb96de)]
92 struct test_struct2
93 {
94 HRESULT hr;
95 VARIANT_BOOL b;
96 IDispatch *disp;
97 BSTR bstr;
98 };
99
100 typedef [uuid(016fe2ec-b2c8-45f8-b23b-39e53a75396a),restricted]
101 int t_INT;
102
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;
109
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;
114
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;
119
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;
124
125 [uuid(ec5dfcd6-eeb0-4cd6-b51e-8030e1dac00a)]
126 interface ITestIface : IDispatch
127 {
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);
134 }
135 }