oleaut32/tests: Add more tests for typelib data.
[wine/multimedia.git] / dlls / oleaut32 / tests / test_tlb.idl
blob8275c37dbbd41c355db9f6039296d2af8cc8a108
1 /*
2 * ITypeLib test IDL - we dump it and compare results in typelib.c
4 * Copyright 2007 Google (Mikolaj Zalewski)
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #pragma makedep ident
22 #pragma makedep typelib
24 import "oaidl.idl"; /* needed by widl */
26 [uuid(8b05fe77-4a6c-4133-b9cd-8f81747af784)]
27 library Test
29 importlib("stdole2.tlb");
31 [dual,uuid(b14b6bb5-904e-4ff9-b247-bd361f7aaedd)]
32 interface IDualIface : IDispatch
34 HRESULT test();
37 [uuid(ec5dfcd6-eeb0-4cd6-b51e-8030e1dac009)]
38 interface ISimpleIface : IDispatch
40 HRESULT test();
43 [uuid(4029f190-ca4a-4611-aeb9-673983cb96dd)]
44 struct test_struct
46 HRESULT hr;
47 VARIANT_BOOL b;
48 IDispatch *disp;
49 BSTR bstr;
52 /* identical to 'test_struct', only guid is different */
53 [uuid(4029f190-ca4a-4611-aeb9-673983cb96de)]
54 struct test_struct2
56 HRESULT hr;
57 VARIANT_BOOL b;
58 IDispatch *disp;
59 BSTR bstr;
62 typedef [public] enum _a { a1, a2 } a;
63 typedef [public] enum aa { aa1, aa2 } aa;
64 typedef enum _b { b1, b2 } b;
65 typedef enum bb { bb1, bb2 } bb;
66 typedef [uuid(016fe2ec-b2c8-45f8-b23b-39e53a75396b)] enum _c { c1, c2 } c;
67 typedef [uuid(016fe2ec-b2c8-45f8-b23b-39e53a75396c)] enum cc { cc1, cc2 } cc;
69 [uuid(ec5dfcd6-eeb0-4cd6-b51e-8030e1dac00a)]
70 interface ITestIface : IDispatch
72 HRESULT test1(a value);
73 HRESULT test2(b value);
74 HRESULT test3(c value);