dwrite: Fix invalid read when building zero length text layout (Valgrind).
[wine.git] / include / shobjidl.idl
blob1cc6132488e76890745794734ce07b5e5dcd6ebf
1 /*
2 * COM interfaces for shell objects
4 * Copyright (C) 1999 Juergen Schmied
5 * Copyright (C) 2003 Alexandre Julliard
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.
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.
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
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"; */
37 cpp_quote("/* FIXME: #include <sherrors.h> */")
40 /*****************************************************************************
41 * IPersistFolder interface
44 object,
45 uuid(000214ea-0000-0000-c000-000000000046),
46 pointer_default(unique)
48 interface IPersistFolder : IPersist
50 typedef IPersistFolder *LPPERSISTFOLDER;
52 HRESULT Initialize( [in] LPCITEMIDLIST pidl );
56 /*****************************************************************************
57 * IPersistFolder2 interface
60 object,
61 uuid(1ac3d9f0-175c-11d1-95be-00609797ea4f),
62 pointer_default(unique)
64 interface IPersistFolder2 : IPersistFolder
66 typedef IPersistFolder2 *LPPERSISTFOLDER2;
68 HRESULT GetCurFolder( [out] LPITEMIDLIST *ppidl );
72 /*****************************************************************************
73 * IPersistIDList interface
76 object,
77 uuid(1079acfc-29bd-11d3-8e0d-00c04f6837d5),
78 pointer_default(unique)
80 interface IPersistIDList : IPersist
82 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
83 HRESULT GetIDList( [out] LPITEMIDLIST *ppidl );
87 /*****************************************************************************
88 * IEnumIDList interface
91 object,
92 uuid(000214f2-0000-0000-c000-000000000046),
93 pointer_default(unique)
95 interface IEnumIDList : IUnknown
97 typedef IEnumIDList *LPENUMIDLIST;
99 HRESULT Next(
100 [in] ULONG celt,
101 [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
102 [out] ULONG *pceltFetched);
104 HRESULT Skip( [in] ULONG celt );
105 HRESULT Reset();
106 HRESULT Clone( [out] IEnumIDList **ppenum );
109 /*****************************************************************************
110 * IShellPropSheetExt interface
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")
120 object,
121 uuid(000214E9-0000-0000-C000-000000000046),
122 pointer_default(unique),
123 local
125 interface IShellPropSheetExt : IUnknown
127 enum tagSHELLPROPSHEETEXTPAGEID {
128 EXPPS_FILETYPES = 0x1
131 typedef UINT EXPPS;
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);
141 typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
143 /*****************************************************************************
144 * IShellFolder interface
147 object,
148 uuid(000214e6-0000-0000-c000-000000000046),
149 pointer_default(unique)
151 interface IShellFolder : IUnknown
153 typedef IShellFolder * LPSHELLFOLDER;
155 typedef enum tagSHGDN
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;
165 typedef DWORD SHGDNF;
167 enum tagSHCONTF
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
178 typedef DWORD SHCONTF;
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")
211 typedef ULONG SFGAOF;
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);
221 HRESULT EnumObjects(
222 [in] HWND hwndOwner,
223 [in] SHCONTF grfFlags,
224 [out] IEnumIDList **ppenumIDList);
226 HRESULT BindToObject(
227 [in] LPCITEMIDLIST pidl,
228 [in] LPBC pbcReserved,
229 [in] REFIID riid,
230 [out, iid_is(riid)] void **ppvOut);
232 HRESULT BindToStorage(
233 [in] LPCITEMIDLIST pidl,
234 [in] LPBC pbcReserved,
235 [in] REFIID riid,
236 [out, iid_is(riid)] void **ppvObj);
238 HRESULT CompareIDs(
239 [in] LPARAM lParam,
240 [in] LPCITEMIDLIST pidl1,
241 [in] LPCITEMIDLIST pidl2);
243 HRESULT CreateViewObject(
244 [in] HWND hwndOwner,
245 [in] REFIID riid,
246 [out, iid_is(riid)] void **ppvOut);
248 HRESULT GetAttributesOf(
249 [in] UINT cidl,
250 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
251 [in, out] SFGAOF *rgfInOut);
253 HRESULT GetUIObjectOf(
254 [in] HWND hwndOwner,
255 [in] UINT cidl,
256 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
257 [in] REFIID riid,
258 [in, out, unique] UINT *prgfInOut,
259 [out, iid_is(riid)] void **ppvOut);
261 HRESULT GetDisplayNameOf(
262 [in] LPCITEMIDLIST pidl,
263 [in] SHGDNF uFlags,
264 [out] STRRET *lpName);
266 HRESULT SetNameOf(
267 [in] HWND hwnd,
268 [in] LPCITEMIDLIST pidl,
269 [in, string] LPCOLESTR lpszName,
270 [in] SHGDNF uFlags,
271 [out] LPITEMIDLIST *ppidlOut);
275 /*****************************************************************************
276 * IEnumExtraSearch interface
279 object,
280 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
281 pointer_default(unique)
283 interface IEnumExtraSearch : IUnknown
285 typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
287 typedef struct
289 GUID guidSearch;
290 WCHAR wszFriendlyName[80];
292 *WCHAR wszMenuText[80];
293 *WCHAR wszHelpText[MAX_PATH];
295 WCHAR wszUrl[2084];
297 *WCHAR wszIcon[MAX_PATH+10];
298 *WCHAR wszGreyIcon[MAX_PATH+10];
299 *WCHAR wszClrIcon[MAX_PATH+10];
301 } EXTRASEARCH, *LPEXTRASEARCH;
303 HRESULT Next(
304 [in] ULONG celt,
305 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
306 [out] ULONG *pceltFetched);
308 HRESULT Skip( [in] ULONG celt );
309 HRESULT Reset();
310 HRESULT Clone( [out] IEnumExtraSearch **ppenum );
314 /*****************************************************************************
315 * IShellFolder2 interface
318 object,
319 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
320 pointer_default(unique)
322 interface IShellFolder2 : IShellFolder
324 typedef struct
326 GUID fmtid;
327 DWORD pid;
328 } SHCOLUMNID, *LPSHCOLUMNID;
329 typedef const SHCOLUMNID *LPCSHCOLUMNID;
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 );
340 /*****************************************************************************
341 * IShellItem interface
344 object,
345 uuid(43826d1e-e718-42ee-bc55-a1e261c37bfe),
346 pointer_default(unique)
348 interface IShellItem : IUnknown
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 */
362 [v1_enum] enum _SICHINTF
364 SICHINT_DISPLAY = 0x00000000,
365 SICHINT_CANONICAL = 0x10000000,
366 SICHINT_TEST_FILESYSPATH_IF_NOT_EQUAL = 0x20000000,
367 SICHINT_ALLFIELDS = 0x80000000
369 typedef DWORD SICHINTF;
371 HRESULT BindToHandler(
372 [in] IBindCtx *pbc,
373 [in] REFGUID rbhid,
374 [in] REFIID riid,
375 [out, iid_is(riid)] void **ppvOut);
377 HRESULT GetParent( [out] IShellItem **ppsi );
379 HRESULT GetDisplayName(
380 [in] SIGDN sigdnName,
381 [out] LPWSTR *ppszName);
383 HRESULT GetAttributes(
384 [in] SFGAOF sfgaoMask,
385 [out] SFGAOF *psfgaoAttribs);
387 HRESULT Compare(
388 [in] IShellItem *psi,
389 [in] SICHINTF hint,
390 [out] int *piOrder);
393 /*****************************************************************************
394 * IShellItem2 interface
397 object,
398 uuid(7E9FB0D3-919F-4307-AB2E-9B1860310C93),
399 pointer_default(unique)
401 interface IShellItem2 : IShellItem
403 HRESULT GetPropertyStore(
404 [in] GETPROPERTYSTOREFLAGS flags,
405 [in] REFIID riid,
406 [out, iid_is(riid)] void **ppv);
408 HRESULT GetPropertyStoreWithCreateObject(
409 [in] GETPROPERTYSTOREFLAGS flags,
410 [in] IUnknown *punkCreateObject,
411 [in] REFIID riid,
412 [out, iid_is(riid)] void **ppv);
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);
421 HRESULT GetPropertyDescriptionList(
422 [in] REFPROPERTYKEY keyType,
423 [in] REFIID riid,
424 [out, iid_is(riid)] void **ppv);
426 HRESULT Update(
427 [in, unique] IBindCtx *pbc);
429 HRESULT GetProperty(
430 [in] REFPROPERTYKEY key,
431 [out] PROPVARIANT *ppropvar);
433 HRESULT GetCLSID(
434 [in] REFPROPERTYKEY key,
435 [out] CLSID *pclsid);
437 HRESULT GetFileTime (
438 [in] REFPROPERTYKEY key,
439 [out] FILETIME *pft);
441 HRESULT GetInt32(
442 [in] REFPROPERTYKEY key,
443 [out] int *pi);
445 HRESULT GetString(
446 [in] REFPROPERTYKEY key,
447 [out, string] LPWSTR *ppsz);
449 HRESULT GetUInt32(
450 [in] REFPROPERTYKEY key,
451 [out] ULONG *pui);
453 HRESULT GetUInt64(
454 [in] REFPROPERTYKEY key,
455 [out] ULONGLONG *pull);
457 HRESULT GetBool(
458 [in] REFPROPERTYKEY key,
459 [out] BOOL *pf);
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;
475 uuid(d2bc4c84-3f72-4a52-a604-7bcbf3982cbb),
476 object,
477 pointer_default(unique)
479 interface INewWindowManager : IUnknown
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);
491 cpp_quote("#define SID_SNewWindowManager IID_INewWindowManager")
493 /*****************************************************************************
494 * IEnumShellItems interface
497 object,
498 uuid(70629033-E363-4A28-A567-0DB78006E6D7),
499 pointer_default(unique)
501 interface IEnumShellItems : IUnknown
503 [local] HRESULT Next(
504 [in] ULONG celt,
505 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
506 [out] ULONG *pceltFetched);
508 [call_as(Next)] HRESULT RemoteNext(
509 [in] ULONG celt,
510 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
511 [out] ULONG *pceltFetched);
513 HRESULT Skip(
514 [in] ULONG celt);
516 HRESULT Reset();
518 HRESULT Clone(
519 [out] IEnumShellItems **ppenum);
522 /*****************************************************************************
523 * IShellItemArray interface
526 object,
527 uuid(B63EA76D-1F85-456F-A19C-48159EFA858B),
528 pointer_default(unique)
530 interface IShellItemArray : IUnknown
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)")
541 HRESULT BindToHandler(
542 [in, unique] IBindCtx *pbc,
543 [in] REFGUID bhid,
544 [in] REFIID riid,
545 [out, iid_is(riid)] void **ppvOut);
547 HRESULT GetPropertyStore(
548 [in] GETPROPERTYSTOREFLAGS flags,
549 [in] REFIID riid,
550 [out, iid_is(riid)] void **ppv);
552 HRESULT GetPropertyDescriptionList(
553 [in] REFPROPERTYKEY keyType,
554 [in] REFIID riid,
555 [out, iid_is(riid)] void **ppv);
557 HRESULT GetAttributes(
558 [in] SIATTRIBFLAGS AttribFlags,
559 [in] SFGAOF sfgaoMask,
560 [out] SFGAOF *psfgaoAttribs);
562 HRESULT GetCount(
563 [out] DWORD *pdwNumItems);
565 HRESULT GetItemAt(
566 [in] DWORD dwIndex,
567 [out] IShellItem **ppsi);
569 HRESULT EnumItems(
570 [out] IEnumShellItems **ppenumShellItems);
574 typedef [v1_enum] enum DATAOBJ_GET_ITEM_FLAGS
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)")
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 SHCreateShellItemArrayFromIDLists(UINT cidl, PCIDLIST_ABSOLUTE_ARRAY pidl_array, IShellItemArray **psia);")
593 cpp_quote("HRESULT WINAPI SHCreateShellItemArrayFromDataObject(IDataObject *pdo, REFIID riid, void **ppv);")
595 /*****************************************************************************
596 * IShellItemFilter interface
599 object,
600 uuid(2659B475-EEB8-48B7-8F07-B378810F48CF),
601 pointer_default(unique)
603 interface IShellItemFilter : IUnknown
605 HRESULT IncludeItem(
606 [in] IShellItem *psi);
608 HRESULT GetEnumFlagsForItem(
609 [in] IShellItem *psi,
610 [out] SHCONTF *pgrfFlags);
613 /*****************************************************************************
614 * FOLDERSETTINGS
616 typedef char *LPVIEWSETTINGS;
618 typedef enum
620 FWF_AUTOARRANGE = 0x00000001,
621 FWF_ABBREVIATEDNAMES = 0x00000002,
622 FWF_SNAPTOGRID = 0x00000004,
623 FWF_OWNERDATA = 0x00000008,
624 FWF_BESTFITWINDOW = 0x00000010,
625 FWF_DESKTOP = 0x00000020,
626 FWF_SINGLESEL = 0x00000040,
627 FWF_NOSUBFOLDERS = 0x00000080,
628 FWF_TRANSPARENT = 0x00000100,
629 FWF_NOCLIENTEDGE = 0x00000200,
630 FWF_NOSCROLL = 0x00000400,
631 FWF_ALIGNLEFT = 0x00000800,
632 FWF_NOICONS = 0x00001000,
633 FWF_SHOWSELALWAYS = 0x00002000,
634 FWF_NOVISIBLE = 0x00004000,
635 FWF_SINGLECLICKACTIVATE = 0x00008000,
636 FWF_NOWEBVIEW = 0x00010000,
637 FWF_HIDEFILENAMES = 0x00020000,
638 FWF_CHECKSELECT = 0x00040000,
639 FWF_NOENUMREFRESH = 0x00080000,
640 FWF_NOGROUPING = 0x00100000,
641 FWF_FULLROWSELECT = 0x00200000,
642 FWF_NOFILTERS = 0x00400000,
643 FWF_NOCOLUMNHEADER = 0x00800000,
644 FWF_NOHEADERINALLVIEWS = 0x01000000,
645 FWF_EXTENDEDTILES = 0x02000000,
646 FWF_TRICHECKSELECT = 0x04000000,
647 FWF_AUTOCHECKSELECT = 0x08000000,
648 FWF_NOBROWSERVIEWSTATE = 0x10000000,
649 FWF_SUBSETGROUPS = 0x20000000,
650 FWF_USESEARCHFOLDER = 0x40000000,
651 FWF_ALLOWRTLREADING = 0x80000000
652 } FOLDERFLAGS;
654 typedef enum
656 FVM_AUTO =-1,
657 FVM_ICON = 1,
658 FVM_FIRST = FVM_ICON,
659 FVM_SMALLICON = 2,
660 FVM_LIST = 3,
661 FVM_DETAILS = 4,
662 FVM_THUMBNAIL = 5,
663 FVM_TILE = 6,
664 FVM_THUMBSTRIP = 7,
665 FVM_CONTENT = 8,
666 FVM_LAST = FVM_CONTENT
667 } FOLDERVIEWMODE;
669 typedef struct
671 UINT ViewMode;
672 UINT fFlags;
673 } FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
674 typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
676 /*****************************************************************************
677 * IShellIcon interface
680 uuid(000214e5-0000-0000-c000-000000000046),
681 object,
682 pointer_default(unique)
684 interface IShellIcon : IUnknown
686 HRESULT GetIconOf(
687 [in] PCUITEMID_CHILD pidl,
688 [in] UINT flags,
689 [out] int *pIconIndex);
692 /*****************************************************************************
693 * IShellView interface
695 interface IShellBrowser; /* forward declaration */
697 object,
698 uuid(000214e3-0000-0000-c000-000000000046),
699 pointer_default(unique)
701 interface IShellView : IOleWindow
703 typedef IShellView *LPSHELLVIEW;
705 cpp_quote("#define SVSI_DESELECT 0x00000000")
706 cpp_quote("#define SVSI_SELECT 0x00000001")
707 cpp_quote("#define SVSI_EDIT 0x00000003")
708 cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
709 cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
710 cpp_quote("#define SVSI_FOCUSED 0x00000010")
711 cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
712 cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
713 cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
714 cpp_quote("#define SVSI_CHECK 0x00000100")
715 cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
717 typedef UINT SVSIF;
719 typedef enum
721 SVGIO_BACKGROUND = 0x00000000,
722 SVGIO_SELECTION = 0x00000001,
723 SVGIO_ALLVIEW = 0x00000002,
724 SVGIO_CHECKED = 0x00000003,
725 SVGIO_TYPE_MASK = 0x0000000f,
726 SVGIO_FLAG_VIEWORDER = 0x80000000,
727 } SVGIO;
729 typedef enum
731 SVUIA_DEACTIVATE = 0,
732 SVUIA_ACTIVATE_NOFOCUS = 1,
733 SVUIA_ACTIVATE_FOCUS = 2,
734 SVUIA_INPLACEACTIVATE = 3
735 } SVUIA_STATUS;
737 HRESULT TranslateAccelerator( [in] MSG *pmsg );
738 HRESULT EnableModeless( [in] BOOL fEnable );
739 HRESULT UIActivate( [in] UINT uState );
740 HRESULT Refresh();
741 HRESULT CreateViewWindow(
742 [in] IShellView *psvPrevious,
743 [in] LPCFOLDERSETTINGS lpfs,
744 [in] IShellBrowser *psb,
745 [out] RECT *prcView,
746 [out] HWND *phWnd);
748 HRESULT DestroyViewWindow();
749 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
751 [local] HRESULT AddPropertySheetPages(
752 [in] DWORD dwReserved,
753 [in] LPFNSVADDPROPSHEETPAGE pfn,
754 [in] LPARAM lparam);
756 HRESULT SaveViewState();
757 HRESULT SelectItem(
758 [in] LPCITEMIDLIST pidlItem,
759 [in] SVSIF uFlags);
760 HRESULT GetItemObject(
761 [in] UINT uItem,
762 [in] REFIID riid,
763 [out, iid_is(riid)] void **ppv);
767 object,
768 uuid(88e39e80-3578-11cf-ae69-08002b2e1262),
769 pointer_default(unique)
771 interface IShellView2 : IShellView
773 typedef GUID SHELLVIEWID;
774 cpp_quote("#include <pshpack8.h>")
775 typedef struct _SV2CVW2_PARAMS
777 DWORD cbSize;
778 IShellView *psvPrev;
779 LPCFOLDERSETTINGS pfs;
780 IShellBrowser *psbOwner;
781 RECT *prcView;
782 SHELLVIEWID const *pvid;
783 HWND hwndView;
784 } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
785 cpp_quote("#include <poppack.h>")
787 HRESULT GetView(
788 [in, out] SHELLVIEWID *view_guid,
789 [in] ULONG view_type
791 HRESULT CreateViewWindow2(
792 [in] LPSV2CVW2_PARAMS view_params
794 HRESULT HandleRename(
795 [in] LPCITEMIDLIST new_pidl
797 HRESULT SelectAndPositionItem(
798 [in] LPCITEMIDLIST item,
799 [in] UINT flags,
800 [in] POINT *point
805 object,
806 uuid(ec39fa88-f8af-41c5-8421-38bed28f4673),
807 pointer_default(unique)
809 interface IShellView3 : IShellView2
811 [v1_enum] enum _SV3CVW3_FLAGS
813 SV3CVW3_DEFAULT = 0x00000000,
814 SV3CVW3_NONINTERACTIVE = 0x00000001,
815 SV3CVW3_FORCEVIEWMODE = 0x00000002,
816 SV3CVW3_FORCEFOLDERFLAGS = 0x00000004
819 typedef DWORD SV3CVW3_FLAGS;
821 HRESULT CreateViewWindow3(
822 [in] IShellBrowser *owner,
823 [in, unique] IShellView *prev_view,
824 [in] SV3CVW3_FLAGS view_flags,
825 [in] FOLDERFLAGS mask,
826 [in] FOLDERFLAGS flags,
827 [in] FOLDERVIEWMODE mode,
828 [in, unique] const SHELLVIEWID *view_id,
829 [in] const RECT *rect,
830 [out] HWND *hwnd);
833 /*****************************************************************************
834 * IFolderView interface
837 uuid(cde725b0-ccc9-4519-917e-325d72fab4ce),
838 object,
839 pointer_default(unique)
841 interface IFolderView : IUnknown
843 HRESULT GetCurrentViewMode( [out] UINT *mode );
844 HRESULT SetCurrentViewMode( [in] UINT mode );
845 HRESULT GetFolder( [in] REFIID riid, [out, iid_is(riid)] void **ppv );
846 HRESULT Item(
847 [in] int index,
848 [out] PITEMID_CHILD *ppidl
850 HRESULT ItemCount(
851 [in] UINT flags,
852 [out] int *items
854 HRESULT Items(
855 [in] UINT flags,
856 [in] REFIID riid,
857 [out, iid_is(riid)] void **ppv
859 HRESULT GetSelectionMarkedItem( [out] int *item );
860 HRESULT GetFocusedItem( [out] int *item );
861 HRESULT GetItemPosition(
862 [in] PCUITEMID_CHILD pidl,
863 [out] POINT* ppt
865 HRESULT GetSpacing( [in, out, unique] POINT* pt );
866 HRESULT GetDefaultSpacing( [out] POINT* pt );
867 HRESULT GetAutoArrange();
868 HRESULT SelectItem(
869 [in] int item,
870 [in] DWORD flags
872 HRESULT SelectAndPositionItems(
873 [in] UINT cidl,
874 [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
875 [in, unique, size_is(cidl)] POINT* apt,
876 [in] DWORD flags
880 [v1_enum] enum tagSORTDIRECTION
882 SORT_DESCENDING = -1,
883 SORT_ASCENDING = 1
885 typedef int SORTDIRECTION;
887 typedef struct SORTCOLUMN
889 PROPERTYKEY propkey;
890 SORTDIRECTION direction;
891 } SORTCOLUMN;
893 typedef [v1_enum] enum FVTEXTTYPE
895 FVST_EMPTYTEXT = 0
896 } FVTEXTTYPE;
899 uuid(1af3a467-214f-4298-908e-06b03e0b39f9),
900 object,
901 pointer_default(unique)
903 interface IFolderView2 : IFolderView
905 HRESULT SetGroupBy(
906 [in] REFPROPERTYKEY key,
907 [in] BOOL ascending);
909 [local]
910 HRESULT GetGroupBy(
911 [out] PROPERTYKEY *pkey,
912 [out] BOOL *ascending);
914 [call_as(GetGroupBy)]
915 HRESULT RemoteGetGroupBy(
916 [out] PROPERTYKEY *pkey,
917 [out] BOOL *ascending);
919 HRESULT SetViewProperty(
920 [in] PCUITEMID_CHILD pidl,
921 [in] REFPROPERTYKEY propkey,
922 [in] REFPROPVARIANT propvar);
924 HRESULT GetViewProperty(
925 [in] PCUITEMID_CHILD pidl,
926 [in] REFPROPERTYKEY propkey,
927 [out] PROPVARIANT *propvar);
929 HRESULT SetTileViewProperties(
930 [in] PCUITEMID_CHILD pidl,
931 [in, string] LPCWSTR prop_list);
933 HRESULT SetExtendedTileViewProperties(
934 [in] PCUITEMID_CHILD pidl,
935 [in, string] LPCWSTR prop_list);
937 HRESULT SetText(
938 [in] FVTEXTTYPE type,
939 [in] LPCWSTR text);
941 HRESULT SetCurrentFolderFlags(
942 [in] DWORD mask,
943 [in] DWORD flags);
945 HRESULT GetCurrentFolderFlags([out] DWORD *flags);
947 HRESULT GetSortColumnCount([out] int *columns);
949 HRESULT SetSortColumns(
950 [in, size_is(count)] const SORTCOLUMN *columns,
951 [in] int count);
953 HRESULT GetSortColumns(
954 [out, size_is(count)] SORTCOLUMN *columns,
955 [in] int count);
957 HRESULT GetItem(
958 [in] int ittem,
959 [in] REFIID riid,
960 [out, iid_is(riid)] void **ppv);
962 HRESULT GetVisibleItem(
963 [in] int start,
964 [in] BOOL previous,
965 [out] int *item);
967 HRESULT GetSelectedItem(
968 [in] int start,
969 [out] int *item);
971 HRESULT GetSelection(
972 [in] BOOL none_implies_folder,
973 [out] IShellItemArray **array);
975 HRESULT GetSelectionState(
976 [in] PCUITEMID_CHILD pidl,
977 [out] DWORD *flags);
979 HRESULT InvokeVerbOnSelection([in, unique, string] LPCSTR verb);
981 HRESULT SetViewModeAndIconSize(
982 [in] FOLDERVIEWMODE mode,
983 [in] int size);
985 HRESULT GetViewModeAndIconSize(
986 [out] FOLDERVIEWMODE *mode,
987 [out] int *size);
989 HRESULT SetGroupSubsetCount([in] UINT visible_rows);
991 HRESULT GetGroupSubsetCount([out] UINT *visible_rows);
993 HRESULT SetRedraw([in] BOOL redraw);
995 HRESULT IsMoveInSameFolder();
997 HRESULT DoRename();
1000 /*****************************************************************************
1001 * IShellBrowser interface
1004 object,
1005 uuid(000214e2-0000-0000-c000-000000000046),
1006 pointer_default(unique)
1008 interface IShellBrowser : IOleWindow
1010 typedef IShellBrowser *LPSHELLBROWSER;
1012 cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
1013 cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
1014 cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
1015 cpp_quote("#define SBSP_DEFMODE 0x00000000")
1016 cpp_quote("#define SBSP_OPENMODE 0x00000010")
1017 cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
1018 cpp_quote("#define SBSP_HELPMODE 0x00000040")
1019 cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
1020 cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
1021 cpp_quote("#define SBSP_RELATIVE 0x00001000")
1022 cpp_quote("#define SBSP_PARENT 0x00002000")
1023 cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
1024 cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
1025 cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
1026 cpp_quote("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
1027 cpp_quote("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
1028 cpp_quote("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
1029 cpp_quote("#define SBSP_CREATENOHISTORY 0x00100000")
1030 cpp_quote("#define SBSP_PLAYNOSOUND 0x00200000")
1031 cpp_quote("#define SBSP_CALLERUNTURUSTED 0x00800000")
1032 cpp_quote("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
1033 cpp_quote("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
1034 cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
1035 cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
1036 cpp_quote("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
1037 cpp_quote("#define SBSP_FEEDNAVIGATION 0x20000000")
1038 cpp_quote("#define SBSP_REDIRECT 0x40000000")
1039 cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
1041 cpp_quote("#define FCW_STATUS 0x0001")
1042 cpp_quote("#define FCW_TOOLBAR 0x0002")
1043 cpp_quote("#define FCW_TREE 0x0003")
1044 cpp_quote("#define FCW_INTERNETBAR 0x0006")
1045 cpp_quote("#define FCW_PROGRESS 0x0008")
1047 cpp_quote("#define FCT_MERGE 0x0001")
1048 cpp_quote("#define FCT_CONFIGABLE 0x0002")
1049 cpp_quote("#define FCT_ADDTOEND 0x0004")
1051 cpp_quote("#if 0")
1052 typedef LPARAM LPTBBUTTONSB;
1053 cpp_quote("#else")
1054 cpp_quote("#include <commctrl.h>")
1055 cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
1056 cpp_quote("#endif")
1058 HRESULT InsertMenusSB(
1059 [in] HMENU hmenuShared,
1060 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
1062 HRESULT SetMenuSB(
1063 [in] HMENU hmenuShared,
1064 [in] HOLEMENU holemenuReserved,
1065 [in] HWND hwndActiveObject);
1067 HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
1068 HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
1069 HRESULT EnableModelessSB( [in] BOOL fEnable );
1070 HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
1072 HRESULT BrowseObject(
1073 [in] LPCITEMIDLIST pidl,
1074 [in] UINT wFlags);
1076 HRESULT GetViewStateStream(
1077 [in] DWORD grfMode,
1078 [out] IStream **ppStrm);
1080 HRESULT GetControlWindow(
1081 [in] UINT id,
1082 [out] HWND *phwnd);
1084 [local] HRESULT SendControlMsg(
1085 [in] UINT id,
1086 [in] UINT uMsg,
1087 [in] WPARAM wParam,
1088 [in] LPARAM lParam,
1089 [in] LRESULT *pret);
1091 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
1092 HRESULT OnViewWindowActive( [in] IShellView *pshv );
1094 [local]
1095 HRESULT SetToolbarItems(
1096 [in] LPTBBUTTONSB lpButtons,
1097 [in] UINT nButtons,
1098 [in] UINT uFlags);
1102 /*****************************************************************************
1103 * IShellLinkA interface
1106 object,
1107 uuid(000214ee-0000-0000-c000-000000000046),
1108 pointer_default(unique)
1110 interface IShellLinkA : IUnknown
1112 typedef enum
1114 SLR_NO_UI = 0x0001,
1115 SLR_ANY_MATCH = 0x0002,
1116 SLR_UPDATE = 0x0004,
1117 SLR_NOUPDATE = 0x0008,
1118 SLR_NOSEARCH = 0x0010,
1119 SLR_NOTRACK = 0x0020,
1120 SLR_NOLINKINFO = 0x0040,
1121 SLR_INVOKE_MSI = 0x0080,
1122 SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
1123 } SLR_FLAGS;
1125 typedef enum
1127 SLGP_SHORTPATH = 0x0001,
1128 SLGP_UNCPRIORITY = 0x0002,
1129 SLGP_RAWPATH = 0x0004,
1130 } SLGP_FLAGS;
1132 HRESULT GetPath(
1133 [out, size_is(cch)] LPSTR pszFile,
1134 [in] int cch,
1135 [in, out, unique] WIN32_FIND_DATAA *pfd,
1136 [in] DWORD fFlags);
1138 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
1140 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
1142 HRESULT GetDescription(
1143 [out, size_is(cch)] LPSTR pszName,
1144 [in] int cch);
1146 HRESULT SetDescription( [in] LPCSTR pszName );
1148 HRESULT GetWorkingDirectory(
1149 [out, size_is(cch)] LPSTR pszDir,
1150 [in] int cch);
1152 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
1154 HRESULT GetArguments(
1155 [out, size_is(cch)] LPSTR pszArgs,
1156 [in] int cch);
1158 HRESULT SetArguments( [in] LPCSTR pszArgs );
1160 HRESULT GetHotkey( [out] WORD *pwHotkey );
1162 HRESULT SetHotkey( [in] WORD wHotkey );
1164 HRESULT GetShowCmd( [out] int *piShowCmd );
1166 HRESULT SetShowCmd( [in] int iShowCmd );
1168 HRESULT GetIconLocation(
1169 [out, size_is(cch)] LPSTR pszIconPath,
1170 [in] int cch,
1171 [out] int *piIcon);
1173 HRESULT SetIconLocation(
1174 [in] LPCSTR pszIconPath,
1175 [in] int iIcon);
1177 HRESULT SetRelativePath(
1178 [in] LPCSTR pszPathRel,
1179 [in] DWORD dwReserved);
1181 HRESULT Resolve(
1182 [in] HWND hwnd,
1183 [in] DWORD fFlags);
1185 HRESULT SetPath( [in] LPCSTR pszFile );
1189 /*****************************************************************************
1190 * IShellLinkW interface
1193 object,
1194 uuid(000214f9-0000-0000-c000-000000000046),
1195 pointer_default(unique)
1197 interface IShellLinkW : IUnknown
1199 HRESULT GetPath(
1200 [out, size_is(cch)] LPWSTR pszFile,
1201 [in] int cch,
1202 [in, out] WIN32_FIND_DATAW *pfd,
1203 [in] DWORD fFlags);
1205 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
1207 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
1209 HRESULT GetDescription(
1210 [out, size_is(cch)] LPWSTR pszName,
1211 [in] int cch);
1213 HRESULT SetDescription( [in] LPCWSTR pszName );
1215 HRESULT GetWorkingDirectory(
1216 [out, size_is(cch)] LPWSTR pszDir,
1217 [in] int cch);
1219 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
1221 HRESULT GetArguments(
1222 [out, size_is(cch)] LPWSTR pszArgs,
1223 [in] int cch);
1225 HRESULT SetArguments( [in] LPCWSTR pszArgs );
1227 HRESULT GetHotkey( [out] WORD *pwHotkey );
1229 HRESULT SetHotkey( [in] WORD wHotkey );
1231 HRESULT GetShowCmd( [out] int *piShowCmd );
1233 HRESULT SetShowCmd( [in] int iShowCmd );
1235 HRESULT GetIconLocation(
1236 [out, size_is(cch)] LPWSTR pszIconPath,
1237 [in] int cch,
1238 [out] int *piIcon);
1240 HRESULT SetIconLocation(
1241 [in] LPCWSTR pszIconPath,
1242 [in] int iIcon);
1244 HRESULT SetRelativePath(
1245 [in] LPCWSTR pszPathRel,
1246 [in] DWORD dwReserved);
1248 HRESULT Resolve(
1249 [in] HWND hwnd,
1250 [in] DWORD fFlags);
1252 HRESULT SetPath( [in] LPCWSTR pszFile );
1255 cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
1258 /*****************************************************************************
1259 * IShellExtInit interface
1262 object,
1263 uuid(000214e8-0000-0000-c000-000000000046),
1264 pointer_default(unique),
1265 local
1267 interface IShellExtInit : IUnknown
1269 typedef IShellExtInit *LPSHELLEXTINIT;
1271 HRESULT Initialize(
1272 [in] LPCITEMIDLIST pidlFolder,
1273 [in] IDataObject *pdtobj,
1274 [in] HKEY hkeyProgID);
1278 /*******************************************************************************/
1279 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
1280 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
1281 /* them here anyway. */
1282 /*******************************************************************************/
1284 #ifndef MAX_PATH
1285 #define MAX_PATH 260
1286 #endif
1289 /*****************************************************************************
1290 * IPersistFolder3 interface
1293 object,
1294 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
1295 pointer_default(unique)
1297 interface IPersistFolder3 : IPersistFolder2
1299 typedef struct
1301 LPITEMIDLIST pidlTargetFolder;
1302 WCHAR szTargetParsingName[MAX_PATH];
1303 WCHAR szNetworkProvider[MAX_PATH];
1304 DWORD dwAttributes;
1305 int csidl;
1306 } PERSIST_FOLDER_TARGET_INFO;
1308 HRESULT InitializeEx(
1309 [in] IBindCtx *pbc,
1310 [in] LPCITEMIDLIST pidlRoot,
1311 [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
1313 HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
1317 /*****************************************************************************
1318 * IExtractIconA interface
1321 object,
1322 uuid(000214eb-0000-0000-c000-000000000046),
1323 pointer_default(unique),
1324 local
1326 interface IExtractIconA : IUnknown
1328 cpp_quote("#define GIL_OPENICON 0x0001")
1329 cpp_quote("#define GIL_FORSHELL 0x0002")
1330 cpp_quote("#define GIL_ASYNC 0x0020")
1331 cpp_quote("#define GIL_DEFAULTICON 0x0040")
1332 cpp_quote("#define GIL_FORSHORTCUT 0x0080")
1334 cpp_quote("#define GIL_SIMULATEDOC 0x0001")
1335 cpp_quote("#define GIL_PERINSTANCE 0x0002")
1336 cpp_quote("#define GIL_PERCLASS 0x0004")
1337 cpp_quote("#define GIL_NOTFILENAME 0x0008")
1338 cpp_quote("#define GIL_DONTCACHE 0x0010")
1340 typedef IExtractIconA *LPEXTRACTICONA;
1342 HRESULT GetIconLocation(
1343 [in] UINT uFlags,
1344 [out, size_is(cchMax)] LPSTR szIconFile,
1345 [in] UINT cchMax,
1346 [out] INT *piIndex,
1347 [out] UINT *pwFlags);
1349 HRESULT Extract(
1350 [in] LPCSTR pszFile,
1351 [in] UINT nIconIndex,
1352 [out] HICON *phiconLarge,
1353 [out] HICON *phiconSmall,
1354 [in] UINT nIconSize );
1358 /*****************************************************************************
1359 * IExtractIconW interface
1362 object,
1363 uuid(000214fa-0000-0000-c000-000000000046),
1364 pointer_default(unique),
1365 local
1367 interface IExtractIconW : IUnknown
1369 typedef IExtractIconW *LPEXTRACTICONW;
1371 HRESULT GetIconLocation(
1372 [in] UINT uFlags,
1373 [out, size_is(cchMax)] LPWSTR szIconFile,
1374 [in] UINT cchMax,
1375 [out] INT *piIndex,
1376 [out] UINT *pwFlags);
1378 HRESULT Extract(
1379 [in] LPCWSTR pszFile,
1380 [in] UINT nIconIndex,
1381 [out] HICON *phiconLarge,
1382 [out] HICON *phiconSmall,
1383 [in] UINT nIconSize );
1386 cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1387 cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1390 /*****************************************************************************
1391 * ICommDlgBrowser interface
1394 object,
1395 uuid(000214f1-0000-0000-c000-000000000046),
1396 pointer_default(unique)
1398 interface ICommDlgBrowser : IUnknown
1400 cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
1401 cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
1402 cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
1403 cpp_quote("#define CDBOSC_RENAME 0x00000003")
1404 cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
1406 typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
1408 HRESULT OnDefaultCommand( [in] IShellView *shv );
1409 HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
1410 HRESULT IncludeObject( [in] IShellView *shv, [in] LPCITEMIDLIST pidl );
1414 /*****************************************************************************
1415 * ICommDlgBrowser2 interface
1418 object,
1419 uuid(10339516-2894-11D2-9039-00C04F8EEB3E),
1420 pointer_default(unique)
1422 interface ICommDlgBrowser2 : ICommDlgBrowser
1425 HRESULT Notify(
1426 [in] IShellView *ppshv,
1427 [in] DWORD dwNotifyType);
1429 HRESULT GetDefaultMenuText(
1430 [in] IShellView *ppshv,
1431 [out, string, size_is(cchMax)] LPWSTR pszText,
1432 [in] int cchMax);
1434 HRESULT GetViewFlags(
1435 [out] DWORD *pdwFlags);
1439 /*****************************************************************************
1440 * ICommDlgBrowser3 interface
1443 object,
1444 uuid(C8AD25A1-3294-41EE-8165-71174BD01C57),
1445 pointer_default(unique)
1447 interface ICommDlgBrowser3 : ICommDlgBrowser2
1450 HRESULT OnColumnClicked(
1451 [in] IShellView *ppshv,
1452 [in] int iColumn);
1454 HRESULT GetCurrentFilter(
1455 [out, string, size_is(cchFileSpec)] LPWSTR pszFileSpec,
1456 [in] int cchFileSpec);
1458 HRESULT OnPreviewCreated(
1459 [in] IShellView *ppshv);
1462 /*****************************************************************************
1463 * IDockingWindow interface
1466 object,
1467 uuid(012dd920-7b26-11d0-8ca9-00a0c92dbfe8)
1469 interface IDockingWindow : IOleWindow
1471 HRESULT ShowDW(
1472 [in] BOOL fShow);
1474 HRESULT CloseDW(
1475 [in] DWORD dwReserved);
1477 HRESULT ResizeBorderDW(
1478 [in] LPCRECT prcBorder,
1479 [in] IUnknown *punkToolbarSite,
1480 [in] BOOL fReserved);
1484 /*****************************************************************************
1485 * IDockingWindowFrame interface
1488 object,
1489 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
1490 pointer_default(unique),
1491 local
1493 interface IDockingWindowFrame : IOleWindow
1495 cpp_quote("#define DWFRF_NORMAL 0x0000")
1496 cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
1497 cpp_quote("#define DWFAF_HIDDEN 0x0001")
1499 HRESULT AddToolbar(
1500 [in] IUnknown *punkSrc,
1501 [in] LPCWSTR pwszItem,
1502 [in] DWORD dwAddFlags);
1504 HRESULT RemoveToolbar(
1505 [in] IUnknown *punkSrc,
1506 [in] DWORD dwRemoveFlags);
1508 HRESULT FindToolbar(
1509 [in] LPCWSTR pwszItem,
1510 [in] REFIID riid,
1511 [out] LPVOID *ppvObj);
1515 /*****************************************************************************
1516 * IDragSourceHelper interface
1519 object,
1520 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
1521 pointer_default(unique),
1522 local
1524 interface IDragSourceHelper : IUnknown
1526 typedef struct
1528 SIZE sizeDragImage;
1529 POINT ptOffset;
1530 HBITMAP hbmpDragImage;
1531 COLORREF crColorKey;
1532 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
1534 HRESULT InitializeFromBitmap(
1535 [in] LPSHDRAGIMAGE pshdi,
1536 [in] IDataObject *pDataObject);
1538 HRESULT InitializeFromWindow(
1539 [in] HWND hwnd,
1540 [in] POINT *ppt,
1541 [in] IDataObject *pDataObject);
1545 /*****************************************************************************
1546 * IDropTargetHelper interface
1549 object,
1550 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
1551 pointer_default(unique),
1552 local
1554 interface IDropTargetHelper : IUnknown
1556 HRESULT DragEnter(
1557 [in] HWND hwndTarget,
1558 [in] IDataObject *pDataObject,
1559 [in] POINT *ppt,
1560 [in] DWORD dwEffect);
1562 HRESULT DragLeave();
1564 HRESULT DragOver(
1565 [in] POINT *ppt,
1566 [in] DWORD dwEffect);
1568 HRESULT Drop(
1569 [in] IDataObject *pDataObject,
1570 [in] POINT *ppt,
1571 [in] DWORD dwEffect);
1573 HRESULT Show( [in] BOOL fShow );
1577 /*****************************************************************************
1578 * IContextMenu interface
1581 object,
1582 uuid(000214e4-0000-0000-c000-000000000046),
1583 pointer_default(unique),
1584 local
1586 interface IContextMenu : IUnknown
1588 cpp_quote("#define CMF_NORMAL 0x00000000")
1589 cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
1590 cpp_quote("#define CMF_VERBSONLY 0x00000002")
1591 cpp_quote("#define CMF_EXPLORE 0x00000004")
1592 cpp_quote("#define CMF_NOVERBS 0x00000008")
1593 cpp_quote("#define CMF_CANRENAME 0x00000010")
1594 cpp_quote("#define CMF_NODEFAULT 0x00000020")
1595 cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
1596 cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
1597 cpp_quote("#define CMF_RESERVED 0xffff0000")
1599 cpp_quote("#define GCS_VERBA 0x00000000")
1600 cpp_quote("#define GCS_HELPTEXTA 0x00000001")
1601 cpp_quote("#define GCS_VALIDATEA 0x00000002")
1602 cpp_quote("#define GCS_VERBW 0x00000004")
1603 cpp_quote("#define GCS_HELPTEXTW 0x00000005")
1604 cpp_quote("#define GCS_VALIDATEW 0x00000006")
1605 cpp_quote("#define GCS_UNICODE 0x00000004")
1606 cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1607 cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1608 cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1610 cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1611 cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
1612 cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1613 cpp_quote("#if defined(__GNUC__)")
1614 cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1615 cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1616 cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1617 cpp_quote("#elif defined(_MSC_VER)")
1618 cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1619 cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1620 cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1621 cpp_quote("#else")
1622 cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1623 cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1624 cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1625 cpp_quote("#endif")
1626 cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1627 cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1628 cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1630 cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1631 cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
1632 cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1633 cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1634 cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1635 cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1636 cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1637 cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1638 cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1639 cpp_quote("#define CMIC_MASK_NOASYNC SEE_MASK_NOASYNC")
1640 cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1641 cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
1642 cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1643 cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1644 cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1646 typedef IContextMenu *LPCONTEXTMENU;
1648 typedef struct tagCMINVOKECOMMANDINFO
1650 DWORD cbSize;
1651 DWORD fMask;
1652 HWND hwnd;
1653 LPCSTR lpVerb;
1654 LPCSTR lpParameters;
1655 LPCSTR lpDirectory;
1656 INT nShow;
1657 DWORD dwHotKey;
1658 HANDLE hIcon;
1659 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1661 typedef struct tagCMInvokeCommandInfoEx
1663 DWORD cbSize;
1664 DWORD fMask;
1665 HWND hwnd;
1666 LPCSTR lpVerb;
1667 LPCSTR lpParameters;
1668 LPCSTR lpDirectory;
1669 INT nShow;
1670 DWORD dwHotKey;
1671 HANDLE hIcon;
1672 LPCSTR lpTitle;
1673 LPCWSTR lpVerbW;
1674 LPCWSTR lpParametersW;
1675 LPCWSTR lpDirectoryW;
1676 LPCWSTR lpTitleW;
1677 POINT ptInvoke;
1678 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1680 HRESULT QueryContextMenu(
1681 [in] HMENU hmenu,
1682 [in] UINT indexMenu,
1683 [in] UINT idCmdFirst,
1684 [in] UINT idCmdLast,
1685 [in] UINT uFlags);
1687 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1689 HRESULT GetCommandString(
1690 [in] UINT_PTR idCmd,
1691 [in] UINT uType,
1692 [out] UINT *pwReserved,
1693 [out, size_is(cchMax)] LPSTR pszName,
1694 [in] UINT cchMax);
1698 /*****************************************************************************
1699 * IContextMenu2 interface
1702 object,
1703 uuid(000214f4-0000-0000-c000-000000000046),
1704 pointer_default(unique),
1705 local
1707 interface IContextMenu2 : IContextMenu
1709 typedef IContextMenu2 *LPCONTEXTMENU2;
1711 HRESULT HandleMenuMsg(
1712 [in] UINT uMsg,
1713 [in] WPARAM wParam,
1714 [in] LPARAM lParam);
1718 /*****************************************************************************
1719 * IContextMenu3 interface
1722 object,
1723 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1724 pointer_default(unique),
1725 local
1727 interface IContextMenu3 : IContextMenu2
1729 typedef IContextMenu3 *LPCONTEXTMENU3;
1731 HRESULT HandleMenuMsg2(
1732 [in] UINT uMsg,
1733 [in] WPARAM wParam,
1734 [in] LPARAM lParam,
1735 [out] LRESULT *plResult);
1740 object,
1741 uuid(3409e930-5a39-11d1-83fa-00a0c90dc849),
1742 pointer_default(unique),
1743 local
1745 interface IContextMenuCB : IUnknown
1747 HRESULT CallBack(
1748 [in] IShellFolder *psf,
1749 [in] HWND hwndOwner,
1750 [in] IDataObject *pdtobj,
1751 [in] UINT uMsg,
1752 [in] WPARAM wParam,
1753 [in] LPARAM lParam);
1756 /*****************************************************************************
1757 * IShellExecuteHookA interface
1760 object,
1761 uuid(000214f5-0000-0000-c000-000000000046),
1762 pointer_default(unique),
1763 local
1765 interface IShellExecuteHookA : IUnknown
1767 cpp_quote("struct _SHELLEXECUTEINFOA;")
1768 HRESULT Execute(
1769 [in, out] struct _SHELLEXECUTEINFOA* pei);
1773 /*****************************************************************************
1774 * IShellExecuteHookW interface
1777 object,
1778 uuid(000214fb-0000-0000-c000-000000000046),
1779 pointer_default(unique),
1780 local
1782 interface IShellExecuteHookW : IUnknown
1784 cpp_quote("struct _SHELLEXECUTEINFOW;")
1785 HRESULT Execute(
1786 [in, out] struct _SHELLEXECUTEINFOW* pei);
1789 /*****************************************************************************
1790 * IShellLinkDataList interface
1793 object,
1794 uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
1795 pointer_default(unique)
1797 interface IShellLinkDataList : IUnknown
1799 [local] HRESULT AddDataBlock(
1800 [in] void *pDataBlock);
1801 [local] HRESULT CopyDataBlock(
1802 [in] DWORD dwSig,
1803 [out] void **ppDataBlock);
1804 HRESULT RemoveDataBlock(
1805 [in] DWORD dwSig);
1806 HRESULT GetFlags(
1807 [out] DWORD *pdwFlags);
1808 HRESULT SetFlags(
1809 [in] DWORD dwFlags);
1813 /*****************************************************************************
1814 * IResolveShellLink interface
1817 object,
1818 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1819 pointer_default(unique)
1821 interface IResolveShellLink : IUnknown
1823 HRESULT ResolveShellLink(
1824 [in] IUnknown *punk,
1825 [in] HWND hwnd,
1826 [in] DWORD fFlags);
1830 /*****************************************************************************
1831 * IURLSearchHook interface
1834 object,
1835 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1836 pointer_default(unique),
1837 local
1839 interface IURLSearchHook : IUnknown
1841 HRESULT Translate(
1842 [in, out] LPWSTR lpwszSearchURL,
1843 [in] DWORD cchBufferSize);
1847 /*****************************************************************************
1848 * ISearchContext interface
1851 object,
1852 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1853 pointer_default(unique),
1854 local
1856 interface ISearchContext : IUnknown
1858 HRESULT GetSearchUrl(
1859 [in] BSTR *pbstrSearchUrl);
1860 HRESULT GetSearchText(
1861 [in] BSTR *pbstrSearchText);
1862 HRESULT GetSearchStyle(
1863 [in] BSTR *pdwSearchStyle);
1867 /*****************************************************************************
1868 * IURLSearchHook2 interface
1871 object,
1872 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1873 pointer_default(unique),
1874 local
1876 interface IURLSearchHook2 : IURLSearchHook
1878 HRESULT TranslateWithSearchContext(
1879 [in, out] LPWSTR lpwszSearchURL,
1880 [in] DWORD cchBufferSize,
1881 [in] ISearchContext *pSearchContext);
1885 cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1887 /*****************************************************************************
1888 * INewShortcutHookA interface
1891 object,
1892 uuid(000214e1-0000-0000-c000-000000000046),
1893 pointer_default(unique),
1894 local
1896 interface INewShortcutHookA : IUnknown
1898 HRESULT SetReferent(
1899 [in] LPCSTR pcszReferent,
1900 [in] HWND hwnd);
1901 HRESULT GetReferent(
1902 [out] LPSTR pcszReferent,
1903 [in] int cchReferent);
1904 HRESULT SetFolder(
1905 [in] LPCSTR pcszReferent);
1906 HRESULT GetFolder(
1907 [out] LPSTR pcszReferent,
1908 [in] int cchFolder);
1909 HRESULT GetName(
1910 [out] LPSTR pszName,
1911 [in] int cchName);
1912 HRESULT GetExtension(
1913 [out] LPSTR pszExtension,
1914 [in] int cchExtension);
1918 /*****************************************************************************
1919 * INewShortcutHookW interface
1922 object,
1923 uuid(000214f7-0000-0000-c000-000000000046),
1924 pointer_default(unique),
1925 local
1927 interface INewShortcutHookW : IUnknown
1929 HRESULT SetReferent(
1930 [in] LPCWSTR pcszReferent,
1931 [in] HWND hwnd);
1932 HRESULT GetReferent(
1933 [out] LPWSTR pcszReferent,
1934 [in] int cchReferent);
1935 HRESULT SetFolder(
1936 [in] LPCWSTR pcszReferent);
1937 HRESULT GetFolder(
1938 [out] LPWSTR pcszReferent,
1939 [in] int cchFolder);
1940 HRESULT GetName(
1941 [out] LPWSTR pszName,
1942 [in] int cchName);
1943 HRESULT GetExtension(
1944 [out] LPWSTR pszExtension,
1945 [in] int cchExtension);
1948 /*****************************************************************************
1949 * IRunnableTask interface
1952 object,
1953 uuid(85788d00-6807-11d0-b810-00c04fd706ec),
1954 pointer_default(unique),
1955 local
1957 interface IRunnableTask : IUnknown
1959 HRESULT Run();
1960 HRESULT Kill([in] BOOL fWait);
1961 HRESULT Suspend();
1962 HRESULT Resume();
1963 ULONG IsRunning();
1966 /*****************************************************************************
1967 * IShellChangeNotify interface
1970 object,
1971 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
1972 pointer_default(unique),
1973 local
1975 interface IShellChangeNotify : IUnknown
1977 HRESULT OnChange(
1978 [in] LONG lEvent,
1979 [in] LPCITEMIDLIST pidl1,
1980 [in] LPCITEMIDLIST pidl2);
1983 /*****************************************************************************
1984 * IFileSystemBindData interface
1987 object,
1988 uuid(01e18d10-4d8b-11d2-855d-006008059367),
1989 pointer_default(unique),
1990 local
1992 interface IFileSystemBindData : IUnknown
1994 HRESULT SetFindData(
1995 [in] const WIN32_FIND_DATAW *pfd);
1996 HRESULT GetFindData(
1997 [out] WIN32_FIND_DATAW *pfd);
2000 /*****************************************************************************
2001 * ITaskbarList interface
2004 object,
2005 uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
2006 pointer_default(unique)
2008 interface ITaskbarList : IUnknown
2010 HRESULT HrInit();
2012 HRESULT AddTab(
2013 [in] HWND hwnd);
2015 HRESULT DeleteTab(
2016 [in] HWND hwnd);
2018 HRESULT ActivateTab(
2019 [in] HWND hwnd);
2021 HRESULT SetActiveAlt(
2022 [in] HWND hwnd);
2025 /*****************************************************************************
2026 * ITaskbarList2 interface
2029 object,
2030 uuid(602D4995-B13A-429B-A66E-1935E44F4317),
2031 pointer_default(unique)
2033 interface ITaskbarList2 : ITaskbarList
2035 HRESULT MarkFullscreenWindow(
2036 [in] HWND hwnd,
2037 [in] BOOL fullscreen);
2040 cpp_quote("#ifdef MIDL_PASS")
2041 typedef IUnknown* HIMAGELIST;
2042 cpp_quote("#endif")
2044 typedef [v1_enum] enum THUMBBUTTONFLAGS {
2045 THBF_ENABLED = 0x0000,
2046 THBF_DISABLED = 0x0001,
2047 THBF_DISMISSONCLICK = 0x0002,
2048 THBF_NOBACKGROUND = 0x0004,
2049 THBF_HIDDEN = 0x0008,
2050 THBF_NONINTERACTIVE = 0x0010
2051 } THUMBBUTTONFLAGS;
2053 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONFLAGS)")
2055 typedef [v1_enum] enum THUMBBUTTONMASK {
2056 THB_BITMAP = 0x0001,
2057 THB_ICON = 0x0002,
2058 THB_TOOLTIP = 0x0004,
2059 THB_FLAGS = 0x0008
2060 } THUMBBUTTONMASK;
2062 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONMASK)")
2064 cpp_quote("#include <pshpack8.h>")
2065 typedef struct THUMBBUTTON {
2066 THUMBBUTTONMASK dwMask;
2067 UINT iId;
2068 UINT iBitmap;
2069 HICON hIcon;
2070 WCHAR szTip[260];
2071 THUMBBUTTONFLAGS dwFlags;
2072 } THUMBBUTTON, *LPTHUMBBUTTON;
2073 cpp_quote("#include <poppack.h>")
2076 uuid(ea1afb91-9e28-4b86-90e9-9e9f8a5eefaf),
2077 object
2079 interface ITaskbarList3 : ITaskbarList2
2081 typedef [v1_enum] enum TBPFLAG {
2082 TBPF_NOPROGRESS = 0x0000,
2083 TBPF_INDETERMINATE = 0x0001,
2084 TBPF_NORMAL = 0x0002,
2085 TBPF_ERROR = 0x0004,
2086 TBPF_PAUSED = 0x0008
2087 } TBPFLAG;
2089 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(TBPFLAG)")
2091 HRESULT SetProgressValue(
2092 [in] HWND hwnd,
2093 [in] ULONGLONG ullCompleted,
2094 [in] ULONGLONG ullTotal);
2096 HRESULT SetProgressState(
2097 [in] HWND hwnd,
2098 [in] TBPFLAG tbpFlags);
2100 HRESULT RegisterTab(
2101 [in] HWND hwndTab,
2102 [in] HWND hwndMDI);
2104 HRESULT UnregisterTab([in] HWND hwndTab);
2106 HRESULT SetTabOrder(
2107 [in] HWND hwndTab,
2108 [in] HWND hwndInsertBefore);
2110 HRESULT SetTabActive(
2111 [in] HWND hwndTab,
2112 [in] HWND hwndMDI,
2113 [in] DWORD dwReserved);
2115 HRESULT ThumbBarAddButtons(
2116 [in] HWND hwnd,
2117 [in] UINT cButtons,
2118 [in, size_is(cButtons)] LPTHUMBBUTTON pButton);
2120 HRESULT ThumbBarUpdateButtons(
2121 [in] HWND hwnd,
2122 [in] UINT cButtons,
2123 [in, size_is(cButtons)] LPTHUMBBUTTON pButton);
2125 HRESULT ThumbBarSetImageList(
2126 [in] HWND hwnd,
2127 [in] HIMAGELIST himl);
2129 HRESULT SetOverlayIcon(
2130 [in] HWND hwnd,
2131 [in] HICON hIcon,
2132 [in, unique, string] LPCWSTR pszDescription);
2134 HRESULT SetThumbnailTooltip(
2135 [in] HWND hwnd,
2136 [in, unique, string] LPCWSTR pszTip);
2138 HRESULT SetThumbnailClip(
2139 [in] HWND hwnd,
2140 [in] RECT *prcClip);
2144 uuid(c43dc798-95d1-4bea-9030-bb99e2983a1a),
2145 object
2147 interface ITaskbarList4 : ITaskbarList3
2149 typedef [v1_enum] enum STPFLAG {
2150 STPF_NONE = 0x0000,
2151 STPF_USEAPPTHUMBNAILALWAYS = 0x0001,
2152 STPF_USEAPPTHUMBNAILWHENACTIVE = 0x0002,
2153 STPF_USEAPPPEEKALWAYS = 0x0004,
2154 STPF_USEAPPPEEKWHENACTIVE = 0x0008
2155 } STPFLAG;
2157 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(STPFLAG)")
2159 HRESULT SetTabProperties(
2160 [in] HWND hwndTab,
2161 [in] STPFLAG stpFlags);
2164 /*****************************************************************************
2165 * IAutoCompleteDropDown interface
2168 object,
2169 uuid(3CD141F4-3C6A-11d2-BCAA-00C04FD929DB),
2170 pointer_default(unique)
2172 interface IAutoCompleteDropDown : IUnknown
2174 cpp_quote("#define ACDD_VISIBLE 0x0001")
2176 HRESULT GetDropDownStatus(
2177 [out] DWORD *pdwFlags,
2178 [out, string] LPWSTR *ppwszString);
2180 HRESULT ResetEnumerator();
2184 object,
2185 uuid(cb728b20-f786-11ce-92ad-00aa00a74cd0),
2186 pointer_default(unique)
2188 interface IProfferService : IUnknown
2190 HRESULT ProfferService(
2191 [in] REFGUID service,
2192 [in] IServiceProvider *pService,
2193 [out] DWORD *pCookie);
2195 HRESULT RevokeService([in] DWORD cookie);
2198 /*****************************************************************************
2199 * IExplorerBrowserEvents interface
2202 object,
2203 uuid(361BBDC7-E6EE-4E13-BE58-58E2240C810F)
2205 interface IExplorerBrowserEvents : IUnknown
2207 HRESULT OnNavigationPending(
2208 [in] PCIDLIST_ABSOLUTE pidlFolder);
2210 HRESULT OnViewCreated(
2211 [in] IShellView *psv);
2213 HRESULT OnNavigationComplete(
2214 [in] PCIDLIST_ABSOLUTE pidlFolder);
2216 HRESULT OnNavigationFailed(
2217 [in] PCIDLIST_ABSOLUTE pidlFolder);
2220 typedef GUID EXPLORERPANE;
2221 typedef EXPLORERPANE *REFEXPLORERPANE;
2223 cpp_quote("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
2225 /*****************************************************************************
2226 * IExplorerPaneVisibility interface
2229 object,
2230 uuid(E07010EC-BC17-44C0-97B0-46C7C95B9EDC)
2232 interface IExplorerPaneVisibility : IUnknown
2234 typedef enum tagEXPLORERPANESTATE {
2235 EPS_DONTCARE = 0x0,
2236 EPS_DEFAULT_ON = 0x1,
2237 EPS_DEFAULT_OFF = 0x2,
2238 EPS_STATE_MASK = 0xffff,
2239 EPS_INITIALSTATE = 0x10000,
2240 EPS_FORCE = 0x20000
2241 } EXPLORERPANESTATE;
2243 HRESULT GetPaneState(
2244 [in] REFEXPLORERPANE ep,
2245 [out] EXPLORERPANESTATE *peps);
2248 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS {
2249 EBF_NONE = 0,
2250 EBF_SELECTFROMDATAOBJECT = 0x100,
2251 EBF_NODROPTARGET = 0x200
2252 } EXPLORER_BROWSER_FILL_FLAGS;
2254 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS {
2255 EBO_NONE = 0x00,
2256 EBO_NAVIGATEONCE = 0x01,
2257 EBO_SHOWFRAMES = 0x02,
2258 EBO_ALWAYSNAVIGATE = 0x04,
2259 EBO_NOTRAVELLOG = 0x08,
2260 EBO_NOWRAPPERWINDOW = 0x10,
2261 EBO_HTMLSHAREPOINTVIEW = 0x20,
2262 EBO_NOBORDER = 0x40,
2263 EBO_NOPERSISTVIEWSTATE = 0x80,
2264 } EXPLORER_BROWSER_OPTIONS;
2266 cpp_quote("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
2268 /*****************************************************************************
2269 * IExplorerBrowser interface
2272 object,
2273 uuid(DFD3B6B5-C10C-4BE9-85F6-A66969F402F6),
2274 pointer_default(unique)
2276 interface IExplorerBrowser : IUnknown
2279 [local] HRESULT Initialize(
2280 [in] HWND hwndParent,
2281 [in] const RECT *prc,
2282 [in, unique] const FOLDERSETTINGS *pfs);
2284 HRESULT Destroy();
2286 [local] HRESULT SetRect(
2287 [in,out,unique] HDWP *phdwp,
2288 [in] RECT rcBrowser);
2290 HRESULT SetPropertyBag(
2291 [in, string] LPCWSTR pszPropertyBag);
2293 HRESULT SetEmptyText(
2294 [in, string] LPCWSTR pszEmptyText);
2296 HRESULT SetFolderSettings(
2297 [in] const FOLDERSETTINGS *pfs);
2299 HRESULT Advise(
2300 [in] IExplorerBrowserEvents *psbe,
2301 [out] DWORD *pdwCookie);
2303 HRESULT Unadvise(
2304 [in] DWORD dwCookie);
2306 HRESULT SetOptions(
2307 [in] EXPLORER_BROWSER_OPTIONS dwFlag);
2309 HRESULT GetOptions(
2310 [out] EXPLORER_BROWSER_OPTIONS *pdwFlag);
2312 HRESULT BrowseToIDList(
2313 [in] PCUIDLIST_RELATIVE pidl,
2314 [in] UINT uFlags);
2316 HRESULT BrowseToObject(
2317 [in] IUnknown *punk,
2318 [in] UINT uFlags);
2320 HRESULT FillFromObject(
2321 [in] IUnknown *punk,
2322 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags);
2324 HRESULT RemoveAll();
2326 HRESULT GetCurrentView(
2327 [in] REFIID riid,
2328 [out, iid_is(riid)] void **ppv);
2331 /*****************************************************************************
2332 * INameSpaceTreeControl interface
2335 object,
2336 uuid(028212A3-B627-47E9-8856-C14265554E4F)
2338 interface INameSpaceTreeControl : IUnknown
2340 [v1_enum] enum _NSTCSTYLE {
2341 NSTCS_HASEXPANDOS = 0x00000001,
2342 NSTCS_HASLINES = 0x00000002,
2343 NSTCS_SINGLECLICKEXPAND = 0x00000004,
2344 NSTCS_FULLROWSELECT = 0x00000008,
2345 NSTCS_SPRINGEXPAND = 0x00000010,
2346 NSTCS_HORIZONTALSCROLL = 0x00000020,
2347 NSTCS_ROOTHASEXPANDO = 0x00000040,
2348 NSTCS_SHOWSELECTIONALWAYS = 0x00000080,
2349 NSTCS_NOINFOTIP = 0x00000200,
2350 NSTCS_EVENHEIGHT = 0x00000400,
2351 NSTCS_NOREPLACEOPEN = 0x00000800,
2352 NSTCS_DISABLEDRAGDROP = 0x00001000,
2353 NSTCS_NOORDERSTREAM = 0x00002000,
2354 NSTCS_RICHTOOLTIP = 0x00004000,
2355 NSTCS_BORDER = 0x00008000,
2356 NSTCS_NOEDITLABELS = 0x00010000,
2357 NSTCS_TABSTOP = 0x00020000,
2358 NSTCS_FAVORITESMODE = 0x00080000,
2359 NSTCS_AUTOHSCROLL = 0x00100000,
2360 NSTCS_FADEINOUTEXPANDOS = 0x00200000,
2361 NSTCS_EMPTYTEXT = 0x00400000,
2362 NSTCS_CHECKBOXES = 0x00800000,
2363 NSTCS_PARTIALCHECKBOXES = 0x01000000,
2364 NSTCS_EXCLUSIONCHECKBOXES = 0x02000000,
2365 NSTCS_DIMMEDCHECKBOXES = 0x04000000,
2366 NSTCS_NOINDENTCHECKS = 0x08000000,
2367 NSTCS_ALLOWJUNCTIONS = 0x10000000,
2368 NSTCS_SHOWTABSBUTTON = 0x20000000,
2369 NSTCS_SHOWDELETEBUTTON = 0x40000000,
2370 NSTCS_SHOWREFRESHBUTTON = (int)0x80000000
2372 typedef DWORD NSTCSTYLE;
2374 [v1_enum] enum _NSTCROOTSTYLE {
2375 NSTCRS_VISIBLE = 0x0000,
2376 NSTCRS_HIDDEN = 0x0001,
2377 NSTCRS_EXPANDED = 0x0002
2379 typedef DWORD NSTCROOTSTYLE;
2381 [v1_enum] enum _NSTCITEMSTATE {
2382 NSTCIS_NONE = 0x0000,
2383 NSTCIS_SELECTED = 0x0001,
2384 NSTCIS_EXPANDED = 0x0002,
2385 NSTCIS_BOLD = 0x0004,
2386 NSTCIS_DISABLED = 0x0008,
2387 NSTCIS_SELECTEDNOEXPAND = 0x0010
2389 typedef DWORD NSTCITEMSTATE;
2391 typedef [v1_enum] enum NSTCGNI {
2392 NSTCGNI_NEXT = 0,
2393 NSTCGNI_NEXTVISIBLE = 1,
2394 NSTCGNI_PREV = 2,
2395 NSTCGNI_PREVVISIBLE = 3,
2396 NSTCGNI_PARENT = 4,
2397 NSTCGNI_CHILD = 5,
2398 NSTCGNI_FIRSTVISIBLE = 6,
2399 NSTCGNI_LASTVISIBLE = 7
2400 } NSTCGNI;
2402 HRESULT Initialize(
2403 [in] HWND hwndParent,
2404 [in, unique] RECT *prc,
2405 [in] NSTCSTYLE nstcsFlags);
2407 HRESULT TreeAdvise(
2408 [in] IUnknown *punk,
2409 [out] DWORD *pdwCookie);
2411 HRESULT TreeUnadvise(
2412 [in] DWORD dwCookie);
2414 HRESULT AppendRoot(
2415 [in] IShellItem *psiRoot,
2416 [in] SHCONTF grfEnumFlags,
2417 [in] NSTCROOTSTYLE grfRootStyle,
2418 [in, unique] IShellItemFilter *pif);
2420 HRESULT InsertRoot(
2421 [in] int iIndex,
2422 [in] IShellItem *psiRoot,
2423 [in] SHCONTF grfEnumFlags,
2424 [in] NSTCROOTSTYLE grfRootStyle,
2425 [in, unique] IShellItemFilter *pif);
2427 HRESULT RemoveRoot(
2428 [in] IShellItem *psiRoot);
2430 HRESULT RemoveAllRoots();
2432 HRESULT GetRootItems(
2433 [out] IShellItemArray **ppsiaRootItems);
2435 HRESULT SetItemState(
2436 [in] IShellItem *psi,
2437 [in] NSTCITEMSTATE nstcisMask,
2438 [in] NSTCITEMSTATE nstcisFlags);
2440 HRESULT GetItemState(
2441 [in] IShellItem *psi,
2442 [in] NSTCITEMSTATE nstcismask,
2443 [out] NSTCITEMSTATE *pnstcisFlags);
2445 HRESULT GetSelectedItems(
2446 [out] IShellItemArray **psiaItems);
2448 HRESULT GetItemCustomState(
2449 [in] IShellItem *psi,
2450 [out] int *piStateNumber);
2452 HRESULT SetItemCustomState(
2453 [in] IShellItem *psi,
2454 [in] int iStateNumber);
2456 HRESULT EnsureItemVisible(
2457 [in] IShellItem *psi);
2459 HRESULT SetTheme(
2460 [in, string] LPCWSTR pszTheme);
2462 HRESULT GetNextItem(
2463 [in, unique] IShellItem *psi,
2464 [in] NSTCGNI nstcgi,
2465 [out] IShellItem **ppsiNext);
2467 HRESULT HitTest(
2468 [in] POINT *ppt,
2469 [out] IShellItem **ppsiOut);
2471 HRESULT GetItemRect(
2472 [in] IShellItem *psi,
2473 [out] RECT *prect);
2475 HRESULT CollapseAll();
2478 /*****************************************************************************
2479 * INameSpaceTreeControl2 interface
2482 object,
2483 uuid(7CC7AED8-290E-49BC-8945-C1401CC9306C)
2485 interface INameSpaceTreeControl2 : INameSpaceTreeControl
2487 typedef [v1_enum] enum NSTCSTYLE2 {
2488 NSTCS2_DEFAULT = 0x00,
2489 NSTCS2_INTERRUPTNOTIFICATIONS = 0x01,
2490 NSTCS2_SHOWNULLSPACEMENU = 0x02,
2491 NSTCS2_DISPLAYPADDING = 0x04,
2492 NSTCS2_DISPLAYPINNEDONLY = 0x08,
2493 NTSCS2_NOSINGLETONAUTOEXPAND = 0x10, /* The apparent typo here is */
2494 NTSCS2_NEVERINSERTNONENUMERATED = 0x20 /* present also in the Win SDK */
2495 } NSTCSTYLE2;
2496 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(NSTCSTYLE2)")
2498 HRESULT SetControlStyle(
2499 [in] NSTCSTYLE nstcsMask,
2500 [in] NSTCSTYLE nstcsStyle);
2502 HRESULT GetControlStyle(
2503 [in] NSTCSTYLE nstcsMask,
2504 [out] NSTCSTYLE *pnstcsStyle);
2506 HRESULT SetControlStyle2(
2507 [in] NSTCSTYLE2 nstcsMask,
2508 [in] NSTCSTYLE2 nstcsStyle);
2510 HRESULT GetControlStyle2(
2511 [in] NSTCSTYLE2 nstcsMask,
2512 [out] NSTCSTYLE2 *pnstcsStyle);
2515 /*****************************************************************************
2516 * INameSpaceTreeControlEvents interface
2520 object,
2521 uuid(93D77985-B3D8-4484-8318-672CDDA002CE),
2522 local
2524 interface INameSpaceTreeControlEvents : IUnknown
2526 [v1_enum] enum _NSTCEHITTEST {
2527 NSTCEHT_NOWHERE = 0x0001,
2528 NSTCEHT_ONITEMICON = 0x0002,
2529 NSTCEHT_ONITEMLABEL = 0x0004,
2530 NSTCEHT_ONITEMIDENT = 0x0008,
2531 NSTCEHT_ONITEMBUTTON = 0x0010,
2532 NSTCEHT_ONITEMRIGHT = 0x0020,
2533 NSTCEHT_ONITEMSTATEICON = 0x0040,
2534 NSTCEHT_ONITEM = 0x0046,
2535 NSTCEHT_ONITEMTABBUTTON = 0x1000
2537 typedef DWORD NSTCEHITTEST;
2539 [v1_enum] enum _NSTCECLICKTYPE {
2540 NSTCECT_LBUTTON = 0x1,
2541 NSTCECT_MBUTTON = 0x2,
2542 NSTCECT_RBUTTON = 0x3,
2543 NSTCECT_BUTTON = 0x3,
2544 NSTCECT_DBLCLICK = 0x4
2546 typedef DWORD NSTCECLICKTYPE;
2548 HRESULT OnItemClick(
2549 [in] IShellItem *psi,
2550 [in] NSTCEHITTEST nstceHitTest,
2551 [in] NSTCECLICKTYPE nstceClickType);
2553 HRESULT OnPropertyItemCommit(
2554 [in] IShellItem *psi);
2556 HRESULT OnItemStateChanging(
2557 [in] IShellItem *psi,
2558 [in] NSTCITEMSTATE nstcisMask,
2559 [in] NSTCITEMSTATE nstcisState);
2561 HRESULT OnItemStateChanged(
2562 [in] IShellItem *psi,
2563 [in] NSTCITEMSTATE nstcisMask,
2564 [in] NSTCITEMSTATE nstcisState);
2566 HRESULT OnSelectionChanged(
2567 [in] IShellItemArray *psiaSelection);
2569 HRESULT OnKeyboardInput(
2570 [in] UINT uMsg,
2571 [in] WPARAM wParam,
2572 [in] LPARAM lParam);
2574 HRESULT OnBeforeExpand(
2575 [in] IShellItem *psi);
2577 HRESULT OnAfterExpand(
2578 [in] IShellItem *psi);
2580 HRESULT OnBeginLabelEdit(
2581 [in] IShellItem *psi);
2583 HRESULT OnEndLabelEdit(
2584 [in] IShellItem *psi);
2586 HRESULT OnGetToolTip(
2587 [in] IShellItem *psi,
2588 [out, string, size_is(cchTip)] LPWSTR pszTip,
2589 [in] int cchTip);
2591 HRESULT OnBeforeItemDelete(
2592 [in] IShellItem *psi);
2594 HRESULT OnItemAdded(
2595 [in] IShellItem *psi,
2596 [in] BOOL fIsRoot);
2598 HRESULT OnItemDeleted(
2599 [in] IShellItem *psi,
2600 [in] BOOL fIsRoot);
2602 HRESULT OnBeforeContextMenu(
2603 [in, unique] IShellItem *psi,
2604 [in] REFIID riid,
2605 [out, iid_is(riid)] void **ppv);
2607 HRESULT OnAfterContextMenu(
2608 [in] IShellItem *psi,
2609 [in] IContextMenu *pcmIn,
2610 [in] REFIID riid,
2611 [out, iid_is(riid)] void **ppv);
2613 HRESULT OnBeforeStateImageChange(
2614 [in] IShellItem *psi);
2616 HRESULT OnGetDefaultIconIndex(
2617 [in] IShellItem *psi,
2618 [out] int *piDefaultIcon,
2619 [out] int *piOpenIcon);
2622 /*****************************************************************************
2623 * INameSpaceTreeControlCustomDraw interface
2626 object,
2627 uuid(2D3BA758-33EE-42D5-BB7B-5F3431D86C78),
2628 local
2631 interface INameSpaceTreeControlCustomDraw : IUnknown
2633 typedef struct NSTCCUSTOMDRAW
2635 IShellItem *psi;
2636 UINT uItemState;
2637 NSTCITEMSTATE nstcis;
2638 LPCWSTR pszText;
2639 int iImage;
2640 HIMAGELIST himl;
2641 int iLevel;
2642 int iIndent;
2643 } NSTCCUSTOMDRAW;
2645 HRESULT PrePaint(
2646 [in] HDC hdc,
2647 [in] RECT *prc,
2648 [out] LRESULT *plres);
2650 HRESULT PostPaint(
2651 [in] HDC hdc,
2652 [in] RECT *prc);
2654 HRESULT ItemPrePaint(
2655 [in] HDC hdc,
2656 [in] RECT *prc,
2657 [in, out] COLORREF *pclrText,
2658 [in, out] COLORREF *pclrTextBk,
2659 [out] LRESULT *plres);
2661 HRESULT ItemPostPaint(
2662 [in] HDC hdc,
2663 [in] RECT *prc,
2664 [in] NSTCCUSTOMDRAW *pnstccdItem);
2667 /*****************************************************************************
2668 * INameSpaceTreeControlDropHandler interface
2671 object,
2672 uuid(F9C665D6-C2F2-4C19-BF33-8322D7352F51),
2673 local
2675 interface INameSpaceTreeControlDropHandler : IUnknown
2677 HRESULT OnDragEnter(
2678 [in, unique] IShellItem *psiOver,
2679 [in] IShellItemArray *psiaData,
2680 [in] BOOL fOutsideSource,
2681 [in] DWORD grfKeyState,
2682 [in, out] DWORD *pdwEffect);
2684 HRESULT OnDragOver(
2685 [in, unique] IShellItem *psiOver,
2686 [in] IShellItemArray *psiaData,
2687 [in] DWORD grfKeyState,
2688 [in, out] DWORD *pdwEffect);
2690 HRESULT OnDragPosition(
2691 [in, unique] IShellItem *psiOver,
2692 [in] IShellItemArray *psiaData,
2693 [in] int iNewPosition,
2694 [in] int iOldPosition);
2696 HRESULT OnDrop(
2697 [in, unique] IShellItem *psiOver,
2698 [in] IShellItemArray *psiaData,
2699 [in] int iPosition,
2700 [in] DWORD grfKeyState,
2701 [in, out] DWORD *pdwEffect);
2703 HRESULT OnDropPosition(
2704 [in, unique] IShellItem *psiOver,
2705 [in] IShellItemArray *psiaData,
2706 [in] int iNewPosition,
2707 [in] int iOldPosition);
2709 HRESULT OnDragLeave(
2710 [in, unique] IShellItem *psiOver);
2712 cpp_quote("#define NSTCDHPOS_ONTOP -1")
2714 interface IFileDialog;
2716 typedef [v1_enum] enum FDE_OVERWRITE_RESPONSE
2718 FDEOR_DEFAULT = 0,
2719 FDEOR_ACCEPT = 1,
2720 FDEOR_REFUSE = 2
2721 } FDE_OVERWRITE_RESPONSE;
2723 typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
2725 FDESVR_DEFAULT = 0,
2726 FDESVR_ACCEPT = 1,
2727 FDESVR_REFUSE = 2
2728 } FDE_SHAREVIOLATION_RESPONSE;
2730 /*****************************************************************************
2731 * IFileDialogEvents interface
2734 object,
2735 uuid(973510DB-7D7F-452B-8975-74A85828D354),
2736 pointer_default(unique)
2738 interface IFileDialogEvents : IUnknown
2740 HRESULT OnFileOk(
2741 [in] IFileDialog *pfd);
2743 HRESULT OnFolderChanging(
2744 [in] IFileDialog *pfd,
2745 [in] IShellItem *psiFolder);
2747 HRESULT OnFolderChange(
2748 [in] IFileDialog *pfd);
2750 HRESULT OnSelectionChange(
2751 [in] IFileDialog *pfd);
2753 HRESULT OnShareViolation(
2754 [in] IFileDialog *pfd,
2755 [in] IShellItem *psi,
2756 [out] FDE_SHAREVIOLATION_RESPONSE *pResponse);
2758 HRESULT OnTypeChange(
2759 [in] IFileDialog *pfd);
2761 HRESULT OnOverwrite(
2762 [in] IFileDialog *pfd,
2763 [in] IShellItem *psi,
2764 [out] FDE_OVERWRITE_RESPONSE *pResponse);
2767 /*****************************************************************************
2768 * IModalWindow interface
2771 object,
2772 uuid(B4DB1657-70D7-485E-8E3E-6FCB5A5C1802),
2773 pointer_default(unique)
2775 interface IModalWindow : IUnknown
2777 [local]
2778 HRESULT Show(
2779 [in, unique, annotation("__in_opt")] HWND hwndOwner);
2781 [call_as(Show)]
2782 HRESULT RemoteShow(
2783 [in, unique] HWND hwndOwner);
2786 typedef [v1_enum] enum FDAP
2788 FDAP_BOTTOM = 0,
2789 FDAP_TOP = 1
2790 } FDAP;
2792 /*****************************************************************************
2793 * IFileDialog interface
2796 object,
2797 uuid(42F85136-DB7E-439C-85F1-E4075D135FC8),
2798 pointer_default(unique)
2800 interface IFileDialog : IModalWindow
2802 [v1_enum] enum _FILEOPENDIALOGOPTIONS
2804 FOS_OVERWRITEPROMPT = 0x00000002,
2805 FOS_STRICTFILETYPES = 0x00000004,
2806 FOS_NOCHANGEDIR = 0x00000008,
2807 FOS_PICKFOLDERS = 0x00000020,
2808 FOS_FORCEFILESYSTEM = 0x00000040,
2809 FOS_ALLNONSTORAGEITEMS = 0x00000080,
2810 FOS_NOVALIDATE = 0x00000100,
2811 FOS_ALLOWMULTISELECT = 0x00000200,
2812 FOS_PATHMUSTEXIST = 0x00000800,
2813 FOS_FILEMUSTEXIST = 0x00001000,
2814 FOS_CREATEPROMPT = 0x00002000,
2815 FOS_SHAREAWARE = 0x00004000,
2816 FOS_NOREADONLYRETURN = 0x00008000,
2817 FOS_NOTESTFILECREATE = 0x00010000,
2818 FOS_HIDEMRUPLACES = 0x00020000,
2819 FOS_HIDEPINNEDPLACES = 0x00040000,
2820 FOS_NODEREFERENCELINKS = 0x00100000,
2821 FOS_DONTADDTORECENT = 0x02000000,
2822 FOS_FORCESHOWHIDDEN = 0x10000000,
2823 FOS_DEFAULTNOMINIMODE = 0x20000000,
2824 FOS_FORCEPREVIEWPANEON = 0x40000000
2826 typedef DWORD FILEOPENDIALOGOPTIONS;
2828 HRESULT SetFileTypes(
2829 [in] UINT cFileTypes,
2830 [in, size_is(cFileTypes)] const COMDLG_FILTERSPEC *rgFilterSpec);
2832 HRESULT SetFileTypeIndex(
2833 [in] UINT iFileType);
2835 HRESULT GetFileTypeIndex(
2836 [out] UINT *piFileType);
2838 HRESULT Advise(
2839 [in] IFileDialogEvents *pfde,
2840 [out] DWORD *pdwCookie);
2842 HRESULT Unadvise(
2843 [in] DWORD dwCookie);
2845 HRESULT SetOptions(
2846 [in] FILEOPENDIALOGOPTIONS fos);
2848 HRESULT GetOptions(
2849 [in] FILEOPENDIALOGOPTIONS *pfos);
2851 HRESULT SetDefaultFolder(
2852 [in] IShellItem *psi);
2854 HRESULT SetFolder(
2855 [in] IShellItem *psi);
2857 HRESULT GetFolder(
2858 [out] IShellItem **ppsi);
2860 HRESULT GetCurrentSelection(
2861 [out] IShellItem **ppsi);
2863 HRESULT SetFileName(
2864 [in, string] LPCWSTR pszName);
2866 HRESULT GetFileName(
2867 [out, string] LPWSTR *pszName);
2869 HRESULT SetTitle(
2870 [in, string] LPCWSTR pszTitle);
2872 HRESULT SetOkButtonLabel(
2873 [in, string] LPCWSTR pszText);
2875 HRESULT SetFileNameLabel(
2876 [in, string] LPCWSTR pszLabel);
2878 HRESULT GetResult(
2879 [out] IShellItem **ppsi);
2881 HRESULT AddPlace(
2882 [in] IShellItem *psi,
2883 [in] FDAP fdap);
2885 HRESULT SetDefaultExtension(
2886 [in, string] LPCWSTR pszDefaultExtension);
2888 HRESULT Close(
2889 [in] HRESULT hr);
2891 HRESULT SetClientGuid(
2892 [in] REFGUID guid);
2894 HRESULT ClearClientData();
2896 HRESULT SetFilter(
2897 [in] IShellItemFilter *pFilter);
2900 /*****************************************************************************
2901 * IFileDialog2 interface
2904 object,
2905 uuid(61744FC7-85B5-4791-A9B0-272276309B13),
2906 pointer_default(unique)
2908 interface IFileDialog2 : IFileDialog
2910 HRESULT SetCancelButtonLabel(
2911 [in] LPCWSTR pszLabel);
2913 HRESULT SetNavigationRoot(
2914 [in] IShellItem *psi);
2917 /*****************************************************************************
2918 * IFileOperationProgressSink interface
2921 object,
2922 uuid(04B0F1A7-9490-44BC-96E1-4296A31252E2),
2923 pointer_default(unique)
2925 interface IFileOperationProgressSink : IUnknown
2927 HRESULT StartOperations();
2929 HRESULT FinishOperations(
2930 [in] HRESULT hrResult);
2932 HRESULT PreRenameItem(
2933 [in] DWORD dwFlags,
2934 [in] IShellItem *psiItem,
2935 [in, unique, string] LPCWSTR pszNewName);
2937 HRESULT PostRenameItem(
2938 [in] DWORD dwFlags,
2939 [in] IShellItem *psiItem,
2940 [in, string] LPCWSTR pszNewName,
2941 [in] HRESULT hrRename,
2942 [in] IShellItem *psiNewlyCreated);
2944 HRESULT PreMoveItem(
2945 [in] DWORD dwFlags,
2946 [in] IShellItem *psiItem,
2947 [in] IShellItem *psiDestinationFolder,
2948 [in, unique, string] LPCWSTR pszNewName);
2950 HRESULT PostMoveItem(
2951 [in] DWORD dwFlags,
2952 [in] IShellItem *psiItem,
2953 [in] IShellItem *psiDestinationFolder,
2954 [in, unique, string] LPCWSTR pszNewName,
2955 [in] HRESULT hrMove,
2956 [in] IShellItem *psiNewlyCreated);
2958 HRESULT PreCopyItem(
2959 [in] DWORD dwFlags,
2960 [in] IShellItem *psiItem,
2961 [in] IShellItem *psiDestinationFolder,
2962 [in, unique, string] LPCWSTR pszNewName);
2964 HRESULT PostCopyItem(
2965 [in] DWORD dwFlags,
2966 [in] IShellItem *psiItem,
2967 [in] IShellItem *psiDestinationFolder,
2968 [in, unique, string] LPCWSTR pszNewName,
2969 [in] HRESULT hrCopy,
2970 [in] IShellItem *psiNewlyCreated);
2972 HRESULT PreDeleteItem(
2973 [in] DWORD dwFlags,
2974 [in] IShellItem *psiItem);
2976 HRESULT PostDeleteItem(
2977 [in] DWORD dwFlags,
2978 [in] IShellItem *psiItem,
2979 [in] HRESULT hrDelete,
2980 [in] IShellItem *psiNewlyCreated);
2982 HRESULT PreNewItem(
2983 [in] DWORD dwFlags,
2984 [in] IShellItem *psiDestinationFolder,
2985 [in, unique, string] LPCWSTR pszNewName);
2987 HRESULT PostNewItem(
2988 [in] DWORD dwFlags,
2989 [in] IShellItem *psiDestinationFolder,
2990 [in, unique, string] LPCWSTR pszNewName,
2991 [in, unique, string] LPCWSTR pszTemplateName,
2992 [in] DWORD dwFileAttributes,
2993 [in] HRESULT hrNew,
2994 [in] IShellItem *psiNewItem);
2996 HRESULT UpdateProgress(
2997 [in] UINT iWorkTotal,
2998 [in] UINT iWorkSoFar);
3000 HRESULT ResetTimer();
3002 HRESULT PauseTimer();
3004 HRESULT ResumeTimer();
3007 /*****************************************************************************
3008 * IFileSaveDialog interface
3011 object,
3012 uuid(84BCCD23-5FDE-4CDB-AEA4-AF64B83D78AB),
3013 pointer_default(unique)
3015 interface IFileSaveDialog : IFileDialog
3017 HRESULT SetSaveAsItem(
3018 [in] IShellItem *psi);
3020 HRESULT SetProperties(
3021 [in] IPropertyStore *pStore);
3023 HRESULT SetCollectedProperties(
3024 [in] IPropertyDescriptionList *pList,
3025 [in] BOOL fAppendDefault);
3027 HRESULT GetProperties(
3028 [in] IPropertyStore **ppStore);
3030 HRESULT ApplyProperties(
3031 [in] IShellItem *psi,
3032 [in] IPropertyStore *pStore,
3033 [in, unique] HWND hwnd,
3034 [in, unique] IFileOperationProgressSink *pSink);
3038 /*****************************************************************************
3039 * IFileOpenDialog interface
3042 object,
3043 uuid(D57C7288-D4AD-4768-BE02-9D969532D960),
3044 pointer_default(unique)
3046 interface IFileOpenDialog : IFileDialog
3048 HRESULT GetResults(
3049 [out] IShellItemArray **ppenum);
3051 HRESULT GetSelectedItems(
3052 [out] IShellItemArray **ppsai);
3055 typedef [v1_enum] enum CDCONTROLSTATEF
3057 CDCS_INACTIVE = 0x0,
3058 CDCS_ENABLED = 0x1,
3059 CDCS_VISIBLE = 0x2,
3060 CDCS_ENABLEDVISIBLE = 0x3
3061 } CDCONTROLSTATEF;
3062 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
3063 /*****************************************************************************
3064 * IFileDialogCustomize interface
3067 object,
3068 uuid(E6FDD21A-163F-4975-9C8C-A69F1BA37034),
3069 pointer_default(unique)
3071 interface IFileDialogCustomize : IUnknown
3073 HRESULT EnableOpenDropDown(
3074 [in] DWORD dwIDCtl);
3076 HRESULT AddMenu(
3077 [in] DWORD dwIDCtl,
3078 [in, string] LPCWSTR pszLabel);
3080 HRESULT AddPushButton(
3081 [in] DWORD dwIDCtl,
3082 [in, string] LPCWSTR pszLabel);
3084 HRESULT AddComboBox(
3085 [in] DWORD dwIDCtl);
3087 HRESULT AddRadioButtonList(
3088 [in] DWORD dwIDCtl);
3090 HRESULT AddCheckButton(
3091 [in] DWORD dwIDCtl,
3092 [in, string] LPCWSTR pszLabel,
3093 [in] BOOL bChecked);
3095 HRESULT AddEditBox(
3096 [in] DWORD dwIDCtl,
3097 [in, string] LPCWSTR pszText);
3099 HRESULT AddSeparator(
3100 [in] DWORD dwIDCtl);
3102 HRESULT AddText(
3103 [in] DWORD dwIDCtl,
3104 [in, string] LPCWSTR pszText);
3106 HRESULT SetControlLabel(
3107 [in] DWORD dwIDCtl,
3108 [in, string] LPCWSTR pszLabel);
3110 HRESULT GetControlState(
3111 [in] DWORD dwIDCtl,
3112 [out] CDCONTROLSTATEF *pdwState);
3114 HRESULT SetControlState(
3115 [in] DWORD dwIDCtl,
3116 [in] CDCONTROLSTATEF dwState);
3118 HRESULT GetEditBoxText(
3119 [in] DWORD dwIDCtl,
3120 [out, string] WCHAR **ppszText);
3122 HRESULT SetEditBoxText(
3123 [in] DWORD dwIDCtl,
3124 [in, string] LPCWSTR pszText);
3126 HRESULT GetCheckButtonState(
3127 [in] DWORD dwIDCtl,
3128 [out] BOOL *pbChecked);
3130 HRESULT SetCheckButtonState(
3131 [in] DWORD dwIDCtl,
3132 [in] BOOL bChecked);
3134 HRESULT AddControlItem(
3135 [in] DWORD dwIDCtl,
3136 [in] DWORD dwIDItem,
3137 [in] LPCWSTR pszLabel);
3139 HRESULT RemoveControlItem(
3140 [in] DWORD dwIDCtl,
3141 [in] DWORD dwIDItem);
3143 HRESULT RemoveAllControlItems(
3144 [in] DWORD dwIDCtl);
3146 HRESULT GetControlItemState(
3147 [in] DWORD dwIDCtl,
3148 [in] DWORD dwIDItem,
3149 [out] CDCONTROLSTATEF *pdwState);
3151 HRESULT SetControlItemState(
3152 [in] DWORD dwIDCtl,
3153 [in] DWORD dwIDItem,
3154 [in] CDCONTROLSTATEF dwState);
3156 HRESULT GetSelectedControlItem(
3157 [in] DWORD dwIDCtl,
3158 [out] DWORD *pdwIDItem);
3160 HRESULT SetSelectedControlItem(
3161 [in] DWORD dwIDCtl,
3162 [in] DWORD dwIDItem);
3164 HRESULT StartVisualGroup(
3165 [in] DWORD dwIDCtl,
3166 [in, string] LPCWSTR pszLabel);
3168 HRESULT EndVisualGroup();
3170 HRESULT MakeProminent(
3171 [in] DWORD dwIDCtl);
3173 HRESULT SetControlItemText(
3174 [in] DWORD dwIDCtl,
3175 [in] DWORD dwIDItem,
3176 [in, string] LPCWSTR pszLabel);
3179 /*****************************************************************************
3180 * IFileDialogControlEvents interface
3183 object,
3184 uuid(36116642-D713-4B97-9B83-7484A9D00433),
3185 pointer_default(unique)
3187 interface IFileDialogControlEvents : IUnknown
3189 HRESULT OnItemSelected(
3190 [in] IFileDialogCustomize *pfdc,
3191 [in] DWORD dwIDCtl,
3192 [in] DWORD dwIDItem);
3194 HRESULT OnButtonClicked(
3195 [in] IFileDialogCustomize *pfdc,
3196 [in] DWORD dwIDCtl);
3198 HRESULT OnCheckButtonToggled(
3199 [in] IFileDialogCustomize *pfdc,
3200 [in] BOOL dwIDCtl,
3201 [in] BOOL bChecked);
3203 HRESULT OnControlActivating(
3204 [in] IFileDialogCustomize *pfdc,
3205 [in] DWORD dwIDCtl);
3208 typedef [v1_enum] enum tagKF_CATEGORY
3210 KF_CATEGORY_VIRTUAL = 0x00000001,
3211 KF_CATEGORY_FIXED = 0x00000002,
3212 KF_CATEGORY_COMMON = 0x00000003,
3213 KF_CATEGORY_PERUSER = 0x00000004
3214 } KF_CATEGORY;
3216 typedef [v1_enum] enum tagKF_REDIRECTION_CAPABILITIES
3218 KF_REDIRECTION_CAPABILITIES_ALLOW_ALL = 0x000000ff,
3219 KF_REDIRECTION_CAPABILITIES_REDIRECTABLE = 0x00000001,
3220 KF_REDIRECTION_CAPABILITIES_DENY_ALL = 0x000fff00,
3221 KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED = 0x00000100,
3222 KF_REDIRECTION_CAPABILITIES_DENY_POLICY = 0x00000200,
3223 KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS = 0x00000400
3224 } KF_REDIRECTION_CAPABILITIES;
3226 typedef [v1_enum] enum tagKF_DEFINITION_FLAGS
3228 KFDF_LOCAL_REDIRECT_ONLY = 0x00000002,
3229 KFDF_ROAMABLE = 0x00000004,
3230 KFDF_PRECREATE = 0x00000008,
3231 KFDF_STREAM = 0x00000010,
3232 KFDF_PUBLISHEXPANDEDPATH = 0x00000020
3233 } KF_DEFINITION_FLAGS;
3235 typedef struct tagKNOWNFOLDER_DEFINITION
3237 KF_CATEGORY category;
3238 LPWSTR pszName;
3239 LPWSTR pszDescription;
3240 KNOWNFOLDERID fidParent;
3241 LPWSTR pszRelativePath;
3242 LPWSTR pszParsingName;
3243 LPWSTR pszTooltip;
3244 LPWSTR pszLocalizedName;
3245 LPWSTR pszIcon;
3246 LPWSTR pszSecurity;
3247 DWORD dwAttributes;
3248 KF_DEFINITION_FLAGS kfdFlags;
3249 FOLDERTYPEID ftidType;
3250 } KNOWNFOLDER_DEFINITION;
3253 object,
3254 uuid(3aa7af7e-9b36-420C-a8e3-f77d4674a488),
3255 pointer_default(ref)
3257 interface IKnownFolder : IUnknown
3259 HRESULT GetId(
3260 [out] KNOWNFOLDERID *pkfid);
3262 HRESULT GetCategory(
3263 [out] KF_CATEGORY *pCategory);
3265 HRESULT GetShellItem(
3266 [in] DWORD dwFlags,
3267 [in] REFIID riid,
3268 [out, iid_is(riid)] void **ppv);
3270 HRESULT GetPath(
3271 [in] DWORD dwFlags,
3272 [out, string] LPWSTR *ppszPath);
3274 HRESULT SetPath(
3275 [in] DWORD dwFlags,
3276 [in, string] LPCWSTR pszPath);
3278 HRESULT GetIDList(
3279 [in] DWORD dwFlags,
3280 [out] PIDLIST_ABSOLUTE *ppidl);
3282 HRESULT GetFolderType(
3283 [out] FOLDERTYPEID *pftid);
3285 HRESULT GetRedirectionCapabilities(
3286 [out] KF_REDIRECTION_CAPABILITIES *pCapabilities);
3288 HRESULT GetFolderDefinition(
3289 [out] KNOWNFOLDER_DEFINITION *pKFD);
3292 typedef [v1_enum] enum tagKF_REDIRECT_FLAGS
3294 KF_REDIRECT_USER_EXCLUSIVE = 0x00000001,
3295 KF_REDIRECT_COPY_SOURCE_DACL = 0x00000002,
3296 KF_REDIRECT_OWNER_USER = 0x00000004,
3297 KF_REDIRECT_SET_OWNER_EXPLICIT = 0x00000008,
3298 KF_REDIRECT_CHECK_ONLY = 0x00000010,
3299 KF_REDIRECT_WITH_UI = 0x00000020,
3300 KF_REDIRECT_UNPIN = 0x00000040,
3301 KF_REDIRECT_PIN = 0x00000080,
3302 KF_REDIRECT_COPY_CONTENTS = 0x00000200,
3303 KF_REDIRECT_DEL_SOURCE_CONTENTS = 0x00000400,
3304 KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS = 0x00000800
3305 } KF_REDIRECT_FLAGS;
3308 object,
3309 uuid(8BE2D872-86AA-4d47-B776-32CCA40C7018),
3310 pointer_default(ref)
3312 interface IKnownFolderManager : IUnknown
3314 typedef [v1_enum] enum tagFFFP_MODE
3316 FFFP_EXACTMATCH,
3317 FFFP_NEARESTPARENTMATCH
3318 } FFFP_MODE;
3320 HRESULT FolderIdFromCsidl(
3321 [in] int nCsidl,
3322 [out] KNOWNFOLDERID *pfid);
3324 HRESULT FolderIdToCsidl(
3325 [in] REFKNOWNFOLDERID rfid,
3326 [out] int *pnCsidl);
3328 HRESULT GetFolderIds(
3329 [out, size_is(, *pCount)] KNOWNFOLDERID **ppKFId,
3330 [in, out] UINT *pCount);
3332 HRESULT GetFolder(
3333 [in] REFKNOWNFOLDERID rfid,
3334 [out] IKnownFolder **ppkf);
3336 HRESULT GetFolderByName(
3337 [in, string] LPCWSTR pszCanonicalName,
3338 [out] IKnownFolder **ppkf);
3340 HRESULT RegisterFolder(
3341 [in] REFKNOWNFOLDERID rfid,
3342 [in] KNOWNFOLDER_DEFINITION const *pKFD);
3344 HRESULT UnregisterFolder(
3345 [in] REFKNOWNFOLDERID rfid);
3347 HRESULT FindFolderFromPath(
3348 [in, string] LPCWSTR pszPath,
3349 [in] FFFP_MODE mode,
3350 [out] IKnownFolder **ppkf);
3352 HRESULT FindFolderFromIDList(
3353 [in] PCIDLIST_ABSOLUTE pidl,
3354 [out] IKnownFolder **ppkf);
3356 HRESULT Redirect(
3357 [in] REFKNOWNFOLDERID rfid,
3358 [in, unique] HWND hwnd,
3359 [in] KF_REDIRECT_FLAGS flags,
3360 [in, unique, string] LPCWSTR pszTargetPath,
3361 [in] UINT cFolders,
3362 [in, size_is(cFolders), unique] KNOWNFOLDERID const *pExclusion,
3363 [out, string] LPWSTR *ppszError);
3366 /* function for releasing structure returned from IKnownFolder::GetFolderDefinition */
3367 cpp_quote("static inline void FreeKnownFolderDefinitionFields(KNOWNFOLDER_DEFINITION *pKFD)")
3368 cpp_quote("{")
3369 cpp_quote(" CoTaskMemFree(pKFD->pszName);")
3370 cpp_quote(" CoTaskMemFree(pKFD->pszDescription);")
3371 cpp_quote(" CoTaskMemFree(pKFD->pszRelativePath);")
3372 cpp_quote(" CoTaskMemFree(pKFD->pszParsingName);")
3373 cpp_quote(" CoTaskMemFree(pKFD->pszTooltip);")
3374 cpp_quote(" CoTaskMemFree(pKFD->pszLocalizedName);")
3375 cpp_quote(" CoTaskMemFree(pKFD->pszIcon);")
3376 cpp_quote(" CoTaskMemFree(pKFD->pszSecurity);")
3377 cpp_quote("}")
3379 typedef [v1_enum] enum ASSOCIATIONLEVEL {
3380 AL_MACHINE,
3381 AL_EFFECTIVE,
3382 AL_USER
3383 } ASSOCIATIONLEVEL;
3385 typedef [v1_enum] enum ASSOCIATIONTYPE {
3386 AT_FILEEXTENSION,
3387 AT_URLPROTOCOL,
3388 AT_STARTMENUCLIENT,
3389 AT_MIMETYPE
3390 } ASSOCIATIONTYPE;
3393 object,
3394 uuid(4e530b0a-e611-4c77-a3ac-9031d022281b),
3395 pointer_default(unique)
3397 interface IApplicationAssociationRegistration : IUnknown
3399 HRESULT QueryCurrentDefault(
3400 [in, string] LPCWSTR pszQuery,
3401 [in] ASSOCIATIONTYPE atQueryType,
3402 [in] ASSOCIATIONLEVEL alQueryLevel,
3403 [out, string] LPWSTR *ppszAssociation);
3405 HRESULT QueryAppIsDefault(
3406 [in, string] LPCWSTR pszQuery,
3407 [in] ASSOCIATIONTYPE atQueryType,
3408 [in] ASSOCIATIONLEVEL alQueryLevel,
3409 [in, string] LPCWSTR pszAppRegistryName,
3410 [out] BOOL *pfDefault);
3412 HRESULT QueryAppIsDefaultAll(
3413 [in] ASSOCIATIONLEVEL alQueryLevel,
3414 [in, string] LPCWSTR pszAppRegistryName,
3415 [out] BOOL* pfDefault);
3417 HRESULT SetAppAsDefault(
3418 [in, string] LPCWSTR pszAppRegistryName,
3419 [in, string] LPCWSTR pszSet,
3420 [in] ASSOCIATIONTYPE atSetType);
3422 HRESULT SetAppAsDefaultAll(
3423 [in, string] LPCWSTR pszAppRegistryName);
3425 HRESULT ClearUserAssociations();
3429 uuid(6332debf-87b5-4670-90c0-5e57b408a49e),
3430 object,
3431 pointer_default(unique)
3433 interface ICustomDestinationList : IUnknown
3435 typedef [v1_enum] enum KNOWNDESTCATEGORY {
3436 KDC_FREQUENT = 1,
3437 KDC_RECENT
3438 } KNOWNDESTCATEGORY;
3440 HRESULT SetAppID([in, string] LPCWSTR pszAppID);
3442 HRESULT BeginList(
3443 [out] UINT *pcMinSlots,
3444 [in] REFIID riid,
3445 [out, iid_is(riid)] void **ppv);
3447 HRESULT AppendCategory(
3448 [in, string] LPCWSTR pszCategory,
3449 [in] IObjectArray *poa);
3451 HRESULT AppendKnownCategory([in] KNOWNDESTCATEGORY category);
3452 HRESULT AddUserTasks([in] IObjectArray *poa);
3453 HRESULT CommitList();
3455 HRESULT GetRemovedDestinations(
3456 [in] REFIID riid,
3457 [out, iid_is(riid)] void **ppv);
3459 HRESULT DeleteList([in, unique, string] LPCWSTR pszAppID);
3460 HRESULT AbortList();
3464 uuid(ddefe873-6997-4e68-be26-39b633adbe12),
3465 object,
3466 pointer_default(unique)
3468 interface IQueryCancelAutoPlay : IUnknown
3470 HRESULT AllowAutoPlay([in, string] LPCWSTR path,
3471 [in] DWORD content_type,
3472 [in, string] LPCWSTR label,
3473 [in] DWORD serial_number);
3477 uuid(d594d0d8-8da7-457b-b3b4-ce5dbaac0b88),
3478 pointer_default(unique)
3480 interface ITransferAdviseSink : IUnknown
3482 [v1_enum] enum _TRANSFER_ADVISE_STATE
3484 TS_NONE = 0,
3485 TS_PERFORMING = 1,
3486 TS_PREPARING = 2,
3487 TS_INDETERMINATE = 4
3489 typedef DWORD TRANSFER_ADVISE_STATE;
3491 HRESULT UpdateProgress([in] ULONGLONG size_current,
3492 [in] ULONGLONG size_total,
3493 [in] INT files_current,
3494 [in] INT files_total,
3495 [in] INT folders_current,
3496 [in] INT folders_total);
3497 HRESULT UpdateTransferState([in] TRANSFER_ADVISE_STATE state);
3498 HRESULT ConfirmOverwrite([in] IShellItem *source,
3499 [in] IShellItem *dest_parent,
3500 [in, string] LPCWSTR name);
3501 HRESULT ConfirmEncryptLoss([in] IShellItem *source);
3502 HRESULT FileFailure([in] IShellItem *item,
3503 [in, unique, string] LPCWSTR itemname,
3504 [in] HRESULT hr,
3505 [in, out, unique, size_is(crename)] LPWSTR rename,
3506 [in] ULONG crename);
3507 HRESULT SubStreamFailure([in] IShellItem *item,
3508 [in, string] LPCWSTR stream,
3509 [in] HRESULT hr);
3510 HRESULT PropertyFailure([in] IShellItem *item,
3511 [in, unique] const PROPERTYKEY *key,
3512 [in] HRESULT hr);
3515 [v1_enum] enum _TRANSFER_SOURCE_FLAGS
3517 TSF_NORMAL = 0,
3518 TSF_FAIL_EXIST = 0,
3519 TSF_RENAME_EXIST = 0x1,
3520 TSF_OVERWRITE_EXIST = 0x2,
3521 TSF_ALLOW_DECRYPTION = 0x4,
3522 TSF_NO_SECURITY = 0x8,
3523 TSF_COPY_CREATION_TIME = 0x10,
3524 TSF_COPY_WRITE_TIME = 0x20,
3525 TSF_USE_FULL_ACCESS = 0x40,
3526 TSF_DELETE_RECYCLE_IF_POSSIBLE = 0x80,
3527 TSF_COPY_HARD_LINK = 0x100,
3528 TSF_COPY_LOCALIZED_NAME = 0x200,
3529 TSF_MOVE_AS_COPY_DELETE = 0x400,
3530 TSF_SUSPEND_SHELLEVENTS = 0x800
3532 typedef DWORD TRANSFER_SOURCE_FLAGS;
3535 uuid(00adb003-bde9-45c6-8e29-d09f9353e108),
3536 object,
3537 pointer_default(unique)
3539 interface ITransferSource : IUnknown
3541 HRESULT Advise([in] ITransferAdviseSink *sink, [out] DWORD *cookie);
3542 HRESULT Unadvise([in] DWORD cookie);
3543 HRESULT SetProperties([in] IPropertyChangeArray *array);
3544 HRESULT OpenItem([in] IShellItem *item,
3545 [in] TRANSFER_SOURCE_FLAGS flags,
3546 [in] REFIID riid,
3547 [out, iid_is(riid)] void **ppv);
3548 HRESULT MoveItem([in] IShellItem *item,
3549 [in] IShellItem *parent_dest,
3550 [in, string] LPCWSTR name_dest,
3551 [in] TRANSFER_SOURCE_FLAGS flags,
3552 [out] IShellItem **newitem);
3553 HRESULT RecycleItem([in] IShellItem *source,
3554 [in] IShellItem *parent_dest,
3555 [in] TRANSFER_SOURCE_FLAGS flags,
3556 [out] IShellItem **new_dest);
3557 HRESULT RemoveItem([in] IShellItem *source, [in] TRANSFER_SOURCE_FLAGS flags);
3558 HRESULT RenameItem([in] IShellItem *source,
3559 [in, string] LPCWSTR newname,
3560 [in] TRANSFER_SOURCE_FLAGS flags,
3561 [out] IShellItem **new_dest);
3562 HRESULT LinkItem([in] IShellItem *source,
3563 [in] IShellItem *parent_dest,
3564 [in, unique, string] LPCWSTR new_name,
3565 [in] TRANSFER_SOURCE_FLAGS flags,
3566 [out] IShellItem **new_dest);
3567 HRESULT ApplyPropertiesToItem([in] IShellItem *source, [out] IShellItem **newitem);
3568 HRESULT GetDefaultDestinationName([in] IShellItem *source,
3569 [in] IShellItem *parent_dest,
3570 [out, string] LPWSTR *dest_name);
3571 HRESULT EnterFolder([in] IShellItem *child_folder);
3572 HRESULT LeaveFolder([in] IShellItem *child_folder);
3576 uuid(48addd32-3ca5-4124-abe3-b5a72531b207),
3577 object,
3578 pointer_default(unique)
3580 interface ITransferDestination : IUnknown
3582 HRESULT Advise([in] ITransferAdviseSink *sink, [out] DWORD *cookie);
3583 HRESULT Unadvise([in] DWORD cookie);
3584 HRESULT CreateItem([in, string] LPCWSTR name,
3585 [in] DWORD attr,
3586 [in] ULONGLONG size,
3587 [in] TRANSFER_SOURCE_FLAGS flags,
3588 [in] REFIID riid,
3589 [out, iid_is(riid)] void **ppv,
3590 [in] REFIID resources,
3591 [out, iid_is(riid)] void **presources);
3595 uuid(92218cab-ecaa-4335-8133-807fd234c2ee),
3596 object,
3597 pointer_default(unique)
3599 interface IAssocHandlerInvoker : IUnknown
3601 HRESULT SupportsSelection();
3602 HRESULT Invoke();
3606 uuid(f04061ac-1659-4a3f-a954-775aa57fc083),
3607 object,
3608 pointer_default(unique)
3610 interface IAssocHandler : IUnknown
3612 HRESULT GetName([out, string] LPWSTR *name);
3613 HRESULT GetUIName([out, string] LPWSTR *uiname);
3614 HRESULT GetIconLocation([out, string] LPWSTR *path,
3615 [out] int *index);
3616 HRESULT IsRecommended();
3617 HRESULT MakeDefault([in, string] LPCWSTR description);
3618 HRESULT Invoke([in] IDataObject *object);
3619 HRESULT CreateInvoker([in] IDataObject *object,
3620 [out] IAssocHandlerInvoker **invoker);
3624 uuid(973810ae-9599-4b88-9e4d-6ee98c9552da),
3625 object,
3626 pointer_default(unique)
3628 interface IEnumAssocHandlers : IUnknown
3630 HRESULT Next([in] ULONG count,
3631 [out, size_is(count), length_is(*fetched)] IAssocHandler **handlers,
3632 [out] ULONG *fetched);
3635 typedef enum ASSOC_FILTER
3637 ASSOC_FILTER_NONE = 0,
3638 ASSOC_FILTER_RECOMMENDED
3639 } ASSOC_FILTER;
3640 cpp_quote("HRESULT WINAPI SHAssocEnumHandlers(PCWSTR extra, ASSOC_FILTER filter, IEnumAssocHandlers **handlersenum);")
3642 /*****************************************************************************
3643 * ShellObjects typelibrary
3646 uuid(50A7E9B1-70EF-11D1-B75A-00A0C90564FE),
3647 lcid(0x0000),
3648 version(1.0)
3650 library ShellObjects
3653 uuid(71F96385-DDD6-48D3-A0C1-AE06E8B055FB)
3655 coclass ExplorerBrowser
3657 interface IExplorerBrowser;
3661 uuid(DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7)
3663 coclass FileOpenDialog
3665 interface IFileOpenDialog;
3669 uuid(C0B4E2F3-BA21-4773-8DBA-335EC946EB8B)
3671 coclass FileSaveDialog
3673 interface IFileSaveDialog;
3677 uuid(AE054212-3535-4430-83ED-D501AA6680E6)
3679 coclass NamespaceTreeControl
3681 interface INameSpaceTreeControl2;
3685 uuid(4df0c730-df9d-4ae3-9153-aa6b82e9795a)
3687 coclass KnownFolderManager
3689 interface IKnownFolderManager;
3693 uuid(591209c7-767b-42b2-9fba-44ee4615f2c7)
3695 coclass ApplicationAssociationRegistration
3697 interface IApplicationAssociationRegistration;
3701 uuid(00021401-0000-0000-c000-000000000046)
3703 coclass ShellLink
3705 interface IShellLinkW;
3709 uuid(56fdf344-fd6d-11d0-958a-006097c9a090)
3711 coclass TaskbarList
3713 interface ITaskbarList4;
3717 uuid(77f10cf0-3db5-4966-b520-b7c54fd35ed6)
3719 coclass DestinationList {
3720 interface ICustomDestinationList;
3724 uuid(2d3468c1-36a7-43b6-ac24-d3f02fd9607a)
3726 coclass EnumerableObjectCollection
3728 interface IEnumObjects;
3732 uuid(331f1768-05a9-4ddd-b86e-dae34ddc998a)
3734 coclass QueryCancelAutoPlay
3736 interface IQueryCancelAutoPlay;