Sync with trunk r63887.
[reactos.git] / include / psdk / shobjidl.idl
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 import "objidl.idl";
23 import "oleidl.idl";
24 import "oaidl.idl";
25 import "docobj.idl";
26 import "shtypes.idl";
27 import "servprov.idl";
28 import "comcat.idl";
29 import "propidl.idl";
30 /* FIXME: import "prsht.idl";*/
31 import "msxml.idl";
32 import "wtypes.idl";
33 import "propsys.idl";
34 import "objectarray.idl";
35 /* FIXME: import "structuredquery.idl"; */
36
37 cpp_quote("/* FIXME: #include <sherrors.h> */")
38
39
40 /*****************************************************************************
41 * IPersistFolder interface
42 */
43 [
44 object,
45 uuid(000214ea-0000-0000-c000-000000000046),
46 pointer_default(unique)
47 ]
48 interface IPersistFolder : IPersist
49 {
50 typedef IPersistFolder *LPPERSISTFOLDER;
51
52 HRESULT Initialize( [in] LPCITEMIDLIST pidl );
53 }
54
55
56 /*****************************************************************************
57 * IPersistFolder2 interface
58 */
59 [
60 object,
61 uuid(1ac3d9f0-175c-11d1-95be-00609797ea4f),
62 pointer_default(unique)
63 ]
64 interface IPersistFolder2 : IPersistFolder
65 {
66 typedef IPersistFolder2 *LPPERSISTFOLDER2;
67
68 HRESULT GetCurFolder( [out] LPITEMIDLIST *ppidl );
69 }
70
71
72 /*****************************************************************************
73 * IPersistIDList interface
74 */
75 [
76 object,
77 uuid(1079acfc-29bd-11d3-8e0d-00c04f6837d5),
78 pointer_default(unique)
79 ]
80 interface IPersistIDList : IPersist
81 {
82 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
83 HRESULT GetIDList( [out] LPITEMIDLIST *ppidl );
84 }
85
86
87 /*****************************************************************************
88 * IEnumIDList interface
89 */
90 [
91 object,
92 uuid(000214f2-0000-0000-c000-000000000046),
93 pointer_default(unique)
94 ]
95 interface IEnumIDList : IUnknown
96 {
97 typedef IEnumIDList *LPENUMIDLIST;
98
99 HRESULT Next(
100 [in] ULONG celt,
101 [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
102 [out] ULONG *pceltFetched);
103
104 HRESULT Skip( [in] ULONG celt );
105 HRESULT Reset();
106 HRESULT Clone( [out] IEnumIDList **ppenum );
107 }
108
109 /*****************************************************************************
110 * IShellPropSheetExt interface
111 */
112 cpp_quote("#if 0")
113 typedef LPARAM LPFNSVADDPROPSHEETPAGE;
114 cpp_quote("#else")
115 cpp_quote("#include <prsht.h>")
116 cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
117 cpp_quote("#endif")
118
119 [
120 object,
121 uuid(000214E9-0000-0000-C000-000000000046),
122 pointer_default(unique),
123 local
124 ]
125 interface IShellPropSheetExt : IUnknown
126 {
127 enum tagSHELLPROPSHEETEXTPAGEID {
128 EXPPS_FILETYPES = 0x1
129 };
130
131 typedef UINT EXPPS;
132
133 HRESULT AddPages(
134 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
135 [in] LPARAM lParam);
136 HRESULT ReplacePage(
137 [in] EXPPS uPageID,
138 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
139 [in] LPARAM lParam);
140 }
141 typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
142
143 /*****************************************************************************
144 * IShellFolder interface
145 */
146 [
147 object,
148 uuid(000214e6-0000-0000-c000-000000000046),
149 pointer_default(unique)
150 ]
151 interface IShellFolder : IUnknown
152 {
153 typedef IShellFolder * LPSHELLFOLDER;
154
155 typedef enum tagSHGDN
156 {
157 SHGDN_NORMAL = 0,
158 SHGDN_INFOLDER = 1,
159 SHGDN_FOREDITING = 0x1000,
160 SHGDN_INCLUDE_NONFILESYS = 0x2000,
161 SHGDN_FORADDRESSBAR = 0x4000,
162 SHGDN_FORPARSING = 0x8000
163 } SHGNO;
164
165 typedef DWORD SHGDNF;
166
167 enum tagSHCONTF
168 {
169 SHCONTF_FOLDERS = 32,
170 SHCONTF_NONFOLDERS = 64,
171 SHCONTF_INCLUDEHIDDEN = 128,
172 SHCONTF_INIT_ON_FIRST_NEXT = 256,
173 SHCONTF_NETPRINTERSRCH = 512,
174 SHCONTF_SHAREABLE = 1024,
175 SHCONTF_STORAGE = 2048
176 };
177
178 typedef DWORD SHCONTF;
179
180 cpp_quote("#define SFGAO_CANCOPY DROPEFFECT_COPY")
181 cpp_quote("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
182 cpp_quote("#define SFGAO_CANLINK DROPEFFECT_LINK")
183 cpp_quote("#define SFGAO_STORAGE 0x00000008L")
184 cpp_quote("#define SFGAO_CANRENAME 0x00000010L")
185 cpp_quote("#define SFGAO_CANDELETE 0x00000020L")
186 cpp_quote("#define SFGAO_HASPROPSHEET 0x00000040L")
187 cpp_quote("#define SFGAO_DROPTARGET 0x00000100L")
188 cpp_quote("#define SFGAO_CAPABILITYMASK 0x00000177L")
189 cpp_quote("#define SFGAO_ENCRYPTED 0x00002000L")
190 cpp_quote("#define SFGAO_ISSLOW 0x00004000L")
191 cpp_quote("#define SFGAO_GHOSTED 0x00008000L")
192 cpp_quote("#define SFGAO_LINK 0x00010000L")
193 cpp_quote("#define SFGAO_SHARE 0x00020000L")
194 cpp_quote("#define SFGAO_READONLY 0x00040000L")
195 cpp_quote("#define SFGAO_HIDDEN 0x00080000L")
196 cpp_quote("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
197 cpp_quote("#define SFGAO_FILESYSANCESTOR 0x10000000L")
198 cpp_quote("#define SFGAO_FOLDER 0x20000000L")
199 cpp_quote("#define SFGAO_FILESYSTEM 0x40000000L")
200 cpp_quote("#define SFGAO_HASSUBFOLDER 0x80000000L")
201 cpp_quote("#define SFGAO_CONTENTSMASK 0x80000000L")
202 cpp_quote("#define SFGAO_VALIDATE 0x01000000L")
203 cpp_quote("#define SFGAO_REMOVABLE 0x02000000L")
204 cpp_quote("#define SFGAO_COMPRESSED 0x04000000L")
205 cpp_quote("#define SFGAO_BROWSABLE 0x08000000L")
206 cpp_quote("#define SFGAO_NONENUMERATED 0x00100000L")
207 cpp_quote("#define SFGAO_NEWCONTENT 0x00200000L")
208 cpp_quote("#define SFGAO_STREAM 0x00400000L")
209 cpp_quote("#define SFGAO_STORAGEANCESTOR 0x00800000L")
210
211 typedef ULONG SFGAOF;
212
213 HRESULT ParseDisplayName(
214 [in] HWND hwndOwner,
215 [in] LPBC pbcReserved,
216 [in, string] LPOLESTR lpszDisplayName,
217 [out] ULONG *pchEaten,
218 [out] LPITEMIDLIST *ppidl,
219 [in, out, unique] ULONG *pdwAttributes);
220
221 HRESULT EnumObjects(
222 [in] HWND hwndOwner,
223 [in] SHCONTF grfFlags,
224 [out] IEnumIDList **ppenumIDList);
225
226 HRESULT BindToObject(
227 [in] PCUIDLIST_RELATIVE pidl,
228 [in] LPBC pbcReserved,
229 [in] REFIID riid,
230 [out, iid_is(riid)] void **ppvOut);
231
232 HRESULT BindToStorage(
233 [in] PCUIDLIST_RELATIVE pidl,
234 [in] LPBC pbcReserved,
235 [in] REFIID riid,
236 [out, iid_is(riid)] void **ppvObj);
237
238 HRESULT CompareIDs(
239 [in] LPARAM lParam,
240 [in] PCUIDLIST_RELATIVE pidl1,
241 [in] PCUIDLIST_RELATIVE pidl2);
242
243 HRESULT CreateViewObject(
244 [in] HWND hwndOwner,
245 [in] REFIID riid,
246 [out, iid_is(riid)] void **ppvOut);
247
248 HRESULT GetAttributesOf(
249 [in] UINT cidl,
250 [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
251 [in, out] SFGAOF *rgfInOut);
252
253 HRESULT GetUIObjectOf(
254 [in] HWND hwndOwner,
255 [in] UINT cidl,
256 [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
257 [in] REFIID riid,
258 [in, out, unique] UINT *prgfInOut,
259 [out, iid_is(riid)] void **ppvOut);
260
261 HRESULT GetDisplayNameOf(
262 [in] PCUITEMID_CHILD pidl,
263 [in] SHGDNF uFlags,
264 [out] STRRET *lpName);
265
266 HRESULT SetNameOf(
267 [in] HWND hwnd,
268 [in] PCUITEMID_CHILD pidl,
269 [in, string] LPCOLESTR lpszName,
270 [in] SHGDNF uFlags,
271 [out] PITEMID_CHILD *ppidlOut);
272 }
273
274
275 /*****************************************************************************
276 * IEnumExtraSearch interface
277 */
278 [
279 object,
280 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
281 pointer_default(unique)
282 ]
283 interface IEnumExtraSearch : IUnknown
284 {
285 typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
286
287 typedef struct
288 {
289 GUID guidSearch;
290 WCHAR wszFriendlyName[80];
291 /*
292 *WCHAR wszMenuText[80];
293 *WCHAR wszHelpText[MAX_PATH];
294 */
295 WCHAR wszUrl[2084];
296 /*
297 *WCHAR wszIcon[MAX_PATH+10];
298 *WCHAR wszGreyIcon[MAX_PATH+10];
299 *WCHAR wszClrIcon[MAX_PATH+10];
300 */
301 } EXTRASEARCH, *LPEXTRASEARCH;
302
303 HRESULT Next(
304 [in] ULONG celt,
305 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
306 [out] ULONG *pceltFetched);
307
308 HRESULT Skip( [in] ULONG celt );
309 HRESULT Reset();
310 HRESULT Clone( [out] IEnumExtraSearch **ppenum );
311 }
312
313
314 /*****************************************************************************
315 * IShellFolder2 interface
316 */
317 [
318 object,
319 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
320 pointer_default(unique)
321 ]
322 interface IShellFolder2 : IShellFolder
323 {
324 typedef struct
325 {
326 GUID fmtid;
327 DWORD pid;
328 } SHCOLUMNID, *LPSHCOLUMNID;
329 typedef const SHCOLUMNID *LPCSHCOLUMNID;
330
331 HRESULT GetDefaultSearchGUID( [out] GUID *lpguid );
332 HRESULT EnumSearches( [out] IEnumExtraSearch **ppenum );
333 HRESULT GetDefaultColumn( [in] DWORD dwReserved, [out] ULONG *pSort, [out] ULONG *pDisplay );
334 HRESULT GetDefaultColumnState( [in] UINT iColumn, [out] SHCOLSTATEF *pcsFlags );
335 HRESULT GetDetailsEx( [in] LPCITEMIDLIST pidl, [in] const SHCOLUMNID *pscid, [out] VARIANT *pv);
336 HRESULT GetDetailsOf( [in] LPCITEMIDLIST pidl, [in] UINT iColumn, [out] SHELLDETAILS *psd);
337 HRESULT MapColumnToSCID( [in] UINT iColumn, [in] SHCOLUMNID *pscid );
338 }
339
340 /*****************************************************************************
341 * IShellItem interface
342 */
343 [
344 object,
345 uuid(43826d1e-e718-42ee-bc55-a1e261c37bfe),
346 pointer_default(unique)
347 ]
348 interface IShellItem : IUnknown
349 {
350 typedef [v1_enum] enum {
351 SIGDN_NORMALDISPLAY = 0,
352 SIGDN_PARENTRELATIVEPARSING = 0x80018001,
353 SIGDN_DESKTOPABSOLUTEPARSING = 0x80028000,
354 SIGDN_PARENTRELATIVEEDITING = 0x80031001,
355 SIGDN_DESKTOPABSOLUTEEDITING = 0x8004c000,
356 SIGDN_FILESYSPATH = 0x80058000,
357 SIGDN_URL = 0x80068000,
358 SIGDN_PARENTRELATIVEFORADDRESSBAR = 0x8007c001,
359 SIGDN_PARENTRELATIVE = 0x80080001
360 } SIGDN; /* & 0xFFFF => SHGDN */
361
362 [v1_enum] enum _SICHINTF
363 {
364 SICHINT_DISPLAY = 0x00000000,
365 SICHINT_CANONICAL = 0x10000000,
366 SICHINT_TEST_FILESYSPATH_IF_NOT_EQUAL = 0x20000000,
367 SICHINT_ALLFIELDS = 0x80000000
368 };
369 typedef DWORD SICHINTF;
370
371 HRESULT BindToHandler(
372 [in] IBindCtx *pbc,
373 [in] REFGUID rbhid,
374 [in] REFIID riid,
375 [out, iid_is(riid)] void **ppvOut);
376
377 HRESULT GetParent( [out] IShellItem **ppsi );
378
379 HRESULT GetDisplayName(
380 [in] SIGDN sigdnName,
381 [out] LPWSTR *ppszName);
382
383 HRESULT GetAttributes(
384 [in] SFGAOF sfgaoMask,
385 [out] SFGAOF *psfgaoAttribs);
386
387 HRESULT Compare(
388 [in] IShellItem *psi,
389 [in] SICHINTF hint,
390 [out] int *piOrder);
391 }
392
393 /*****************************************************************************
394 * IShellItem2 interface
395 */
396 [
397 object,
398 uuid(7E9FB0D3-919F-4307-AB2E-9B1860310C93),
399 pointer_default(unique)
400 ]
401 interface IShellItem2 : IShellItem
402 {
403 HRESULT GetPropertyStore(
404 [in] GETPROPERTYSTOREFLAGS flags,
405 [in] REFIID riid,
406 [out, iid_is(riid)] void **ppv);
407
408 HRESULT GetPropertyStoreWithCreateObject(
409 [in] GETPROPERTYSTOREFLAGS flags,
410 [in] IUnknown *punkCreateObject,
411 [in] REFIID riid,
412 [out, iid_is(riid)] void **ppv);
413
414 HRESULT GetPropertyStoreForKeys(
415 [in, size_is(cKeys)] const PROPERTYKEY *rgKeys,
416 [in] UINT cKeys,
417 [in] GETPROPERTYSTOREFLAGS flags,
418 [in] REFIID riid,
419 [out, iid_is(riid)] void **ppv);
420
421 HRESULT GetPropertyDescriptionList(
422 [in] REFPROPERTYKEY keyType,
423 [in] REFIID riid,
424 [out, iid_is(riid)] void **ppv);
425
426 HRESULT Update(
427 [in, unique] IBindCtx *pbc);
428
429 HRESULT GetProperty(
430 [in] REFPROPERTYKEY key,
431 [out] PROPVARIANT *ppropvar);
432
433 HRESULT GetCLSID(
434 [in] REFPROPERTYKEY key,
435 [out] CLSID *pclsid);
436
437 HRESULT GetFileTime (
438 [in] REFPROPERTYKEY key,
439 [out] FILETIME *pft);
440
441 HRESULT GetInt32(
442 [in] REFPROPERTYKEY key,
443 [out] int *pi);
444
445 HRESULT GetString(
446 [in] REFPROPERTYKEY key,
447 [out, string] LPWSTR *ppsz);
448
449 HRESULT GetUInt32(
450 [in] REFPROPERTYKEY key,
451 [out] ULONG *pui);
452
453 HRESULT GetUInt64(
454 [in] REFPROPERTYKEY key,
455 [out] ULONGLONG *pull);
456
457 HRESULT GetBool(
458 [in] REFPROPERTYKEY key,
459 [out] BOOL *pf);
460 }
461
462 typedef enum tagNWMF {
463 NWMF_UNLOADING = 0x0001,
464 NWMF_USERINITED = 0x0002,
465 NWMF_FIRST = 0x0004,
466 NWMF_OVERRIDEKEY = 0x0008,
467 NWMF_SHOWHELP = 0x0010,
468 NWMF_HTMLDIALOG = 0x0020,
469 NWMF_FROMDIALOGCHILD = 0x0040,
470 NWMF_USERREQUESTED = 0x0080,
471 NWMF_USERALLOWED = 0x0100
472 } NWMF;
473
474 [
475 uuid(d2bc4c84-3f72-4a52-a604-7bcbf3982cbb),
476 object,
477 pointer_default(unique)
478 ]
479 interface INewWindowManager : IUnknown
480 {
481 HRESULT EvaluateNewWindow(
482 [in, string] LPCWSTR pszUrl,
483 [in, string] LPCWSTR pszName,
484 [in, string] LPCWSTR pszUrlContext,
485 [in, string] LPCWSTR pszFeatures,
486 [in] BOOL fReplace,
487 [in] DWORD dwFlags,
488 [in] DWORD dwUserActionTime);
489 }
490
491 cpp_quote("#define SID_SNewWindowManager IID_INewWindowManager")
492
493 /*****************************************************************************
494 * IEnumShellItems interface
495 */
496 [
497 object,
498 uuid(70629033-E363-4A28-A567-0DB78006E6D7),
499 pointer_default(unique)
500 ]
501 interface IEnumShellItems : IUnknown
502 {
503 [local] HRESULT Next(
504 [in] ULONG celt,
505 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
506 [out] ULONG *pceltFetched);
507
508 [call_as(Next)] HRESULT RemoteNext(
509 [in] ULONG celt,
510 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
511 [out] ULONG *pceltFetched);
512
513 HRESULT Skip(
514 [in] ULONG celt);
515
516 HRESULT Reset();
517
518 HRESULT Clone(
519 [out] IEnumShellItems **ppenum);
520 }
521
522 /*****************************************************************************
523 * IShellItemArray interface
524 */
525 [
526 object,
527 uuid(B63EA76D-1F85-456F-A19C-48159EFA858B),
528 pointer_default(unique)
529 ]
530 interface IShellItemArray : IUnknown
531 {
532 typedef [v1_enum] enum SIATTRIBFLAGS {
533 SIATTRIBFLAGS_AND = 0x0001,
534 SIATTRIBFLAGS_OR = 0x0002,
535 SIATTRIBFLAGS_APPCOMPAT = 0x0003,
536 SIATTRIBFLAGS_MASK = 0x0003,
537 SIATTRIBFLAGS_ALLITEMS = 0x4000
538 } SIATTRIBFLAGS;
539 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(SIATTRIBFLAGS)")
540
541 HRESULT BindToHandler(
542 [in, unique] IBindCtx *pbc,
543 [in] REFGUID bhid,
544 [in] REFIID riid,
545 [out, iid_is(riid)] void **ppvOut);
546
547 HRESULT GetPropertyStore(
548 [in] GETPROPERTYSTOREFLAGS flags,
549 [in] REFIID riid,
550 [out, iid_is(riid)] void **ppv);
551
552 HRESULT GetPropertyDescriptionList(
553 [in] REFPROPERTYKEY keyType,
554 [in] REFIID riid,
555 [out, iid_is(riid)] void **ppv);
556
557 HRESULT GetAttributes(
558 [in] SIATTRIBFLAGS AttribFlags,
559 [in] SFGAOF sfgaoMask,
560 [out] SFGAOF *psfgaoAttribs);
561
562 HRESULT GetCount(
563 [out] DWORD *pdwNumItems);
564
565 HRESULT GetItemAt(
566 [in] DWORD dwIndex,
567 [out] IShellItem **ppsi);
568
569 HRESULT EnumItems(
570 [out] IEnumShellItems **ppenumShellItems);
571
572 }
573
574 typedef [v1_enum] enum DATAOBJ_GET_ITEM_FLAGS
575 {
576 DOGIF_DEFAULT = 0x0,
577 DOGIF_TRAVERSE_LINK = 0x1,
578 DOGIF_NO_HDROP = 0x2,
579 DOGIF_NO_URL = 0x4,
580 DOGIF_ONLY_IF_ONE = 0x8
581 } DATAOBJ_GET_ITEM_FLAGS;
582 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DATAOBJ_GET_ITEM_FLAGS)")
583
584 cpp_quote("HRESULT WINAPI SHGetNameFromIDList(PCIDLIST_ABSOLUTE pidl, SIGDN sigdnName, PWSTR *ppszName);")
585 cpp_quote("HRESULT WINAPI SHCreateItemFromParsingName(PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv);")
586 cpp_quote("HRESULT WINAPI SHCreateItemFromIDList(PCIDLIST_ABSOLUTE pidl, REFIID riid, void **ppv);")
587 cpp_quote("HRESULT WINAPI SHGetItemFromDataObject(IDataObject *pdtobj, DATAOBJ_GET_ITEM_FLAGS dwFlags, REFIID riid, void **ppv);")
588 cpp_quote("HRESULT WINAPI SHGetIDListFromObject(IUnknown *punk, PIDLIST_ABSOLUTE *ppidl);")
589 cpp_quote("HRESULT WINAPI SHGetItemFromObject(IUnknown *punk, REFIID riid, void **ppv);")
590 cpp_quote("HRESULT WINAPI SHCreateShellItemArray(PCIDLIST_ABSOLUTE pidlParent, IShellFolder* psf, UINT cidl, PCUITEMID_CHILD_ARRAY ppidl, IShellItemArray **ppsiItemArray);")
591 cpp_quote("HRESULT WINAPI SHCreateShellItemArrayFromShellItem(IShellItem *psi, REFIID riid, void **ppv);")
592 cpp_quote("HRESULT WINAPI SHCreateShellItemArrayFromDataObject(IDataObject *pdo, REFIID riid, void **ppv);")
593
594 /*****************************************************************************
595 * IShellItemFilter interface
596 */
597 [
598 object,
599 uuid(2659B475-EEB8-48B7-8F07-B378810F48CF),
600 pointer_default(unique)
601 ]
602 interface IShellItemFilter : IUnknown
603 {
604 HRESULT IncludeItem(
605 [in] IShellItem *psi);
606
607 HRESULT GetEnumFlagsForItem(
608 [in] IShellItem *psi,
609 [out] SHCONTF *pgrfFlags);
610 }
611
612 /*****************************************************************************
613 * FOLDERSETTINGS
614 */
615 typedef char *LPVIEWSETTINGS;
616
617 typedef enum
618 {
619 FWF_AUTOARRANGE = 0x00000001,
620 FWF_ABBREVIATEDNAMES = 0x00000002,
621 FWF_SNAPTOGRID = 0x00000004,
622 FWF_OWNERDATA = 0x00000008,
623 FWF_BESTFITWINDOW = 0x00000010,
624 FWF_DESKTOP = 0x00000020,
625 FWF_SINGLESEL = 0x00000040,
626 FWF_NOSUBFOLDERS = 0x00000080,
627 FWF_TRANSPARENT = 0x00000100,
628 FWF_NOCLIENTEDGE = 0x00000200,
629 FWF_NOSCROLL = 0x00000400,
630 FWF_ALIGNLEFT = 0x00000800,
631 FWF_NOICONS = 0x00001000,
632 FWF_SHOWSELALWAYS = 0x00002000,
633 FWF_NOVISIBLE = 0x00004000,
634 FWF_SINGLECLICKACTIVATE = 0x00008000,
635 FWF_NOWEBVIEW = 0x00010000,
636 FWF_HIDEFILENAMES = 0x00020000,
637 FWF_CHECKSELECT = 0x00040000,
638 FWF_NOENUMREFRESH = 0x00080000,
639 FWF_NOGROUPING = 0x00100000,
640 FWF_FULLROWSELECT = 0x00200000,
641 FWF_NOFILTERS = 0x00400000,
642 FWF_NOCOLUMNHEADER = 0x00800000,
643 FWF_NOHEADERINALLVIEWS = 0x01000000,
644 FWF_EXTENDEDTILES = 0x02000000,
645 FWF_TRICHECKSELECT = 0x04000000,
646 FWF_AUTOCHECKSELECT = 0x08000000,
647 FWF_NOBROWSERVIEWSTATE = 0x10000000,
648 FWF_SUBSETGROUPS = 0x20000000,
649 FWF_USESEARCHFOLDER = 0x40000000,
650 FWF_ALLOWRTLREADING = 0x80000000
651 } FOLDERFLAGS;
652
653 typedef enum
654 {
655 FVM_AUTO =-1,
656 FVM_ICON = 1,
657 FVM_FIRST = FVM_ICON,
658 FVM_SMALLICON = 2,
659 FVM_LIST = 3,
660 FVM_DETAILS = 4,
661 FVM_THUMBNAIL = 5,
662 FVM_TILE = 6,
663 FVM_THUMBSTRIP = 7,
664 FVM_CONTENT = 8,
665 FVM_LAST = FVM_CONTENT
666 } FOLDERVIEWMODE;
667
668 typedef struct
669 {
670 UINT ViewMode;
671 UINT fFlags;
672 } FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
673 typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
674
675 /*****************************************************************************
676 * IShellIcon interface
677 */
678 [
679 uuid(000214e5-0000-0000-c000-000000000046),
680 object,
681 pointer_default(unique)
682 ]
683 interface IShellIcon : IUnknown
684 {
685 HRESULT GetIconOf(
686 [in] PCUITEMID_CHILD pidl,
687 [in] UINT flags,
688 [out] int *pIconIndex);
689 }
690
691 /*****************************************************************************
692 * IShellView interface
693 */
694 interface IShellBrowser; /* forward declaration */
695 [
696 object,
697 uuid(000214e3-0000-0000-c000-000000000046),
698 pointer_default(unique)
699 ]
700 interface IShellView : IOleWindow
701 {
702 typedef IShellView *LPSHELLVIEW;
703
704 cpp_quote("#define SVSI_DESELECT 0x00000000")
705 cpp_quote("#define SVSI_SELECT 0x00000001")
706 cpp_quote("#define SVSI_EDIT 0x00000003")
707 cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
708 cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
709 cpp_quote("#define SVSI_FOCUSED 0x00000010")
710 cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
711 cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
712 cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
713 cpp_quote("#define SVSI_CHECK 0x00000100")
714 cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
715
716 typedef UINT SVSIF;
717
718 typedef enum
719 {
720 SVGIO_BACKGROUND = 0x00000000,
721 SVGIO_SELECTION = 0x00000001,
722 SVGIO_ALLVIEW = 0x00000002,
723 SVGIO_CHECKED = 0x00000003,
724 SVGIO_TYPE_MASK = 0x0000000f,
725 SVGIO_FLAG_VIEWORDER = 0x80000000,
726 } SVGIO;
727
728 typedef enum
729 {
730 SVUIA_DEACTIVATE = 0,
731 SVUIA_ACTIVATE_NOFOCUS = 1,
732 SVUIA_ACTIVATE_FOCUS = 2,
733 SVUIA_INPLACEACTIVATE = 3
734 } SVUIA_STATUS;
735
736 HRESULT TranslateAccelerator( [in] MSG *pmsg );
737 HRESULT EnableModeless( [in] BOOL fEnable );
738 HRESULT UIActivate( [in] UINT uState );
739 HRESULT Refresh();
740 HRESULT CreateViewWindow(
741 [in] IShellView *psvPrevious,
742 [in] LPCFOLDERSETTINGS lpfs,
743 [in] IShellBrowser *psb,
744 [out] RECT *prcView,
745 [out] HWND *phWnd);
746
747 HRESULT DestroyViewWindow();
748 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
749
750 [local] HRESULT AddPropertySheetPages(
751 [in] DWORD dwReserved,
752 [in] LPFNSVADDPROPSHEETPAGE pfn,
753 [in] LPARAM lparam);
754
755 HRESULT SaveViewState();
756 HRESULT SelectItem(
757 [in] LPCITEMIDLIST pidlItem,
758 [in] SVSIF uFlags);
759 HRESULT GetItemObject(
760 [in] UINT uItem,
761 [in] REFIID riid,
762 [out, iid_is(riid)] void **ppv);
763 }
764
765 [
766 object,
767 uuid(88e39e80-3578-11cf-ae69-08002b2e1262),
768 pointer_default(unique)
769 ]
770 interface IShellView2 : IShellView
771 {
772 typedef GUID SHELLVIEWID;
773 cpp_quote("#include <pshpack8.h>")
774 typedef struct _SV2CVW2_PARAMS
775 {
776 DWORD cbSize;
777 IShellView *psvPrev;
778 LPCFOLDERSETTINGS pfs;
779 IShellBrowser *psbOwner;
780 RECT *prcView;
781 SHELLVIEWID const *pvid;
782 HWND hwndView;
783 } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
784 cpp_quote("#include <poppack.h>")
785
786 HRESULT GetView(
787 [in, out] SHELLVIEWID *view_guid,
788 [in] ULONG view_type
789 );
790 HRESULT CreateViewWindow2(
791 [in] LPSV2CVW2_PARAMS view_params
792 );
793 HRESULT HandleRename(
794 [in] LPCITEMIDLIST new_pidl
795 );
796 HRESULT SelectAndPositionItem(
797 [in] LPCITEMIDLIST item,
798 [in] UINT flags,
799 [in] POINT *point
800 );
801 }
802
803 /*****************************************************************************
804 * IFolderView interface
805 */
806 [
807 uuid(cde725b0-ccc9-4519-917e-325d72fab4ce),
808 object,
809 pointer_default(unique)
810 ]
811 interface IFolderView : IUnknown
812 {
813 HRESULT GetCurrentViewMode( [out] UINT *mode );
814 HRESULT SetCurrentViewMode( [in] UINT mode );
815 HRESULT GetFolder( [in] REFIID riid, [out, iid_is(riid)] void **ppv );
816 HRESULT Item(
817 [in] int index,
818 [out] PITEMID_CHILD *ppidl
819 );
820 HRESULT ItemCount(
821 [in] UINT flags,
822 [out] int *items
823 );
824 HRESULT Items(
825 [in] UINT flags,
826 [in] REFIID riid,
827 [out, iid_is(riid)] void **ppv
828 );
829 HRESULT GetSelectionMarkedItem( [out] int *item );
830 HRESULT GetFocusedItem( [out] int *item );
831 HRESULT GetItemPosition(
832 [in] PCUITEMID_CHILD pidl,
833 [out] POINT* ppt
834 );
835 HRESULT GetSpacing( [in, out, unique] POINT* pt );
836 HRESULT GetDefaultSpacing( [out] POINT* pt );
837 HRESULT GetAutoArrange();
838 HRESULT SelectItem(
839 [in] int item,
840 [in] DWORD flags
841 );
842 HRESULT SelectAndPositionItems(
843 [in] UINT cidl,
844 [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
845 [in, unique, size_is(cidl)] POINT* apt,
846 [in] DWORD flags
847 );
848 }
849
850 /*****************************************************************************
851 * IShellBrowser interface
852 */
853 [
854 object,
855 uuid(000214e2-0000-0000-c000-000000000046),
856 pointer_default(unique)
857 ]
858 interface IShellBrowser : IOleWindow
859 {
860 typedef IShellBrowser *LPSHELLBROWSER;
861
862 cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
863 cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
864 cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
865 cpp_quote("#define SBSP_DEFMODE 0x00000000")
866 cpp_quote("#define SBSP_OPENMODE 0x00000010")
867 cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
868 cpp_quote("#define SBSP_HELPMODE 0x00000040")
869 cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
870 cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
871 cpp_quote("#define SBSP_RELATIVE 0x00001000")
872 cpp_quote("#define SBSP_PARENT 0x00002000")
873 cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
874 cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
875 cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
876 cpp_quote("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
877 cpp_quote("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
878 cpp_quote("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
879 cpp_quote("#define SBSP_CREATENOHISTORY 0x00100000")
880 cpp_quote("#define SBSP_PLAYNOSOUND 0x00200000")
881 cpp_quote("#define SBSP_CALLERUNTURUSTED 0x00800000")
882 cpp_quote("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
883 cpp_quote("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
884 cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
885 cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
886 cpp_quote("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
887 cpp_quote("#define SBSP_FEEDNAVIGATION 0x20000000")
888 cpp_quote("#define SBSP_REDIRECT 0x40000000")
889 cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
890
891 cpp_quote("#define FCW_STATUS 0x0001")
892 cpp_quote("#define FCW_TOOLBAR 0x0002")
893 cpp_quote("#define FCW_TREE 0x0003")
894 cpp_quote("#define FCW_INTERNETBAR 0x0006")
895 cpp_quote("#define FCW_PROGRESS 0x0008")
896
897 cpp_quote("#define FCT_MERGE 0x0001")
898 cpp_quote("#define FCT_CONFIGABLE 0x0002")
899 cpp_quote("#define FCT_ADDTOEND 0x0004")
900
901 cpp_quote("#if 0")
902 typedef LPARAM LPTBBUTTONSB;
903 cpp_quote("#else")
904 cpp_quote("#include <commctrl.h>")
905 cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
906 cpp_quote("#endif")
907
908 HRESULT InsertMenusSB(
909 [in] HMENU hmenuShared,
910 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
911
912 HRESULT SetMenuSB(
913 [in] HMENU hmenuShared,
914 [in] HOLEMENU holemenuReserved,
915 [in] HWND hwndActiveObject);
916
917 HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
918 HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
919 HRESULT EnableModelessSB( [in] BOOL fEnable );
920 HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
921
922 HRESULT BrowseObject(
923 [in] LPCITEMIDLIST pidl,
924 [in] UINT wFlags);
925
926 HRESULT GetViewStateStream(
927 [in] DWORD grfMode,
928 [out] IStream **ppStrm);
929
930 HRESULT GetControlWindow(
931 [in] UINT id,
932 [out] HWND *phwnd);
933
934 [local] HRESULT SendControlMsg(
935 [in] UINT id,
936 [in] UINT uMsg,
937 [in] WPARAM wParam,
938 [in] LPARAM lParam,
939 [in] LRESULT *pret);
940
941 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
942 HRESULT OnViewWindowActive( [in] IShellView *pshv );
943
944 [local]
945 HRESULT SetToolbarItems(
946 [in] LPTBBUTTONSB lpButtons,
947 [in] UINT nButtons,
948 [in] UINT uFlags);
949 }
950
951
952 /*****************************************************************************
953 * IShellLinkA interface
954 */
955 [
956 object,
957 uuid(000214ee-0000-0000-c000-000000000046),
958 pointer_default(unique)
959 ]
960 interface IShellLinkA : IUnknown
961 {
962 typedef enum
963 {
964 SLR_NO_UI = 0x0001,
965 SLR_ANY_MATCH = 0x0002,
966 SLR_UPDATE = 0x0004,
967 SLR_NOUPDATE = 0x0008,
968 SLR_NOSEARCH = 0x0010,
969 SLR_NOTRACK = 0x0020,
970 SLR_NOLINKINFO = 0x0040,
971 SLR_INVOKE_MSI = 0x0080,
972 SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
973 } SLR_FLAGS;
974
975 typedef enum
976 {
977 SLGP_SHORTPATH = 0x0001,
978 SLGP_UNCPRIORITY = 0x0002,
979 SLGP_RAWPATH = 0x0004,
980 } SLGP_FLAGS;
981
982 HRESULT GetPath(
983 [out, size_is(cch)] LPSTR pszFile,
984 [in] int cch,
985 [in, out, unique] WIN32_FIND_DATAA *pfd,
986 [in] DWORD fFlags);
987
988 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
989
990 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
991
992 HRESULT GetDescription(
993 [out, size_is(cch)] LPSTR pszName,
994 [in] int cch);
995
996 HRESULT SetDescription( [in] LPCSTR pszName );
997
998 HRESULT GetWorkingDirectory(
999 [out, size_is(cch)] LPSTR pszDir,
1000 [in] int cch);
1001
1002 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
1003
1004 HRESULT GetArguments(
1005 [out, size_is(cch)] LPSTR pszArgs,
1006 [in] int cch);
1007
1008 HRESULT SetArguments( [in] LPCSTR pszArgs );
1009
1010 HRESULT GetHotkey( [out] WORD *pwHotkey );
1011
1012 HRESULT SetHotkey( [in] WORD wHotkey );
1013
1014 HRESULT GetShowCmd( [out] int *piShowCmd );
1015
1016 HRESULT SetShowCmd( [in] int iShowCmd );
1017
1018 HRESULT GetIconLocation(
1019 [out, size_is(cch)] LPSTR pszIconPath,
1020 [in] int cch,
1021 [out] int *piIcon);
1022
1023 HRESULT SetIconLocation(
1024 [in] LPCSTR pszIconPath,
1025 [in] int iIcon);
1026
1027 HRESULT SetRelativePath(
1028 [in] LPCSTR pszPathRel,
1029 [in] DWORD dwReserved);
1030
1031 HRESULT Resolve(
1032 [in] HWND hwnd,
1033 [in] DWORD fFlags);
1034
1035 HRESULT SetPath( [in] LPCSTR pszFile );
1036 }
1037
1038
1039 /*****************************************************************************
1040 * IShellLinkW interface
1041 */
1042 [
1043 object,
1044 uuid(000214f9-0000-0000-c000-000000000046),
1045 pointer_default(unique)
1046 ]
1047 interface IShellLinkW : IUnknown
1048 {
1049 HRESULT GetPath(
1050 [out, size_is(cch)] LPWSTR pszFile,
1051 [in] int cch,
1052 [in, out] WIN32_FIND_DATAW *pfd,
1053 [in] DWORD fFlags);
1054
1055 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
1056
1057 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
1058
1059 HRESULT GetDescription(
1060 [out, size_is(cch)] LPWSTR pszName,
1061 [in] int cch);
1062
1063 HRESULT SetDescription( [in] LPCWSTR pszName );
1064
1065 HRESULT GetWorkingDirectory(
1066 [out, size_is(cch)] LPWSTR pszDir,
1067 [in] int cch);
1068
1069 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
1070
1071 HRESULT GetArguments(
1072 [out, size_is(cch)] LPWSTR pszArgs,
1073 [in] int cch);
1074
1075 HRESULT SetArguments( [in] LPCWSTR pszArgs );
1076
1077 HRESULT GetHotkey( [out] WORD *pwHotkey );
1078
1079 HRESULT SetHotkey( [in] WORD wHotkey );
1080
1081 HRESULT GetShowCmd( [out] int *piShowCmd );
1082
1083 HRESULT SetShowCmd( [in] int iShowCmd );
1084
1085 HRESULT GetIconLocation(
1086 [out, size_is(cch)] LPWSTR pszIconPath,
1087 [in] int cch,
1088 [out] int *piIcon);
1089
1090 HRESULT SetIconLocation(
1091 [in] LPCWSTR pszIconPath,
1092 [in] int iIcon);
1093
1094 HRESULT SetRelativePath(
1095 [in] LPCWSTR pszPathRel,
1096 [in] DWORD dwReserved);
1097
1098 HRESULT Resolve(
1099 [in] HWND hwnd,
1100 [in] DWORD fFlags);
1101
1102 HRESULT SetPath( [in] LPCWSTR pszFile );
1103 }
1104
1105 cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
1106
1107
1108 /*****************************************************************************
1109 * IShellExtInit interface
1110 */
1111 [
1112 object,
1113 uuid(000214e8-0000-0000-c000-000000000046),
1114 pointer_default(unique),
1115 local
1116 ]
1117 interface IShellExtInit : IUnknown
1118 {
1119 typedef IShellExtInit *LPSHELLEXTINIT;
1120
1121 HRESULT Initialize(
1122 [in] LPCITEMIDLIST pidlFolder,
1123 [in] IDataObject *pdtobj,
1124 [in] HKEY hkeyProgID);
1125 }
1126
1127
1128 /*******************************************************************************/
1129 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
1130 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
1131 /* them here anyway. */
1132 /*******************************************************************************/
1133
1134 #ifndef MAX_PATH
1135 #define MAX_PATH 260
1136 #endif
1137
1138
1139 /*****************************************************************************
1140 * IPersistFolder3 interface
1141 */
1142 [
1143 object,
1144 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
1145 pointer_default(unique)
1146 ]
1147 interface IPersistFolder3 : IPersistFolder2
1148 {
1149 typedef struct
1150 {
1151 LPITEMIDLIST pidlTargetFolder;
1152 WCHAR szTargetParsingName[MAX_PATH];
1153 WCHAR szNetworkProvider[MAX_PATH];
1154 DWORD dwAttributes;
1155 int csidl;
1156 } PERSIST_FOLDER_TARGET_INFO;
1157
1158 HRESULT InitializeEx(
1159 [in] IBindCtx *pbc,
1160 [in] LPCITEMIDLIST pidlRoot,
1161 [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
1162
1163 HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
1164 }
1165
1166
1167 /*****************************************************************************
1168 * IExtractIconA interface
1169 */
1170 [
1171 object,
1172 uuid(000214eb-0000-0000-c000-000000000046),
1173 pointer_default(unique),
1174 local
1175 ]
1176 interface IExtractIconA : IUnknown
1177 {
1178 cpp_quote("#define GIL_OPENICON 0x0001")
1179 cpp_quote("#define GIL_FORSHELL 0x0002")
1180 cpp_quote("#define GIL_ASYNC 0x0020")
1181 cpp_quote("#define GIL_DEFAULTICON 0x0040")
1182 cpp_quote("#define GIL_FORSHORTCUT 0x0080")
1183
1184 cpp_quote("#define GIL_SIMULATEDOC 0x0001")
1185 cpp_quote("#define GIL_PERINSTANCE 0x0002")
1186 cpp_quote("#define GIL_PERCLASS 0x0004")
1187 cpp_quote("#define GIL_NOTFILENAME 0x0008")
1188 cpp_quote("#define GIL_DONTCACHE 0x0010")
1189
1190 typedef IExtractIconA *LPEXTRACTICONA;
1191
1192 HRESULT GetIconLocation(
1193 [in] UINT uFlags,
1194 [out, size_is(cchMax)] LPSTR szIconFile,
1195 [in] UINT cchMax,
1196 [out] INT *piIndex,
1197 [out] UINT *pwFlags);
1198
1199 HRESULT Extract(
1200 [in] LPCSTR pszFile,
1201 [in] UINT nIconIndex,
1202 [out] HICON *phiconLarge,
1203 [out] HICON *phiconSmall,
1204 [in] UINT nIconSize );
1205 }
1206
1207
1208 /*****************************************************************************
1209 * IExtractIconW interface
1210 */
1211 [
1212 object,
1213 uuid(000214fa-0000-0000-c000-000000000046),
1214 pointer_default(unique),
1215 local
1216 ]
1217 interface IExtractIconW : IUnknown
1218 {
1219 typedef IExtractIconW *LPEXTRACTICONW;
1220
1221 HRESULT GetIconLocation(
1222 [in] UINT uFlags,
1223 [out, size_is(cchMax)] LPWSTR szIconFile,
1224 [in] UINT cchMax,
1225 [out] INT *piIndex,
1226 [out] UINT *pwFlags);
1227
1228 HRESULT Extract(
1229 [in] LPCWSTR pszFile,
1230 [in] UINT nIconIndex,
1231 [out] HICON *phiconLarge,
1232 [out] HICON *phiconSmall,
1233 [in] UINT nIconSize );
1234 }
1235
1236 cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1237 cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1238
1239
1240 /*****************************************************************************
1241 * ICommDlgBrowser interface
1242 */
1243 [
1244 object,
1245 uuid(000214f1-0000-0000-c000-000000000046),
1246 pointer_default(unique)
1247 ]
1248 interface ICommDlgBrowser : IUnknown
1249 {
1250 cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
1251 cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
1252 cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
1253 cpp_quote("#define CDBOSC_RENAME 0x00000003")
1254 cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
1255
1256 typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
1257
1258 HRESULT OnDefaultCommand( [in] IShellView *shv );
1259 HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
1260 HRESULT IncludeObject( [in] IShellView *shv, [in] LPCITEMIDLIST pidl );
1261 }
1262
1263
1264 /*****************************************************************************
1265 * ICommDlgBrowser2 interface
1266 */
1267 [
1268 object,
1269 uuid(10339516-2894-11D2-9039-00C04F8EEB3E),
1270 pointer_default(unique)
1271 ]
1272 interface ICommDlgBrowser2 : ICommDlgBrowser
1273 {
1274
1275 HRESULT Notify(
1276 [in] IShellView *ppshv,
1277 [in] DWORD dwNotifyType);
1278
1279 HRESULT GetDefaultMenuText(
1280 [in] IShellView *ppshv,
1281 [out, string, size_is(cchMax)] LPWSTR pszText,
1282 [in] int cchMax);
1283
1284 HRESULT GetViewFlags(
1285 [out] DWORD *pdwFlags);
1286 }
1287
1288
1289 /*****************************************************************************
1290 * ICommDlgBrowser3 interface
1291 */
1292 [
1293 object,
1294 uuid(C8AD25A1-3294-41EE-8165-71174BD01C57),
1295 pointer_default(unique)
1296 ]
1297 interface ICommDlgBrowser3 : ICommDlgBrowser2
1298 {
1299
1300 HRESULT OnColumnClicked(
1301 [in] IShellView *ppshv,
1302 [in] int iColumn);
1303
1304 HRESULT GetCurrentFilter(
1305 [out, string, size_is(cchFileSpec)] LPWSTR pszFileSpec,
1306 [in] int cchFileSpec);
1307
1308 HRESULT OnPreviewCreated(
1309 [in] IShellView *ppshv);
1310 }
1311
1312 /*****************************************************************************
1313 * IDockingWindow interface
1314 */
1315 [
1316 object,
1317 uuid(012dd920-7b26-11d0-8ca9-00a0c92dbfe8)
1318 ]
1319 interface IDockingWindow : IOleWindow
1320 {
1321 HRESULT ShowDW(
1322 [in] BOOL fShow);
1323
1324 HRESULT CloseDW(
1325 [in] DWORD dwReserved);
1326
1327 HRESULT ResizeBorderDW(
1328 [in] LPCRECT prcBorder,
1329 [in] IUnknown *punkToolbarSite,
1330 [in] BOOL fReserved);
1331 };
1332
1333
1334 /*****************************************************************************
1335 * IDockingWindowFrame interface
1336 */
1337 [
1338 object,
1339 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
1340 pointer_default(unique),
1341 local
1342 ]
1343 interface IDockingWindowFrame : IOleWindow
1344 {
1345 cpp_quote("#define DWFRF_NORMAL 0x0000")
1346 cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
1347 cpp_quote("#define DWFAF_HIDDEN 0x0001")
1348
1349 HRESULT AddToolbar(
1350 [in] IUnknown *punkSrc,
1351 [in] LPCWSTR pwszItem,
1352 [in] DWORD dwAddFlags);
1353
1354 HRESULT RemoveToolbar(
1355 [in] IUnknown *punkSrc,
1356 [in] DWORD dwRemoveFlags);
1357
1358 HRESULT FindToolbar(
1359 [in] LPCWSTR pwszItem,
1360 [in] REFIID riid,
1361 [out] LPVOID *ppvObj);
1362 }
1363
1364
1365 /*****************************************************************************
1366 * IDragSourceHelper interface
1367 */
1368 [
1369 object,
1370 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
1371 pointer_default(unique),
1372 local
1373 ]
1374 interface IDragSourceHelper : IUnknown
1375 {
1376 typedef struct
1377 {
1378 SIZE sizeDragImage;
1379 POINT ptOffset;
1380 HBITMAP hbmpDragImage;
1381 COLORREF crColorKey;
1382 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
1383
1384 HRESULT InitializeFromBitmap(
1385 [in] LPSHDRAGIMAGE pshdi,
1386 [in] IDataObject *pDataObject);
1387
1388 HRESULT InitializeFromWindow(
1389 [in] HWND hwnd,
1390 [in] POINT *ppt,
1391 [in] IDataObject *pDataObject);
1392 }
1393
1394
1395 /*****************************************************************************
1396 * IDropTargetHelper interface
1397 */
1398 [
1399 object,
1400 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
1401 pointer_default(unique),
1402 local
1403 ]
1404 interface IDropTargetHelper : IUnknown
1405 {
1406 HRESULT DragEnter(
1407 [in] HWND hwndTarget,
1408 [in] IDataObject *pDataObject,
1409 [in] POINT *ppt,
1410 [in] DWORD dwEffect);
1411
1412 HRESULT DragLeave();
1413
1414 HRESULT DragOver(
1415 [in] POINT *ppt,
1416 [in] DWORD dwEffect);
1417
1418 HRESULT Drop(
1419 [in] IDataObject *pDataObject,
1420 [in] POINT *ppt,
1421 [in] DWORD dwEffect);
1422
1423 HRESULT Show( [in] BOOL fShow );
1424 }
1425
1426
1427 /*****************************************************************************
1428 * IContextMenu interface
1429 */
1430 [
1431 object,
1432 uuid(000214e4-0000-0000-c000-000000000046),
1433 pointer_default(unique),
1434 local
1435 ]
1436 interface IContextMenu : IUnknown
1437 {
1438 cpp_quote("#define CMF_NORMAL 0x00000000")
1439 cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
1440 cpp_quote("#define CMF_VERBSONLY 0x00000002")
1441 cpp_quote("#define CMF_EXPLORE 0x00000004")
1442 cpp_quote("#define CMF_NOVERBS 0x00000008")
1443 cpp_quote("#define CMF_CANRENAME 0x00000010")
1444 cpp_quote("#define CMF_NODEFAULT 0x00000020")
1445 cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
1446 cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
1447 cpp_quote("#define CMF_RESERVED 0xffff0000")
1448
1449 cpp_quote("#define GCS_VERBA 0x00000000")
1450 cpp_quote("#define GCS_HELPTEXTA 0x00000001")
1451 cpp_quote("#define GCS_VALIDATEA 0x00000002")
1452 cpp_quote("#define GCS_VERBW 0x00000004")
1453 cpp_quote("#define GCS_HELPTEXTW 0x00000005")
1454 cpp_quote("#define GCS_VALIDATEW 0x00000006")
1455 cpp_quote("#define GCS_UNICODE 0x00000004")
1456 cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1457 cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1458 cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1459
1460 cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1461 cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
1462 cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1463 cpp_quote("#if defined(__GNUC__)")
1464 cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1465 cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1466 cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1467 cpp_quote("#elif defined(_MSC_VER)")
1468 cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1469 cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1470 cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1471 cpp_quote("#else")
1472 cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1473 cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1474 cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1475 cpp_quote("#endif")
1476 cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1477 cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1478 cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1479
1480 cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1481 cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
1482 cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1483 cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1484 cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1485 cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1486 cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1487 cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1488 cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1489 cpp_quote("#define CMIC_MASK_NOASYNC SEE_MASK_NOASYNC")
1490 cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1491 cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
1492 cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1493 cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1494 cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1495
1496 typedef IContextMenu *LPCONTEXTMENU;
1497
1498 typedef struct tagCMINVOKECOMMANDINFO
1499 {
1500 DWORD cbSize;
1501 DWORD fMask;
1502 HWND hwnd;
1503 LPCSTR lpVerb;
1504 LPCSTR lpParameters;
1505 LPCSTR lpDirectory;
1506 INT nShow;
1507 DWORD dwHotKey;
1508 HANDLE hIcon;
1509 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1510
1511 typedef struct tagCMInvokeCommandInfoEx
1512 {
1513 DWORD cbSize;
1514 DWORD fMask;
1515 HWND hwnd;
1516 LPCSTR lpVerb;
1517 LPCSTR lpParameters;
1518 LPCSTR lpDirectory;
1519 INT nShow;
1520 DWORD dwHotKey;
1521 HANDLE hIcon;
1522 LPCSTR lpTitle;
1523 LPCWSTR lpVerbW;
1524 LPCWSTR lpParametersW;
1525 LPCWSTR lpDirectoryW;
1526 LPCWSTR lpTitleW;
1527 POINT ptInvoke;
1528 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1529
1530 HRESULT QueryContextMenu(
1531 [in] HMENU hmenu,
1532 [in] UINT indexMenu,
1533 [in] UINT idCmdFirst,
1534 [in] UINT idCmdLast,
1535 [in] UINT uFlags);
1536
1537 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1538
1539 HRESULT GetCommandString(
1540 [in] UINT_PTR idCmd,
1541 [in] UINT uType,
1542 [out] UINT *pwReserved,
1543 [out, size_is(cchMax)] LPSTR pszName,
1544 [in] UINT cchMax);
1545 }
1546
1547
1548 /*****************************************************************************
1549 * IContextMenu2 interface
1550 */
1551 [
1552 object,
1553 uuid(000214f4-0000-0000-c000-000000000046),
1554 pointer_default(unique),
1555 local
1556 ]
1557 interface IContextMenu2 : IContextMenu
1558 {
1559 typedef IContextMenu2 *LPCONTEXTMENU2;
1560
1561 HRESULT HandleMenuMsg(
1562 [in] UINT uMsg,
1563 [in] WPARAM wParam,
1564 [in] LPARAM lParam);
1565 }
1566
1567
1568 /*****************************************************************************
1569 * IContextMenu3 interface
1570 */
1571 [
1572 object,
1573 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1574 pointer_default(unique),
1575 local
1576 ]
1577 interface IContextMenu3 : IContextMenu2
1578 {
1579 typedef IContextMenu3 *LPCONTEXTMENU3;
1580
1581 HRESULT HandleMenuMsg2(
1582 [in] UINT uMsg,
1583 [in] WPARAM wParam,
1584 [in] LPARAM lParam,
1585 [out] LRESULT *plResult);
1586 }
1587
1588 /*****************************************************************************
1589 * IContextMenuCB interface
1590 */
1591
1592 [
1593 object,
1594 uuid(3409e930-5a39-11d1-83fa-00a0c90dc849),
1595 pointer_default(unique),
1596 local
1597 ]
1598 interface IContextMenuCB : IUnknown
1599 {
1600 HRESULT CallBack(
1601 [in] IShellFolder *psf,
1602 [in] HWND hwndOwner,
1603 [in] IDataObject *pdtobj,
1604 [in] UINT uMsg,
1605 [in] WPARAM wParam,
1606 [in] LPARAM lParam);
1607 }
1608
1609 /*****************************************************************************
1610 * IShellExecuteHookA interface
1611 */
1612 [
1613 object,
1614 uuid(000214f5-0000-0000-c000-000000000046),
1615 pointer_default(unique),
1616 local
1617 ]
1618 interface IShellExecuteHookA : IUnknown
1619 {
1620 cpp_quote("struct _SHELLEXECUTEINFOA;")
1621 HRESULT Execute(
1622 [in, out] struct _SHELLEXECUTEINFOA* pei);
1623 }
1624
1625
1626 /*****************************************************************************
1627 * IShellExecuteHookW interface
1628 */
1629 [
1630 object,
1631 uuid(000214fb-0000-0000-c000-000000000046),
1632 pointer_default(unique),
1633 local
1634 ]
1635 interface IShellExecuteHookW : IUnknown
1636 {
1637 cpp_quote("struct _SHELLEXECUTEINFOW;")
1638 HRESULT Execute(
1639 [in, out] struct _SHELLEXECUTEINFOW* pei);
1640 }
1641
1642 /*****************************************************************************
1643 * IShellLinkDataList interface
1644 */
1645 [
1646 object,
1647 uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
1648 pointer_default(unique)
1649 ]
1650 interface IShellLinkDataList : IUnknown
1651 {
1652 [local] HRESULT AddDataBlock(
1653 [in] void *pDataBlock);
1654 [local] HRESULT CopyDataBlock(
1655 [in] DWORD dwSig,
1656 [out] void **ppDataBlock);
1657 HRESULT RemoveDataBlock(
1658 [in] DWORD dwSig);
1659 HRESULT GetFlags(
1660 [out] DWORD *pdwFlags);
1661 HRESULT SetFlags(
1662 [in] DWORD dwFlags);
1663 }
1664
1665
1666 /*****************************************************************************
1667 * IResolveShellLink interface
1668 */
1669 [
1670 object,
1671 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1672 pointer_default(unique)
1673 ]
1674 interface IResolveShellLink : IUnknown
1675 {
1676 HRESULT ResolveShellLink(
1677 [in] IUnknown *punk,
1678 [in] HWND hwnd,
1679 [in] DWORD fFlags);
1680 }
1681
1682
1683 /*****************************************************************************
1684 * IURLSearchHook interface
1685 */
1686 [
1687 object,
1688 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1689 pointer_default(unique),
1690 local
1691 ]
1692 interface IURLSearchHook : IUnknown
1693 {
1694 HRESULT Translate(
1695 [in, out] LPWSTR lpwszSearchURL,
1696 [in] DWORD cchBufferSize);
1697 }
1698
1699
1700 /*****************************************************************************
1701 * ISearchContext interface
1702 */
1703 [
1704 object,
1705 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1706 pointer_default(unique),
1707 local
1708 ]
1709 interface ISearchContext : IUnknown
1710 {
1711 HRESULT GetSearchUrl(
1712 [in] BSTR *pbstrSearchUrl);
1713 HRESULT GetSearchText(
1714 [in] BSTR *pbstrSearchText);
1715 HRESULT GetSearchStyle(
1716 [in] BSTR *pdwSearchStyle);
1717 }
1718
1719
1720 /*****************************************************************************
1721 * IURLSearchHook2 interface
1722 */
1723 [
1724 object,
1725 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1726 pointer_default(unique),
1727 local
1728 ]
1729 interface IURLSearchHook2 : IURLSearchHook
1730 {
1731 HRESULT TranslateWithSearchContext(
1732 [in, out] LPWSTR lpwszSearchURL,
1733 [in] DWORD cchBufferSize,
1734 [in] ISearchContext *pSearchContext);
1735 }
1736
1737
1738 cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1739
1740 /*****************************************************************************
1741 * INewShortcutHookA interface
1742 */
1743 [
1744 object,
1745 uuid(000214e1-0000-0000-c000-000000000046),
1746 pointer_default(unique),
1747 local
1748 ]
1749 interface INewShortcutHookA : IUnknown
1750 {
1751 HRESULT SetReferent(
1752 [in] LPCSTR pcszReferent,
1753 [in] HWND hwnd);
1754 HRESULT GetReferent(
1755 [out] LPSTR pcszReferent,
1756 [in] int cchReferent);
1757 HRESULT SetFolder(
1758 [in] LPCSTR pcszReferent);
1759 HRESULT GetFolder(
1760 [out] LPSTR pcszReferent,
1761 [in] int cchFolder);
1762 HRESULT GetName(
1763 [out] LPSTR pszName,
1764 [in] int cchName);
1765 HRESULT GetExtension(
1766 [out] LPSTR pszExtension,
1767 [in] int cchExtension);
1768 }
1769
1770
1771 /*****************************************************************************
1772 * INewShortcutHookW interface
1773 */
1774 [
1775 object,
1776 uuid(000214f7-0000-0000-c000-000000000046),
1777 pointer_default(unique),
1778 local
1779 ]
1780 interface INewShortcutHookW : IUnknown
1781 {
1782 HRESULT SetReferent(
1783 [in] LPCWSTR pcszReferent,
1784 [in] HWND hwnd);
1785 HRESULT GetReferent(
1786 [out] LPWSTR pcszReferent,
1787 [in] int cchReferent);
1788 HRESULT SetFolder(
1789 [in] LPCWSTR pcszReferent);
1790 HRESULT GetFolder(
1791 [out] LPWSTR pcszReferent,
1792 [in] int cchFolder);
1793 HRESULT GetName(
1794 [out] LPWSTR pszName,
1795 [in] int cchName);
1796 HRESULT GetExtension(
1797 [out] LPWSTR pszExtension,
1798 [in] int cchExtension);
1799 }
1800
1801 /*****************************************************************************
1802 * IRunnableTask interface
1803 */
1804 [
1805 object,
1806 uuid(85788d00-6807-11d0-b810-00c04fd706ec),
1807 pointer_default(unique),
1808 local
1809 ]
1810 interface IRunnableTask : IUnknown
1811 {
1812 HRESULT Run();
1813 HRESULT Kill([in] BOOL fWait);
1814 HRESULT Suspend();
1815 HRESULT Resume();
1816 ULONG IsRunning();
1817 }
1818
1819 /*****************************************************************************
1820 * IShellChangeNotify interface
1821 */
1822 [
1823 object,
1824 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
1825 pointer_default(unique),
1826 local
1827 ]
1828 interface IShellChangeNotify : IUnknown
1829 {
1830 HRESULT OnChange(
1831 [in] LONG lEvent,
1832 [in] LPCITEMIDLIST pidl1,
1833 [in] LPCITEMIDLIST pidl2);
1834 }
1835
1836 cpp_quote("#define STR_FILE_SYS_BIND_DATA L\"File System Bind Data\"")
1837
1838 /*****************************************************************************
1839 * IFileSystemBindData interface
1840 */
1841 [
1842 object,
1843 uuid(01e18d10-4d8b-11d2-855d-006008059367),
1844 pointer_default(unique),
1845 local
1846 ]
1847 interface IFileSystemBindData : IUnknown
1848 {
1849 HRESULT SetFindData(
1850 [in] const WIN32_FIND_DATAW *pfd);
1851 HRESULT GetFindData(
1852 [out] WIN32_FIND_DATAW *pfd);
1853 }
1854
1855 /*****************************************************************************
1856 * ITaskbarList interface
1857 */
1858 [
1859 object,
1860 uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
1861 pointer_default(unique)
1862 ]
1863 interface ITaskbarList : IUnknown
1864 {
1865 HRESULT HrInit();
1866
1867 HRESULT AddTab(
1868 [in] HWND hwnd);
1869
1870 HRESULT DeleteTab(
1871 [in] HWND hwnd);
1872
1873 HRESULT ActivateTab(
1874 [in] HWND hwnd);
1875
1876 HRESULT SetActiveAlt(
1877 [in] HWND hwnd);
1878 }
1879
1880 /*****************************************************************************
1881 * IDefaultExtractIconInit interface
1882 */
1883
1884 [
1885 object,
1886 uuid(800AB0B8-F5FA-4e72-8FF3-B1A243B87BD9), /* FIXME: wrong value! */
1887 pointer_default(unique),
1888 local
1889 ]
1890 interface IDefaultExtractIconInit : IUnknown
1891 {
1892 HRESULT SetDefaultIcon(
1893 [in] LPCWSTR pszFile,
1894 [in] int iIcon);
1895 HRESULT SetFlags(
1896 [in] UINT uFlags);
1897 HRESULT SetKey(
1898 [in] HKEY hkey);
1899 HRESULT SetNormalIcon(
1900 [in] LPCWSTR pszFile,
1901 [in] int iIcon);
1902 HRESULT SetOpenIcon(
1903 [in] LPCWSTR pszFile,
1904 [in] int iIcon);
1905 HRESULT SetShortcutIcon(
1906 [in] LPCWSTR pszFile,
1907 [in] int iIcon);
1908 }
1909
1910 /*****************************************************************************
1911 * IDeskBand interface
1912 */
1913 cpp_quote("#define DBIM_MINSIZE 0x0001")
1914 cpp_quote("#define DBIM_MAXSIZE 0x0002")
1915 cpp_quote("#define DBIM_INTEGRAL 0x0004")
1916 cpp_quote("#define DBIM_ACTUAL 0x0008")
1917 cpp_quote("#define DBIM_TITLE 0x0010")
1918 cpp_quote("#define DBIM_MODEFLAGS 0x0020")
1919 cpp_quote("#define DBIM_BKCOLOR 0x0040")
1920
1921 cpp_quote("#include <pshpack8.h>")
1922
1923 typedef struct tagDESKBANDINFO
1924 {
1925 DWORD dwMask;
1926 POINTL ptMinSize;
1927 POINTL ptMaxSize;
1928 POINTL ptIntegral;
1929 POINTL ptActual;
1930 WCHAR wszTitle[256];
1931 DWORD dwModeFlags;
1932 COLORREF crBkgnd;
1933 } DESKBANDINFO;
1934
1935 cpp_quote("#include <poppack.h>")
1936
1937 cpp_quote("#define DBIMF_NORMAL 0x0000")
1938 cpp_quote("#define DBIMF_FIXED 0x0001")
1939 cpp_quote("#define DBIMF_FIXEDBMP 0x0004 // a fixed background bitmap (if supported)")
1940 cpp_quote("#define DBIMF_VARIABLEHEIGHT 0x0008")
1941 cpp_quote("#define DBIMF_UNDELETEABLE 0x0010")
1942 cpp_quote("#define DBIMF_DEBOSSED 0x0020")
1943 cpp_quote("#define DBIMF_BKCOLOR 0x0040")
1944 cpp_quote("#define DBIMF_USECHEVRON 0x0080")
1945 cpp_quote("#define DBIMF_BREAK 0x0100")
1946 cpp_quote("#define DBIMF_ADDTOFRONT 0x0200")
1947 cpp_quote("#define DBIMF_TOPALIGN 0x0400")
1948 cpp_quote("#if (NTDDI_VERSION >= NTDDI_LONGHORN)")
1949 cpp_quote("#define DBIMF_NOGRIPPER 0x0800")
1950 cpp_quote("#define DBIMF_ALWAYSGRIPPER 0x1000")
1951 cpp_quote("#define DBIMF_NOMARGINS 0x2000")
1952 cpp_quote("#endif // NTDDI_LONGHORN")
1953
1954 cpp_quote("#define DBIF_VIEWMODE_NORMAL 0x0000")
1955 cpp_quote("#define DBIF_VIEWMODE_VERTICAL 0x0001")
1956 cpp_quote("#define DBIF_VIEWMODE_FLOATING 0x0002")
1957 cpp_quote("#define DBIF_VIEWMODE_TRANSPARENT 0x0004")
1958
1959 enum tagDESKBANDCID {
1960 DBID_BANDINFOCHANGED = 0,
1961 DBID_SHOWONLY = 1,
1962 DBID_MAXIMIZEBAND = 2,
1963 DBID_PUSHCHEVRON = 3,
1964 DBID_DELAYINIT = 4,
1965 DBID_FINISHINIT = 5,
1966 DBID_SETWINDOWTHEME = 6,
1967 DBID_PERMITAUTOHIDE = 7,
1968 };
1969
1970 cpp_quote("#define DBPC_SELECTFIRST (DWORD)-1")
1971 cpp_quote("#define DBPC_SELECTLAST (DWORD)-2")
1972
1973 cpp_quote("#define CGID_DeskBand IID_IDeskBand")
1974
1975 [
1976 uuid(EB0FE172-1A3A-11D0-89B3-00A0C90A90AC),
1977 object,
1978 ]
1979 interface IDeskBand : IDockingWindow
1980 {
1981 HRESULT GetBandInfo(
1982 [in] DWORD dwBandID,
1983 [in] DWORD dwViewMode,
1984 [in, out] DESKBANDINFO* pdbi);
1985 }
1986
1987 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60)")
1988
1989 [
1990 uuid(EB0FE173-1A3A-11D0-89B3-00A0C90A90AC),
1991 object,
1992 pointer_default(unique),
1993 local
1994 ]
1995 interface IDeskBar : IOleWindow
1996 {
1997 HRESULT SetClient([in] IUnknown* punkClient);
1998
1999 HRESULT GetClient([out] IUnknown** ppunkClient);
2000
2001 HRESULT OnPosRectChangeDB([in] RECT *prc);
2002 }
2003
2004
2005 /*****************************************************************************
2006 * IMenuPopup interface
2007 */
2008 [
2009 uuid(D1E7AFEB-6A2E-11d0-8C78-00C04FD918B4),
2010 object,
2011 pointer_default(unique),
2012 local
2013 ]
2014 interface IMenuPopup : IDeskBar
2015 {
2016 enum tagMENUPOPUPSELECT
2017 {
2018 MPOS_EXECUTE = 0,
2019 MPOS_FULLCANCEL,
2020 MPOS_CANCELLEVEL,
2021 MPOS_SELECTLEFT,
2022 MPOS_SELECTRIGHT,
2023 MPOS_CHILDTRACKING
2024 };
2025
2026 enum tagMENUPOPUPPOPUPFLAGS
2027 {
2028 MPPF_SETFOCUS = 0x00000001,
2029 MPPF_INITIALSELECT = 0x00000002,
2030 MPPF_NOANIMATE = 0x00000004,
2031 MPPF_KEYBOARD = 0x00000010,
2032 MPPF_REPOSITION = 0x00000020,
2033 MPPF_FORCEZORDER = 0x00000040,
2034 MPPF_FINALSELECT = 0x00000080,
2035 MPPF_TOP = 0x20000000,
2036 MPPF_LEFT = 0x40000000,
2037 MPPF_RIGHT = 0x60000000,
2038 MPPF_BOTTOM = 0x80000000,
2039 MPPF_POS_MASK = 0xE0000000,
2040 MPPF_ALIGN_LEFT = 0x02000000,
2041 MPPF_ALIGN_RIGHT = 0x04000000
2042 };
2043 typedef int MP_POPUPFLAGS;
2044
2045 HRESULT Popup(
2046 [in] POINTL *ppt,
2047 [in] RECTL *prcExclude,
2048 [in] MP_POPUPFLAGS dwFlags);
2049
2050 HRESULT OnSelect([in] DWORD dwSelectType);
2051
2052 HRESULT SetSubMenu(
2053 [in] IMenuPopup* pmp,
2054 [in] BOOL fSet);
2055 }
2056
2057 cpp_quote("#endif /* _WIN32_IE_IE60 */")
2058
2059 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE40)")
2060
2061 /*****************************************************************************
2062 * IBandSite interface
2063 */
2064 cpp_quote("#include <pshpack8.h>")
2065
2066 typedef struct tagBANDSITEINFO
2067 {
2068 DWORD dwMask;
2069 DWORD dwState;
2070 DWORD dwStyle;
2071 } BANDSITEINFO;
2072
2073 cpp_quote("#include <poppack.h>")
2074
2075
2076 enum tagBANDSITECID {
2077 BSID_BANDADDED,
2078 BSID_BANDREMOVED,
2079 };
2080
2081 cpp_quote("#define BSIM_STATE 0x00000001")
2082 cpp_quote("#define BSIM_STYLE 0x00000002")
2083
2084 cpp_quote("#define BSSF_VISIBLE 0x00000001")
2085 cpp_quote("#define BSSF_NOTITLE 0x00000002")
2086 cpp_quote("#define BSSF_UNDELETEABLE 0x00001000")
2087
2088 cpp_quote("#define BSIS_AUTOGRIPPER 0x00000000")
2089 cpp_quote("#define BSIS_NOGRIPPER 0x00000001")
2090 cpp_quote("#define BSIS_ALWAYSGRIPPER 0x00000002")
2091 cpp_quote("#define BSIS_LEFTALIGN 0x00000004")
2092 cpp_quote("#define BSIS_SINGLECLICK 0x00000008")
2093 cpp_quote("#define BSIS_NOCONTEXTMENU 0x00000010")
2094 cpp_quote("#define BSIS_NODROPTARGET 0x00000020")
2095 cpp_quote("#define BSIS_NOCAPTION 0x00000040")
2096 cpp_quote("#define BSIS_PREFERNOLINEBREAK 0x00000080")
2097 cpp_quote("#define BSIS_LOCKED 0x00000100")
2098 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
2099 cpp_quote("#define BSIS_PRESERVEORDERDURINGLAYOUT 0x00000200")
2100 cpp_quote("#endif /* _WIN32_IE_IE70 */")
2101
2102 cpp_quote("#define SID_SBandSite IID_IBandSite")
2103 cpp_quote("#define CGID_BandSite IID_IBandSite")
2104
2105 [
2106 object,
2107 uuid(4CF504B0-DE96-11D0-8B3F-00A0C911E8E5)
2108 ]
2109 interface IBandSite : IUnknown
2110 {
2111 HRESULT AddBand([in] IUnknown* punk);
2112
2113 HRESULT EnumBands(
2114 [in] UINT uBand,
2115 [out] DWORD* pdwBandID);
2116
2117 HRESULT QueryBand(
2118 [in] DWORD dwBandID,
2119 [out] IDeskBand** ppstb,
2120 [out] DWORD* pdwState,
2121 [out, string, size_is(cchName)] LPWSTR pszName,
2122 [in] int cchName);
2123
2124 HRESULT SetBandState(
2125 [in] DWORD dwBandID,
2126 [in] DWORD dwMask,
2127 [in] DWORD dwState);
2128
2129 HRESULT RemoveBand([in] DWORD dwBandID);
2130
2131 HRESULT GetBandObject(
2132 [in] DWORD dwBandID,
2133 [in] REFIID riid,
2134 [out, iid_is(riid)] void **ppv);
2135
2136 HRESULT SetBandSiteInfo([in] const BANDSITEINFO *pbsinfo);
2137
2138 HRESULT GetBandSiteInfo([in, out] BANDSITEINFO *pbsinfo);
2139 }
2140
2141 cpp_quote("#endif /* _WIN32_IE_IE40 */")
2142
2143 /*****************************************************************************
2144 * IMenuBand interface
2145 */
2146 [
2147 uuid(568804CD-CBD7-11d0-9816-00C04FD91972),
2148 object,
2149 pointer_default(unique),
2150 local
2151 ]
2152 interface IMenuBand : IUnknown
2153 {
2154 enum tagMENUBANDHANDLERCID {
2155 MBHANDCID_PIDLSELECT = 0,
2156 };
2157
2158 HRESULT IsMenuMessage([in] MSG* pmsg);
2159
2160 HRESULT TranslateMenuMessage(
2161 [in, out] MSG* pmsg,
2162 [out] LRESULT* plRet);
2163 }
2164
2165 /*****************************************************************************
2166 * IProfferService interface
2167 */
2168 [
2169 uuid(cb728b20-f786-11ce-92ad-00aa00a74cd0),
2170 object,
2171 pointer_default(unique),
2172 local
2173 ]
2174 interface IProfferService : IUnknown
2175 {
2176 HRESULT ProfferService(
2177 [in] REFGUID service,
2178 [in] IServiceProvider *pService,
2179 [out] DWORD *pCookie);
2180
2181 HRESULT RevokeService([in] DWORD cookie);
2182 }
2183
2184 /*****************************************************************************
2185 * IShellMenuCallback interface
2186 */
2187 cpp_quote("#include <pshpack8.h>")
2188
2189 typedef struct tagSMDATA
2190 {
2191 DWORD dwMask;
2192 DWORD dwFlags;
2193 HMENU hmenu;
2194 HWND hwnd;
2195 UINT uId;
2196 UINT uIdParent;
2197 UINT uIdAncestor;
2198 IUnknown *punk;
2199 LPITEMIDLIST pidlFolder;
2200 LPITEMIDLIST pidlItem;
2201 IShellFolder *psf;
2202 void *pvUserData;
2203 } SMDATA, *LPSMDATA;
2204
2205 cpp_quote("#define SMDM_SHELLFOLDER 0x00000001")
2206 cpp_quote("#define SMDM_HMENU 0x00000002")
2207 cpp_quote("#define SMDM_TOOLBAR 0x00000004")
2208
2209 typedef struct tagSMINFO
2210 {
2211 DWORD dwMask;
2212 DWORD dwType;
2213 DWORD dwFlags;
2214 int iIcon;
2215 } SMINFO, *PSMINFO;
2216
2217 typedef struct tagSHCSCHANGENOTIFYSTRUCT
2218 {
2219 LONG lEvent;
2220 LPCITEMIDLIST pidl1;
2221 LPCITEMIDLIST pidl2;
2222 } SMCSHCHANGENOTIFYSTRUCT, *PSMCSHCHANGENOTIFYSTRUCT;
2223
2224 cpp_quote("#include <poppack.h>")
2225
2226 enum
2227 {
2228 SMIM_TYPE = 0x00000001,
2229 SMIM_FLAGS = 0x00000002,
2230 SMIM_ICON = 0x00000004
2231 };
2232
2233 enum
2234 {
2235 SMIT_SEPARATOR = 0x00000001,
2236 SMIT_STRING = 0x00000002
2237 };
2238
2239 enum
2240 {
2241 SMIF_ICON = 0x00000001,
2242 SMIF_ACCELERATOR = 0x00000002,
2243 SMIF_DROPTARGET = 0x00000004,
2244 SMIF_SUBMENU = 0x00000008,
2245 SMIF_CHECKED = 0x00000020,
2246 SMIF_DROPCASCADE = 0x00000040,
2247 SMIF_HIDDEN = 0x00000080,
2248 SMIF_DISABLED = 0x00000100,
2249 SMIF_TRACKPOPUP = 0x00000200,
2250 SMIF_DEMOTED = 0x00000400,
2251 SMIF_ALTSTATE = 0x00000800,
2252 SMIF_DRAGNDROP = 0x00001000,
2253 SMIF_NEW = 0x00002000,
2254 };
2255
2256
2257 cpp_quote("#define SMC_INITMENU 0x00000001")
2258 cpp_quote("#define SMC_CREATE 0x00000002")
2259 cpp_quote("#define SMC_EXITMENU 0x00000003")
2260 cpp_quote("#define SMC_GETINFO 0x00000005")
2261 cpp_quote("#define SMC_GETSFINFO 0x00000006")
2262 cpp_quote("#define SMC_GETOBJECT 0x00000007")
2263 cpp_quote("#define SMC_GETSFOBJECT 0x00000008")
2264 cpp_quote("#define SMC_SFEXEC 0x00000009")
2265 cpp_quote("#define SMC_SFSELECTITEM 0x0000000A")
2266 cpp_quote("#define SMC_REFRESH 0x00000010")
2267 cpp_quote("#define SMC_DEMOTE 0x00000011")
2268 cpp_quote("#define SMC_PROMOTE 0x00000012")
2269 cpp_quote("#define SMC_DEFAULTICON 0x00000016")
2270 cpp_quote("#define SMC_NEWITEM 0x00000017")
2271 cpp_quote("#define SMC_CHEVRONEXPAND 0x00000019")
2272 cpp_quote("#define SMC_DISPLAYCHEVRONTIP 0x0000002A")
2273 cpp_quote("#define SMC_SETSFOBJECT 0x0000002D")
2274 cpp_quote("#define SMC_SHCHANGENOTIFY 0x0000002E")
2275 cpp_quote("#define SMC_CHEVRONGETTIP 0x0000002F")
2276 cpp_quote("#define SMC_SFDDRESTRICTED 0x00000030")
2277
2278 [
2279 uuid(4CA300A1-9B8D-11d1-8B22-00C04FD918D0),
2280 object,
2281 pointer_default(unique),
2282 local
2283 ]
2284 interface IShellMenuCallback : IUnknown
2285 {
2286 HRESULT CallbackSM(
2287 [in, out] LPSMDATA psmd,
2288 [in] UINT uMsg,
2289 [in] WPARAM wParam,
2290 [in] LPARAM lParam);
2291 }
2292
2293
2294 /*****************************************************************************
2295 * IShellMenu interface
2296 */
2297
2298 cpp_quote("#define SMINIT_DEFAULT 0x00000000")
2299 cpp_quote("#define SMINIT_RESTRICT_DRAGDROP 0x00000002")
2300 cpp_quote("#define SMINIT_TOPLEVEL 0x00000004")
2301 cpp_quote("#define SMINIT_CACHED 0x00000010")
2302 cpp_quote("#define SMINIT_VERTICAL 0x10000000")
2303 cpp_quote("#define SMINIT_HORIZONTAL 0x20000000")
2304 cpp_quote("")
2305 cpp_quote("#define ANCESTORDEFAULT (UINT)-1")
2306 cpp_quote("")
2307 cpp_quote("#define SMSET_TOP 0x10000000")
2308 cpp_quote("#define SMSET_BOTTOM 0x20000000")
2309 cpp_quote("#define SMSET_DONTOWN 0x00000001")
2310 cpp_quote("")
2311 cpp_quote("#define SMINV_REFRESH 0x00000001")
2312 cpp_quote("#define SMINV_ID 0x00000008")
2313
2314 [
2315 uuid(EE1F7637-E138-11d1-8379-00C04FD918D0),
2316 object,
2317 pointer_default(unique),
2318 local
2319 ]
2320 interface IShellMenu : IUnknown
2321 {
2322 HRESULT Initialize(
2323 [in] IShellMenuCallback *psmc,
2324 [in] UINT uId,
2325 [in] UINT uIdAncestor,
2326 [in] DWORD dwFlags);
2327
2328 HRESULT GetMenuInfo(
2329 [out] IShellMenuCallback **ppsmc,
2330 [out] UINT *puId,
2331 [out] UINT *puIdAncestor,
2332 [out] DWORD *pdwFlags);
2333
2334 HRESULT SetShellFolder(
2335 [in] IShellFolder *psf,
2336 [in] LPCITEMIDLIST pidlFolder,
2337 [in] HKEY hKey,
2338 [in] DWORD dwFlags);
2339
2340 HRESULT GetShellFolder(
2341 [out] DWORD *pdwFlags,
2342 [out] LPITEMIDLIST *ppidl,
2343 [in] REFIID riid,
2344 [out] void **ppv);
2345
2346 HRESULT SetMenu(
2347 [in] HMENU hmenu,
2348 [in] HWND hwnd,
2349 [in] DWORD dwFlags);
2350
2351 HRESULT GetMenu(
2352 [out] HMENU *phmenu,
2353 [out] HWND *phwnd,
2354 [out] DWORD *pdwFlags);
2355
2356 HRESULT InvalidateItem(
2357 [in] LPSMDATA psmd,
2358 [in] DWORD dwFlags);
2359
2360 HRESULT GetState(
2361 [out] LPSMDATA psmd);
2362
2363 HRESULT SetMenuToolbar(
2364 [in] IUnknown *punk,
2365 [in] DWORD dwFlags);
2366 }
2367
2368 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60)")
2369
2370 /*****************************************************************************
2371 * ITrackShellMenu interface
2372 */
2373 [
2374 uuid(8278F932-2A3E-11d2-838F-00C04FD918D0),
2375 object,
2376 pointer_default(unique),
2377 local
2378 ]
2379 interface ITrackShellMenu : IShellMenu
2380 {
2381 HRESULT SetObscured(
2382 [in] HWND hwndTB,
2383 [in] IUnknown *punkBand,
2384 DWORD dwSMSetFlags);
2385
2386 HRESULT Popup(
2387 [in] HWND hwnd,
2388 [in] POINTL *ppt,
2389 [in] RECTL *prcExclude,
2390 MP_POPUPFLAGS dwFlags);
2391 };
2392
2393 cpp_quote("#endif /* _WIN32_IE_IE60 */")
2394
2395 cpp_quote("#ifdef MIDL_PASS")
2396 typedef IUnknown* HIMAGELIST;
2397 cpp_quote("#endif")
2398
2399 typedef [v1_enum] enum THUMBBUTTONFLAGS {
2400 THBF_ENABLED = 0x0000,
2401 THBF_DISABLED = 0x0001,
2402 THBF_DISMISSONCLICK = 0x0002,
2403 THBF_NOBACKGROUND = 0x0004,
2404 THBF_HIDDEN = 0x0008,
2405 THBF_NONINTERACTIVE = 0x0010
2406 } THUMBBUTTONFLAGS;
2407
2408 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONFLAGS)")
2409
2410 typedef [v1_enum] enum THUMBBUTTONMASK {
2411 THB_BITMAP = 0x0001,
2412 THB_ICON = 0x0002,
2413 THB_TOOLTIP = 0x0004,
2414 THB_FLAGS = 0x0008
2415 } THUMBBUTTONMASK;
2416
2417 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONMASK)")
2418
2419 cpp_quote("#include <pshpack8.h>")
2420 typedef struct THUMBBUTTON {
2421 THUMBBUTTONMASK dwMask;
2422 UINT iId;
2423 UINT iBitmap;
2424 HICON hIcon;
2425 WCHAR szTip[260];
2426 THUMBBUTTONFLAGS dwFlags;
2427 } THUMBBUTTON, *LPTHUMBBUTTON;
2428 cpp_quote("#include <poppack.h>")
2429
2430 /*****************************************************************************
2431 * ITaskbarList2 interface
2432 */
2433 [
2434 object,
2435 uuid(602D4995-B13A-429B-A66E-1935E44F4317),
2436 pointer_default(unique)
2437 ]
2438 interface ITaskbarList2 : ITaskbarList
2439 {
2440 HRESULT MarkFullscreenWindow(
2441 [in] HWND hwnd,
2442 [in] BOOL fullscreen);
2443 }
2444
2445 [
2446 uuid(ea1afb91-9e28-4b86-90e9-9e9f8a5eefaf),
2447 object
2448 ]
2449 interface ITaskbarList3 : ITaskbarList2
2450 {
2451 typedef [v1_enum] enum TBPFLAG {
2452 TBPF_NOPROGRESS = 0x0000,
2453 TBPF_INDETERMINATE = 0x0001,
2454 TBPF_NORMAL = 0x0002,
2455 TBPF_ERROR = 0x0004,
2456 TBPF_PAUSED = 0x0008
2457 } TBPFLAG;
2458
2459 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(TBPFLAG)")
2460
2461 HRESULT SetProgressValue(
2462 [in] HWND hwnd,
2463 [in] ULONGLONG ullCompleted,
2464 [in] ULONGLONG ullTotal);
2465
2466 HRESULT SetProgressState(
2467 [in] HWND hwnd,
2468 [in] TBPFLAG tbpFlags);
2469
2470 HRESULT RegisterTab(
2471 [in] HWND hwndTab,
2472 [in] HWND hwndMDI);
2473
2474 HRESULT UnregisterTab([in] HWND hwndTab);
2475
2476 HRESULT SetTabOrder(
2477 [in] HWND hwndTab,
2478 [in] HWND hwndInsertBefore);
2479
2480 HRESULT SetTabActive(
2481 [in] HWND hwndTab,
2482 [in] HWND hwndMDI,
2483 [in] DWORD dwReserved);
2484
2485 HRESULT ThumbBarAddButtons(
2486 [in] HWND hwnd,
2487 [in] UINT cButtons,
2488 [in, size_is(cButtons)] LPTHUMBBUTTON pButton);
2489
2490 HRESULT ThumbBarUpdateButtons(
2491 [in] HWND hwnd,
2492 [in] UINT cButtons,
2493 [in, size_is(cButtons)] LPTHUMBBUTTON pButton);
2494
2495 HRESULT ThumbBarSetImageList(
2496 [in] HWND hwnd,
2497 [in] HIMAGELIST himl);
2498
2499 HRESULT SetOverlayIcon(
2500 [in] HWND hwnd,
2501 [in] HICON hIcon,
2502 [in, unique, string] LPCWSTR pszDescription);
2503
2504 HRESULT SetThumbnailTooltip(
2505 [in] HWND hwnd,
2506 [in, unique, string] LPCWSTR pszTip);
2507
2508 HRESULT SetThumbnailClip(
2509 [in] HWND hwnd,
2510 [in] RECT *prcClip);
2511 }
2512
2513 [
2514 uuid(c43dc798-95d1-4bea-9030-bb99e2983a1a),
2515 object
2516 ]
2517 interface ITaskbarList4 : ITaskbarList3
2518 {
2519 typedef [v1_enum] enum STPFLAG {
2520 STPF_NONE = 0x0000,
2521 STPF_USEAPPTHUMBNAILALWAYS = 0x0001,
2522 STPF_USEAPPTHUMBNAILWHENACTIVE = 0x0002,
2523 STPF_USEAPPPEEKALWAYS = 0x0004,
2524 STPF_USEAPPPEEKWHENACTIVE = 0x0008
2525 } STPFLAG;
2526
2527 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(STPFLAG)")
2528
2529 HRESULT SetTabProperties(
2530 [in] HWND hwndTab,
2531 [in] STPFLAG stpFlags);
2532 }
2533
2534 /*****************************************************************************
2535 * IAutoCompleteDropDown interface
2536 */
2537 [
2538 object,
2539 uuid(3CD141F4-3C6A-11d2-BCAA-00C04FD929DB),
2540 pointer_default(unique)
2541 ]
2542 interface IAutoCompleteDropDown : IUnknown
2543 {
2544 cpp_quote("#define ACDD_VISIBLE 0x0001")
2545
2546 HRESULT GetDropDownStatus(
2547 [out] DWORD *pdwFlags,
2548 [out, string] LPWSTR *ppwszString);
2549
2550 HRESULT ResetEnumerator();
2551 }
2552
2553 /*****************************************************************************
2554 * IExplorerBrowserEvents interface
2555 */
2556 [
2557 object,
2558 uuid(361BBDC7-E6EE-4E13-BE58-58E2240C810F)
2559 ]
2560 interface IExplorerBrowserEvents : IUnknown
2561 {
2562 HRESULT OnNavigationPending(
2563 [in] PCIDLIST_ABSOLUTE pidlFolder);
2564
2565 HRESULT OnViewCreated(
2566 [in] IShellView *psv);
2567
2568 HRESULT OnNavigationComplete(
2569 [in] PCIDLIST_ABSOLUTE pidlFolder);
2570
2571 HRESULT OnNavigationFailed(
2572 [in] PCIDLIST_ABSOLUTE pidlFolder);
2573 }
2574
2575 typedef GUID EXPLORERPANE;
2576 typedef EXPLORERPANE *REFEXPLORERPANE;
2577
2578 cpp_quote("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
2579
2580 /*****************************************************************************
2581 * IExplorerPaneVisibility interface
2582 */
2583 [
2584 object,
2585 uuid(E07010EC-BC17-44C0-97B0-46C7C95B9EDC)
2586 ]
2587 interface IExplorerPaneVisibility : IUnknown
2588 {
2589 typedef enum tagEXPLORERPANESTATE {
2590 EPS_DONTCARE = 0x0,
2591 EPS_DEFAULT_ON = 0x1,
2592 EPS_DEFAULT_OFF = 0x2,
2593 EPS_STATE_MASK = 0xffff,
2594 EPS_INITIALSTATE = 0x10000,
2595 EPS_FORCE = 0x20000
2596 } EXPLORERPANESTATE;
2597
2598 HRESULT GetPaneState(
2599 [in] REFEXPLORERPANE ep,
2600 [out] EXPLORERPANESTATE *peps);
2601 }
2602
2603 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS {
2604 EBF_NONE = 0,
2605 EBF_SELECTFROMDATAOBJECT = 0x100,
2606 EBF_NODROPTARGET = 0x200
2607 } EXPLORER_BROWSER_FILL_FLAGS;
2608
2609 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS {
2610 EBO_NONE = 0x00,
2611 EBO_NAVIGATEONCE = 0x01,
2612 EBO_SHOWFRAMES = 0x02,
2613 EBO_ALWAYSNAVIGATE = 0x04,
2614 EBO_NOTRAVELLOG = 0x08,
2615 EBO_NOWRAPPERWINDOW = 0x10,
2616 EBO_HTMLSHAREPOINTVIEW = 0x20
2617 } EXPLORER_BROWSER_OPTIONS;
2618
2619 cpp_quote("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
2620
2621 /*****************************************************************************
2622 * IExplorerBrowser interface
2623 */
2624 [
2625 object,
2626 uuid(DFD3B6B5-C10C-4BE9-85F6-A66969F402F6),
2627 pointer_default(unique)
2628 ]
2629 interface IExplorerBrowser : IUnknown
2630 {
2631
2632 [local] HRESULT Initialize(
2633 [in] HWND hwndParent,
2634 [in] const RECT *prc,
2635 [in, unique] const FOLDERSETTINGS *pfs);
2636
2637 HRESULT Destroy();
2638
2639 [local] HRESULT SetRect(
2640 [in,out,unique] HDWP *phdwp,
2641 [in] RECT rcBrowser);
2642
2643 HRESULT SetPropertyBag(
2644 [in, string] LPCWSTR pszPropertyBag);
2645
2646 HRESULT SetEmptyText(
2647 [in, string] LPCWSTR pszEmptyText);
2648
2649 HRESULT SetFolderSettings(
2650 [in] const FOLDERSETTINGS *pfs);
2651
2652 HRESULT Advise(
2653 [in] IExplorerBrowserEvents *psbe,
2654 [out] DWORD *pdwCookie);
2655
2656 HRESULT Unadvise(
2657 [in] DWORD dwCookie);
2658
2659 HRESULT SetOptions(
2660 [in] EXPLORER_BROWSER_OPTIONS dwFlag);
2661
2662 HRESULT GetOptions(
2663 [out] EXPLORER_BROWSER_OPTIONS *pdwFlag);
2664
2665 HRESULT BrowseToIDList(
2666 [in] PCUIDLIST_RELATIVE pidl,
2667 [in] UINT uFlags);
2668
2669 HRESULT BrowseToObject(
2670 [in] IUnknown *punk,
2671 [in] UINT uFlags);
2672
2673 HRESULT FillFromObject(
2674 [in] IUnknown *punk,
2675 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags);
2676
2677 HRESULT RemoveAll();
2678
2679 HRESULT GetCurrentView(
2680 [in] REFIID riid,
2681 [out, iid_is(riid)] void **ppv);
2682 }
2683
2684 /*****************************************************************************
2685 * INameSpaceTreeControl interface
2686 */
2687 [
2688 object,
2689 uuid(028212A3-B627-47E9-8856-C14265554E4F)
2690 ]
2691 interface INameSpaceTreeControl : IUnknown
2692 {
2693 [v1_enum] enum _NSTCSTYLE {
2694 NSTCS_HASEXPANDOS = 0x00000001,
2695 NSTCS_HASLINES = 0x00000002,
2696 NSTCS_SINGLECLICKEXPAND = 0x00000004,
2697 NSTCS_FULLROWSELECT = 0x00000008,
2698 NSTCS_SPRINGEXPAND = 0x00000010,
2699 NSTCS_HORIZONTALSCROLL = 0x00000020,
2700 NSTCS_ROOTHASEXPANDO = 0x00000040,
2701 NSTCS_SHOWSELECTIONALWAYS = 0x00000080,
2702 NSTCS_NOINFOTIP = 0x00000200,
2703 NSTCS_EVENHEIGHT = 0x00000400,
2704 NSTCS_NOREPLACEOPEN = 0x00000800,
2705 NSTCS_DISABLEDRAGDROP = 0x00001000,
2706 NSTCS_NOORDERSTREAM = 0x00002000,
2707 NSTCS_RICHTOOLTIP = 0x00004000,
2708 NSTCS_BORDER = 0x00008000,
2709 NSTCS_NOEDITLABELS = 0x00010000,
2710 NSTCS_TABSTOP = 0x00020000,
2711 NSTCS_FAVORITESMODE = 0x00080000,
2712 NSTCS_AUTOHSCROLL = 0x00100000,
2713 NSTCS_FADEINOUTEXPANDOS = 0x00200000,
2714 NSTCS_EMPTYTEXT = 0x00400000,
2715 NSTCS_CHECKBOXES = 0x00800000,
2716 NSTCS_PARTIALCHECKBOXES = 0x01000000,
2717 NSTCS_EXCLUSIONCHECKBOXES = 0x02000000,
2718 NSTCS_DIMMEDCHECKBOXES = 0x04000000,
2719 NSTCS_NOINDENTCHECKS = 0x08000000,
2720 NSTCS_ALLOWJUNCTIONS = 0x10000000,
2721 NSTCS_SHOWTABSBUTTON = 0x20000000,
2722 NSTCS_SHOWDELETEBUTTON = 0x40000000,
2723 NSTCS_SHOWREFRESHBUTTON = (int)0x80000000
2724 };
2725 typedef DWORD NSTCSTYLE;
2726
2727 [v1_enum] enum _NSTCROOTSTYLE {
2728 NSTCRS_VISIBLE = 0x0000,
2729 NSTCRS_HIDDEN = 0x0001,
2730 NSTCRS_EXPANDED = 0x0002
2731 };
2732 typedef DWORD NSTCROOTSTYLE;
2733
2734 [v1_enum] enum _NSTCITEMSTATE {
2735 NSTCIS_NONE = 0x0000,
2736 NSTCIS_SELECTED = 0x0001,
2737 NSTCIS_EXPANDED = 0x0002,
2738 NSTCIS_BOLD = 0x0004,
2739 NSTCIS_DISABLED = 0x0008,
2740 NSTCIS_SELECTEDNOEXPAND = 0x0010
2741 };
2742 typedef DWORD NSTCITEMSTATE;
2743
2744 typedef [v1_enum] enum NSTCGNI {
2745 NSTCGNI_NEXT = 0,
2746 NSTCGNI_NEXTVISIBLE = 1,
2747 NSTCGNI_PREV = 2,
2748 NSTCGNI_PREVVISIBLE = 3,
2749 NSTCGNI_PARENT = 4,
2750 NSTCGNI_CHILD = 5,
2751 NSTCGNI_FIRSTVISIBLE = 6,
2752 NSTCGNI_LASTVISIBLE = 7
2753 } NSTCGNI;
2754
2755 HRESULT Initialize(
2756 [in] HWND hwndParent,
2757 [in, unique] RECT *prc,
2758 [in] NSTCSTYLE nstcsFlags);
2759
2760 HRESULT TreeAdvise(
2761 [in] IUnknown *punk,
2762 [out] DWORD *pdwCookie);
2763
2764 HRESULT TreeUnadvise(
2765 [in] DWORD dwCookie);
2766
2767 HRESULT AppendRoot(
2768 [in] IShellItem *psiRoot,
2769 [in] SHCONTF grfEnumFlags,
2770 [in] NSTCROOTSTYLE grfRootStyle,
2771 [in, unique] IShellItemFilter *pif);
2772
2773 HRESULT InsertRoot(
2774 [in] int iIndex,
2775 [in] IShellItem *psiRoot,
2776 [in] SHCONTF grfEnumFlags,
2777 [in] NSTCROOTSTYLE grfRootStyle,
2778 [in, unique] IShellItemFilter *pif);
2779
2780 HRESULT RemoveRoot(
2781 [in] IShellItem *psiRoot);
2782
2783 HRESULT RemoveAllRoots();
2784
2785 HRESULT GetRootItems(
2786 [out] IShellItemArray **ppsiaRootItems);
2787
2788 HRESULT SetItemState(
2789 [in] IShellItem *psi,
2790 [in] NSTCITEMSTATE nstcisMask,
2791 [in] NSTCITEMSTATE nstcisFlags);
2792
2793 HRESULT GetItemState(
2794 [in] IShellItem *psi,
2795 [in] NSTCITEMSTATE nstcismask,
2796 [out] NSTCITEMSTATE *pnstcisFlags);
2797
2798 HRESULT GetSelectedItems(
2799 [out] IShellItemArray **psiaItems);
2800
2801 HRESULT GetItemCustomState(
2802 [in] IShellItem *psi,
2803 [out] int *piStateNumber);
2804
2805 HRESULT SetItemCustomState(
2806 [in] IShellItem *psi,
2807 [in] int iStateNumber);
2808
2809 HRESULT EnsureItemVisible(
2810 [in] IShellItem *psi);
2811
2812 HRESULT SetTheme(
2813 [in, string] LPCWSTR pszTheme);
2814
2815 HRESULT GetNextItem(
2816 [in, unique] IShellItem *psi,
2817 [in] NSTCGNI nstcgi,
2818 [out] IShellItem **ppsiNext);
2819
2820 HRESULT HitTest(
2821 [in] POINT *ppt,
2822 [out] IShellItem **ppsiOut);
2823
2824 HRESULT GetItemRect(
2825 [in] IShellItem *psi,
2826 [out] RECT *prect);
2827
2828 HRESULT CollapseAll();
2829 }
2830
2831 /*****************************************************************************
2832 * INameSpaceTreeControl2 interface
2833 */
2834 [
2835 object,
2836 uuid(7CC7AED8-290E-49BC-8945-C1401CC9306C)
2837 ]
2838 interface INameSpaceTreeControl2 : INameSpaceTreeControl
2839 {
2840 typedef [v1_enum] enum NSTCSTYLE2 {
2841 NSTCS2_DEFAULT = 0x00,
2842 NSTCS2_INTERRUPTNOTIFICATIONS = 0x01,
2843 NSTCS2_SHOWNULLSPACEMENU = 0x02,
2844 NSTCS2_DISPLAYPADDING = 0x04,
2845 NSTCS2_DISPLAYPINNEDONLY = 0x08,
2846 NTSCS2_NOSINGLETONAUTOEXPAND = 0x10, /* The apparent typo here is */
2847 NTSCS2_NEVERINSERTNONENUMERATED = 0x20 /* present also in the Win SDK */
2848 } NSTCSTYLE2;
2849 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(NSTCSTYLE2)")
2850
2851 HRESULT SetControlStyle(
2852 [in] NSTCSTYLE nstcsMask,
2853 [in] NSTCSTYLE nstcsStyle);
2854
2855 HRESULT GetControlStyle(
2856 [in] NSTCSTYLE nstcsMask,
2857 [out] NSTCSTYLE *pnstcsStyle);
2858
2859 HRESULT SetControlStyle2(
2860 [in] NSTCSTYLE2 nstcsMask,
2861 [in] NSTCSTYLE2 nstcsStyle);
2862
2863 HRESULT GetControlStyle2(
2864 [in] NSTCSTYLE2 nstcsMask,
2865 [out] NSTCSTYLE2 *pnstcsStyle);
2866 }
2867
2868 /*****************************************************************************
2869 * INameSpaceTreeControlEvents interface
2870 */
2871
2872 [
2873 object,
2874 uuid(93D77985-B3D8-4484-8318-672CDDA002CE),
2875 local
2876 ]
2877 interface INameSpaceTreeControlEvents : IUnknown
2878 {
2879 [v1_enum] enum _NSTCEHITTEST {
2880 NSTCEHT_NOWHERE = 0x0001,
2881 NSTCEHT_ONITEMICON = 0x0002,
2882 NSTCEHT_ONITEMLABEL = 0x0004,
2883 NSTCEHT_ONITEMIDENT = 0x0008,
2884 NSTCEHT_ONITEMBUTTON = 0x0010,
2885 NSTCEHT_ONITEMRIGHT = 0x0020,
2886 NSTCEHT_ONITEMSTATEICON = 0x0040,
2887 NSTCEHT_ONITEM = 0x0046,
2888 NSTCEHT_ONITEMTABBUTTON = 0x1000
2889 };
2890 typedef DWORD NSTCEHITTEST;
2891
2892 [v1_enum] enum _NSTCECLICKTYPE {
2893 NSTCECT_LBUTTON = 0x1,
2894 NSTCECT_MBUTTON = 0x2,
2895 NSTCECT_RBUTTON = 0x3,
2896 NSTCECT_BUTTON = 0x3,
2897 NSTCECT_DBLCLICK = 0x4
2898 };
2899 typedef DWORD NSTCECLICKTYPE;
2900
2901 HRESULT OnItemClick(
2902 [in] IShellItem *psi,
2903 [in] NSTCEHITTEST nstceHitTest,
2904 [in] NSTCECLICKTYPE nstceClickType);
2905
2906 HRESULT OnPropertyItemCommit(
2907 [in] IShellItem *psi);
2908
2909 HRESULT OnItemStateChanging(
2910 [in] IShellItem *psi,
2911 [in] NSTCITEMSTATE nstcisMask,
2912 [in] NSTCITEMSTATE nstcisState);
2913
2914 HRESULT OnItemStateChanged(
2915 [in] IShellItem *psi,
2916 [in] NSTCITEMSTATE nstcisMask,
2917 [in] NSTCITEMSTATE nstcisState);
2918
2919 HRESULT OnSelectionChanged(
2920 [in] IShellItemArray *psiaSelection);
2921
2922 HRESULT OnKeyboardInput(
2923 [in] UINT uMsg,
2924 [in] WPARAM wParam,
2925 [in] LPARAM lParam);
2926
2927 HRESULT OnBeforeExpand(
2928 [in] IShellItem *psi);
2929
2930 HRESULT OnAfterExpand(
2931 [in] IShellItem *psi);
2932
2933 HRESULT OnBeginLabelEdit(
2934 [in] IShellItem *psi);
2935
2936 HRESULT OnEndLabelEdit(
2937 [in] IShellItem *psi);
2938
2939 HRESULT OnGetToolTip(
2940 [in] IShellItem *psi,
2941 [out, string, size_is(cchTip)] LPWSTR pszTip,
2942 [in] int cchTip);
2943
2944 HRESULT OnBeforeItemDelete(
2945 [in] IShellItem *psi);
2946
2947 HRESULT OnItemAdded(
2948 [in] IShellItem *psi,
2949 [in] BOOL fIsRoot);
2950
2951 HRESULT OnItemDeleted(
2952 [in] IShellItem *psi,
2953 [in] BOOL fIsRoot);
2954
2955 HRESULT OnBeforeContextMenu(
2956 [in, unique] IShellItem *psi,
2957 [in] REFIID riid,
2958 [out, iid_is(riid)] void **ppv);
2959
2960 HRESULT OnAfterContextMenu(
2961 [in] IShellItem *psi,
2962 [in] IContextMenu *pcmIn,
2963 [in] REFIID riid,
2964 [out, iid_is(riid)] void **ppv);
2965
2966 HRESULT OnBeforeStateImageChange(
2967 [in] IShellItem *psi);
2968
2969 HRESULT OnGetDefaultIconIndex(
2970 [in] IShellItem *psi,
2971 [out] int *piDefaultIcon,
2972 [out] int *piOpenIcon);
2973 }
2974
2975 /*****************************************************************************
2976 * INameSpaceTreeControlCustomDraw interface
2977 */
2978 [
2979 object,
2980 uuid(2D3BA758-33EE-42D5-BB7B-5F3431D86C78),
2981 local
2982 ]
2983
2984 interface INameSpaceTreeControlCustomDraw : IUnknown
2985 {
2986 typedef struct NSTCCUSTOMDRAW
2987 {
2988 IShellItem *psi;
2989 UINT uItemState;
2990 NSTCITEMSTATE nstcis;
2991 LPCWSTR pszText;
2992 int iImage;
2993 HIMAGELIST himl;
2994 int iLevel;
2995 int iIndent;
2996 } NSTCCUSTOMDRAW;
2997
2998 HRESULT PrePaint(
2999 [in] HDC hdc,
3000 [in] RECT *prc,
3001 [out] LRESULT *plres);
3002
3003 HRESULT PostPaint(
3004 [in] HDC hdc,
3005 [in] RECT *prc);
3006
3007 HRESULT ItemPrePaint(
3008 [in] HDC hdc,
3009 [in] RECT *prc,
3010 [in, out] COLORREF *pclrText,
3011 [in, out] COLORREF *pclrTextBk,
3012 [out] LRESULT *plres);
3013
3014 HRESULT ItemPostPaint(
3015 [in] HDC hdc,
3016 [in] RECT *prc,
3017 [in] NSTCCUSTOMDRAW *pnstccdItem);
3018 }
3019
3020 /*****************************************************************************
3021 * INameSpaceTreeControlDropHandler interface
3022 */
3023 [
3024 object,
3025 uuid(F9C665D6-C2F2-4C19-BF33-8322D7352F51),
3026 local
3027 ]
3028 interface INameSpaceTreeControlDropHandler : IUnknown
3029 {
3030 HRESULT OnDragEnter(
3031 [in, unique] IShellItem *psiOver,
3032 [in] IShellItemArray *psiaData,
3033 [in] BOOL fOutsideSource,
3034 [in] DWORD grfKeyState,
3035 [in, out] DWORD *pdwEffect);
3036
3037 HRESULT OnDragOver(
3038 [in, unique] IShellItem *psiOver,
3039 [in] IShellItemArray *psiaData,
3040 [in] DWORD grfKeyState,
3041 [in, out] DWORD *pdwEffect);
3042
3043 HRESULT OnDragPosition(
3044 [in, unique] IShellItem *psiOver,
3045 [in] IShellItemArray *psiaData,
3046 [in] int iNewPosition,
3047 [in] int iOldPosition);
3048
3049 HRESULT OnDrop(
3050 [in, unique] IShellItem *psiOver,
3051 [in] IShellItemArray *psiaData,
3052 [in] int iPosition,
3053 [in] DWORD grfKeyState,
3054 [in, out] DWORD *pdwEffect);
3055
3056 HRESULT OnDropPosition(
3057 [in, unique] IShellItem *psiOver,
3058 [in] IShellItemArray *psiaData,
3059 [in] int iNewPosition,
3060 [in] int iOldPosition);
3061
3062 HRESULT OnDragLeave(
3063 [in, unique] IShellItem *psiOver);
3064 }
3065 cpp_quote("#define NSTCDHPOS_ONTOP -1")
3066
3067 interface IFileDialog;
3068
3069 typedef [v1_enum] enum FDE_OVERWRITE_RESPONSE
3070 {
3071 FDEOR_DEFAULT = 0,
3072 FDEOR_ACCCEP = 1,
3073 FDEOR_REFUSE = 2
3074 } FDE_OVERWRITE_RESPONSE;
3075
3076 typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
3077 {
3078 FDESVR_DEFAULT = 0,
3079 FDESVR_ACCEPT = 1,
3080 FDESVR_REFUSE = 2
3081 } FDE_SHAREVIOLATION_RESPONSE;
3082
3083 /*****************************************************************************
3084 * IFileDialogEvents interface
3085 */
3086 [
3087 object,
3088 uuid(973510DB-7D7F-452B-8975-74A85828D354),
3089 pointer_default(unique)
3090 ]
3091 interface IFileDialogEvents : IUnknown
3092 {
3093 HRESULT OnFileOk(
3094 [in] IFileDialog *pfd);
3095
3096 HRESULT OnFolderChanging(
3097 [in] IFileDialog *pfd,
3098 [in] IShellItem *psiFolder);
3099
3100 HRESULT OnFolderChange(
3101 [in] IFileDialog *pfd);
3102
3103 HRESULT OnSelectionChange(
3104 [in] IFileDialog *pfd);
3105
3106 HRESULT OnShareViolation(
3107 [in] IFileDialog *pfd,
3108 [in] IShellItem *psi,
3109 [out] FDE_SHAREVIOLATION_RESPONSE *pResponse);
3110
3111 HRESULT OnTypeChange(
3112 [in] IFileDialog *pfd);
3113
3114 HRESULT OnOverwrite(
3115 [in] IFileDialog *pfd,
3116 [in] IShellItem *psi,
3117 [out] FDE_OVERWRITE_RESPONSE *pResponse);
3118 }
3119
3120 /*****************************************************************************
3121 * IModalWindow interface
3122 */
3123 [
3124 object,
3125 uuid(B4DB1657-70D7-485E-8E3E-6FCB5A5C1802),
3126 pointer_default(unique)
3127 ]
3128 interface IModalWindow : IUnknown
3129 {
3130 [local]
3131 HRESULT Show(
3132 [in, unique, annotation("__in_opt")] HWND hwndOwner);
3133
3134 [call_as(Show)]
3135 HRESULT RemoteShow(
3136 [in, unique] HWND hwndOwner);
3137 }
3138
3139 typedef [v1_enum] enum FDAP
3140 {
3141 FDAP_BOTTOM = 0,
3142 FDAP_TOP = 1
3143 } FDAP;
3144
3145 /*****************************************************************************
3146 * IFileDialog interface
3147 */
3148 [
3149 object,
3150 uuid(42F85136-DB7E-439C-85F1-E4075D135FC8),
3151 pointer_default(unique)
3152 ]
3153 interface IFileDialog : IModalWindow
3154 {
3155 [v1_enum] enum _FILEOPENDIALOGOPTIONS
3156 {
3157 FOS_OVERWRITEPROMPT = 0x00000002,
3158 FOS_STRICTFILETYPES = 0x00000004,
3159 FOS_NOCHANGEDIR = 0x00000008,
3160 FOS_PICKFOLDERS = 0x00000020,
3161 FOS_FORCEFILESYSTEM = 0x00000040,
3162 FOS_ALLNONSTORAGEITEMS = 0x00000080,
3163 FOS_NOVALIDATE = 0x00000100,
3164 FOS_ALLOWMULTISELECT = 0x00000200,
3165 FOS_PATHMUSTEXIST = 0x00000800,
3166 FOS_FILEMUSTEXIST = 0x00001000,
3167 FOS_CREATEPROMPT = 0x00002000,
3168 FOS_SHAREAWARE = 0x00004000,
3169 FOS_NOREADONLYRETURN = 0x00008000,
3170 FOS_NOTESTFILECREATE = 0x00010000,
3171 FOS_HIDEMRUPLACES = 0x00020000,
3172 FOS_HIDEPINNEDPLACES = 0x00040000,
3173 FOS_NODEREFERENCELINKS = 0x00100000,
3174 FOS_DONTADDTORECENT = 0x02000000,
3175 FOS_FORCESHOWHIDDEN = 0x10000000,
3176 FOS_DEFAULTNOMINIMODE = 0x20000000,
3177 FOS_FORCEPREVIEWPANEON = 0x40000000
3178 };
3179 typedef DWORD FILEOPENDIALOGOPTIONS;
3180
3181 HRESULT SetFileTypes(
3182 [in] UINT cFileTypes,
3183 [in, size_is(cFileTypes)] const COMDLG_FILTERSPEC *rgFilterSpec);
3184
3185 HRESULT SetFileTypeIndex(
3186 [in] UINT iFileType);
3187
3188 HRESULT GetFileTypeIndex(
3189 [out] UINT *piFileType);
3190
3191 HRESULT Advise(
3192 [in] IFileDialogEvents *pfde,
3193 [out] DWORD *pdwCookie);
3194
3195 HRESULT Unadvise(
3196 [in] DWORD dwCookie);
3197
3198 HRESULT SetOptions(
3199 [in] FILEOPENDIALOGOPTIONS fos);
3200
3201 HRESULT GetOptions(
3202 [in] FILEOPENDIALOGOPTIONS *pfos);
3203
3204 HRESULT SetDefaultFolder(
3205 [in] IShellItem *psi);
3206
3207 HRESULT SetFolder(
3208 [in] IShellItem *psi);
3209
3210 HRESULT GetFolder(
3211 [out] IShellItem **ppsi);
3212
3213 HRESULT GetCurrentSelection(
3214 [out] IShellItem **ppsi);
3215
3216 HRESULT SetFileName(
3217 [in, string] LPCWSTR pszName);
3218
3219 HRESULT GetFileName(
3220 [out, string] LPWSTR *pszName);
3221
3222 HRESULT SetTitle(
3223 [in, string] LPCWSTR pszTitle);
3224
3225 HRESULT SetOkButtonLabel(
3226 [in, string] LPCWSTR pszText);
3227
3228 HRESULT SetFileNameLabel(
3229 [in, string] LPCWSTR pszLabel);
3230
3231 HRESULT GetResult(
3232 [out] IShellItem **ppsi);
3233
3234 HRESULT AddPlace(
3235 [in] IShellItem *psi,
3236 [in] FDAP fdap);
3237
3238 HRESULT SetDefaultExtension(
3239 [in, string] LPCWSTR pszDefaultExtension);
3240
3241 HRESULT Close(
3242 [in] HRESULT hr);
3243
3244 HRESULT SetClientGuid(
3245 [in] REFGUID guid);
3246
3247 HRESULT ClearClientData();
3248
3249 HRESULT SetFilter(
3250 [in] IShellItemFilter *pFilter);
3251 }
3252
3253 /*****************************************************************************
3254 * IFileDialog2 interface
3255 */
3256 [
3257 object,
3258 uuid(61744FC7-85B5-4791-A9B0-272276309B13),
3259 pointer_default(unique)
3260 ]
3261 interface IFileDialog2 : IFileDialog
3262 {
3263 HRESULT SetCancelButtonLabel(
3264 [in] LPCWSTR pszLabel);
3265
3266 HRESULT SetNavigationRoot(
3267 [in] IShellItem *psi);
3268 }
3269
3270 /*****************************************************************************
3271 * IFileOperationProgressSink interface
3272 */
3273 [
3274 object,
3275 uuid(04B0F1A7-9490-44BC-96E1-4296A31252E2),
3276 pointer_default(unique)
3277 ]
3278 interface IFileOperationProgressSink : IUnknown
3279 {
3280 HRESULT StartOperations();
3281
3282 HRESULT FinishOperations(
3283 [in] HRESULT hrResult);
3284
3285 HRESULT PreRenameItem(
3286 [in] DWORD dwFlags,
3287 [in] IShellItem *psiItem,
3288 [in, unique, string] LPCWSTR pszNewName);
3289
3290 HRESULT PostRenameItem(
3291 [in] DWORD dwFlags,
3292 [in] IShellItem *psiItem,
3293 [in, string] LPCWSTR pszNewName,
3294 [in] HRESULT hrRename,
3295 [in] IShellItem *psiNewlyCreated);
3296
3297 HRESULT PreMoveItem(
3298 [in] DWORD dwFlags,
3299 [in] IShellItem *psiItem,
3300 [in] IShellItem *psiDestinationFolder,
3301 [in, unique, string] LPCWSTR pszNewName);
3302
3303 HRESULT PostMoveItem(
3304 [in] DWORD dwFlags,
3305 [in] IShellItem *psiItem,
3306 [in] IShellItem *psiDestinationFolder,
3307 [in, unique, string] LPCWSTR pszNewName,
3308 [in] HRESULT hrMove,
3309 [in] IShellItem *psiNewlyCreated);
3310
3311 HRESULT PreCopyItem(
3312 [in] DWORD dwFlags,
3313 [in] IShellItem *psiItem,
3314 [in] IShellItem *psiDestinationFolder,
3315 [in, unique, string] LPCWSTR pszNewName);
3316
3317 HRESULT PostCopyItem(
3318 [in] DWORD dwFlags,
3319 [in] IShellItem *psiItem,
3320 [in] IShellItem *psiDestinationFolder,
3321 [in, unique, string] LPCWSTR pszNewName,
3322 [in] HRESULT hrCopy,
3323 [in] IShellItem *psiNewlyCreated);
3324
3325 HRESULT PreDeleteItem(
3326 [in] DWORD dwFlags,
3327 [in] IShellItem *psiItem);
3328
3329 HRESULT PostDeleteItem(
3330 [in] DWORD dwFlags,
3331 [in] IShellItem *psiItem,
3332 [in] HRESULT hrDelete,
3333 [in] IShellItem *psiNewlyCreated);
3334
3335 HRESULT PreNewItem(
3336 [in] DWORD dwFlags,
3337 [in] IShellItem *psiDestinationFolder,
3338 [in, unique, string] LPCWSTR pszNewName);
3339
3340 HRESULT PostNewItem(
3341 [in] DWORD dwFlags,
3342 [in] IShellItem *psiDestinationFolder,
3343 [in, unique, string] LPCWSTR pszNewName,
3344 [in, unique, string] LPCWSTR pszTemplateName,
3345 [in] DWORD dwFileAttributes,
3346 [in] HRESULT hrNew,
3347 [in] IShellItem *psiNewItem);
3348
3349 HRESULT UpdateProgress(
3350 [in] UINT iWorkTotal,
3351 [in] UINT iWorkSoFar);
3352
3353 HRESULT ResetTimer();
3354
3355 HRESULT PauseTimer();
3356
3357 HRESULT ResumeTimer();
3358 }
3359
3360 /*****************************************************************************
3361 * IFileSaveDialog interface
3362 */
3363 [
3364 object,
3365 uuid(84BCCD23-5FDE-4CDB-AEA4-AF64B83D78AB),
3366 pointer_default(unique)
3367 ]
3368 interface IFileSaveDialog : IFileDialog
3369 {
3370 HRESULT SetSaveAsItem(
3371 [in] IShellItem *psi);
3372
3373 HRESULT SetProperties(
3374 [in] IPropertyStore *pStore);
3375
3376 HRESULT SetCollectedProperties(
3377 [in] IPropertyDescriptionList *pList,
3378 [in] BOOL fAppendDefault);
3379
3380 HRESULT GetProperties(
3381 [in] IPropertyStore **ppStore);
3382
3383 HRESULT ApplyProperties(
3384 [in] IShellItem *psi,
3385 [in] IPropertyStore *pStore,
3386 [in, unique] HWND hwnd,
3387 [in, unique] IFileOperationProgressSink *pSink);
3388 }
3389
3390
3391 /*****************************************************************************
3392 * IFileOpenDialog interface
3393 */
3394 [
3395 object,
3396 uuid(D57C7288-D4AD-4768-BE02-9D969532D960),
3397 pointer_default(unique)
3398 ]
3399 interface IFileOpenDialog : IFileDialog
3400 {
3401 HRESULT GetResults(
3402 [out] IShellItemArray **ppenum);
3403
3404 HRESULT GetSelectedItems(
3405 [out] IShellItemArray **ppsai);
3406 }
3407
3408 typedef [v1_enum] enum CDCONTROLSTATEF
3409 {
3410 CDCS_INACTIVE = 0x0,
3411 CDCS_ENABLED = 0x1,
3412 CDCS_VISIBLE = 0x2,
3413 CDCS_ENABLEDVISIBLE = 0x3
3414 } CDCONTROLSTATEF;
3415 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
3416 /*****************************************************************************
3417 * IFileDialogCustomize interface
3418 */
3419 [
3420 object,
3421 uuid(E6FDD21A-163F-4975-9C8C-A69F1BA37034),
3422 pointer_default(unique)
3423 ]
3424 interface IFileDialogCustomize : IUnknown
3425 {
3426 HRESULT EnableOpenDropDown(
3427 [in] DWORD dwIDCtl);
3428
3429 HRESULT AddMenu(
3430 [in] DWORD dwIDCtl,
3431 [in, string] LPCWSTR pszLabel);
3432
3433 HRESULT AddPushButton(
3434 [in] DWORD dwIDCtl,
3435 [in, string] LPCWSTR pszLabel);
3436
3437 HRESULT AddComboBox(
3438 [in] DWORD dwIDCtl);
3439
3440 HRESULT AddRadioButtonList(
3441 [in] DWORD dwIDCtl);
3442
3443 HRESULT AddCheckButton(
3444 [in] DWORD dwIDCtl,
3445 [in, string] LPCWSTR pszLabel,
3446 [in] BOOL bChecked);
3447
3448 HRESULT AddEditBox(
3449 [in] DWORD dwIDCtl,
3450 [in, string] LPCWSTR pszText);
3451
3452 HRESULT AddSeparator(
3453 [in] DWORD dwIDCtl);
3454
3455 HRESULT AddText(
3456 [in] DWORD dwIDCtl,
3457 [in, string] LPCWSTR pszText);
3458
3459 HRESULT SetControlLabel(
3460 [in] DWORD dwIDCtl,
3461 [in, string] LPCWSTR pszLabel);
3462
3463 HRESULT GetControlState(
3464 [in] DWORD dwIDCtl,
3465 [out] CDCONTROLSTATEF *pdwState);
3466
3467 HRESULT SetControlState(
3468 [in] DWORD dwIDCtl,
3469 [in] CDCONTROLSTATEF dwState);
3470
3471 HRESULT GetEditBoxText(
3472 [in] DWORD dwIDCtl,
3473 [out, string] WCHAR **ppszText);
3474
3475 HRESULT SetEditBoxText(
3476 [in] DWORD dwIDCtl,
3477 [in, string] LPCWSTR pszText);
3478
3479 HRESULT GetCheckButtonState(
3480 [in] DWORD dwIDCtl,
3481 [out] BOOL *pbChecked);
3482
3483 HRESULT SetCheckButtonState(
3484 [in] DWORD dwIDCtl,
3485 [in] BOOL bChecked);
3486
3487 HRESULT AddControlItem(
3488 [in] DWORD dwIDCtl,
3489 [in] DWORD dwIDItem,
3490 [in] LPCWSTR pszLabel);
3491
3492 HRESULT RemoveControlItem(
3493 [in] DWORD dwIDCtl,
3494 [in] DWORD dwIDItem);
3495
3496 HRESULT RemoveAllControlItems(
3497 [in] DWORD dwIDCtl);
3498
3499 HRESULT GetControlItemState(
3500 [in] DWORD dwIDCtl,
3501 [in] DWORD dwIDItem,
3502 [out] CDCONTROLSTATEF *pdwState);
3503
3504 HRESULT SetControlItemState(
3505 [in] DWORD dwIDCtl,
3506 [in] DWORD dwIDItem,
3507 [in] CDCONTROLSTATEF dwState);
3508
3509 HRESULT GetSelectedControlItem(
3510 [in] DWORD dwIDCtl,
3511 [out] DWORD *pdwIDItem);
3512
3513 HRESULT SetSelectedControlItem(
3514 [in] DWORD dwIDCtl,
3515 [in] DWORD dwIDItem);
3516
3517 HRESULT StartVisualGroup(
3518 [in] DWORD dwIDCtl,
3519 [in, string] LPCWSTR pszLabel);
3520
3521 HRESULT EndVisualGroup();
3522
3523 HRESULT MakeProminent(
3524 [in] DWORD dwIDCtl);
3525
3526 HRESULT SetControlItemText(
3527 [in] DWORD dwIDCtl,
3528 [in] DWORD dwIDItem,
3529 [in, string] LPCWSTR pszLabel);
3530 }
3531
3532 /*****************************************************************************
3533 * IFileDialogControlEvents interface
3534 */
3535 [
3536 object,
3537 uuid(36116642-D713-4B97-9B83-7484A9D00433),
3538 pointer_default(unique)
3539 ]
3540 interface IFileDialogControlEvents : IUnknown
3541 {
3542 HRESULT OnItemSelected(
3543 [in] IFileDialogCustomize *pfdc,
3544 [in] DWORD dwIDCtl,
3545 [in] DWORD dwIDItem);
3546
3547 HRESULT OnButtonClicked(
3548 [in] IFileDialogCustomize *pfdc,
3549 [in] DWORD dwIDCtl);
3550
3551 HRESULT OnCheckButtonToggled(
3552 [in] IFileDialogCustomize *pfdc,
3553 [in] BOOL dwIDCtl,
3554 [in] BOOL bChecked);
3555
3556 HRESULT OnControlActivating(
3557 [in] IFileDialogCustomize *pfdc,
3558 [in] DWORD dwIDCtl);
3559 }
3560
3561 typedef [v1_enum] enum tagKF_CATEGORY
3562 {
3563 KF_CATEGORY_VIRTUAL = 0x00000001,
3564 KF_CATEGORY_FIXED = 0x00000002,
3565 KF_CATEGORY_COMMON = 0x00000003,
3566 KF_CATEGORY_PERUSER = 0x00000004
3567 } KF_CATEGORY;
3568
3569 typedef [v1_enum] enum tagKF_REDIRECTION_CAPABILITIES
3570 {
3571 KF_REDIRECTION_CAPABILITIES_ALLOW_ALL = 0x000000ff,
3572 KF_REDIRECTION_CAPABILITIES_REDIRECTABLE = 0x00000001,
3573 KF_REDIRECTION_CAPABILITIES_DENY_ALL = 0x000fff00,
3574 KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED = 0x00000100,
3575 KF_REDIRECTION_CAPABILITIES_DENY_POLICY = 0x00000200,
3576 KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS = 0x00000400
3577 } KF_REDIRECTION_CAPABILITIES;
3578
3579 typedef [v1_enum] enum tagKF_DEFINITION_FLAGS
3580 {
3581 KFDF_LOCAL_REDIRECT_ONLY = 0x00000002,
3582 KFDF_ROAMABLE = 0x00000004,
3583 KFDF_PRECREATE = 0x00000008,
3584 KFDF_STREAM = 0x00000010,
3585 KFDF_PUBLISHEXPANDEDPATH = 0x00000020
3586 } KF_DEFINITION_FLAGS;
3587
3588 typedef struct tagKNOWNFOLDER_DEFINITION
3589 {
3590 KF_CATEGORY category;
3591 LPWSTR pszName;
3592 LPWSTR pszDescription;
3593 KNOWNFOLDERID fidParent;
3594 LPWSTR pszRelativePath;
3595 LPWSTR pszParsingName;
3596 LPWSTR pszTooltip;
3597 LPWSTR pszLocalizedName;
3598 LPWSTR pszIcon;
3599 LPWSTR pszSecurity;
3600 DWORD dwAttributes;
3601 KF_DEFINITION_FLAGS kfdFlags;
3602 FOLDERTYPEID ftidType;
3603 } KNOWNFOLDER_DEFINITION;
3604
3605 [
3606 object,
3607 uuid(3aa7af7e-9b36-420C-a8e3-f77d4674a488),
3608 pointer_default(ref)
3609 ]
3610 interface IKnownFolder : IUnknown
3611 {
3612 HRESULT GetId(
3613 [out] KNOWNFOLDERID *pkfid);
3614
3615 HRESULT GetCategory(
3616 [out] KF_CATEGORY *pCategory);
3617
3618 HRESULT GetShellItem(
3619 [in] DWORD dwFlags,
3620 [in] REFIID riid,
3621 [out, iid_is(riid)] void **ppv);
3622
3623 HRESULT GetPath(
3624 [in] DWORD dwFlags,
3625 [out, string] LPWSTR *ppszPath);
3626
3627 HRESULT SetPath(
3628 [in] DWORD dwFlags,
3629 [in, string] LPCWSTR pszPath);
3630
3631 HRESULT GetIDList(
3632 [in] DWORD dwFlags,
3633 [out] PIDLIST_ABSOLUTE *ppidl);
3634
3635 HRESULT GetFolderType(
3636 [out] FOLDERTYPEID *pftid);
3637
3638 HRESULT GetRedirectionCapabilities(
3639 [out] KF_REDIRECTION_CAPABILITIES *pCapabilities);
3640
3641 HRESULT GetFolderDefinition(
3642 [out] KNOWNFOLDER_DEFINITION *pKFD);
3643 }
3644
3645 typedef [v1_enum] enum tagKF_REDIRECT_FLAGS
3646 {
3647 KF_REDIRECT_USER_EXCLUSIVE = 0x00000001,
3648 KF_REDIRECT_COPY_SOURCE_DACL = 0x00000002,
3649 KF_REDIRECT_OWNER_USER = 0x00000004,
3650 KF_REDIRECT_SET_OWNER_EXPLICIT = 0x00000008,
3651 KF_REDIRECT_CHECK_ONLY = 0x00000010,
3652 KF_REDIRECT_WITH_UI = 0x00000020,
3653 KF_REDIRECT_UNPIN = 0x00000040,
3654 KF_REDIRECT_PIN = 0x00000080,
3655 KF_REDIRECT_COPY_CONTENTS = 0x00000200,
3656 KF_REDIRECT_DEL_SOURCE_CONTENTS = 0x00000400,
3657 KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS = 0x00000800
3658 } KF_REDIRECT_FLAGS;
3659
3660 [
3661 object,
3662 uuid(8BE2D872-86AA-4d47-B776-32CCA40C7018),
3663 pointer_default(ref)
3664 ]
3665 interface IKnownFolderManager : IUnknown
3666 {
3667 typedef [v1_enum] enum tagFFFP_MODE
3668 {
3669 FFFP_EXACTMATCH,
3670 FFFP_NEARESTPARENTMATCH
3671 } FFFP_MODE;
3672
3673 HRESULT FolderIdFromCsidl(
3674 [in] int nCsidl,
3675 [out] KNOWNFOLDERID *pfid);
3676
3677 HRESULT FolderIdToCsidl(
3678 [in] REFKNOWNFOLDERID rfid,
3679 [out] int *pnCsidl);
3680
3681 HRESULT GetFolderIds(
3682 [out, size_is(, *pCount)] KNOWNFOLDERID **ppKFId,
3683 [in, out] UINT *pCount);
3684
3685 HRESULT GetFolder(
3686 [in] REFKNOWNFOLDERID rfid,
3687 [out] IKnownFolder **ppkf);
3688
3689 HRESULT GetFolderByName(
3690 [in, string] LPCWSTR pszCanonicalName,
3691 [out] IKnownFolder **ppkf);
3692
3693 HRESULT RegisterFolder(
3694 [in] REFKNOWNFOLDERID rfid,
3695 [in] KNOWNFOLDER_DEFINITION const *pKFD);
3696
3697 HRESULT UnregisterFolder(
3698 [in] REFKNOWNFOLDERID rfid);
3699
3700 HRESULT FindFolderFromPath(
3701 [in, string] LPCWSTR pszPath,
3702 [in] FFFP_MODE mode,
3703 [out] IKnownFolder **ppkf);
3704
3705 HRESULT FindFolderFromIDList(
3706 [in] PCIDLIST_ABSOLUTE pidl,
3707 [out] IKnownFolder **ppkf);
3708
3709 HRESULT Redirect(
3710 [in] REFKNOWNFOLDERID rfid,
3711 [in, unique] HWND hwnd,
3712 [in] KF_REDIRECT_FLAGS flags,
3713 [in, unique, string] LPCWSTR pszTargetPath,
3714 [in] UINT cFolders,
3715 [in, size_is(cFolders), unique] KNOWNFOLDERID const *pExclusion,
3716 [out, string] LPWSTR *ppszError);
3717 }
3718
3719 /* function for releasing structure returned from IKnownFolder::GetFolderDefinition */
3720 cpp_quote("static inline void FreeKnownFolderDefinitionFields(KNOWNFOLDER_DEFINITION *pKFD)")
3721 cpp_quote("{")
3722 cpp_quote(" CoTaskMemFree(pKFD->pszName);")
3723 cpp_quote(" CoTaskMemFree(pKFD->pszDescription);")
3724 cpp_quote(" CoTaskMemFree(pKFD->pszRelativePath);")
3725 cpp_quote(" CoTaskMemFree(pKFD->pszParsingName);")
3726 cpp_quote(" CoTaskMemFree(pKFD->pszTooltip);")
3727 cpp_quote(" CoTaskMemFree(pKFD->pszLocalizedName);")
3728 cpp_quote(" CoTaskMemFree(pKFD->pszIcon);")
3729 cpp_quote(" CoTaskMemFree(pKFD->pszSecurity);")
3730 cpp_quote("}")
3731
3732 typedef [v1_enum] enum ASSOCIATIONLEVEL {
3733 AL_MACHINE,
3734 AL_EFFECTIVE,
3735 AL_USER
3736 } ASSOCIATIONLEVEL;
3737
3738 typedef [v1_enum] enum ASSOCIATIONTYPE {
3739 AT_FILEEXTENSION,
3740 AT_URLPROTOCOL,
3741 AT_STARTMENUCLIENT,
3742 AT_MIMETYPE
3743 } ASSOCIATIONTYPE;
3744
3745 [
3746 object,
3747 uuid(4e530b0a-e611-4c77-a3ac-9031d022281b),
3748 pointer_default(unique)
3749 ]
3750 interface IApplicationAssociationRegistration : IUnknown
3751 {
3752 HRESULT QueryCurrentDefault(
3753 [in, string] LPCWSTR pszQuery,
3754 [in] ASSOCIATIONTYPE atQueryType,
3755 [in] ASSOCIATIONLEVEL alQueryLevel,
3756 [out, string] LPWSTR *ppszAssociation);
3757
3758 HRESULT QueryAppIsDefault(
3759 [in, string] LPCWSTR pszQuery,
3760 [in] ASSOCIATIONTYPE atQueryType,
3761 [in] ASSOCIATIONLEVEL alQueryLevel,
3762 [in, string] LPCWSTR pszAppRegistryName,
3763 [out] BOOL *pfDefault);
3764
3765 HRESULT QueryAppIsDefaultAll(
3766 [in] ASSOCIATIONLEVEL alQueryLevel,
3767 [in, string] LPCWSTR pszAppRegistryName,
3768 [out] BOOL* pfDefault);
3769
3770 HRESULT SetAppAsDefault(
3771 [in, string] LPCWSTR pszAppRegistryName,
3772 [in, string] LPCWSTR pszSet,
3773 [in] ASSOCIATIONTYPE atSetType);
3774
3775 HRESULT SetAppAsDefaultAll(
3776 [in, string] LPCWSTR pszAppRegistryName);
3777
3778 HRESULT ClearUserAssociations();
3779 }
3780
3781 [
3782 uuid(6332debf-87b5-4670-90c0-5e57b408a49e),
3783 object,
3784 pointer_default(unique)
3785 ]
3786 interface ICustomDestinationList : IUnknown
3787 {
3788 typedef [v1_enum] enum KNOWNDESTCATEGORY {
3789 KDC_FREQUENT = 1,
3790 KDC_RECENT
3791 } KNOWNDESTCATEGORY;
3792
3793 HRESULT SetAppID([in, string] LPCWSTR pszAppID);
3794
3795 HRESULT BeginList(
3796 [out] UINT *pcMinSlots,
3797 [in] REFIID riid,
3798 [out, iid_is(riid)] void **ppv);
3799
3800 HRESULT AppendCategory(
3801 [in, string] LPCWSTR pszCategory,
3802 [in] IObjectArray *poa);
3803
3804 HRESULT AppendKnownCategory([in] KNOWNDESTCATEGORY category);
3805 HRESULT AddUserTasks([in] IObjectArray *poa);
3806 HRESULT CommitList();
3807
3808 HRESULT GetRemovedDestinations(
3809 [in] REFIID riid,
3810 [out, iid_is(riid)] void **ppv);
3811
3812 HRESULT DeleteList([in, unique, string] LPCWSTR pszAppID);
3813 HRESULT AbortList();
3814 }
3815
3816 [
3817 uuid(ddefe873-6997-4e68-be26-39b633adbe12),
3818 object,
3819 pointer_default(unique)
3820 ]
3821 interface IQueryCancelAutoPlay : IUnknown
3822 {
3823 HRESULT AllowAutoPlay([in, string] LPCWSTR path,
3824 [in] DWORD content_type,
3825 [in, string] LPCWSTR label,
3826 [in] DWORD serial_number);
3827 }
3828
3829 [
3830 uuid(d594d0d8-8da7-457b-b3b4-ce5dbaac0b88),
3831 pointer_default(unique)
3832 ]
3833 interface ITransferAdviseSink : IUnknown
3834 {
3835 [v1_enum] enum _TRANSFER_ADVISE_STATE
3836 {
3837 TS_NONE = 0,
3838 TS_PERFORMING = 1,
3839 TS_PREPARING = 2,
3840 TS_INDETERMINATE = 4
3841 };
3842 typedef DWORD TRANSFER_ADVISE_STATE;
3843
3844 HRESULT UpdateProgress([in] ULONGLONG size_current,
3845 [in] ULONGLONG size_total,
3846 [in] INT files_current,
3847 [in] INT files_total,
3848 [in] INT folders_current,
3849 [in] INT folders_total);
3850 HRESULT UpdateTransferState([in] TRANSFER_ADVISE_STATE state);
3851 HRESULT ConfirmOverwrite([in] IShellItem *source,
3852 [in] IShellItem *dest_parent,
3853 [in, string] LPCWSTR name);
3854 HRESULT ConfirmEncryptLoss([in] IShellItem *source);
3855 HRESULT FileFailure([in] IShellItem *item,
3856 [in, unique, string] LPCWSTR itemname,
3857 [in] HRESULT hr,
3858 [out, unique, size_is(crename)] LPWSTR rename,
3859 [in] ULONG crename);
3860 HRESULT SubStreamFailure([in] IShellItem *item,
3861 [in, string] LPCWSTR stream,
3862 [in] HRESULT hr);
3863 HRESULT PropertyFailure([in] IShellItem *item,
3864 [in, unique] const PROPERTYKEY *key,
3865 [in] HRESULT hr);
3866 }
3867
3868 [v1_enum] enum _TRANSFER_SOURCE_FLAGS
3869 {
3870 TSF_NORMAL = 0,
3871 TSF_FAIL_EXIST = 0,
3872 TSF_RENAME_EXIST = 0x1,
3873 TSF_OVERWRITE_EXIST = 0x2,
3874 TSF_ALLOW_DECRYPTION = 0x4,
3875 TSF_NO_SECURITY = 0x8,
3876 TSF_COPY_CREATION_TIME = 0x10,
3877 TSF_COPY_WRITE_TIME = 0x20,
3878 TSF_USE_FULL_ACCESS = 0x40,
3879 TSF_DELETE_RECYCLE_IF_POSSIBLE = 0x80,
3880 TSF_COPY_HARD_LINK = 0x100,
3881 TSF_COPY_LOCALIZED_NAME = 0x200,
3882 TSF_MOVE_AS_COPY_DELETE = 0x400,
3883 TSF_SUSPEND_SHELLEVENTS = 0x800
3884 };
3885 typedef DWORD TRANSFER_SOURCE_FLAGS;
3886
3887 [
3888 uuid(00adb003-bde9-45c6-8e29-d09f9353e108),
3889 object,
3890 pointer_default(unique)
3891 ]
3892 interface ITransferSource : IUnknown
3893 {
3894 HRESULT Advise([in] ITransferAdviseSink *sink, [out] DWORD *cookie);
3895 HRESULT Unadvise([in] DWORD cookie);
3896 HRESULT SetProperties([in] IPropertyChangeArray *array);
3897 HRESULT OpenItem([in] IShellItem *item,
3898 [in] TRANSFER_SOURCE_FLAGS flags,
3899 [in] REFIID riid,
3900 [out, iid_is(riid)] void **ppv);
3901 HRESULT MoveItem([in] IShellItem *item,
3902 [in] IShellItem *parent_dest,
3903 [in, string] LPCWSTR name_dest,
3904 [in] TRANSFER_SOURCE_FLAGS flags,
3905 [out] IShellItem **newitem);
3906 HRESULT RecycleItem([in] IShellItem *source,
3907 [in] IShellItem *parent_dest,
3908 [in] TRANSFER_SOURCE_FLAGS flags,
3909 [out] IShellItem **new_dest);
3910 HRESULT RemoveItem([in] IShellItem *source, [in] TRANSFER_SOURCE_FLAGS flags);
3911 HRESULT RenameItem([in] IShellItem *source,
3912 [in, string] LPCWSTR newname,
3913 [in] TRANSFER_SOURCE_FLAGS flags,
3914 [out] IShellItem **new_dest);
3915 HRESULT LinkItem([in] IShellItem *source,
3916 [in] IShellItem *parent_dest,
3917 [in, unique, string] LPCWSTR new_name,
3918 [in] TRANSFER_SOURCE_FLAGS flags,
3919 [out] IShellItem **new_dest);
3920 HRESULT ApplyPropertiesToItem([in] IShellItem *source, [out] IShellItem **newitem);
3921 HRESULT GetDefaultDestinationName([in] IShellItem *source,
3922 [in] IShellItem *parent_dest,
3923 [out, string] LPWSTR *dest_name);
3924 HRESULT EnterFolder([in] IShellItem *child_folder);
3925 HRESULT LeaveFolder([in] IShellItem *child_folder);
3926 }
3927
3928 [
3929 uuid(48addd32-3ca5-4124-abe3-b5a72531b207),
3930 object,
3931 pointer_default(unique)
3932 ]
3933 interface ITransferDestination : IUnknown
3934 {
3935 HRESULT Advise([in] ITransferAdviseSink *sink, [out] DWORD *cookie);
3936 HRESULT Unadvise([in] DWORD cookie);
3937 HRESULT CreateItem([in, string] LPCWSTR name,
3938 [in] DWORD attr,
3939 [in] ULONGLONG size,
3940 [in] TRANSFER_SOURCE_FLAGS flags,
3941 [in] REFIID riid,
3942 [out, iid_is(riid)] void **ppv,
3943 [in] REFIID resources,
3944 [out, iid_is(riid)] void **presources);
3945 }
3946
3947 /*****************************************************************************
3948 * ShellObjects typelibrary
3949 */
3950 [
3951 uuid(50A7E9B1-70EF-11D1-B75A-00A0C90564FE),
3952 lcid(0x0000),
3953 version(1.0)
3954 ]
3955 library ShellObjects
3956 {
3957 [
3958 uuid(71F96385-DDD6-48D3-A0C1-AE06E8B055FB)
3959 ]
3960 coclass ExplorerBrowser
3961 {
3962 interface IExplorerBrowser;
3963 }
3964
3965 [
3966 uuid(DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7)
3967 ]
3968 coclass FileOpenDialog
3969 {
3970 interface IFileOpenDialog;
3971 }
3972
3973 [
3974 uuid(C0B4E2F3-BA21-4773-8DBA-335EC946EB8B)
3975 ]
3976 coclass FileSaveDialog
3977 {
3978 interface IFileSaveDialog;
3979 }
3980
3981 [
3982 uuid(AE054212-3535-4430-83ED-D501AA6680E6)
3983 ]
3984 coclass NamespaceTreeControl
3985 {
3986 interface INameSpaceTreeControl2;
3987 }
3988
3989 [
3990 uuid(4df0c730-df9d-4ae3-9153-aa6b82e9795a)
3991 ]
3992 coclass KnownFolderManager
3993 {
3994 interface IKnownFolderManager;
3995 }
3996
3997 [
3998 uuid(591209c7-767b-42b2-9fba-44ee4615f2c7)
3999 ]
4000 coclass ApplicationAssociationRegistration
4001 {
4002 interface IApplicationAssociationRegistration;
4003 }
4004
4005 [
4006 uuid(00021401-0000-0000-c000-000000000046)
4007 ]
4008 coclass ShellLink
4009 {
4010 interface IShellLinkW;
4011 }
4012
4013 [
4014 uuid(56fdf344-fd6d-11d0-958a-006097c9a090)
4015 ]
4016 coclass TaskbarList
4017 {
4018 interface ITaskbarList4;
4019 }
4020
4021 [
4022 uuid(77f10cf0-3db5-4966-b520-b7c54fd35ed6)
4023 ]
4024 coclass DestinationList {
4025 interface ICustomDestinationList;
4026 }
4027
4028 [
4029 uuid(331f1768-05a9-4ddd-b86e-dae34ddc998a)
4030 ]
4031 coclass QueryCancelAutoPlay
4032 {
4033 interface IQueryCancelAutoPlay;
4034 }
4035
4036 [
4037 uuid(9ac9fbe1-e0a2-4ad6-b4ee-e212013ea917)
4038 ]
4039 coclass ShellItem {
4040 interface IShellItem2;
4041 }
4042 }