1 | /*
|
---|
2 | * COM interfaces for shell objects
|
---|
3 | *
|
---|
4 | * Copyright (C) 1999 Juergen Schmied
|
---|
5 | * Copyright (C) 2003 Alexandre Julliard
|
---|
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 | /*
|
---|
23 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
24 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
25 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
26 | * a choice of LGPL license versions is made available with the language indicating
|
---|
27 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
28 | * of the LGPL is applied is otherwise unspecified.
|
---|
29 | */
|
---|
30 |
|
---|
31 | import "objidl.idl";
|
---|
32 | import "oleidl.idl";
|
---|
33 | import "oaidl.idl";
|
---|
34 | import "docobj.idl";
|
---|
35 | import "shtypes.idl";
|
---|
36 | import "servprov.idl";
|
---|
37 | import "comcat.idl";
|
---|
38 | import "propidl.idl";
|
---|
39 | /* FIXME: import "prsht.idl";*/
|
---|
40 | import "msxml.idl";
|
---|
41 | import "wtypes.idl";
|
---|
42 | /* FIXME: import "propsys.idl"; */
|
---|
43 | /* FIXME: import "structuredquery.idl"; */
|
---|
44 |
|
---|
45 | cpp_quote("/* FIXME: #include <sherrors.h> */")
|
---|
46 |
|
---|
47 |
|
---|
48 | /*****************************************************************************
|
---|
49 | * IPersistFolder interface
|
---|
50 | */
|
---|
51 | [
|
---|
52 | object,
|
---|
53 | uuid(000214ea-0000-0000-c000-000000000046),
|
---|
54 | pointer_default(unique)
|
---|
55 | ]
|
---|
56 | interface IPersistFolder : IPersist
|
---|
57 | {
|
---|
58 | typedef IPersistFolder *LPPERSISTFOLDER;
|
---|
59 |
|
---|
60 | HRESULT Initialize( [in] LPCITEMIDLIST pidl );
|
---|
61 | }
|
---|
62 |
|
---|
63 |
|
---|
64 | /*****************************************************************************
|
---|
65 | * IPersistFolder2 interface
|
---|
66 | */
|
---|
67 | [
|
---|
68 | object,
|
---|
69 | uuid(1ac3d9f0-175c-11d1-95be-00609797ea4f),
|
---|
70 | pointer_default(unique)
|
---|
71 | ]
|
---|
72 | interface IPersistFolder2 : IPersistFolder
|
---|
73 | {
|
---|
74 | typedef IPersistFolder2 *LPPERSISTFOLDER2;
|
---|
75 |
|
---|
76 | HRESULT GetCurFolder( [out] LPITEMIDLIST *ppidl );
|
---|
77 | }
|
---|
78 |
|
---|
79 |
|
---|
80 | /*****************************************************************************
|
---|
81 | * IPersistIDList interface
|
---|
82 | */
|
---|
83 | [
|
---|
84 | object,
|
---|
85 | uuid(1079acfc-29bd-11d3-8e0d-00c04f6837d5),
|
---|
86 | pointer_default(unique)
|
---|
87 | ]
|
---|
88 | interface IPersistIDList : IPersist
|
---|
89 | {
|
---|
90 | HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
|
---|
91 | HRESULT GetIDList( [out] LPITEMIDLIST *ppidl );
|
---|
92 | }
|
---|
93 |
|
---|
94 |
|
---|
95 | /*****************************************************************************
|
---|
96 | * IEnumIDList interface
|
---|
97 | */
|
---|
98 | [
|
---|
99 | object,
|
---|
100 | uuid(000214f2-0000-0000-c000-000000000046),
|
---|
101 | pointer_default(unique)
|
---|
102 | ]
|
---|
103 | interface IEnumIDList : IUnknown
|
---|
104 | {
|
---|
105 | typedef IEnumIDList *LPENUMIDLIST;
|
---|
106 |
|
---|
107 | HRESULT Next(
|
---|
108 | [in] ULONG celt,
|
---|
109 | [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
|
---|
110 | [out] ULONG *pceltFetched);
|
---|
111 |
|
---|
112 | HRESULT Skip( [in] ULONG celt );
|
---|
113 | HRESULT Reset();
|
---|
114 | HRESULT Clone( [out] IEnumIDList **ppenum );
|
---|
115 | }
|
---|
116 |
|
---|
117 | /*****************************************************************************
|
---|
118 | * IShellPropSheetExt interface
|
---|
119 | */
|
---|
120 | cpp_quote("#if 0")
|
---|
121 | typedef LPARAM LPFNSVADDPROPSHEETPAGE;
|
---|
122 | cpp_quote("#else")
|
---|
123 | cpp_quote("#include <prsht.h>")
|
---|
124 | cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
|
---|
125 | cpp_quote("#endif")
|
---|
126 |
|
---|
127 | [
|
---|
128 | object,
|
---|
129 | uuid(000214E9-0000-0000-C000-000000000046),
|
---|
130 | pointer_default(unique),
|
---|
131 | local
|
---|
132 | ]
|
---|
133 | interface IShellPropSheetExt : IUnknown
|
---|
134 | {
|
---|
135 | enum tagSHELLPROPSHEETEXTPAGEID {
|
---|
136 | EXPPS_FILETYPES = 0x1
|
---|
137 | };
|
---|
138 |
|
---|
139 | typedef UINT EXPPS;
|
---|
140 |
|
---|
141 | HRESULT AddPages(
|
---|
142 | [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
|
---|
143 | [in] LPARAM lParam);
|
---|
144 | HRESULT ReplacePage(
|
---|
145 | [in] EXPPS uPageID,
|
---|
146 | [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
|
---|
147 | [in] LPARAM lParam);
|
---|
148 | }
|
---|
149 | typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
|
---|
150 |
|
---|
151 | /*****************************************************************************
|
---|
152 | * IShellFolder interface
|
---|
153 | */
|
---|
154 | [
|
---|
155 | object,
|
---|
156 | uuid(000214e6-0000-0000-c000-000000000046),
|
---|
157 | pointer_default(unique)
|
---|
158 | ]
|
---|
159 | interface IShellFolder : IUnknown
|
---|
160 | {
|
---|
161 | typedef IShellFolder * LPSHELLFOLDER;
|
---|
162 |
|
---|
163 | typedef enum tagSHGDN
|
---|
164 | {
|
---|
165 | SHGDN_NORMAL = 0,
|
---|
166 | SHGDN_INFOLDER = 1,
|
---|
167 | SHGDN_FOREDITING = 0x1000,
|
---|
168 | SHGDN_INCLUDE_NONFILESYS = 0x2000,
|
---|
169 | SHGDN_FORADDRESSBAR = 0x4000,
|
---|
170 | SHGDN_FORPARSING = 0x8000
|
---|
171 | } SHGNO;
|
---|
172 |
|
---|
173 | typedef DWORD SHGDNF;
|
---|
174 |
|
---|
175 | enum tagSHCONTF
|
---|
176 | {
|
---|
177 | SHCONTF_FOLDERS = 32,
|
---|
178 | SHCONTF_NONFOLDERS = 64,
|
---|
179 | SHCONTF_INCLUDEHIDDEN = 128,
|
---|
180 | SHCONTF_INIT_ON_FIRST_NEXT = 256,
|
---|
181 | SHCONTF_NETPRINTERSRCH = 512,
|
---|
182 | SHCONTF_SHAREABLE = 1024,
|
---|
183 | SHCONTF_STORAGE = 2048
|
---|
184 | };
|
---|
185 |
|
---|
186 | typedef DWORD SHCONTF;
|
---|
187 |
|
---|
188 | cpp_quote("#define SFGAO_CANCOPY DROPEFFECT_COPY")
|
---|
189 | cpp_quote("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
|
---|
190 | cpp_quote("#define SFGAO_CANLINK DROPEFFECT_LINK")
|
---|
191 | cpp_quote("#define SFGAO_STORAGE 0x00000008L")
|
---|
192 | cpp_quote("#define SFGAO_CANRENAME 0x00000010L")
|
---|
193 | cpp_quote("#define SFGAO_CANDELETE 0x00000020L")
|
---|
194 | cpp_quote("#define SFGAO_HASPROPSHEET 0x00000040L")
|
---|
195 | cpp_quote("#define SFGAO_DROPTARGET 0x00000100L")
|
---|
196 | cpp_quote("#define SFGAO_CAPABILITYMASK 0x00000177L")
|
---|
197 | cpp_quote("#define SFGAO_ENCRYPTED 0x00002000L")
|
---|
198 | cpp_quote("#define SFGAO_ISSLOW 0x00004000L")
|
---|
199 | cpp_quote("#define SFGAO_GHOSTED 0x00008000L")
|
---|
200 | cpp_quote("#define SFGAO_LINK 0x00010000L")
|
---|
201 | cpp_quote("#define SFGAO_SHARE 0x00020000L")
|
---|
202 | cpp_quote("#define SFGAO_READONLY 0x00040000L")
|
---|
203 | cpp_quote("#define SFGAO_HIDDEN 0x00080000L")
|
---|
204 | cpp_quote("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
|
---|
205 | cpp_quote("#define SFGAO_FILESYSANCESTOR 0x10000000L")
|
---|
206 | cpp_quote("#define SFGAO_FOLDER 0x20000000L")
|
---|
207 | cpp_quote("#define SFGAO_FILESYSTEM 0x40000000L")
|
---|
208 | cpp_quote("#define SFGAO_HASSUBFOLDER 0x80000000L")
|
---|
209 | cpp_quote("#define SFGAO_CONTENTSMASK 0x80000000L")
|
---|
210 | cpp_quote("#define SFGAO_VALIDATE 0x01000000L")
|
---|
211 | cpp_quote("#define SFGAO_REMOVABLE 0x02000000L")
|
---|
212 | cpp_quote("#define SFGAO_COMPRESSED 0x04000000L")
|
---|
213 | cpp_quote("#define SFGAO_BROWSABLE 0x08000000L")
|
---|
214 | cpp_quote("#define SFGAO_NONENUMERATED 0x00100000L")
|
---|
215 | cpp_quote("#define SFGAO_NEWCONTENT 0x00200000L")
|
---|
216 | cpp_quote("#define SFGAO_STREAM 0x00400000L")
|
---|
217 | cpp_quote("#define SFGAO_STORAGEANCESTOR 0x00800000L")
|
---|
218 |
|
---|
219 | typedef ULONG SFGAOF;
|
---|
220 |
|
---|
221 | HRESULT ParseDisplayName(
|
---|
222 | [in] HWND hwndOwner,
|
---|
223 | [in] LPBC pbcReserved,
|
---|
224 | [in, string] LPOLESTR lpszDisplayName,
|
---|
225 | [out] ULONG *pchEaten,
|
---|
226 | [out] LPITEMIDLIST *ppidl,
|
---|
227 | [in, out, unique] ULONG *pdwAttributes);
|
---|
228 |
|
---|
229 | HRESULT EnumObjects(
|
---|
230 | [in] HWND hwndOwner,
|
---|
231 | [in] SHCONTF grfFlags,
|
---|
232 | [out] IEnumIDList **ppenumIDList);
|
---|
233 |
|
---|
234 | HRESULT BindToObject(
|
---|
235 | [in] LPCITEMIDLIST pidl,
|
---|
236 | [in] LPBC pbcReserved,
|
---|
237 | [in] REFIID riid,
|
---|
238 | [out, iid_is(riid)] void **ppvOut);
|
---|
239 |
|
---|
240 | HRESULT BindToStorage(
|
---|
241 | [in] LPCITEMIDLIST pidl,
|
---|
242 | [in] LPBC pbcReserved,
|
---|
243 | [in] REFIID riid,
|
---|
244 | [out, iid_is(riid)] void **ppvObj);
|
---|
245 |
|
---|
246 | HRESULT CompareIDs(
|
---|
247 | [in] LPARAM lParam,
|
---|
248 | [in] LPCITEMIDLIST pidl1,
|
---|
249 | [in] LPCITEMIDLIST pidl2);
|
---|
250 |
|
---|
251 | HRESULT CreateViewObject(
|
---|
252 | [in] HWND hwndOwner,
|
---|
253 | [in] REFIID riid,
|
---|
254 | [out, iid_is(riid)] void **ppvOut);
|
---|
255 |
|
---|
256 | HRESULT GetAttributesOf(
|
---|
257 | [in] UINT cidl,
|
---|
258 | [in, size_is(cidl)] LPCITEMIDLIST *apidl,
|
---|
259 | [in, out] SFGAOF *rgfInOut);
|
---|
260 |
|
---|
261 | HRESULT GetUIObjectOf(
|
---|
262 | [in] HWND hwndOwner,
|
---|
263 | [in] UINT cidl,
|
---|
264 | [in, size_is(cidl)] LPCITEMIDLIST *apidl,
|
---|
265 | [in] REFIID riid,
|
---|
266 | [in, out, unique] UINT *prgfInOut,
|
---|
267 | [out, iid_is(riid)] void **ppvOut);
|
---|
268 |
|
---|
269 | HRESULT GetDisplayNameOf(
|
---|
270 | [in] LPCITEMIDLIST pidl,
|
---|
271 | [in] SHGDNF uFlags,
|
---|
272 | [out] STRRET *lpName);
|
---|
273 |
|
---|
274 | HRESULT SetNameOf(
|
---|
275 | [in] HWND hwnd,
|
---|
276 | [in] LPCITEMIDLIST pidl,
|
---|
277 | [in, string] LPCOLESTR lpszName,
|
---|
278 | [in] SHGDNF uFlags,
|
---|
279 | [out] LPITEMIDLIST *ppidlOut);
|
---|
280 | }
|
---|
281 |
|
---|
282 |
|
---|
283 | /*****************************************************************************
|
---|
284 | * IEnumExtraSearch interface
|
---|
285 | */
|
---|
286 | [
|
---|
287 | object,
|
---|
288 | uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
|
---|
289 | pointer_default(unique)
|
---|
290 | ]
|
---|
291 | interface IEnumExtraSearch : IUnknown
|
---|
292 | {
|
---|
293 | typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
|
---|
294 |
|
---|
295 | typedef struct
|
---|
296 | {
|
---|
297 | GUID guidSearch;
|
---|
298 | WCHAR wszFriendlyName[80];
|
---|
299 | /*
|
---|
300 | *WCHAR wszMenuText[80];
|
---|
301 | *WCHAR wszHelpText[MAX_PATH];
|
---|
302 | */
|
---|
303 | WCHAR wszUrl[2084];
|
---|
304 | /*
|
---|
305 | *WCHAR wszIcon[MAX_PATH+10];
|
---|
306 | *WCHAR wszGreyIcon[MAX_PATH+10];
|
---|
307 | *WCHAR wszClrIcon[MAX_PATH+10];
|
---|
308 | */
|
---|
309 | } EXTRASEARCH, *LPEXTRASEARCH;
|
---|
310 |
|
---|
311 | HRESULT Next(
|
---|
312 | [in] ULONG celt,
|
---|
313 | [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
|
---|
314 | [out] ULONG *pceltFetched);
|
---|
315 |
|
---|
316 | HRESULT Skip( [in] ULONG celt );
|
---|
317 | HRESULT Reset();
|
---|
318 | HRESULT Clone( [out] IEnumExtraSearch **ppenum );
|
---|
319 | }
|
---|
320 |
|
---|
321 |
|
---|
322 | /*****************************************************************************
|
---|
323 | * IShellFolder2 interface
|
---|
324 | */
|
---|
325 | [
|
---|
326 | object,
|
---|
327 | uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
|
---|
328 | pointer_default(unique)
|
---|
329 | ]
|
---|
330 | interface IShellFolder2 : IShellFolder
|
---|
331 | {
|
---|
332 | typedef struct
|
---|
333 | {
|
---|
334 | GUID fmtid;
|
---|
335 | DWORD pid;
|
---|
336 | } SHCOLUMNID, *LPSHCOLUMNID;
|
---|
337 | typedef const SHCOLUMNID *LPCSHCOLUMNID;
|
---|
338 |
|
---|
339 | HRESULT GetDefaultSearchGUID( [out] GUID *lpguid );
|
---|
340 | HRESULT EnumSearches( [out] IEnumExtraSearch **ppenum );
|
---|
341 | HRESULT GetDefaultColumn( [in] DWORD dwReserved, [out] ULONG *pSort, [out] ULONG *pDisplay );
|
---|
342 | HRESULT GetDefaultColumnState( [in] UINT iColumn, [out] SHCOLSTATEF *pcsFlags );
|
---|
343 | HRESULT GetDetailsEx( [in] LPCITEMIDLIST pidl, [in] const SHCOLUMNID *pscid, [out] VARIANT *pv);
|
---|
344 | HRESULT GetDetailsOf( [in] LPCITEMIDLIST pidl, [in] UINT iColumn, [out] SHELLDETAILS *psd);
|
---|
345 | HRESULT MapColumnToSCID( [in] UINT iColumn, [in] SHCOLUMNID *pscid );
|
---|
346 | }
|
---|
347 |
|
---|
348 | /*****************************************************************************
|
---|
349 | * IShellItem interface
|
---|
350 | */
|
---|
351 | [
|
---|
352 | object,
|
---|
353 | uuid(43826d1e-e718-42ee-bc55-a1e261c37bfe),
|
---|
354 | pointer_default(unique)
|
---|
355 | ]
|
---|
356 | interface IShellItem : IUnknown
|
---|
357 | {
|
---|
358 | typedef DWORD SIGDN;
|
---|
359 |
|
---|
360 | typedef DWORD SICHINTF;
|
---|
361 |
|
---|
362 | HRESULT BindToHandler(
|
---|
363 | [in] IBindCtx *pbc,
|
---|
364 | [in] REFGUID rbhid,
|
---|
365 | [in] REFIID riid,
|
---|
366 | [out, iid_is(riid)] void **ppvOut);
|
---|
367 |
|
---|
368 | HRESULT GetParent( [out] IShellItem **ppsi );
|
---|
369 |
|
---|
370 | HRESULT GetDisplayName(
|
---|
371 | [in] SIGDN sigdnName,
|
---|
372 | [out] LPWSTR *ppszName);
|
---|
373 |
|
---|
374 | HRESULT GetAttributes(
|
---|
375 | [in] SFGAOF sfgaoMask,
|
---|
376 | [out] SFGAOF *psfgaoAttribs);
|
---|
377 |
|
---|
378 | HRESULT Compare(
|
---|
379 | [in] IShellItem *psi,
|
---|
380 | [in] SICHINTF hint,
|
---|
381 | [out] int *piOrder);
|
---|
382 | }
|
---|
383 |
|
---|
384 |
|
---|
385 |
|
---|
386 | /*****************************************************************************
|
---|
387 | * FOLDERSETTINGS
|
---|
388 | */
|
---|
389 | typedef char *LPVIEWSETTINGS;
|
---|
390 |
|
---|
391 | typedef enum
|
---|
392 | {
|
---|
393 | FWF_AUTOARRANGE = 0x00000001,
|
---|
394 | FWF_ABBREVIATEDNAMES = 0x00000002,
|
---|
395 | FWF_SNAPTOGRID = 0x00000004,
|
---|
396 | FWF_OWNERDATA = 0x00000008,
|
---|
397 | FWF_BESTFITWINDOW = 0x00000010,
|
---|
398 | FWF_DESKTOP = 0x00000020,
|
---|
399 | FWF_SINGLESEL = 0x00000040,
|
---|
400 | FWF_NOSUBFOLDERS = 0x00000080,
|
---|
401 | FWF_TRANSPARENT = 0x00000100,
|
---|
402 | FWF_NOCLIENTEDGE = 0x00000200,
|
---|
403 | FWF_NOSCROLL = 0x00000400,
|
---|
404 | FWF_ALIGNLEFT = 0x00000800,
|
---|
405 | FWF_NOICONS = 0x00001000,
|
---|
406 | FWF_SHOWSELALWAYS = 0x00002000,
|
---|
407 | FWF_NOVISIBLE = 0x00004000,
|
---|
408 | FWF_SINGLECLICKACTIVATE = 0x00008000,
|
---|
409 | FWF_NOWEBVIEW = 0x00010000,
|
---|
410 | FWF_HIDEFILENAMES = 0x00020000,
|
---|
411 | FWF_CHECKSELECT = 0x00040000
|
---|
412 | } FOLDERFLAGS;
|
---|
413 |
|
---|
414 | typedef enum
|
---|
415 | {
|
---|
416 | FVM_ICON = 1,
|
---|
417 | FVM_FIRST = FVM_ICON,
|
---|
418 | FVM_SMALLICON = 2,
|
---|
419 | FVM_LIST = 3,
|
---|
420 | FVM_DETAILS = 4,
|
---|
421 | FVM_THUMBNAIL = 5,
|
---|
422 | FVM_TILE = 6,
|
---|
423 | FVM_THUMBSTRIP = 7,
|
---|
424 | FVM_LAST = FVM_THUMBSTRIP
|
---|
425 | } FOLDERVIEWMODE;
|
---|
426 |
|
---|
427 | typedef struct
|
---|
428 | {
|
---|
429 | UINT ViewMode;
|
---|
430 | UINT fFlags;
|
---|
431 | } FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
|
---|
432 | typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
|
---|
433 |
|
---|
434 |
|
---|
435 | /*****************************************************************************
|
---|
436 | * IShellView interface
|
---|
437 | */
|
---|
438 | interface IShellBrowser; /* forward declaration */
|
---|
439 | [
|
---|
440 | object,
|
---|
441 | uuid(000214e3-0000-0000-c000-000000000046),
|
---|
442 | pointer_default(unique)
|
---|
443 | ]
|
---|
444 | interface IShellView : IOleWindow
|
---|
445 | {
|
---|
446 | typedef IShellView *LPSHELLVIEW;
|
---|
447 |
|
---|
448 | cpp_quote("#define SVSI_DESELECT 0x00000000")
|
---|
449 | cpp_quote("#define SVSI_SELECT 0x00000001")
|
---|
450 | cpp_quote("#define SVSI_EDIT 0x00000003")
|
---|
451 | cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
|
---|
452 | cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
|
---|
453 | cpp_quote("#define SVSI_FOCUSED 0x00000010")
|
---|
454 | cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
|
---|
455 | cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
|
---|
456 | cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
|
---|
457 | cpp_quote("#define SVSI_CHECK 0x00000100")
|
---|
458 | cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
|
---|
459 |
|
---|
460 | typedef UINT SVSIF;
|
---|
461 |
|
---|
462 | typedef enum
|
---|
463 | {
|
---|
464 | SVGIO_BACKGROUND = 0x00000000,
|
---|
465 | SVGIO_SELECTION = 0x00000001,
|
---|
466 | SVGIO_ALLVIEW = 0x00000002,
|
---|
467 | SVGIO_CHECKED = 0x00000003,
|
---|
468 | SVGIO_TYPE_MASK = 0x0000000f,
|
---|
469 | SVGIO_FLAG_VIEWORDER = 0x80000000,
|
---|
470 | } SVGIO;
|
---|
471 |
|
---|
472 | typedef enum
|
---|
473 | {
|
---|
474 | SVUIA_DEACTIVATE = 0,
|
---|
475 | SVUIA_ACTIVATE_NOFOCUS = 1,
|
---|
476 | SVUIA_ACTIVATE_FOCUS = 2,
|
---|
477 | SVUIA_INPLACEACTIVATE = 3
|
---|
478 | } SVUIA_STATUS;
|
---|
479 |
|
---|
480 | HRESULT TranslateAccelerator( [in] MSG *pmsg );
|
---|
481 | HRESULT EnableModeless( [in] BOOL fEnable );
|
---|
482 | HRESULT UIActivate( [in] UINT uState );
|
---|
483 | HRESULT Refresh();
|
---|
484 | HRESULT CreateViewWindow(
|
---|
485 | [in] IShellView *psvPrevious,
|
---|
486 | [in] LPCFOLDERSETTINGS lpfs,
|
---|
487 | [in] IShellBrowser *psb,
|
---|
488 | [out] RECT *prcView,
|
---|
489 | [out] HWND *phWnd);
|
---|
490 |
|
---|
491 | HRESULT DestroyViewWindow();
|
---|
492 | HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
|
---|
493 |
|
---|
494 | [local] HRESULT AddPropertySheetPages(
|
---|
495 | [in] DWORD dwReserved,
|
---|
496 | [in] LPFNSVADDPROPSHEETPAGE pfn,
|
---|
497 | [in] LPARAM lparam);
|
---|
498 |
|
---|
499 | HRESULT SaveViewState();
|
---|
500 | HRESULT SelectItem(
|
---|
501 | [in] LPCITEMIDLIST pidlItem,
|
---|
502 | [in] SVSIF uFlags);
|
---|
503 | HRESULT GetItemObject(
|
---|
504 | [in] UINT uItem,
|
---|
505 | [in] REFIID riid,
|
---|
506 | [out, iid_is(riid)] void **ppv);
|
---|
507 | }
|
---|
508 |
|
---|
509 | [
|
---|
510 | object,
|
---|
511 | uuid(88e39e80-3578-11cf-ae69-08002b2e1262),
|
---|
512 | pointer_default(unique)
|
---|
513 | ]
|
---|
514 | interface IShellView2 : IShellView
|
---|
515 | {
|
---|
516 | typedef GUID SHELLVIEWID;
|
---|
517 | cpp_quote("#include <pshpack8.h>")
|
---|
518 | typedef struct _SV2CVW2_PARAMS
|
---|
519 | {
|
---|
520 | DWORD cbSize;
|
---|
521 | IShellView *psvPrev;
|
---|
522 | LPCFOLDERSETTINGS pfs;
|
---|
523 | IShellBrowser *psbOwner;
|
---|
524 | RECT *prcView;
|
---|
525 | SHELLVIEWID const *pvid;
|
---|
526 | HWND hwndView;
|
---|
527 | } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
|
---|
528 | cpp_quote("#include <poppack.h>")
|
---|
529 |
|
---|
530 | HRESULT GetView(
|
---|
531 | [in, out] SHELLVIEWID *view_guid,
|
---|
532 | [in] ULONG view_type
|
---|
533 | );
|
---|
534 | HRESULT CreateViewWindow2(
|
---|
535 | [in] LPSV2CVW2_PARAMS view_params
|
---|
536 | );
|
---|
537 | HRESULT HandleRename(
|
---|
538 | [in] LPCITEMIDLIST new_pidl
|
---|
539 | );
|
---|
540 | HRESULT SelectAndPositionItem(
|
---|
541 | [in] LPCITEMIDLIST item,
|
---|
542 | [in] UINT flags,
|
---|
543 | [in] POINT *point
|
---|
544 | );
|
---|
545 | }
|
---|
546 |
|
---|
547 | /*****************************************************************************
|
---|
548 | * IFolderView interface
|
---|
549 | */
|
---|
550 | [
|
---|
551 | uuid(cde725b0-ccc9-4519-917e-325d72fab4ce),
|
---|
552 | object,
|
---|
553 | pointer_default(unique)
|
---|
554 | ]
|
---|
555 | interface IFolderView : IUnknown
|
---|
556 | {
|
---|
557 | HRESULT GetCurrentViewMode( [out] UINT *mode );
|
---|
558 | HRESULT SetCurrentViewMode( [in] UINT mode );
|
---|
559 | HRESULT GetFolder( [in] REFIID riid, [out, iid_is(riid)] void **ppv );
|
---|
560 | HRESULT Item(
|
---|
561 | [in] int index,
|
---|
562 | [out] PITEMID_CHILD *ppidl
|
---|
563 | );
|
---|
564 | HRESULT ItemCount(
|
---|
565 | [in] UINT flags,
|
---|
566 | [out] int *items
|
---|
567 | );
|
---|
568 | HRESULT Items(
|
---|
569 | [in] UINT flags,
|
---|
570 | [in] REFIID riid,
|
---|
571 | [out, iid_is(riid)] void **ppv
|
---|
572 | );
|
---|
573 | HRESULT GetSelectionMarkedItem( [out] int *item );
|
---|
574 | HRESULT GetFocusedItem( [out] int *item );
|
---|
575 | HRESULT GetItemPosition(
|
---|
576 | [in] PCUITEMID_CHILD pidl,
|
---|
577 | [out] POINT* ppt
|
---|
578 | );
|
---|
579 | HRESULT GetSpacing( [in, out, unique] POINT* pt );
|
---|
580 | HRESULT GetDefaultSpacing( [out] POINT* pt );
|
---|
581 | HRESULT GetAutoArrange();
|
---|
582 | HRESULT SelectItem(
|
---|
583 | [in] int item,
|
---|
584 | [in] DWORD flags
|
---|
585 | );
|
---|
586 | HRESULT SelectAndPositionItems(
|
---|
587 | [in] UINT cidl,
|
---|
588 | [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
|
---|
589 | [in, unique, size_is(cidl)] POINT* apt,
|
---|
590 | [in] DWORD flags
|
---|
591 | );
|
---|
592 | }
|
---|
593 |
|
---|
594 | /*****************************************************************************
|
---|
595 | * IShellBrowser interface
|
---|
596 | */
|
---|
597 | [
|
---|
598 | object,
|
---|
599 | uuid(000214e2-0000-0000-c000-000000000046),
|
---|
600 | pointer_default(unique)
|
---|
601 | ]
|
---|
602 | interface IShellBrowser : IOleWindow
|
---|
603 | {
|
---|
604 | typedef IShellBrowser *LPSHELLBROWSER;
|
---|
605 |
|
---|
606 | cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
|
---|
607 | cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
|
---|
608 | cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
|
---|
609 | cpp_quote("#define SBSP_DEFMODE 0x00000000")
|
---|
610 | cpp_quote("#define SBSP_OPENMODE 0x00000010")
|
---|
611 | cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
|
---|
612 | cpp_quote("#define SBSP_HELPMODE 0x00000040")
|
---|
613 | cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
|
---|
614 | cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
|
---|
615 | cpp_quote("#define SBSP_RELATIVE 0x00001000")
|
---|
616 | cpp_quote("#define SBSP_PARENT 0x00002000")
|
---|
617 | cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
|
---|
618 | cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
|
---|
619 | cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
|
---|
620 | cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
|
---|
621 | cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
|
---|
622 | cpp_quote("#define SBSP_REDIRECT 0x40000000")
|
---|
623 | cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
|
---|
624 |
|
---|
625 | cpp_quote("#define FCW_STATUS 0x0001")
|
---|
626 | cpp_quote("#define FCW_TOOLBAR 0x0002")
|
---|
627 | cpp_quote("#define FCW_TREE 0x0003")
|
---|
628 | cpp_quote("#define FCW_INTERNETBAR 0x0006")
|
---|
629 | cpp_quote("#define FCW_PROGRESS 0x0008")
|
---|
630 |
|
---|
631 | cpp_quote("#define FCT_MERGE 0x0001")
|
---|
632 | cpp_quote("#define FCT_CONFIGABLE 0x0002")
|
---|
633 | cpp_quote("#define FCT_ADDTOEND 0x0004")
|
---|
634 |
|
---|
635 | cpp_quote("#if 0")
|
---|
636 | typedef LPARAM LPTBBUTTONSB;
|
---|
637 | cpp_quote("#else")
|
---|
638 | cpp_quote("#include <commctrl.h>")
|
---|
639 | cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
|
---|
640 | cpp_quote("#endif")
|
---|
641 |
|
---|
642 | HRESULT InsertMenusSB(
|
---|
643 | [in] HMENU hmenuShared,
|
---|
644 | [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
|
---|
645 |
|
---|
646 | HRESULT SetMenuSB(
|
---|
647 | [in] HMENU hmenuShared,
|
---|
648 | [in] HOLEMENU holemenuReserved,
|
---|
649 | [in] HWND hwndActiveObject);
|
---|
650 |
|
---|
651 | HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
|
---|
652 | HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
|
---|
653 | HRESULT EnableModelessSB( [in] BOOL fEnable );
|
---|
654 | HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
|
---|
655 |
|
---|
656 | HRESULT BrowseObject(
|
---|
657 | [in] LPCITEMIDLIST pidl,
|
---|
658 | [in] UINT wFlags);
|
---|
659 |
|
---|
660 | HRESULT GetViewStateStream(
|
---|
661 | [in] DWORD grfMode,
|
---|
662 | [out] IStream **ppStrm);
|
---|
663 |
|
---|
664 | HRESULT GetControlWindow(
|
---|
665 | [in] UINT id,
|
---|
666 | [out] HWND *phwnd);
|
---|
667 |
|
---|
668 | [local] HRESULT SendControlMsg(
|
---|
669 | [in] UINT id,
|
---|
670 | [in] UINT uMsg,
|
---|
671 | [in] WPARAM wParam,
|
---|
672 | [in] LPARAM lParam,
|
---|
673 | [in] LRESULT *pret);
|
---|
674 |
|
---|
675 | HRESULT QueryActiveShellView( [out] IShellView **ppshv );
|
---|
676 | HRESULT OnViewWindowActive( [in] IShellView *pshv );
|
---|
677 |
|
---|
678 | [local]
|
---|
679 | HRESULT SetToolbarItems(
|
---|
680 | [in] LPTBBUTTONSB lpButtons,
|
---|
681 | [in] UINT nButtons,
|
---|
682 | [in] UINT uFlags);
|
---|
683 | }
|
---|
684 |
|
---|
685 |
|
---|
686 | /*****************************************************************************
|
---|
687 | * IShellLinkA interface
|
---|
688 | */
|
---|
689 | [
|
---|
690 | object,
|
---|
691 | uuid(000214ee-0000-0000-c000-000000000046),
|
---|
692 | pointer_default(unique)
|
---|
693 | ]
|
---|
694 | interface IShellLinkA : IUnknown
|
---|
695 | {
|
---|
696 | typedef enum
|
---|
697 | {
|
---|
698 | SLR_NO_UI = 0x0001,
|
---|
699 | SLR_ANY_MATCH = 0x0002,
|
---|
700 | SLR_UPDATE = 0x0004,
|
---|
701 | SLR_NOUPDATE = 0x0008,
|
---|
702 | SLR_NOSEARCH = 0x0010,
|
---|
703 | SLR_NOTRACK = 0x0020,
|
---|
704 | SLR_NOLINKINFO = 0x0040,
|
---|
705 | SLR_INVOKE_MSI = 0x0080,
|
---|
706 | SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
|
---|
707 | } SLR_FLAGS;
|
---|
708 |
|
---|
709 | typedef enum
|
---|
710 | {
|
---|
711 | SLGP_SHORTPATH = 0x0001,
|
---|
712 | SLGP_UNCPRIORITY = 0x0002,
|
---|
713 | SLGP_RAWPATH = 0x0004,
|
---|
714 | } SLGP_FLAGS;
|
---|
715 |
|
---|
716 | HRESULT GetPath(
|
---|
717 | [out, size_is(cch)] LPSTR pszFile,
|
---|
718 | [in] int cch,
|
---|
719 | [in, out, unique] WIN32_FIND_DATAA *pfd,
|
---|
720 | [in] DWORD fFlags);
|
---|
721 |
|
---|
722 | HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
|
---|
723 |
|
---|
724 | HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
|
---|
725 |
|
---|
726 | HRESULT GetDescription(
|
---|
727 | [out, size_is(cch)] LPSTR pszName,
|
---|
728 | [in] int cch);
|
---|
729 |
|
---|
730 | HRESULT SetDescription( [in] LPCSTR pszName );
|
---|
731 |
|
---|
732 | HRESULT GetWorkingDirectory(
|
---|
733 | [out, size_is(cch)] LPSTR pszDir,
|
---|
734 | [in] int cch);
|
---|
735 |
|
---|
736 | HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
|
---|
737 |
|
---|
738 | HRESULT GetArguments(
|
---|
739 | [out, size_is(cch)] LPSTR pszArgs,
|
---|
740 | [in] int cch);
|
---|
741 |
|
---|
742 | HRESULT SetArguments( [in] LPCSTR pszArgs );
|
---|
743 |
|
---|
744 | HRESULT GetHotkey( [out] WORD *pwHotkey );
|
---|
745 |
|
---|
746 | HRESULT SetHotkey( [in] WORD wHotkey );
|
---|
747 |
|
---|
748 | HRESULT GetShowCmd( [out] int *piShowCmd );
|
---|
749 |
|
---|
750 | HRESULT SetShowCmd( [in] int iShowCmd );
|
---|
751 |
|
---|
752 | HRESULT GetIconLocation(
|
---|
753 | [out, size_is(cch)] LPSTR pszIconPath,
|
---|
754 | [in] int cch,
|
---|
755 | [out] int *piIcon);
|
---|
756 |
|
---|
757 | HRESULT SetIconLocation(
|
---|
758 | [in] LPCSTR pszIconPath,
|
---|
759 | [in] int iIcon);
|
---|
760 |
|
---|
761 | HRESULT SetRelativePath(
|
---|
762 | [in] LPCSTR pszPathRel,
|
---|
763 | [in] DWORD dwReserved);
|
---|
764 |
|
---|
765 | HRESULT Resolve(
|
---|
766 | [in] HWND hwnd,
|
---|
767 | [in] DWORD fFlags);
|
---|
768 |
|
---|
769 | HRESULT SetPath( [in] LPCSTR pszFile );
|
---|
770 | }
|
---|
771 |
|
---|
772 |
|
---|
773 | /*****************************************************************************
|
---|
774 | * IShellLinkW interface
|
---|
775 | */
|
---|
776 | [
|
---|
777 | object,
|
---|
778 | uuid(000214f9-0000-0000-c000-000000000046),
|
---|
779 | pointer_default(unique)
|
---|
780 | ]
|
---|
781 | interface IShellLinkW : IUnknown
|
---|
782 | {
|
---|
783 | HRESULT GetPath(
|
---|
784 | [out, size_is(cch)] LPWSTR pszFile,
|
---|
785 | [in] int cch,
|
---|
786 | [in, out] WIN32_FIND_DATAW *pfd,
|
---|
787 | [in] DWORD fFlags);
|
---|
788 |
|
---|
789 | HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
|
---|
790 |
|
---|
791 | HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
|
---|
792 |
|
---|
793 | HRESULT GetDescription(
|
---|
794 | [out, size_is(cch)] LPWSTR pszName,
|
---|
795 | [in] int cch);
|
---|
796 |
|
---|
797 | HRESULT SetDescription( [in] LPCWSTR pszName );
|
---|
798 |
|
---|
799 | HRESULT GetWorkingDirectory(
|
---|
800 | [out, size_is(cch)] LPWSTR pszDir,
|
---|
801 | [in] int cch);
|
---|
802 |
|
---|
803 | HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
|
---|
804 |
|
---|
805 | HRESULT GetArguments(
|
---|
806 | [out, size_is(cch)] LPWSTR pszArgs,
|
---|
807 | [in] int cch);
|
---|
808 |
|
---|
809 | HRESULT SetArguments( [in] LPCWSTR pszArgs );
|
---|
810 |
|
---|
811 | HRESULT GetHotkey( [out] WORD *pwHotkey );
|
---|
812 |
|
---|
813 | HRESULT SetHotkey( [in] WORD wHotkey );
|
---|
814 |
|
---|
815 | HRESULT GetShowCmd( [out] int *piShowCmd );
|
---|
816 |
|
---|
817 | HRESULT SetShowCmd( [in] int iShowCmd );
|
---|
818 |
|
---|
819 | HRESULT GetIconLocation(
|
---|
820 | [out, size_is(cch)] LPWSTR pszIconPath,
|
---|
821 | [in] int cch,
|
---|
822 | [out] int *piIcon);
|
---|
823 |
|
---|
824 | HRESULT SetIconLocation(
|
---|
825 | [in] LPCWSTR pszIconPath,
|
---|
826 | [in] int iIcon);
|
---|
827 |
|
---|
828 | HRESULT SetRelativePath(
|
---|
829 | [in] LPCWSTR pszPathRel,
|
---|
830 | [in] DWORD dwReserved);
|
---|
831 |
|
---|
832 | HRESULT Resolve(
|
---|
833 | [in] HWND hwnd,
|
---|
834 | [in] DWORD fFlags);
|
---|
835 |
|
---|
836 | HRESULT SetPath( [in] LPCWSTR pszFile );
|
---|
837 | }
|
---|
838 |
|
---|
839 | cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
|
---|
840 |
|
---|
841 |
|
---|
842 | /*****************************************************************************
|
---|
843 | * IShellExtInit interface
|
---|
844 | */
|
---|
845 | [
|
---|
846 | object,
|
---|
847 | uuid(000214e8-0000-0000-c000-000000000046),
|
---|
848 | pointer_default(unique),
|
---|
849 | local
|
---|
850 | ]
|
---|
851 | interface IShellExtInit : IUnknown
|
---|
852 | {
|
---|
853 | typedef IShellExtInit *LPSHELLEXTINIT;
|
---|
854 |
|
---|
855 | HRESULT Initialize(
|
---|
856 | [in] LPCITEMIDLIST pidlFolder,
|
---|
857 | [in] IDataObject *pdtobj,
|
---|
858 | [in] HKEY hkeyProgID);
|
---|
859 | }
|
---|
860 |
|
---|
861 |
|
---|
862 | /*******************************************************************************/
|
---|
863 | /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
|
---|
864 | /* are declared directly in shlobj.h. It hopefully won't break anything to put */
|
---|
865 | /* them here anyway. */
|
---|
866 | /*******************************************************************************/
|
---|
867 |
|
---|
868 | #ifndef MAX_PATH
|
---|
869 | #define MAX_PATH 260
|
---|
870 | #endif
|
---|
871 |
|
---|
872 |
|
---|
873 | /*****************************************************************************
|
---|
874 | * IPersistFolder3 interface
|
---|
875 | */
|
---|
876 | [
|
---|
877 | object,
|
---|
878 | uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
|
---|
879 | pointer_default(unique)
|
---|
880 | ]
|
---|
881 | interface IPersistFolder3 : IPersistFolder2
|
---|
882 | {
|
---|
883 | typedef struct
|
---|
884 | {
|
---|
885 | LPITEMIDLIST pidlTargetFolder;
|
---|
886 | WCHAR szTargetParsingName[MAX_PATH];
|
---|
887 | WCHAR szNetworkProvider[MAX_PATH];
|
---|
888 | DWORD dwAttributes;
|
---|
889 | int csidl;
|
---|
890 | } PERSIST_FOLDER_TARGET_INFO;
|
---|
891 |
|
---|
892 | HRESULT InitializeEx(
|
---|
893 | [in] IBindCtx *pbc,
|
---|
894 | [in] LPCITEMIDLIST pidlRoot,
|
---|
895 | [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
|
---|
896 |
|
---|
897 | HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
|
---|
898 | }
|
---|
899 |
|
---|
900 |
|
---|
901 | /*****************************************************************************
|
---|
902 | * IExtractIconA interface
|
---|
903 | */
|
---|
904 | [
|
---|
905 | object,
|
---|
906 | uuid(000214eb-0000-0000-c000-000000000046),
|
---|
907 | pointer_default(unique),
|
---|
908 | local
|
---|
909 | ]
|
---|
910 | interface IExtractIconA : IUnknown
|
---|
911 | {
|
---|
912 | cpp_quote("#define GIL_OPENICON 0x0001")
|
---|
913 | cpp_quote("#define GIL_FORSHELL 0x0002")
|
---|
914 | cpp_quote("#define GIL_ASYNC 0x0020")
|
---|
915 | cpp_quote("#define GIL_DEFAULTICON 0x0040")
|
---|
916 | cpp_quote("#define GIL_FORSHORTCUT 0x0080")
|
---|
917 |
|
---|
918 | cpp_quote("#define GIL_SIMULATEDOC 0x0001")
|
---|
919 | cpp_quote("#define GIL_PERINSTANCE 0x0002")
|
---|
920 | cpp_quote("#define GIL_PERCLASS 0x0004")
|
---|
921 | cpp_quote("#define GIL_NOTFILENAME 0x0008")
|
---|
922 | cpp_quote("#define GIL_DONTCACHE 0x0010")
|
---|
923 |
|
---|
924 | typedef IExtractIconA *LPEXTRACTICONA;
|
---|
925 |
|
---|
926 | HRESULT GetIconLocation(
|
---|
927 | [in] UINT uFlags,
|
---|
928 | [out, size_is(cchMax)] LPSTR szIconFile,
|
---|
929 | [in] UINT cchMax,
|
---|
930 | [out] INT *piIndex,
|
---|
931 | [out] UINT *pwFlags);
|
---|
932 |
|
---|
933 | HRESULT Extract(
|
---|
934 | [in] LPCSTR pszFile,
|
---|
935 | [in] UINT nIconIndex,
|
---|
936 | [out] HICON *phiconLarge,
|
---|
937 | [out] HICON *phiconSmall,
|
---|
938 | [in] UINT nIconSize );
|
---|
939 | }
|
---|
940 |
|
---|
941 |
|
---|
942 | /*****************************************************************************
|
---|
943 | * IExtractIconW interface
|
---|
944 | */
|
---|
945 | [
|
---|
946 | object,
|
---|
947 | uuid(000214fa-0000-0000-c000-000000000046),
|
---|
948 | pointer_default(unique),
|
---|
949 | local
|
---|
950 | ]
|
---|
951 | interface IExtractIconW : IUnknown
|
---|
952 | {
|
---|
953 | typedef IExtractIconW *LPEXTRACTICONW;
|
---|
954 |
|
---|
955 | HRESULT GetIconLocation(
|
---|
956 | [in] UINT uFlags,
|
---|
957 | [out, size_is(cchMax)] LPWSTR szIconFile,
|
---|
958 | [in] UINT cchMax,
|
---|
959 | [out] INT *piIndex,
|
---|
960 | [out] UINT *pwFlags);
|
---|
961 |
|
---|
962 | HRESULT Extract(
|
---|
963 | [in] LPCWSTR pszFile,
|
---|
964 | [in] UINT nIconIndex,
|
---|
965 | [out] HICON *phiconLarge,
|
---|
966 | [out] HICON *phiconSmall,
|
---|
967 | [in] UINT nIconSize );
|
---|
968 | }
|
---|
969 |
|
---|
970 | cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
|
---|
971 | cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
|
---|
972 |
|
---|
973 |
|
---|
974 | /*****************************************************************************
|
---|
975 | * ICommDlgBrowser interface
|
---|
976 | */
|
---|
977 | [
|
---|
978 | object,
|
---|
979 | uuid(000214f1-0000-0000-c000-000000000046),
|
---|
980 | pointer_default(unique)
|
---|
981 | ]
|
---|
982 | interface ICommDlgBrowser : IUnknown
|
---|
983 | {
|
---|
984 | cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
|
---|
985 | cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
|
---|
986 | cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
|
---|
987 | cpp_quote("#define CDBOSC_RENAME 0x00000003")
|
---|
988 | cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
|
---|
989 |
|
---|
990 | typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
|
---|
991 |
|
---|
992 | HRESULT OnDefaultCommand( [in] IShellView *shv );
|
---|
993 | HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
|
---|
994 | HRESULT IncludeObject( [in] IShellView *shv, [in] LPCITEMIDLIST pidl );
|
---|
995 | }
|
---|
996 |
|
---|
997 |
|
---|
998 | /*****************************************************************************
|
---|
999 | * IDockingWindowFrame interface
|
---|
1000 | */
|
---|
1001 | [
|
---|
1002 | object,
|
---|
1003 | uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
|
---|
1004 | pointer_default(unique),
|
---|
1005 | local
|
---|
1006 | ]
|
---|
1007 | interface IDockingWindowFrame : IOleWindow
|
---|
1008 | {
|
---|
1009 | cpp_quote("#define DWFRF_NORMAL 0x0000")
|
---|
1010 | cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
|
---|
1011 | cpp_quote("#define DWFAF_HIDDEN 0x0001")
|
---|
1012 |
|
---|
1013 | HRESULT AddToolbar(
|
---|
1014 | [in] IUnknown *punkSrc,
|
---|
1015 | [in] LPCWSTR pwszItem,
|
---|
1016 | [in] DWORD dwAddFlags);
|
---|
1017 |
|
---|
1018 | HRESULT RemoveToolbar(
|
---|
1019 | [in] IUnknown *punkSrc,
|
---|
1020 | [in] DWORD dwRemoveFlags);
|
---|
1021 |
|
---|
1022 | HRESULT FindToolbar(
|
---|
1023 | [in] LPCWSTR pwszItem,
|
---|
1024 | [in] REFIID riid,
|
---|
1025 | [out] LPVOID *ppvObj);
|
---|
1026 | }
|
---|
1027 |
|
---|
1028 |
|
---|
1029 | /*****************************************************************************
|
---|
1030 | * IDragSourceHelper interface
|
---|
1031 | */
|
---|
1032 | [
|
---|
1033 | object,
|
---|
1034 | uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
|
---|
1035 | pointer_default(unique),
|
---|
1036 | local
|
---|
1037 | ]
|
---|
1038 | interface IDragSourceHelper : IUnknown
|
---|
1039 | {
|
---|
1040 | typedef struct
|
---|
1041 | {
|
---|
1042 | SIZE sizeDragImage;
|
---|
1043 | POINT ptOffset;
|
---|
1044 | HBITMAP hbmpDragImage;
|
---|
1045 | COLORREF crColorKey;
|
---|
1046 | } SHDRAGIMAGE, *LPSHDRAGIMAGE;
|
---|
1047 |
|
---|
1048 | HRESULT InitializeFromBitmap(
|
---|
1049 | [in] LPSHDRAGIMAGE pshdi,
|
---|
1050 | [in] IDataObject *pDataObject);
|
---|
1051 |
|
---|
1052 | HRESULT InitializeFromWindow(
|
---|
1053 | [in] HWND hwnd,
|
---|
1054 | [in] POINT *ppt,
|
---|
1055 | [in] IDataObject *pDataObject);
|
---|
1056 | }
|
---|
1057 |
|
---|
1058 |
|
---|
1059 | /*****************************************************************************
|
---|
1060 | * IDropTargetHelper interface
|
---|
1061 | */
|
---|
1062 | [
|
---|
1063 | object,
|
---|
1064 | uuid(4657278b-411b-11d2-839a-00c04fd918d0),
|
---|
1065 | pointer_default(unique),
|
---|
1066 | local
|
---|
1067 | ]
|
---|
1068 | interface IDropTargetHelper : IUnknown
|
---|
1069 | {
|
---|
1070 | HRESULT DragEnter(
|
---|
1071 | [in] HWND hwndTarget,
|
---|
1072 | [in] IDataObject *pDataObject,
|
---|
1073 | [in] POINT *ppt,
|
---|
1074 | [in] DWORD dwEffect);
|
---|
1075 |
|
---|
1076 | HRESULT DragLeave();
|
---|
1077 |
|
---|
1078 | HRESULT DragOver(
|
---|
1079 | [in] POINT *ppt,
|
---|
1080 | [in] DWORD dwEffect);
|
---|
1081 |
|
---|
1082 | HRESULT Drop(
|
---|
1083 | [in] IDataObject *pDataObject,
|
---|
1084 | [in] POINT *ppt,
|
---|
1085 | [in] DWORD dwEffect);
|
---|
1086 |
|
---|
1087 | HRESULT Show( [in] BOOL fShow );
|
---|
1088 | }
|
---|
1089 |
|
---|
1090 |
|
---|
1091 | /*****************************************************************************
|
---|
1092 | * IContextMenu interface
|
---|
1093 | */
|
---|
1094 | [
|
---|
1095 | object,
|
---|
1096 | uuid(000214e4-0000-0000-c000-000000000046),
|
---|
1097 | pointer_default(unique),
|
---|
1098 | local
|
---|
1099 | ]
|
---|
1100 | interface IContextMenu : IUnknown
|
---|
1101 | {
|
---|
1102 | cpp_quote("#define CMF_NORMAL 0x00000000")
|
---|
1103 | cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
|
---|
1104 | cpp_quote("#define CMF_VERBSONLY 0x00000002")
|
---|
1105 | cpp_quote("#define CMF_EXPLORE 0x00000004")
|
---|
1106 | cpp_quote("#define CMF_NOVERBS 0x00000008")
|
---|
1107 | cpp_quote("#define CMF_CANRENAME 0x00000010")
|
---|
1108 | cpp_quote("#define CMF_NODEFAULT 0x00000020")
|
---|
1109 | cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
|
---|
1110 | cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
|
---|
1111 | cpp_quote("#define CMF_RESERVED 0xffff0000")
|
---|
1112 |
|
---|
1113 | cpp_quote("#define GCS_VERBA 0x00000000")
|
---|
1114 | cpp_quote("#define GCS_HELPTEXTA 0x00000001")
|
---|
1115 | cpp_quote("#define GCS_VALIDATEA 0x00000002")
|
---|
1116 | cpp_quote("#define GCS_VERBW 0x00000004")
|
---|
1117 | cpp_quote("#define GCS_HELPTEXTW 0x00000005")
|
---|
1118 | cpp_quote("#define GCS_VALIDATEW 0x00000006")
|
---|
1119 | cpp_quote("#define GCS_UNICODE 0x00000004")
|
---|
1120 | cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
|
---|
1121 | cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
|
---|
1122 | cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
|
---|
1123 |
|
---|
1124 | cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
|
---|
1125 | cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
|
---|
1126 | cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
|
---|
1127 | cpp_quote("#if defined(__GNUC__)")
|
---|
1128 | cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
|
---|
1129 | cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
|
---|
1130 | cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
|
---|
1131 | cpp_quote("#elif defined(_MSC_VER)")
|
---|
1132 | cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
|
---|
1133 | cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
|
---|
1134 | cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
|
---|
1135 | cpp_quote("#else")
|
---|
1136 | cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
|
---|
1137 | cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
|
---|
1138 | cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
|
---|
1139 | cpp_quote("#endif")
|
---|
1140 | cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
|
---|
1141 | cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
|
---|
1142 | cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
|
---|
1143 |
|
---|
1144 | cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
|
---|
1145 | cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
|
---|
1146 | cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
|
---|
1147 | cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
|
---|
1148 | cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
|
---|
1149 | cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
|
---|
1150 | cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
|
---|
1151 | cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
|
---|
1152 | cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
|
---|
1153 | cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
|
---|
1154 | cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
|
---|
1155 | cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
|
---|
1156 | cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
|
---|
1157 | cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
|
---|
1158 |
|
---|
1159 | typedef IContextMenu *LPCONTEXTMENU;
|
---|
1160 |
|
---|
1161 | typedef struct tagCMINVOKECOMMANDINFO
|
---|
1162 | {
|
---|
1163 | DWORD cbSize;
|
---|
1164 | DWORD fMask;
|
---|
1165 | HWND hwnd;
|
---|
1166 | LPCSTR lpVerb;
|
---|
1167 | LPCSTR lpParameters;
|
---|
1168 | LPCSTR lpDirectory;
|
---|
1169 | INT nShow;
|
---|
1170 | DWORD dwHotKey;
|
---|
1171 | HANDLE hIcon;
|
---|
1172 | } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
|
---|
1173 |
|
---|
1174 | typedef struct tagCMInvokeCommandInfoEx
|
---|
1175 | {
|
---|
1176 | DWORD cbSize;
|
---|
1177 | DWORD fMask;
|
---|
1178 | HWND hwnd;
|
---|
1179 | LPCSTR lpVerb;
|
---|
1180 | LPCSTR lpParameters;
|
---|
1181 | LPCSTR lpDirectory;
|
---|
1182 | INT nShow;
|
---|
1183 | DWORD dwHotKey;
|
---|
1184 | HANDLE hIcon;
|
---|
1185 | LPCSTR lpTitle;
|
---|
1186 | LPCWSTR lpVerbW;
|
---|
1187 | LPCWSTR lpParametersW;
|
---|
1188 | LPCWSTR lpDirectoryW;
|
---|
1189 | LPCWSTR lpTitleW;
|
---|
1190 | POINT ptInvoke;
|
---|
1191 | } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
|
---|
1192 |
|
---|
1193 | HRESULT QueryContextMenu(
|
---|
1194 | [in] HMENU hmenu,
|
---|
1195 | [in] UINT indexMenu,
|
---|
1196 | [in] UINT idCmdFirst,
|
---|
1197 | [in] UINT idCmdLast,
|
---|
1198 | [in] UINT uFlags);
|
---|
1199 |
|
---|
1200 | HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
|
---|
1201 |
|
---|
1202 | HRESULT GetCommandString(
|
---|
1203 | [in] UINT_PTR idCmd,
|
---|
1204 | [in] UINT uType,
|
---|
1205 | [out] UINT *pwReserved,
|
---|
1206 | [out, size_is(cchMax)] LPSTR pszName,
|
---|
1207 | [in] UINT cchMax);
|
---|
1208 | }
|
---|
1209 |
|
---|
1210 |
|
---|
1211 | /*****************************************************************************
|
---|
1212 | * IContextMenu2 interface
|
---|
1213 | */
|
---|
1214 | [
|
---|
1215 | object,
|
---|
1216 | uuid(000214f4-0000-0000-c000-000000000046),
|
---|
1217 | pointer_default(unique),
|
---|
1218 | local
|
---|
1219 | ]
|
---|
1220 | interface IContextMenu2 : IContextMenu
|
---|
1221 | {
|
---|
1222 | typedef IContextMenu2 *LPCONTEXTMENU2;
|
---|
1223 |
|
---|
1224 | HRESULT HandleMenuMsg(
|
---|
1225 | [in] UINT uMsg,
|
---|
1226 | [in] WPARAM wParam,
|
---|
1227 | [in] LPARAM lParam);
|
---|
1228 | }
|
---|
1229 |
|
---|
1230 |
|
---|
1231 | /*****************************************************************************
|
---|
1232 | * IContextMenu3 interface
|
---|
1233 | */
|
---|
1234 | [
|
---|
1235 | object,
|
---|
1236 | uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
|
---|
1237 | pointer_default(unique),
|
---|
1238 | local
|
---|
1239 | ]
|
---|
1240 | interface IContextMenu3 : IContextMenu2
|
---|
1241 | {
|
---|
1242 | typedef IContextMenu3 *LPCONTEXTMENU3;
|
---|
1243 |
|
---|
1244 | HRESULT HandleMenuMsg2(
|
---|
1245 | [in] UINT uMsg,
|
---|
1246 | [in] WPARAM wParam,
|
---|
1247 | [in] LPARAM lParam,
|
---|
1248 | [out] LRESULT *plResult);
|
---|
1249 | }
|
---|
1250 |
|
---|
1251 |
|
---|
1252 | /*****************************************************************************
|
---|
1253 | * IShellExecuteHookA interface
|
---|
1254 | */
|
---|
1255 | [
|
---|
1256 | object,
|
---|
1257 | uuid(000214f5-0000-0000-c000-000000000046),
|
---|
1258 | pointer_default(unique),
|
---|
1259 | local
|
---|
1260 | ]
|
---|
1261 | interface IShellExecuteHookA : IUnknown
|
---|
1262 | {
|
---|
1263 | cpp_quote("struct _SHELLEXECUTEINFOA;")
|
---|
1264 | HRESULT Execute(
|
---|
1265 | [in, out] struct _SHELLEXECUTEINFOA* pei);
|
---|
1266 | }
|
---|
1267 |
|
---|
1268 |
|
---|
1269 | /*****************************************************************************
|
---|
1270 | * IShellExecuteHookW interface
|
---|
1271 | */
|
---|
1272 | [
|
---|
1273 | object,
|
---|
1274 | uuid(000214fb-0000-0000-c000-000000000046),
|
---|
1275 | pointer_default(unique),
|
---|
1276 | local
|
---|
1277 | ]
|
---|
1278 | interface IShellExecuteHookW : IUnknown
|
---|
1279 | {
|
---|
1280 | cpp_quote("struct _SHELLEXECUTEINFOW;")
|
---|
1281 | HRESULT Execute(
|
---|
1282 | [in, out] struct _SHELLEXECUTEINFOW* pei);
|
---|
1283 | }
|
---|
1284 |
|
---|
1285 | /*****************************************************************************
|
---|
1286 | * IShellLinkDataList interface
|
---|
1287 | */
|
---|
1288 | [
|
---|
1289 | object,
|
---|
1290 | uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
|
---|
1291 | pointer_default(unique)
|
---|
1292 | ]
|
---|
1293 | interface IShellLinkDataList : IUnknown
|
---|
1294 | {
|
---|
1295 | [local] HRESULT AddDataBlock(
|
---|
1296 | [in] void *pDataBlock);
|
---|
1297 | [local] HRESULT CopyDataBlock(
|
---|
1298 | [in] DWORD dwSig,
|
---|
1299 | [out] void **ppDataBlock);
|
---|
1300 | HRESULT RemoveDataBlock(
|
---|
1301 | [in] DWORD dwSig);
|
---|
1302 | HRESULT GetFlags(
|
---|
1303 | [out] DWORD *pdwFlags);
|
---|
1304 | HRESULT SetFlags(
|
---|
1305 | [in] DWORD dwFlags);
|
---|
1306 | }
|
---|
1307 |
|
---|
1308 |
|
---|
1309 | /*****************************************************************************
|
---|
1310 | * IResolveShellLink interface
|
---|
1311 | */
|
---|
1312 | [
|
---|
1313 | object,
|
---|
1314 | uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
|
---|
1315 | pointer_default(unique)
|
---|
1316 | ]
|
---|
1317 | interface IResolveShellLink : IUnknown
|
---|
1318 | {
|
---|
1319 | HRESULT ResolveShellLink(
|
---|
1320 | [in] IUnknown *punk,
|
---|
1321 | [in] HWND hwnd,
|
---|
1322 | [in] DWORD fFlags);
|
---|
1323 | }
|
---|
1324 |
|
---|
1325 |
|
---|
1326 | /*****************************************************************************
|
---|
1327 | * IURLSearchHook interface
|
---|
1328 | */
|
---|
1329 | [
|
---|
1330 | object,
|
---|
1331 | uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
|
---|
1332 | pointer_default(unique),
|
---|
1333 | local
|
---|
1334 | ]
|
---|
1335 | interface IURLSearchHook : IUnknown
|
---|
1336 | {
|
---|
1337 | HRESULT Translate(
|
---|
1338 | [in, out] LPWSTR lpwszSearchURL,
|
---|
1339 | [in] DWORD cchBufferSize);
|
---|
1340 | }
|
---|
1341 |
|
---|
1342 |
|
---|
1343 | /*****************************************************************************
|
---|
1344 | * ISearchContext interface
|
---|
1345 | */
|
---|
1346 | [
|
---|
1347 | object,
|
---|
1348 | uuid(09f656a2-41af-480c-88f7-16cc0d164615),
|
---|
1349 | pointer_default(unique),
|
---|
1350 | local
|
---|
1351 | ]
|
---|
1352 | interface ISearchContext : IUnknown
|
---|
1353 | {
|
---|
1354 | HRESULT GetSearchUrl(
|
---|
1355 | [in] BSTR *pbstrSearchUrl);
|
---|
1356 | HRESULT GetSearchText(
|
---|
1357 | [in] BSTR *pbstrSearchText);
|
---|
1358 | HRESULT GetSearchStyle(
|
---|
1359 | [in] BSTR *pdwSearchStyle);
|
---|
1360 | }
|
---|
1361 |
|
---|
1362 |
|
---|
1363 | /*****************************************************************************
|
---|
1364 | * IURLSearchHook2 interface
|
---|
1365 | */
|
---|
1366 | [
|
---|
1367 | object,
|
---|
1368 | uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
|
---|
1369 | pointer_default(unique),
|
---|
1370 | local
|
---|
1371 | ]
|
---|
1372 | interface IURLSearchHook2 : IURLSearchHook
|
---|
1373 | {
|
---|
1374 | HRESULT TranslateWithSearchContext(
|
---|
1375 | [in, out] LPWSTR lpwszSearchURL,
|
---|
1376 | [in] DWORD cchBufferSize,
|
---|
1377 | [in] ISearchContext *pSearchContext);
|
---|
1378 | }
|
---|
1379 |
|
---|
1380 |
|
---|
1381 | cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
|
---|
1382 |
|
---|
1383 | /*****************************************************************************
|
---|
1384 | * INewShortcutHookA interface
|
---|
1385 | */
|
---|
1386 | [
|
---|
1387 | object,
|
---|
1388 | uuid(000214e1-0000-0000-c000-000000000046),
|
---|
1389 | pointer_default(unique),
|
---|
1390 | local
|
---|
1391 | ]
|
---|
1392 | interface INewShortcutHookA : IUnknown
|
---|
1393 | {
|
---|
1394 | HRESULT SetReferent(
|
---|
1395 | [in] LPCSTR pcszReferent,
|
---|
1396 | [in] HWND hwnd);
|
---|
1397 | HRESULT GetReferent(
|
---|
1398 | [out] LPSTR pcszReferent,
|
---|
1399 | [in] int cchReferent);
|
---|
1400 | HRESULT SetFolder(
|
---|
1401 | [in] LPCSTR pcszReferent);
|
---|
1402 | HRESULT GetFolder(
|
---|
1403 | [out] LPSTR pcszReferent,
|
---|
1404 | [in] int cchFolder);
|
---|
1405 | HRESULT GetName(
|
---|
1406 | [out] LPSTR pszName,
|
---|
1407 | [in] int cchName);
|
---|
1408 | HRESULT GetExtension(
|
---|
1409 | [out] LPSTR pszExtension,
|
---|
1410 | [in] int cchExtension);
|
---|
1411 | }
|
---|
1412 |
|
---|
1413 |
|
---|
1414 | /*****************************************************************************
|
---|
1415 | * INewShortcutHookW interface
|
---|
1416 | */
|
---|
1417 | [
|
---|
1418 | object,
|
---|
1419 | uuid(000214f7-0000-0000-c000-000000000046),
|
---|
1420 | pointer_default(unique),
|
---|
1421 | local
|
---|
1422 | ]
|
---|
1423 | interface INewShortcutHookW : IUnknown
|
---|
1424 | {
|
---|
1425 | HRESULT SetReferent(
|
---|
1426 | [in] LPCWSTR pcszReferent,
|
---|
1427 | [in] HWND hwnd);
|
---|
1428 | HRESULT GetReferent(
|
---|
1429 | [out] LPWSTR pcszReferent,
|
---|
1430 | [in] int cchReferent);
|
---|
1431 | HRESULT SetFolder(
|
---|
1432 | [in] LPCWSTR pcszReferent);
|
---|
1433 | HRESULT GetFolder(
|
---|
1434 | [out] LPWSTR pcszReferent,
|
---|
1435 | [in] int cchFolder);
|
---|
1436 | HRESULT GetName(
|
---|
1437 | [out] LPWSTR pszName,
|
---|
1438 | [in] int cchName);
|
---|
1439 | HRESULT GetExtension(
|
---|
1440 | [out] LPWSTR pszExtension,
|
---|
1441 | [in] int cchExtension);
|
---|
1442 | }
|
---|
1443 |
|
---|
1444 | /*****************************************************************************
|
---|
1445 | * IRunnableTask interface
|
---|
1446 | */
|
---|
1447 | [
|
---|
1448 | object,
|
---|
1449 | uuid(85788d00-6807-11d0-b810-00c04fd706ec),
|
---|
1450 | pointer_default(unique),
|
---|
1451 | local
|
---|
1452 | ]
|
---|
1453 | interface IRunnableTask : IUnknown
|
---|
1454 | {
|
---|
1455 | HRESULT Run();
|
---|
1456 | HRESULT Kill([in] BOOL fWait);
|
---|
1457 | HRESULT Suspend();
|
---|
1458 | HRESULT Resume();
|
---|
1459 | ULONG IsRunning();
|
---|
1460 | }
|
---|
1461 |
|
---|
1462 | /*****************************************************************************
|
---|
1463 | * IShellChangeNotify interface
|
---|
1464 | */
|
---|
1465 | [
|
---|
1466 | object,
|
---|
1467 | uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
|
---|
1468 | pointer_default(unique),
|
---|
1469 | local
|
---|
1470 | ]
|
---|
1471 | interface IShellChangeNotify : IUnknown
|
---|
1472 | {
|
---|
1473 | HRESULT OnChange(
|
---|
1474 | [in] LONG lEvent,
|
---|
1475 | [in] LPCITEMIDLIST pidl1,
|
---|
1476 | [in] LPCITEMIDLIST pidl2);
|
---|
1477 | }
|
---|
1478 |
|
---|
1479 | /*****************************************************************************
|
---|
1480 | * IFileSystemBindData interface
|
---|
1481 | */
|
---|
1482 | [
|
---|
1483 | object,
|
---|
1484 | uuid(01e18d10-4d8b-11d2-855d-006008059367),
|
---|
1485 | pointer_default(unique),
|
---|
1486 | local
|
---|
1487 | ]
|
---|
1488 | interface IFileSystemBindData : IUnknown
|
---|
1489 | {
|
---|
1490 | HRESULT SetFindData(
|
---|
1491 | [in] const WIN32_FIND_DATAW *pfd);
|
---|
1492 | HRESULT GetFindData(
|
---|
1493 | [out] WIN32_FIND_DATAW *pfd);
|
---|
1494 | }
|
---|
1495 |
|
---|
1496 | /*****************************************************************************
|
---|
1497 | * ITaskbarList interface
|
---|
1498 | */
|
---|
1499 | [
|
---|
1500 | object,
|
---|
1501 | uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
|
---|
1502 | pointer_default(unique)
|
---|
1503 | ]
|
---|
1504 | interface ITaskbarList : IUnknown
|
---|
1505 | {
|
---|
1506 | HRESULT HrInit();
|
---|
1507 |
|
---|
1508 | HRESULT AddTab(
|
---|
1509 | [in] HWND hwnd);
|
---|
1510 |
|
---|
1511 | HRESULT DeleteTab(
|
---|
1512 | [in] HWND hwnd);
|
---|
1513 |
|
---|
1514 | HRESULT ActivateTab(
|
---|
1515 | [in] HWND hwnd);
|
---|
1516 |
|
---|
1517 | HRESULT SetActiveAlt(
|
---|
1518 | [in] HWND hwnd);
|
---|
1519 | }
|
---|
1520 |
|
---|
1521 | cpp_quote("EXTERN_C const CLSID CLSID_TaskbarList;")
|
---|
1522 |
|
---|
1523 | /*****************************************************************************
|
---|
1524 | * IAutoCompleteDropDown interface
|
---|
1525 | */
|
---|
1526 | [
|
---|
1527 | object,
|
---|
1528 | uuid(3CD141F4-3C6A-11d2-BCAA-00C04FD929DB),
|
---|
1529 | pointer_default(unique)
|
---|
1530 | ]
|
---|
1531 | interface IAutoCompleteDropDown : IUnknown
|
---|
1532 | {
|
---|
1533 | cpp_quote("#define ACDD_VISIBLE 0x0001")
|
---|
1534 |
|
---|
1535 | HRESULT GetDropDownStatus(
|
---|
1536 | [out] DWORD *pdwFlags,
|
---|
1537 | [out, string] LPWSTR *ppwszString);
|
---|
1538 |
|
---|
1539 | HRESULT ResetEnumerator();
|
---|
1540 | }
|
---|
1541 |
|
---|
1542 | [
|
---|
1543 | object,
|
---|
1544 | uuid(cb728b20-f786-11ce-92ad-00aa00a74cd0),
|
---|
1545 | pointer_default(unique)
|
---|
1546 | ]
|
---|
1547 | interface IProfferService : IUnknown
|
---|
1548 | {
|
---|
1549 | HRESULT ProfferService(
|
---|
1550 | [in] REFGUID service,
|
---|
1551 | [in] IServiceProvider *pService,
|
---|
1552 | [out] DWORD *pCookie);
|
---|
1553 |
|
---|
1554 | HRESULT RevokeService([in] DWORD cookie);
|
---|
1555 | }
|
---|