oleaut32: Convert file URLs to DOS paths for special handling in OleLoadPicturePath.
[wine] / dlls / oleaut32 / tests / test_reg.idl
1 /*
2  * A typelib to test registration.
3  *
4  * Copyright 2010 Huw Davies
5  *
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.
10  *
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.
15  *
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
19  */
20
21 import "oaidl.idl"; /* needed by widl */
22
23 [
24     uuid(a2cfdbd3-2bbf-4b1c-a414-5a5904e634c9),
25     version(1.0)
26 ]
27 library register_test
28 {
29     importlib("stdole2.tlb");
30
31     [
32         uuid(06c1f5f0-ea49-44f9-8e3b-4be00c7a0689)
33     ]
34     interface Inon_ole : IUnknown
35     {
36         HRESULT test();
37     }
38
39     [
40         uuid(06c1f5f1-ea49-44f9-8e3b-4be00c7a0689)
41     ]
42     interface Inon_ole_from_disp : IDispatch
43     {
44         HRESULT test();
45     }
46
47     [
48         uuid(06c1f5f2-ea49-44f9-8e3b-4be00c7a0689),
49         oleautomation
50     ]
51     interface Iole : IUnknown
52     {
53         HRESULT test();
54     }
55
56     [
57         uuid(06c1f5f3-ea49-44f9-8e3b-4be00c7a0689),
58         oleautomation
59     ]
60     interface Iole_from_disp : IDispatch
61     {
62         HRESULT test();
63     }
64
65     [
66         uuid(06c1f5f4-ea49-44f9-8e3b-4be00c7a0689),
67         dual
68     ]
69     interface Inon_ole_dual : IUnknown
70     {
71         HRESULT test();
72     }
73
74     [
75         uuid(06c1f5f5-ea49-44f9-8e3b-4be00c7a0689),
76         oleautomation,
77         dual
78     ]
79     interface Iole_dual : IUnknown
80     {
81         HRESULT test();
82     }
83
84     [
85         uuid(06c1f5f6-ea49-44f9-8e3b-4be00c7a0689),
86         dual
87     ]
88     interface Inon_ole_dual_from_disp : IDispatch
89     {
90         HRESULT test();
91     }
92
93     [
94         uuid(06c1f5f7-ea49-44f9-8e3b-4be00c7a0689),
95         oleautomation,
96         dual
97     ]
98     interface Iole_dual_from_disp : IDispatch
99     {
100         HRESULT test();
101     }
102
103     /* oleautomation not allowed with dispinterfaces */
104     [
105         uuid(06c1f5f8-ea49-44f9-8e3b-4be00c7a0689)
106     ]
107     dispinterface Idisp
108     {
109     properties:
110         [id(0x0)] BSTR Name;
111     methods:
112     }
113
114     [
115         uuid(06c1f5f9-ea49-44f9-8e3b-4be00c7a0689)
116     ]
117     dispinterface Idisp_from_non_ole_iface
118     {
119         interface Inon_ole;
120     }
121
122     [
123         uuid(06c1f5fa-ea49-44f9-8e3b-4be00c7a0689)
124     ]
125     dispinterface Idisp_from_ole_from_disp_iface
126     {
127         interface Iole_from_disp;
128     }
129
130 }