Fixed _wstrdate/_wstrtime parameters.
[wine.git] / include / comcat.idl
blob3f75b2adf074c1e8b62c9d27b51ebc4cf0e568f0
1 /*
2 * Copyright 2002 John K. Hohm
3 * Copyright 2003 Alexandre Julliard
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 import "unknwn.idl";
22 /*****************************************************************************
23 * Types
25 typedef GUID CATID;
26 typedef REFGUID REFCATID;
27 cpp_quote("#define CATID_NULL GUID_NULL")
28 cpp_quote("#define IsEqualCATID(rcatid1, rcatid2) IsEqualGUID(rcatid1, rcatid2)")
30 /*****************************************************************************
31 * Aliases for EnumGUID
33 #define IEnumCATID IEnumGUID
34 cpp_quote("#define IEnumCATID IEnumGUID")
35 cpp_quote("#define IID_IEnumCATID IID_IEnumGUID")
36 cpp_quote("#define LPENUMCATID LPENUMGUID")
37 #define IEnumCLSID IEnumGUID
38 cpp_quote("#define IEnumCLSID IEnumGUID")
39 cpp_quote("#define IID_IEnumCLSID IID_IEnumGUID")
40 cpp_quote("#define LPENUMCLSID LPENUMGUID")
43 /*****************************************************************************
44 * IEnumGUID
47 object,
48 uuid(0002e000-0000-0000-c000-000000000046),
49 pointer_default(unique)
51 interface IEnumGUID : IUnknown
53 typedef [unique] IEnumGUID *LPENUMGUID;
55 HRESULT Next(
56 [in] ULONG celt,
57 [out, size_is(celt), length_is(*pceltFetched)] GUID *rgelt,
58 [out] ULONG *pceltFetched);
60 HRESULT Skip(
61 [in] ULONG celt);
63 HRESULT Reset();
65 HRESULT Clone(
66 [out] IEnumGUID **ppenum);
70 /*****************************************************************************
71 * IEnumCATEGORYINFO
74 object,
75 uuid(0002e011-0000-0000-c000-000000000046),
76 pointer_default(unique)
78 interface IEnumCATEGORYINFO : IUnknown
80 typedef [unique] IEnumCATEGORYINFO *LPENUMCATEGORYINFO;
82 typedef struct tagCATEGORYINFO
84 CATID catid; /* category identifier for component */
85 LCID lcid; /* locale identifier */
86 OLECHAR szDescription[128]; /* description of the category */
87 } CATEGORYINFO, *LPCATEGORYINFO;
89 HRESULT Next(
90 [in] ULONG celt,
91 [out, size_is(celt), length_is(*pceltFetched)] CATEGORYINFO* rgelt,
92 [out] ULONG* pceltFetched);
94 HRESULT Skip(
95 [in] ULONG celt);
97 HRESULT Reset();
99 HRESULT Clone(
100 [out] IEnumCATEGORYINFO** ppenum);
104 /*****************************************************************************
105 * ICatInformation
108 object,
109 uuid(0002e013-0000-0000-c000-000000000046),
110 pointer_default(unique)
112 interface ICatInformation : IUnknown
114 typedef [unique] ICatInformation* LPCATINFORMATION;
116 HRESULT EnumCategories(
117 [in] LCID lcid,
118 [out] IEnumCATEGORYINFO** ppenumCategoryInfo);
120 HRESULT GetCategoryDesc(
121 [in] REFCATID rcatid,
122 [in] LCID lcid,
123 [out] LPWSTR* pszDesc);
125 [local]
126 HRESULT EnumClassesOfCategories(
127 [in] ULONG cImplemented,
128 [in,size_is(cImplemented)] CATID rgcatidImpl[],
129 [in] ULONG cRequired,
130 [in,size_is(cRequired)] CATID rgcatidReq[],
131 [out] IEnumCLSID** ppenumClsid);
133 [call_as(EnumClassesOfCategories)]
134 HRESULT RemoteEnumClassesOfCategories(
135 [in] ULONG cImplemented,
136 [in,unique,size_is(cImplemented)] CATID rgcatidImpl[],
137 [in] ULONG cRequired,
138 [in,unique,size_is(cRequired)] CATID rgcatidReq[],
139 [out] IEnumCLSID** ppenumClsid);
141 [local]
142 HRESULT IsClassOfCategories(
143 [in] REFCLSID rclsid,
144 [in] ULONG cImplemented,
145 [in,size_is(cImplemented)] CATID rgcatidImpl[],
146 [in] ULONG cRequired,
147 [in,size_is(cRequired)] CATID rgcatidReq[]);
149 [call_as(IsClassOfCategories)]
150 HRESULT RemoteIsClassOfCategories(
151 [in] REFCLSID rclsid,
152 [in] ULONG cImplemented,
153 [in,unique,size_is(cImplemented)] CATID rgcatidImpl[],
154 [in] ULONG cRequired,
155 [in,unique,size_is(cRequired)] CATID rgcatidReq[] );
157 HRESULT EnumImplCategoriesOfClass(
158 [in] REFCLSID rclsid,
159 [out] IEnumCATID** ppenumCatid);
161 HRESULT EnumReqCategoriesOfClass(
162 [in] REFCLSID rclsid,
163 [out] IEnumCATID** ppenumCatid);
167 /*****************************************************************************
168 * ICatRegister
171 object,
172 uuid(0002e012-0000-0000-c000-000000000046),
173 pointer_default(unique)
175 interface ICatRegister : IUnknown
177 typedef [unique] ICatRegister* LPCATREGISTER;
179 HRESULT RegisterCategories(
180 [in] ULONG cCategories,
181 [in, size_is(cCategories)] CATEGORYINFO rgCategoryInfo[]);
183 HRESULT UnRegisterCategories(
184 [in] ULONG cCategories,
185 [in, size_is(cCategories)] CATID rgcatid[]);
187 HRESULT RegisterClassImplCategories(
188 [in] REFCLSID rclsid,
189 [in] ULONG cCategories,
190 [in, size_is(cCategories)] CATID rgcatid[]);
192 HRESULT UnRegisterClassImplCategories(
193 [in] REFCLSID rclsid,
194 [in] ULONG cCategories,
195 [in, size_is(cCategories)] CATID rgcatid[]);
197 HRESULT RegisterClassReqCategories(
198 [in] REFCLSID rclsid,
199 [in] ULONG cCategories,
200 [in, size_is(cCategories)] CATID rgcatid[]);
202 HRESULT UnRegisterClassReqCategories(
203 [in] REFCLSID rclsid,
204 [in] ULONG cCategories,
205 [in, size_is(cCategories)] CATID rgcatid[]);
209 /*****************************************************************************
210 * Category IDs
212 cpp_quote("DEFINE_GUID( CATID_Insertable, 0x40fc6ed3, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);")
213 cpp_quote("DEFINE_GUID( CATID_Control, 0x40fc6ed4, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);")
214 cpp_quote("DEFINE_GUID( CATID_Programmable, 0x40fc6ed5, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);")
215 cpp_quote("DEFINE_GUID( CATID_IsShortcut, 0x40fc6ed6, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);")
216 cpp_quote("DEFINE_GUID( CATID_NeverShowExt, 0x40fc6ed7, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);")
217 cpp_quote("DEFINE_GUID( CATID_DocObject, 0x40fc6ed8, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);")
218 cpp_quote("DEFINE_GUID( CATID_Printable, 0x40fc6ed9, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);")
219 cpp_quote("DEFINE_GUID( CATID_RequiresDataPathHost, 0x0de86a50, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);")
220 cpp_quote("DEFINE_GUID( CATID_PersistsToMoniker, 0x0de86a51, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);")
221 cpp_quote("DEFINE_GUID( CATID_PersistsToStorage, 0x0de86a52, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);")
222 cpp_quote("DEFINE_GUID( CATID_PersistsToStreamInit, 0x0de86a53, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);")
223 cpp_quote("DEFINE_GUID( CATID_PersistsToStream, 0x0de86a54, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);")
224 cpp_quote("DEFINE_GUID( CATID_PersistsToMemory, 0x0de86a55, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);")
225 cpp_quote("DEFINE_GUID( CATID_PersistsToFile, 0x0de86a56, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);")
226 cpp_quote("DEFINE_GUID( CATID_PersistsToPropertyBag, 0x0de86a57, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);")
227 cpp_quote("DEFINE_GUID( CATID_InternetAware, 0x0de86a58, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);")
228 cpp_quote("DEFINE_GUID( CATID_DesignTimeUIActivatableControl, 0xf2bb56d1, 0xdb07, 0x11d1, 0xaa, 0x6b, 0x00, 0x60, 0x97, 0xdb, 0x95, 0x39);")
229 /* The Component Category Manager */
230 cpp_quote("DEFINE_GUID(CLSID_StdComponentCategoriesMgr, 0x0002e005, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46);")