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
27 import "servprov.idl";
30 /* FIXME: import "prsht.idl";*/
34 /* FIXME: import "structuredquery.idl"; */
36 cpp_quote("/* FIXME: #include <sherrors.h> */")
39 /*****************************************************************************
40 * IPersistFolder interface
44 uuid(000214ea-0000-0000-c000-000000000046),
45 pointer_default(unique)
47 interface IPersistFolder : IPersist
49 typedef IPersistFolder *LPPERSISTFOLDER;
51 HRESULT Initialize( [in] LPCITEMIDLIST pidl );
55 /*****************************************************************************
56 * IPersistFolder2 interface
60 uuid(1ac3d9f0-175c-11d1-95be-00609797ea4f),
61 pointer_default(unique)
63 interface IPersistFolder2 : IPersistFolder
65 typedef IPersistFolder2 *LPPERSISTFOLDER2;
67 HRESULT GetCurFolder( [out] LPITEMIDLIST *ppidl );
71 /*****************************************************************************
72 * IPersistIDList interface
76 uuid(1079acfc-29bd-11d3-8e0d-00c04f6837d5),
77 pointer_default(unique)
79 interface IPersistIDList : IPersist
81 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
82 HRESULT GetIDList( [out] LPITEMIDLIST *ppidl );
86 /*****************************************************************************
87 * IEnumIDList interface
91 uuid(000214f2-0000-0000-c000-000000000046),
92 pointer_default(unique)
94 interface IEnumIDList : IUnknown
96 typedef IEnumIDList *LPENUMIDLIST;
100 [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
101 [out] ULONG *pceltFetched);
103 HRESULT Skip( [in] ULONG celt );
105 HRESULT Clone( [out] IEnumIDList **ppenum );
108 /*****************************************************************************
109 * IShellPropSheetExt interface
112 typedef LPARAM LPFNSVADDPROPSHEETPAGE;
114 cpp_quote("#include <prsht.h>")
115 cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
120 uuid(000214E9-0000-0000-C000-000000000046),
121 pointer_default(unique),
124 interface IShellPropSheetExt : IUnknown
126 enum tagSHELLPROPSHEETEXTPAGEID {
127 EXPPS_FILETYPES = 0x1
133 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
137 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
140 typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
142 /*****************************************************************************
143 * IShellFolder interface
147 uuid(000214e6-0000-0000-c000-000000000046),
148 pointer_default(unique)
150 interface IShellFolder : IUnknown
152 typedef IShellFolder * LPSHELLFOLDER;
154 typedef enum tagSHGDN
158 SHGDN_FOREDITING = 0x1000,
159 SHGDN_INCLUDE_NONFILESYS = 0x2000,
160 SHGDN_FORADDRESSBAR = 0x4000,
161 SHGDN_FORPARSING = 0x8000
164 typedef DWORD SHGDNF;
168 SHCONTF_FOLDERS = 32,
169 SHCONTF_NONFOLDERS = 64,
170 SHCONTF_INCLUDEHIDDEN = 128,
171 SHCONTF_INIT_ON_FIRST_NEXT = 256,
172 SHCONTF_NETPRINTERSRCH = 512,
173 SHCONTF_SHAREABLE = 1024,
174 SHCONTF_STORAGE = 2048
177 typedef DWORD SHCONTF;
179 cpp_quote("#define SFGAO_CANCOPY DROPEFFECT_COPY")
180 cpp_quote("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
181 cpp_quote("#define SFGAO_CANLINK DROPEFFECT_LINK")
182 cpp_quote("#define SFGAO_STORAGE 0x00000008L")
183 cpp_quote("#define SFGAO_CANRENAME 0x00000010L")
184 cpp_quote("#define SFGAO_CANDELETE 0x00000020L")
185 cpp_quote("#define SFGAO_HASPROPSHEET 0x00000040L")
186 cpp_quote("#define SFGAO_DROPTARGET 0x00000100L")
187 cpp_quote("#define SFGAO_CAPABILITYMASK 0x00000177L")
188 cpp_quote("#define SFGAO_ENCRYPTED 0x00002000L")
189 cpp_quote("#define SFGAO_ISSLOW 0x00004000L")
190 cpp_quote("#define SFGAO_GHOSTED 0x00008000L")
191 cpp_quote("#define SFGAO_LINK 0x00010000L")
192 cpp_quote("#define SFGAO_SHARE 0x00020000L")
193 cpp_quote("#define SFGAO_READONLY 0x00040000L")
194 cpp_quote("#define SFGAO_HIDDEN 0x00080000L")
195 cpp_quote("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
196 cpp_quote("#define SFGAO_FILESYSANCESTOR 0x10000000L")
197 cpp_quote("#define SFGAO_FOLDER 0x20000000L")
198 cpp_quote("#define SFGAO_FILESYSTEM 0x40000000L")
199 cpp_quote("#define SFGAO_HASSUBFOLDER 0x80000000L")
200 cpp_quote("#define SFGAO_CONTENTSMASK 0x80000000L")
201 cpp_quote("#define SFGAO_VALIDATE 0x01000000L")
202 cpp_quote("#define SFGAO_REMOVABLE 0x02000000L")
203 cpp_quote("#define SFGAO_COMPRESSED 0x04000000L")
204 cpp_quote("#define SFGAO_BROWSABLE 0x08000000L")
205 cpp_quote("#define SFGAO_NONENUMERATED 0x00100000L")
206 cpp_quote("#define SFGAO_NEWCONTENT 0x00200000L")
207 cpp_quote("#define SFGAO_STREAM 0x00400000L")
208 cpp_quote("#define SFGAO_STORAGEANCESTOR 0x00800000L")
210 typedef ULONG SFGAOF;
212 HRESULT ParseDisplayName(
214 [in] LPBC pbcReserved,
215 [in, string] LPOLESTR lpszDisplayName,
216 [out] ULONG *pchEaten,
217 [out] LPITEMIDLIST *ppidl,
218 [in, out, unique] ULONG *pdwAttributes);
222 [in] SHCONTF grfFlags,
223 [out] IEnumIDList **ppenumIDList);
225 HRESULT BindToObject(
226 [in] LPCITEMIDLIST pidl,
227 [in] LPBC pbcReserved,
229 [out, iid_is(riid)] void **ppvOut);
231 HRESULT BindToStorage(
232 [in] LPCITEMIDLIST pidl,
233 [in] LPBC pbcReserved,
235 [out, iid_is(riid)] void **ppvObj);
239 [in] LPCITEMIDLIST pidl1,
240 [in] LPCITEMIDLIST pidl2);
242 HRESULT CreateViewObject(
245 [out, iid_is(riid)] void **ppvOut);
247 HRESULT GetAttributesOf(
249 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
250 [in, out] SFGAOF *rgfInOut);
252 HRESULT GetUIObjectOf(
255 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
257 [in, out, unique] UINT *prgfInOut,
258 [out, iid_is(riid)] void **ppvOut);
260 HRESULT GetDisplayNameOf(
261 [in] LPCITEMIDLIST pidl,
263 [out] STRRET *lpName);
267 [in] LPCITEMIDLIST pidl,
268 [in, string] LPCOLESTR lpszName,
270 [out] LPITEMIDLIST *ppidlOut);
274 /*****************************************************************************
275 * IEnumExtraSearch interface
279 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
280 pointer_default(unique)
282 interface IEnumExtraSearch : IUnknown
284 typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
289 WCHAR wszFriendlyName[80];
291 *WCHAR wszMenuText[80];
292 *WCHAR wszHelpText[MAX_PATH];
296 *WCHAR wszIcon[MAX_PATH+10];
297 *WCHAR wszGreyIcon[MAX_PATH+10];
298 *WCHAR wszClrIcon[MAX_PATH+10];
300 } EXTRASEARCH, *LPEXTRASEARCH;
304 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
305 [out] ULONG *pceltFetched);
307 HRESULT Skip( [in] ULONG celt );
309 HRESULT Clone( [out] IEnumExtraSearch **ppenum );
313 /*****************************************************************************
314 * IShellFolder2 interface
318 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
319 pointer_default(unique)
321 interface IShellFolder2 : IShellFolder
327 } SHCOLUMNID, *LPSHCOLUMNID;
328 typedef const SHCOLUMNID *LPCSHCOLUMNID;
330 HRESULT GetDefaultSearchGUID( [out] GUID *lpguid );
331 HRESULT EnumSearches( [out] IEnumExtraSearch **ppenum );
332 HRESULT GetDefaultColumn( [in] DWORD dwReserved, [out] ULONG *pSort, [out] ULONG *pDisplay );
333 HRESULT GetDefaultColumnState( [in] UINT iColumn, [out] SHCOLSTATEF *pcsFlags );
334 HRESULT GetDetailsEx( [in] LPCITEMIDLIST pidl, [in] const SHCOLUMNID *pscid, [out] VARIANT *pv);
335 HRESULT GetDetailsOf( [in] LPCITEMIDLIST pidl, [in] UINT iColumn, [out] SHELLDETAILS *psd);
336 HRESULT MapColumnToSCID( [in] UINT iColumn, [in] SHCOLUMNID *pscid );
339 /*****************************************************************************
340 * IShellItem interface
344 uuid(43826d1e-e718-42ee-bc55-a1e261c37bfe),
345 pointer_default(unique)
347 interface IShellItem : IUnknown
349 typedef [v1_enum] enum {
350 SIGDN_NORMALDISPLAY = 0,
351 SIGDN_PARENTRELATIVEPARSING = 0x80018001,
352 SIGDN_DESKTOPABSOLUTEPARSING = 0x80028000,
353 SIGDN_PARENTRELATIVEEDITING = 0x80031001,
354 SIGDN_DESKTOPABSOLUTEEDITING = 0x8004c000,
355 SIGDN_FILESYSPATH = 0x80058000,
356 SIGDN_URL = 0x80068000,
357 SIGDN_PARENTRELATIVEFORADDRESSBAR = 0x8007c001,
358 SIGDN_PARENTRELATIVE = 0x80080001
359 } SIGDN; /* & 0xFFFF => SHGDN */
361 [v1_enum] enum _SICHINTF
363 SICHINT_DISPLAY = 0x00000000,
364 SICHINT_CANONICAL = 0x10000000,
365 SICHINT_TEST_FILESYSPATH_IF_NOT_EQUAL = 0x20000000,
366 SICHINT_ALLFIELDS = 0x80000000
368 typedef DWORD SICHINTF;
370 HRESULT BindToHandler(
374 [out, iid_is(riid)] void **ppvOut);
376 HRESULT GetParent( [out] IShellItem **ppsi );
378 HRESULT GetDisplayName(
379 [in] SIGDN sigdnName,
380 [out] LPWSTR *ppszName);
382 HRESULT GetAttributes(
383 [in] SFGAOF sfgaoMask,
384 [out] SFGAOF *psfgaoAttribs);
387 [in] IShellItem *psi,
392 typedef enum tagNWMF {
393 NWMF_UNLOADING = 0x0001,
394 NWMF_USERINITED = 0x0002,
396 NWMF_OVERRIDEKEY = 0x0008,
397 NWMF_SHOWHELP = 0x0010,
398 NWMF_HTMLDIALOG = 0x0020,
399 NWMF_FROMDIALOGCHILD = 0x0040,
400 NWMF_USERREQUESTED = 0x0080,
401 NWMF_USERALLOWED = 0x0100
405 uuid(d2bc4c84-3f72-4a52-a604-7bcbf3982cbb),
407 pointer_default(unique)
409 interface INewWindowManager : IUnknown
411 HRESULT EvaluateNewWindow(
412 [in, string] LPCWSTR pszUrl,
413 [in, string] LPCWSTR pszName,
414 [in, string] LPCWSTR pszUrlContext,
415 [in, string] LPCWSTR pszFeatures,
418 [in] DWORD dwUserActionTime);
421 cpp_quote("#define SID_SNewWindowManager IID_INewWindowManager")
423 /*****************************************************************************
424 * IEnumShellItems interface
428 uuid(70629033-E363-4A28-A567-0DB78006E6D7),
429 pointer_default(unique)
431 interface IEnumShellItems : IUnknown
433 [local] HRESULT Next(
435 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
436 [out] ULONG *pceltFetched);
438 [call_as(Next)] HRESULT RemoteNext(
440 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
441 [out] ULONG *pceltFetched);
449 [out] IEnumShellItems **ppenum);
452 /*****************************************************************************
453 * IShellItemArray interface
457 uuid(B63EA76D-1F85-456F-A19C-48159EFA858B),
458 pointer_default(unique)
460 interface IShellItemArray : IUnknown
462 typedef [v1_enum] enum SIATTRIBFLAGS {
463 SIATTRIBFLAGS_AND = 0x0001,
464 SIATTRIBFLAGS_OR = 0x0002,
465 SIATTRIBFLAGS_APPCOMPAT = 0x0003,
466 SIATTRIBFLAGS_MASK = 0x0003,
467 SIATTRIBFLAGS_ALLITEMS = 0x4000
469 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(SIATTRIBFLAGS)")
471 HRESULT BindToHandler(
472 [in, unique] IBindCtx *pbc,
475 [out, iid_is(riid)] void **ppvOut);
477 HRESULT GetPropertyStore(
478 [in] GETPROPERTYSTOREFLAGS flags,
480 [out, iid_is(riid)] void **ppv);
482 HRESULT GetPropertyDescriptionList(
483 [in] REFPROPERTYKEY keyType,
485 [out, iid_is(riid)] void **ppv);
487 HRESULT GetAttributes(
488 [in] SIATTRIBFLAGS AttribFlags,
489 [in] SFGAOF sfgaoMask,
490 [out] SFGAOF *psfgaoAttribs);
493 [out] DWORD *pdwNumItems);
497 [out] IShellItem **ppsi);
500 [out] IEnumShellItems **ppenumShellItems);
504 typedef [v1_enum] enum DATAOBJ_GET_ITEM_FLAGS
507 DOGIF_TRAVERSE_LINK = 0x1,
508 DOGIF_NO_HDROP = 0x2,
510 DOGIF_ONLY_IF_ONE = 0x8
511 } DATAOBJ_GET_ITEM_FLAGS;
512 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DATAOBJ_GET_ITEM_FLAGS)")
514 cpp_quote("HRESULT WINAPI SHGetNameFromIDList(PCIDLIST_ABSOLUTE pidl, SIGDN sigdnName, PWSTR *ppszName);")
515 cpp_quote("HRESULT WINAPI SHCreateItemFromParsingName(PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv);")
516 cpp_quote("HRESULT WINAPI SHCreateItemFromIDList(PCIDLIST_ABSOLUTE pidl, REFIID riid, void **ppv);")
517 cpp_quote("HRESULT WINAPI SHGetItemFromDataObject(IDataObject *pdtobj, DATAOBJ_GET_ITEM_FLAGS dwFlags, REFIID riid, void **ppv);")
518 cpp_quote("HRESULT WINAPI SHGetIDListFromObject(IUnknown *punk, PIDLIST_ABSOLUTE *ppidl);")
519 cpp_quote("HRESULT WINAPI SHGetItemFromObject(IUnknown *punk, REFIID riid, void **ppv);")
520 cpp_quote("HRESULT WINAPI SHCreateShellItemArray(PCIDLIST_ABSOLUTE pidlParent, IShellFolder* psf, UINT cidl, PCUITEMID_CHILD_ARRAY ppidl, IShellItemArray **ppsiItemArray);")
521 cpp_quote("HRESULT WINAPI SHCreateShellItemArrayFromShellItem(IShellItem *psi, REFIID riid, void **ppv);")
522 cpp_quote("HRESULT WINAPI SHCreateShellItemArrayFromDataObject(IDataObject *pdo, REFIID riid, void **ppv);")
524 /*****************************************************************************
525 * IShellItemFilter interface
529 uuid(2659B475-EEB8-48B7-8F07-B378810F48CF),
530 pointer_default(unique)
532 interface IShellItemFilter : IUnknown
535 [in] IShellItem *psi);
537 HRESULT GetEnumFlagsForItem(
538 [in] IShellItem *psi,
539 [out] SHCONTF *pgrfFlags);
542 /*****************************************************************************
545 typedef char *LPVIEWSETTINGS;
549 FWF_AUTOARRANGE = 0x00000001,
550 FWF_ABBREVIATEDNAMES = 0x00000002,
551 FWF_SNAPTOGRID = 0x00000004,
552 FWF_OWNERDATA = 0x00000008,
553 FWF_BESTFITWINDOW = 0x00000010,
554 FWF_DESKTOP = 0x00000020,
555 FWF_SINGLESEL = 0x00000040,
556 FWF_NOSUBFOLDERS = 0x00000080,
557 FWF_TRANSPARENT = 0x00000100,
558 FWF_NOCLIENTEDGE = 0x00000200,
559 FWF_NOSCROLL = 0x00000400,
560 FWF_ALIGNLEFT = 0x00000800,
561 FWF_NOICONS = 0x00001000,
562 FWF_SHOWSELALWAYS = 0x00002000,
563 FWF_NOVISIBLE = 0x00004000,
564 FWF_SINGLECLICKACTIVATE = 0x00008000,
565 FWF_NOWEBVIEW = 0x00010000,
566 FWF_HIDEFILENAMES = 0x00020000,
567 FWF_CHECKSELECT = 0x00040000,
568 FWF_NOENUMREFRESH = 0x00080000,
569 FWF_NOGROUPING = 0x00100000,
570 FWF_FULLROWSELECT = 0x00200000,
571 FWF_NOFILTERS = 0x00400000,
572 FWF_NOCOLUMNHEADER = 0x00800000,
573 FWF_NOHEADERINALLVIEWS = 0x01000000,
574 FWF_EXTENDEDTILES = 0x02000000,
575 FWF_TRICHECKSELECT = 0x04000000,
576 FWF_AUTOCHECKSELECT = 0x08000000,
577 FWF_NOBROWSERVIEWSTATE = 0x10000000,
578 FWF_SUBSETGROUPS = 0x20000000,
579 FWF_USESEARCHFOLDER = 0x40000000,
580 FWF_ALLOWRTLREADING = 0x80000000
587 FVM_FIRST = FVM_ICON,
595 FVM_LAST = FVM_CONTENT
602 } FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
603 typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
605 /*****************************************************************************
606 * IShellIcon interface
609 uuid(000214e5-0000-0000-c000-000000000046),
611 pointer_default(unique)
613 interface IShellIcon : IUnknown
616 [in] PCUITEMID_CHILD pidl,
618 [out] int *pIconIndex);
621 /*****************************************************************************
622 * IShellView interface
624 interface IShellBrowser; /* forward declaration */
627 uuid(000214e3-0000-0000-c000-000000000046),
628 pointer_default(unique)
630 interface IShellView : IOleWindow
632 typedef IShellView *LPSHELLVIEW;
634 cpp_quote("#define SVSI_DESELECT 0x00000000")
635 cpp_quote("#define SVSI_SELECT 0x00000001")
636 cpp_quote("#define SVSI_EDIT 0x00000003")
637 cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
638 cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
639 cpp_quote("#define SVSI_FOCUSED 0x00000010")
640 cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
641 cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
642 cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
643 cpp_quote("#define SVSI_CHECK 0x00000100")
644 cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
650 SVGIO_BACKGROUND = 0x00000000,
651 SVGIO_SELECTION = 0x00000001,
652 SVGIO_ALLVIEW = 0x00000002,
653 SVGIO_CHECKED = 0x00000003,
654 SVGIO_TYPE_MASK = 0x0000000f,
655 SVGIO_FLAG_VIEWORDER = 0x80000000,
660 SVUIA_DEACTIVATE = 0,
661 SVUIA_ACTIVATE_NOFOCUS = 1,
662 SVUIA_ACTIVATE_FOCUS = 2,
663 SVUIA_INPLACEACTIVATE = 3
666 HRESULT TranslateAccelerator( [in] MSG *pmsg );
667 HRESULT EnableModeless( [in] BOOL fEnable );
668 HRESULT UIActivate( [in] UINT uState );
670 HRESULT CreateViewWindow(
671 [in] IShellView *psvPrevious,
672 [in] LPCFOLDERSETTINGS lpfs,
673 [in] IShellBrowser *psb,
677 HRESULT DestroyViewWindow();
678 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
680 [local] HRESULT AddPropertySheetPages(
681 [in] DWORD dwReserved,
682 [in] LPFNSVADDPROPSHEETPAGE pfn,
685 HRESULT SaveViewState();
687 [in] LPCITEMIDLIST pidlItem,
689 HRESULT GetItemObject(
692 [out, iid_is(riid)] void **ppv);
697 uuid(88e39e80-3578-11cf-ae69-08002b2e1262),
698 pointer_default(unique)
700 interface IShellView2 : IShellView
702 typedef GUID SHELLVIEWID;
703 cpp_quote("#include <pshpack8.h>")
704 typedef struct _SV2CVW2_PARAMS
708 LPCFOLDERSETTINGS pfs;
709 IShellBrowser *psbOwner;
711 SHELLVIEWID const *pvid;
713 } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
714 cpp_quote("#include <poppack.h>")
717 [in, out] SHELLVIEWID *view_guid,
720 HRESULT CreateViewWindow2(
721 [in] LPSV2CVW2_PARAMS view_params
723 HRESULT HandleRename(
724 [in] LPCITEMIDLIST new_pidl
726 HRESULT SelectAndPositionItem(
727 [in] LPCITEMIDLIST item,
733 /*****************************************************************************
734 * IFolderView interface
737 uuid(cde725b0-ccc9-4519-917e-325d72fab4ce),
739 pointer_default(unique)
741 interface IFolderView : IUnknown
743 HRESULT GetCurrentViewMode( [out] UINT *mode );
744 HRESULT SetCurrentViewMode( [in] UINT mode );
745 HRESULT GetFolder( [in] REFIID riid, [out, iid_is(riid)] void **ppv );
748 [out] PITEMID_CHILD *ppidl
757 [out, iid_is(riid)] void **ppv
759 HRESULT GetSelectionMarkedItem( [out] int *item );
760 HRESULT GetFocusedItem( [out] int *item );
761 HRESULT GetItemPosition(
762 [in] PCUITEMID_CHILD pidl,
765 HRESULT GetSpacing( [in, out, unique] POINT* pt );
766 HRESULT GetDefaultSpacing( [out] POINT* pt );
767 HRESULT GetAutoArrange();
772 HRESULT SelectAndPositionItems(
774 [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
775 [in, unique, size_is(cidl)] POINT* apt,
780 /*****************************************************************************
781 * IShellBrowser interface
785 uuid(000214e2-0000-0000-c000-000000000046),
786 pointer_default(unique)
788 interface IShellBrowser : IOleWindow
790 typedef IShellBrowser *LPSHELLBROWSER;
792 cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
793 cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
794 cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
795 cpp_quote("#define SBSP_DEFMODE 0x00000000")
796 cpp_quote("#define SBSP_OPENMODE 0x00000010")
797 cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
798 cpp_quote("#define SBSP_HELPMODE 0x00000040")
799 cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
800 cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
801 cpp_quote("#define SBSP_RELATIVE 0x00001000")
802 cpp_quote("#define SBSP_PARENT 0x00002000")
803 cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
804 cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
805 cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
806 cpp_quote("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
807 cpp_quote("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
808 cpp_quote("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
809 cpp_quote("#define SBSP_CREATENOHISTORY 0x00100000")
810 cpp_quote("#define SBSP_PLAYNOSOUND 0x00200000")
811 cpp_quote("#define SBSP_CALLERUNTURUSTED 0x00800000")
812 cpp_quote("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
813 cpp_quote("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
814 cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
815 cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
816 cpp_quote("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
817 cpp_quote("#define SBSP_FEEDNAVIGATION 0x20000000")
818 cpp_quote("#define SBSP_REDIRECT 0x40000000")
819 cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
821 cpp_quote("#define FCW_STATUS 0x0001")
822 cpp_quote("#define FCW_TOOLBAR 0x0002")
823 cpp_quote("#define FCW_TREE 0x0003")
824 cpp_quote("#define FCW_INTERNETBAR 0x0006")
825 cpp_quote("#define FCW_PROGRESS 0x0008")
827 cpp_quote("#define FCT_MERGE 0x0001")
828 cpp_quote("#define FCT_CONFIGABLE 0x0002")
829 cpp_quote("#define FCT_ADDTOEND 0x0004")
832 typedef LPARAM LPTBBUTTONSB;
834 cpp_quote("#include <commctrl.h>")
835 cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
838 HRESULT InsertMenusSB(
839 [in] HMENU hmenuShared,
840 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
843 [in] HMENU hmenuShared,
844 [in] HOLEMENU holemenuReserved,
845 [in] HWND hwndActiveObject);
847 HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
848 HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
849 HRESULT EnableModelessSB( [in] BOOL fEnable );
850 HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
852 HRESULT BrowseObject(
853 [in] LPCITEMIDLIST pidl,
856 HRESULT GetViewStateStream(
858 [out] IStream **ppStrm);
860 HRESULT GetControlWindow(
864 [local] HRESULT SendControlMsg(
871 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
872 HRESULT OnViewWindowActive( [in] IShellView *pshv );
875 HRESULT SetToolbarItems(
876 [in] LPTBBUTTONSB lpButtons,
882 /*****************************************************************************
883 * IShellLinkA interface
887 uuid(000214ee-0000-0000-c000-000000000046),
888 pointer_default(unique)
890 interface IShellLinkA : IUnknown
895 SLR_ANY_MATCH = 0x0002,
897 SLR_NOUPDATE = 0x0008,
898 SLR_NOSEARCH = 0x0010,
899 SLR_NOTRACK = 0x0020,
900 SLR_NOLINKINFO = 0x0040,
901 SLR_INVOKE_MSI = 0x0080,
902 SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
907 SLGP_SHORTPATH = 0x0001,
908 SLGP_UNCPRIORITY = 0x0002,
909 SLGP_RAWPATH = 0x0004,
913 [out, size_is(cch)] LPSTR pszFile,
915 [in, out, unique] WIN32_FIND_DATAA *pfd,
918 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
920 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
922 HRESULT GetDescription(
923 [out, size_is(cch)] LPSTR pszName,
926 HRESULT SetDescription( [in] LPCSTR pszName );
928 HRESULT GetWorkingDirectory(
929 [out, size_is(cch)] LPSTR pszDir,
932 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
934 HRESULT GetArguments(
935 [out, size_is(cch)] LPSTR pszArgs,
938 HRESULT SetArguments( [in] LPCSTR pszArgs );
940 HRESULT GetHotkey( [out] WORD *pwHotkey );
942 HRESULT SetHotkey( [in] WORD wHotkey );
944 HRESULT GetShowCmd( [out] int *piShowCmd );
946 HRESULT SetShowCmd( [in] int iShowCmd );
948 HRESULT GetIconLocation(
949 [out, size_is(cch)] LPSTR pszIconPath,
953 HRESULT SetIconLocation(
954 [in] LPCSTR pszIconPath,
957 HRESULT SetRelativePath(
958 [in] LPCSTR pszPathRel,
959 [in] DWORD dwReserved);
965 HRESULT SetPath( [in] LPCSTR pszFile );
969 /*****************************************************************************
970 * IShellLinkW interface
974 uuid(000214f9-0000-0000-c000-000000000046),
975 pointer_default(unique)
977 interface IShellLinkW : IUnknown
980 [out, size_is(cch)] LPWSTR pszFile,
982 [in, out] WIN32_FIND_DATAW *pfd,
985 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
987 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
989 HRESULT GetDescription(
990 [out, size_is(cch)] LPWSTR pszName,
993 HRESULT SetDescription( [in] LPCWSTR pszName );
995 HRESULT GetWorkingDirectory(
996 [out, size_is(cch)] LPWSTR pszDir,
999 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
1001 HRESULT GetArguments(
1002 [out, size_is(cch)] LPWSTR pszArgs,
1005 HRESULT SetArguments( [in] LPCWSTR pszArgs );
1007 HRESULT GetHotkey( [out] WORD *pwHotkey );
1009 HRESULT SetHotkey( [in] WORD wHotkey );
1011 HRESULT GetShowCmd( [out] int *piShowCmd );
1013 HRESULT SetShowCmd( [in] int iShowCmd );
1015 HRESULT GetIconLocation(
1016 [out, size_is(cch)] LPWSTR pszIconPath,
1020 HRESULT SetIconLocation(
1021 [in] LPCWSTR pszIconPath,
1024 HRESULT SetRelativePath(
1025 [in] LPCWSTR pszPathRel,
1026 [in] DWORD dwReserved);
1032 HRESULT SetPath( [in] LPCWSTR pszFile );
1035 cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
1038 /*****************************************************************************
1039 * IShellExtInit interface
1043 uuid(000214e8-0000-0000-c000-000000000046),
1044 pointer_default(unique),
1047 interface IShellExtInit : IUnknown
1049 typedef IShellExtInit *LPSHELLEXTINIT;
1052 [in] LPCITEMIDLIST pidlFolder,
1053 [in] IDataObject *pdtobj,
1054 [in] HKEY hkeyProgID);
1058 /*******************************************************************************/
1059 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
1060 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
1061 /* them here anyway. */
1062 /*******************************************************************************/
1065 #define MAX_PATH 260
1069 /*****************************************************************************
1070 * IPersistFolder3 interface
1074 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
1075 pointer_default(unique)
1077 interface IPersistFolder3 : IPersistFolder2
1081 LPITEMIDLIST pidlTargetFolder;
1082 WCHAR szTargetParsingName[MAX_PATH];
1083 WCHAR szNetworkProvider[MAX_PATH];
1086 } PERSIST_FOLDER_TARGET_INFO;
1088 HRESULT InitializeEx(
1090 [in] LPCITEMIDLIST pidlRoot,
1091 [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
1093 HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
1097 /*****************************************************************************
1098 * IExtractIconA interface
1102 uuid(000214eb-0000-0000-c000-000000000046),
1103 pointer_default(unique),
1106 interface IExtractIconA : IUnknown
1108 cpp_quote("#define GIL_OPENICON 0x0001")
1109 cpp_quote("#define GIL_FORSHELL 0x0002")
1110 cpp_quote("#define GIL_ASYNC 0x0020")
1111 cpp_quote("#define GIL_DEFAULTICON 0x0040")
1112 cpp_quote("#define GIL_FORSHORTCUT 0x0080")
1114 cpp_quote("#define GIL_SIMULATEDOC 0x0001")
1115 cpp_quote("#define GIL_PERINSTANCE 0x0002")
1116 cpp_quote("#define GIL_PERCLASS 0x0004")
1117 cpp_quote("#define GIL_NOTFILENAME 0x0008")
1118 cpp_quote("#define GIL_DONTCACHE 0x0010")
1120 typedef IExtractIconA *LPEXTRACTICONA;
1122 HRESULT GetIconLocation(
1124 [out, size_is(cchMax)] LPSTR szIconFile,
1127 [out] UINT *pwFlags);
1130 [in] LPCSTR pszFile,
1131 [in] UINT nIconIndex,
1132 [out] HICON *phiconLarge,
1133 [out] HICON *phiconSmall,
1134 [in] UINT nIconSize );
1138 /*****************************************************************************
1139 * IExtractIconW interface
1143 uuid(000214fa-0000-0000-c000-000000000046),
1144 pointer_default(unique),
1147 interface IExtractIconW : IUnknown
1149 typedef IExtractIconW *LPEXTRACTICONW;
1151 HRESULT GetIconLocation(
1153 [out, size_is(cchMax)] LPWSTR szIconFile,
1156 [out] UINT *pwFlags);
1159 [in] LPCWSTR pszFile,
1160 [in] UINT nIconIndex,
1161 [out] HICON *phiconLarge,
1162 [out] HICON *phiconSmall,
1163 [in] UINT nIconSize );
1166 cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1167 cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1170 /*****************************************************************************
1171 * ICommDlgBrowser interface
1175 uuid(000214f1-0000-0000-c000-000000000046),
1176 pointer_default(unique)
1178 interface ICommDlgBrowser : IUnknown
1180 cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
1181 cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
1182 cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
1183 cpp_quote("#define CDBOSC_RENAME 0x00000003")
1184 cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
1186 typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
1188 HRESULT OnDefaultCommand( [in] IShellView *shv );
1189 HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
1190 HRESULT IncludeObject( [in] IShellView *shv, [in] LPCITEMIDLIST pidl );
1194 /*****************************************************************************
1195 * ICommDlgBrowser2 interface
1199 uuid(10339516-2894-11D2-9039-00C04F8EEB3E),
1200 pointer_default(unique)
1202 interface ICommDlgBrowser2 : ICommDlgBrowser
1206 [in] IShellView *ppshv,
1207 [in] DWORD dwNotifyType);
1209 HRESULT GetDefaultMenuText(
1210 [in] IShellView *ppshv,
1211 [out, string, size_is(cchMax)] LPWSTR pszText,
1214 HRESULT GetViewFlags(
1215 [out] DWORD *pdwFlags);
1219 /*****************************************************************************
1220 * ICommDlgBrowser3 interface
1224 uuid(C8AD25A1-3294-41EE-8165-71174BD01C57),
1225 pointer_default(unique)
1227 interface ICommDlgBrowser3 : ICommDlgBrowser2
1230 HRESULT OnColumnClicked(
1231 [in] IShellView *ppshv,
1234 HRESULT GetCurrentFilter(
1235 [out, string, size_is(cchFileSpec)] LPWSTR pszFileSpec,
1236 [in] int cchFileSpec);
1238 HRESULT OnPreviewCreated(
1239 [in] IShellView *ppshv);
1243 /*****************************************************************************
1244 * IDockingWindowFrame interface
1248 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
1249 pointer_default(unique),
1252 interface IDockingWindowFrame : IOleWindow
1254 cpp_quote("#define DWFRF_NORMAL 0x0000")
1255 cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
1256 cpp_quote("#define DWFAF_HIDDEN 0x0001")
1259 [in] IUnknown *punkSrc,
1260 [in] LPCWSTR pwszItem,
1261 [in] DWORD dwAddFlags);
1263 HRESULT RemoveToolbar(
1264 [in] IUnknown *punkSrc,
1265 [in] DWORD dwRemoveFlags);
1267 HRESULT FindToolbar(
1268 [in] LPCWSTR pwszItem,
1270 [out] LPVOID *ppvObj);
1274 /*****************************************************************************
1275 * IDragSourceHelper interface
1279 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
1280 pointer_default(unique),
1283 interface IDragSourceHelper : IUnknown
1289 HBITMAP hbmpDragImage;
1290 COLORREF crColorKey;
1291 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
1293 HRESULT InitializeFromBitmap(
1294 [in] LPSHDRAGIMAGE pshdi,
1295 [in] IDataObject *pDataObject);
1297 HRESULT InitializeFromWindow(
1300 [in] IDataObject *pDataObject);
1304 /*****************************************************************************
1305 * IDropTargetHelper interface
1309 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
1310 pointer_default(unique),
1313 interface IDropTargetHelper : IUnknown
1316 [in] HWND hwndTarget,
1317 [in] IDataObject *pDataObject,
1319 [in] DWORD dwEffect);
1321 HRESULT DragLeave();
1325 [in] DWORD dwEffect);
1328 [in] IDataObject *pDataObject,
1330 [in] DWORD dwEffect);
1332 HRESULT Show( [in] BOOL fShow );
1336 /*****************************************************************************
1337 * IContextMenu interface
1341 uuid(000214e4-0000-0000-c000-000000000046),
1342 pointer_default(unique),
1345 interface IContextMenu : IUnknown
1347 cpp_quote("#define CMF_NORMAL 0x00000000")
1348 cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
1349 cpp_quote("#define CMF_VERBSONLY 0x00000002")
1350 cpp_quote("#define CMF_EXPLORE 0x00000004")
1351 cpp_quote("#define CMF_NOVERBS 0x00000008")
1352 cpp_quote("#define CMF_CANRENAME 0x00000010")
1353 cpp_quote("#define CMF_NODEFAULT 0x00000020")
1354 cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
1355 cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
1356 cpp_quote("#define CMF_RESERVED 0xffff0000")
1358 cpp_quote("#define GCS_VERBA 0x00000000")
1359 cpp_quote("#define GCS_HELPTEXTA 0x00000001")
1360 cpp_quote("#define GCS_VALIDATEA 0x00000002")
1361 cpp_quote("#define GCS_VERBW 0x00000004")
1362 cpp_quote("#define GCS_HELPTEXTW 0x00000005")
1363 cpp_quote("#define GCS_VALIDATEW 0x00000006")
1364 cpp_quote("#define GCS_UNICODE 0x00000004")
1365 cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1366 cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1367 cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1369 cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1370 cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
1371 cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1372 cpp_quote("#if defined(__GNUC__)")
1373 cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1374 cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1375 cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1376 cpp_quote("#elif defined(_MSC_VER)")
1377 cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1378 cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1379 cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1381 cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1382 cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1383 cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1385 cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1386 cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1387 cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1389 cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1390 cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
1391 cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1392 cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1393 cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1394 cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1395 cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1396 cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1397 cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1398 cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1399 cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
1400 cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1401 cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1402 cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1404 typedef IContextMenu *LPCONTEXTMENU;
1406 typedef struct tagCMINVOKECOMMANDINFO
1412 LPCSTR lpParameters;
1417 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1419 typedef struct tagCMInvokeCommandInfoEx
1425 LPCSTR lpParameters;
1432 LPCWSTR lpParametersW;
1433 LPCWSTR lpDirectoryW;
1436 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1438 HRESULT QueryContextMenu(
1440 [in] UINT indexMenu,
1441 [in] UINT idCmdFirst,
1442 [in] UINT idCmdLast,
1445 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1447 HRESULT GetCommandString(
1448 [in] UINT_PTR idCmd,
1450 [out] UINT *pwReserved,
1451 [out, size_is(cchMax)] LPSTR pszName,
1456 /*****************************************************************************
1457 * IContextMenu2 interface
1461 uuid(000214f4-0000-0000-c000-000000000046),
1462 pointer_default(unique),
1465 interface IContextMenu2 : IContextMenu
1467 typedef IContextMenu2 *LPCONTEXTMENU2;
1469 HRESULT HandleMenuMsg(
1472 [in] LPARAM lParam);
1476 /*****************************************************************************
1477 * IContextMenu3 interface
1481 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1482 pointer_default(unique),
1485 interface IContextMenu3 : IContextMenu2
1487 typedef IContextMenu3 *LPCONTEXTMENU3;
1489 HRESULT HandleMenuMsg2(
1493 [out] LRESULT *plResult);
1497 /*****************************************************************************
1498 * IShellExecuteHookA interface
1502 uuid(000214f5-0000-0000-c000-000000000046),
1503 pointer_default(unique),
1506 interface IShellExecuteHookA : IUnknown
1508 cpp_quote("struct _SHELLEXECUTEINFOA;")
1510 [in, out] struct _SHELLEXECUTEINFOA* pei);
1514 /*****************************************************************************
1515 * IShellExecuteHookW interface
1519 uuid(000214fb-0000-0000-c000-000000000046),
1520 pointer_default(unique),
1523 interface IShellExecuteHookW : IUnknown
1525 cpp_quote("struct _SHELLEXECUTEINFOW;")
1527 [in, out] struct _SHELLEXECUTEINFOW* pei);
1530 /*****************************************************************************
1531 * IShellLinkDataList interface
1535 uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
1536 pointer_default(unique)
1538 interface IShellLinkDataList : IUnknown
1540 [local] HRESULT AddDataBlock(
1541 [in] void *pDataBlock);
1542 [local] HRESULT CopyDataBlock(
1544 [out] void **ppDataBlock);
1545 HRESULT RemoveDataBlock(
1548 [out] DWORD *pdwFlags);
1550 [in] DWORD dwFlags);
1554 /*****************************************************************************
1555 * IResolveShellLink interface
1559 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1560 pointer_default(unique)
1562 interface IResolveShellLink : IUnknown
1564 HRESULT ResolveShellLink(
1565 [in] IUnknown *punk,
1571 /*****************************************************************************
1572 * IURLSearchHook interface
1576 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1577 pointer_default(unique),
1580 interface IURLSearchHook : IUnknown
1583 [in, out] LPWSTR lpwszSearchURL,
1584 [in] DWORD cchBufferSize);
1588 /*****************************************************************************
1589 * ISearchContext interface
1593 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1594 pointer_default(unique),
1597 interface ISearchContext : IUnknown
1599 HRESULT GetSearchUrl(
1600 [in] BSTR *pbstrSearchUrl);
1601 HRESULT GetSearchText(
1602 [in] BSTR *pbstrSearchText);
1603 HRESULT GetSearchStyle(
1604 [in] BSTR *pdwSearchStyle);
1608 /*****************************************************************************
1609 * IURLSearchHook2 interface
1613 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1614 pointer_default(unique),
1617 interface IURLSearchHook2 : IURLSearchHook
1619 HRESULT TranslateWithSearchContext(
1620 [in, out] LPWSTR lpwszSearchURL,
1621 [in] DWORD cchBufferSize,
1622 [in] ISearchContext *pSearchContext);
1626 cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1628 /*****************************************************************************
1629 * INewShortcutHookA interface
1633 uuid(000214e1-0000-0000-c000-000000000046),
1634 pointer_default(unique),
1637 interface INewShortcutHookA : IUnknown
1639 HRESULT SetReferent(
1640 [in] LPCSTR pcszReferent,
1642 HRESULT GetReferent(
1643 [out] LPSTR pcszReferent,
1644 [in] int cchReferent);
1646 [in] LPCSTR pcszReferent);
1648 [out] LPSTR pcszReferent,
1649 [in] int cchFolder);
1651 [out] LPSTR pszName,
1653 HRESULT GetExtension(
1654 [out] LPSTR pszExtension,
1655 [in] int cchExtension);
1659 /*****************************************************************************
1660 * INewShortcutHookW interface
1664 uuid(000214f7-0000-0000-c000-000000000046),
1665 pointer_default(unique),
1668 interface INewShortcutHookW : IUnknown
1670 HRESULT SetReferent(
1671 [in] LPCWSTR pcszReferent,
1673 HRESULT GetReferent(
1674 [out] LPWSTR pcszReferent,
1675 [in] int cchReferent);
1677 [in] LPCWSTR pcszReferent);
1679 [out] LPWSTR pcszReferent,
1680 [in] int cchFolder);
1682 [out] LPWSTR pszName,
1684 HRESULT GetExtension(
1685 [out] LPWSTR pszExtension,
1686 [in] int cchExtension);
1689 /*****************************************************************************
1690 * IRunnableTask interface
1694 uuid(85788d00-6807-11d0-b810-00c04fd706ec),
1695 pointer_default(unique),
1698 interface IRunnableTask : IUnknown
1701 HRESULT Kill([in] BOOL fWait);
1707 /*****************************************************************************
1708 * IShellChangeNotify interface
1712 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
1713 pointer_default(unique),
1716 interface IShellChangeNotify : IUnknown
1720 [in] LPCITEMIDLIST pidl1,
1721 [in] LPCITEMIDLIST pidl2);
1724 /*****************************************************************************
1725 * IFileSystemBindData interface
1729 uuid(01e18d10-4d8b-11d2-855d-006008059367),
1730 pointer_default(unique),
1733 interface IFileSystemBindData : IUnknown
1735 HRESULT SetFindData(
1736 [in] const WIN32_FIND_DATAW *pfd);
1737 HRESULT GetFindData(
1738 [out] WIN32_FIND_DATAW *pfd);
1741 /*****************************************************************************
1742 * ITaskbarList interface
1746 uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
1747 pointer_default(unique)
1749 interface ITaskbarList : IUnknown
1759 HRESULT ActivateTab(
1762 HRESULT SetActiveAlt(
1766 cpp_quote("EXTERN_C const CLSID CLSID_TaskbarList;")
1768 /*****************************************************************************
1769 * IAutoCompleteDropDown interface
1773 uuid(3CD141F4-3C6A-11d2-BCAA-00C04FD929DB),
1774 pointer_default(unique)
1776 interface IAutoCompleteDropDown : IUnknown
1778 cpp_quote("#define ACDD_VISIBLE 0x0001")
1780 HRESULT GetDropDownStatus(
1781 [out] DWORD *pdwFlags,
1782 [out, string] LPWSTR *ppwszString);
1784 HRESULT ResetEnumerator();
1789 uuid(cb728b20-f786-11ce-92ad-00aa00a74cd0),
1790 pointer_default(unique)
1792 interface IProfferService : IUnknown
1794 HRESULT ProfferService(
1795 [in] REFGUID service,
1796 [in] IServiceProvider *pService,
1797 [out] DWORD *pCookie);
1799 HRESULT RevokeService([in] DWORD cookie);
1802 /*****************************************************************************
1803 * IExplorerBrowserEvents interface
1807 uuid(361BBDC7-E6EE-4E13-BE58-58E2240C810F)
1809 interface IExplorerBrowserEvents : IUnknown
1811 HRESULT OnNavigationPending(
1812 [in] PCIDLIST_ABSOLUTE pidlFolder);
1814 HRESULT OnViewCreated(
1815 [in] IShellView *psv);
1817 HRESULT OnNavigationComplete(
1818 [in] PCIDLIST_ABSOLUTE pidlFolder);
1820 HRESULT OnNavigationFailed(
1821 [in] PCIDLIST_ABSOLUTE pidlFolder);
1824 typedef GUID EXPLORERPANE;
1825 typedef EXPLORERPANE *REFEXPLORERPANE;
1827 cpp_quote("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
1829 /*****************************************************************************
1830 * IExplorerPaneVisibility interface
1834 uuid(E07010EC-BC17-44C0-97B0-46C7C95B9EDC)
1836 interface IExplorerPaneVisibility : IUnknown
1838 typedef enum tagEXPLORERPANESTATE {
1840 EPS_DEFAULT_ON = 0x1,
1841 EPS_DEFAULT_OFF = 0x2,
1842 EPS_STATE_MASK = 0xffff,
1843 EPS_INITIALSTATE = 0x10000,
1845 } EXPLORERPANESTATE;
1847 HRESULT GetPaneState(
1848 [in] REFEXPLORERPANE ep,
1849 [out] EXPLORERPANESTATE *peps);
1852 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS {
1854 EBF_SELECTFROMDATAOBJECT = 0x100,
1855 EBF_NODROPTARGET = 0x200
1856 } EXPLORER_BROWSER_FILL_FLAGS;
1858 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS {
1860 EBO_NAVIGATEONCE = 0x01,
1861 EBO_SHOWFRAMES = 0x02,
1862 EBO_ALWAYSNAVIGATE = 0x04,
1863 EBO_NOTRAVELLOG = 0x08,
1864 EBO_NOWRAPPERWINDOW = 0x10,
1865 EBO_HTMLSHAREPOINTVIEW = 0x20
1866 } EXPLORER_BROWSER_OPTIONS;
1868 cpp_quote("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
1870 /*****************************************************************************
1871 * IExplorerBrowser interface
1875 uuid(DFD3B6B5-C10C-4BE9-85F6-A66969F402F6),
1876 pointer_default(unique)
1878 interface IExplorerBrowser : IUnknown
1881 [local] HRESULT Initialize(
1882 [in] HWND hwndParent,
1883 [in] const RECT *prc,
1884 [in, unique] const FOLDERSETTINGS *pfs);
1888 [local] HRESULT SetRect(
1889 [in,out,unique] HDWP *phdwp,
1890 [in] RECT rcBrowser);
1892 HRESULT SetPropertyBag(
1893 [in, string] LPCWSTR pszPropertyBag);
1895 HRESULT SetEmptyText(
1896 [in, string] LPCWSTR pszEmptyText);
1898 HRESULT SetFolderSettings(
1899 [in] const FOLDERSETTINGS *pfs);
1902 [in] IExplorerBrowserEvents *psbe,
1903 [out] DWORD *pdwCookie);
1906 [in] DWORD dwCookie);
1909 [in] EXPLORER_BROWSER_OPTIONS dwFlag);
1912 [out] EXPLORER_BROWSER_OPTIONS *pdwFlag);
1914 HRESULT BrowseToIDList(
1915 [in] PCUIDLIST_RELATIVE pidl,
1918 HRESULT BrowseToObject(
1919 [in] IUnknown *punk,
1922 HRESULT FillFromObject(
1923 [in] IUnknown *punk,
1924 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags);
1926 HRESULT RemoveAll();
1928 HRESULT GetCurrentView(
1930 [out, iid_is(riid)] void **ppv);
1933 /*****************************************************************************
1934 * INameSpaceTreeControl interface
1938 uuid(028212A3-B627-47E9-8856-C14265554E4F)
1940 interface INameSpaceTreeControl : IUnknown
1942 [v1_enum] enum _NSTCSTYLE {
1943 NSTCS_HASEXPANDOS = 0x00000001,
1944 NSTCS_HASLINES = 0x00000002,
1945 NSTCS_SINGLECLICKEXPAND = 0x00000004,
1946 NSTCS_FULLROWSELECT = 0x00000008,
1947 NSTCS_SPRINGEXPAND = 0x00000010,
1948 NSTCS_HORIZONTALSCROLL = 0x00000020,
1949 NSTCS_ROOTHASEXPANDO = 0x00000040,
1950 NSTCS_SHOWSELECTIONALWAYS = 0x00000080,
1951 NSTCS_NOINFOTIP = 0x00000200,
1952 NSTCS_EVENHEIGHT = 0x00000400,
1953 NSTCS_NOREPLACEOPEN = 0x00000800,
1954 NSTCS_DISABLEDRAGDROP = 0x00001000,
1955 NSTCS_NOORDERSTREAM = 0x00002000,
1956 NSTCS_RICHTOOLTIP = 0x00004000,
1957 NSTCS_BORDER = 0x00008000,
1958 NSTCS_NOEDITLABELS = 0x00010000,
1959 NSTCS_TABSTOP = 0x00020000,
1960 NSTCS_FAVORITESMODE = 0x00080000,
1961 NSTCS_AUTOHSCROLL = 0x00100000,
1962 NSTCS_FADEINOUTEXPANDOS = 0x00200000,
1963 NSTCS_EMPTYTEXT = 0x00400000,
1964 NSTCS_CHECKBOXES = 0x00800000,
1965 NSTCS_PARTIALCHECKBOXES = 0x01000000,
1966 NSTCS_EXCLUSIONCHECKBOXES = 0x02000000,
1967 NSTCS_DIMMEDCHECKBOXES = 0x04000000,
1968 NSTCS_NOINDENTCHECKS = 0x08000000,
1969 NSTCS_ALLOWJUNCTIONS = 0x10000000,
1970 NSTCS_SHOWTABSBUTTON = 0x20000000,
1971 NSTCS_SHOWDELETEBUTTON = 0x40000000,
1972 NSTCS_SHOWREFRESHBUTTON = (int)0x80000000
1974 typedef DWORD NSTCSTYLE;
1976 [v1_enum] enum _NSTCROOTSTYLE {
1977 NSTCRS_VISIBLE = 0x0000,
1978 NSTCRS_HIDDEN = 0x0001,
1979 NSTCRS_EXPANDED = 0x0002
1981 typedef DWORD NSTCROOTSTYLE;
1983 [v1_enum] enum _NSTCITEMSTATE {
1984 NSTCIS_NONE = 0x0000,
1985 NSTCIS_SELECTED = 0x0001,
1986 NSTCIS_EXPANDED = 0x0002,
1987 NSTCIS_BOLD = 0x0004,
1988 NSTCIS_DISABLED = 0x0008,
1989 NSTCIS_SELECTEDNOEXPAND = 0x0010
1991 typedef DWORD NSTCITEMSTATE;
1993 typedef [v1_enum] enum NSTCGNI {
1995 NSTCGNI_NEXTVISIBLE = 1,
1997 NSTCGNI_PREVVISIBLE = 3,
2000 NSTCGNI_FIRSTVISIBLE = 6,
2001 NSTCGNI_LASTVISIBLE = 7
2005 [in] HWND hwndParent,
2006 [in, unique] RECT *prc,
2007 [in] NSTCSTYLE nstcsFlags);
2010 [in] IUnknown *punk,
2011 [out] DWORD *pdwCookie);
2013 HRESULT TreeUnadvise(
2014 [in] DWORD dwCookie);
2017 [in] IShellItem *psiRoot,
2018 [in] SHCONTF grfEnumFlags,
2019 [in] NSTCROOTSTYLE grfRootStyle,
2020 [in, unique] IShellItemFilter *pif);
2024 [in] IShellItem *psiRoot,
2025 [in] SHCONTF grfEnumFlags,
2026 [in] NSTCROOTSTYLE grfRootStyle,
2027 [in, unique] IShellItemFilter *pif);
2030 [in] IShellItem *psiRoot);
2032 HRESULT RemoveAllRoots();
2034 HRESULT GetRootItems(
2035 [out] IShellItemArray **ppsiaRootItems);
2037 HRESULT SetItemState(
2038 [in] IShellItem *psi,
2039 [in] NSTCITEMSTATE nstcisMask,
2040 [in] NSTCITEMSTATE nstcisFlags);
2042 HRESULT GetItemState(
2043 [in] IShellItem *psi,
2044 [in] NSTCITEMSTATE nstcismask,
2045 [out] NSTCITEMSTATE *pnstcisFlags);
2047 HRESULT GetSelectedItems(
2048 [out] IShellItemArray **psiaItems);
2050 HRESULT GetItemCustomState(
2051 [in] IShellItem *psi,
2052 [out] int *piStateNumber);
2054 HRESULT SetItemCustomState(
2055 [in] IShellItem *psi,
2056 [in] int iStateNumber);
2058 HRESULT EnsureItemVisible(
2059 [in] IShellItem *psi);
2062 [in, string] LPCWSTR pszTheme);
2064 HRESULT GetNextItem(
2065 [in, unique] IShellItem *psi,
2066 [in] NSTCGNI nstcgi,
2067 [out] IShellItem **ppsiNext);
2071 [out] IShellItem **ppsiOut);
2073 HRESULT GetItemRect(
2074 [in] IShellItem *psi,
2077 HRESULT CollapseAll();
2080 /*****************************************************************************
2081 * INameSpaceTreeControl2 interface
2085 uuid(7CC7AED8-290E-49BC-8945-C1401CC9306C)
2087 interface INameSpaceTreeControl2 : INameSpaceTreeControl
2089 typedef [v1_enum] enum NSTCSTYLE2 {
2090 NSTCS2_DEFAULT = 0x00,
2091 NSTCS2_INTERRUPTNOTIFICATIONS = 0x01,
2092 NSTCS2_SHOWNULLSPACEMENU = 0x02,
2093 NSTCS2_DISPLAYPADDING = 0x04,
2094 NSTCS2_DISPLAYPINNEDONLY = 0x08,
2095 NTSCS2_NOSINGLETONAUTOEXPAND = 0x10, /* The apparent typo here is */
2096 NTSCS2_NEVERINSERTNONENUMERATED = 0x20 /* present also in the Win SDK */
2098 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(NSTCSTYLE2)")
2100 HRESULT SetControlStyle(
2101 [in] NSTCSTYLE nstcsMask,
2102 [in] NSTCSTYLE nstcsStyle);
2104 HRESULT GetControlStyle(
2105 [in] NSTCSTYLE nstcsMask,
2106 [out] NSTCSTYLE *pnstcsStyle);
2108 HRESULT SetControlStyle2(
2109 [in] NSTCSTYLE2 nstcsMask,
2110 [in] NSTCSTYLE2 nstcsStyle);
2112 HRESULT GetControlStyle2(
2113 [in] NSTCSTYLE2 nstcsMask,
2114 [out] NSTCSTYLE2 *pnstcsStyle);
2117 /*****************************************************************************
2118 * INameSpaceTreeControlEvents interface
2123 uuid(93D77985-B3D8-4484-8318-672CDDA002CE),
2126 interface INameSpaceTreeControlEvents : IUnknown
2128 [v1_enum] enum _NSTCEHITTEST {
2129 NSTCEHT_NOWHERE = 0x0001,
2130 NSTCEHT_ONITEMICON = 0x0002,
2131 NSTCEHT_ONITEMLABEL = 0x0004,
2132 NSTCEHT_ONITEMIDENT = 0x0008,
2133 NSTCEHT_ONITEMBUTTON = 0x0010,
2134 NSTCEHT_ONITEMRIGHT = 0x0020,
2135 NSTCEHT_ONITEMSTATEICON = 0x0040,
2136 NSTCEHT_ONITEM = 0x0046,
2137 NSTCEHT_ONITEMTABBUTTON = 0x1000
2139 typedef DWORD NSTCEHITTEST;
2141 [v1_enum] enum _NSTCECLICKTYPE {
2142 NSTCECT_LBUTTON = 0x1,
2143 NSTCECT_MBUTTON = 0x2,
2144 NSTCECT_RBUTTON = 0x3,
2145 NSTCECT_BUTTON = 0x3,
2146 NSTCECT_DBLCLICK = 0x4
2148 typedef DWORD NSTCECLICKTYPE;
2150 HRESULT OnItemClick(
2151 [in] IShellItem *psi,
2152 [in] NSTCEHITTEST nstceHitTest,
2153 [in] NSTCECLICKTYPE nstceClickType);
2155 HRESULT OnPropertyItemCommit(
2156 [in] IShellItem *psi);
2158 HRESULT OnItemStateChanging(
2159 [in] IShellItem *psi,
2160 [in] NSTCITEMSTATE nstcisMask,
2161 [in] NSTCITEMSTATE nstcisState);
2163 HRESULT OnItemStateChanged(
2164 [in] IShellItem *psi,
2165 [in] NSTCITEMSTATE nstcisMask,
2166 [in] NSTCITEMSTATE nstcisState);
2168 HRESULT OnSelectionChanged(
2169 [in] IShellItemArray *psiaSelection);
2171 HRESULT OnKeyboardInput(
2174 [in] LPARAM lParam);
2176 HRESULT OnBeforeExpand(
2177 [in] IShellItem *psi);
2179 HRESULT OnAfterExpand(
2180 [in] IShellItem *psi);
2182 HRESULT OnBeginLabelEdit(
2183 [in] IShellItem *psi);
2185 HRESULT OnEndLabelEdit(
2186 [in] IShellItem *psi);
2188 HRESULT OnGetToolTip(
2189 [in] IShellItem *psi,
2190 [out, string, size_is(cchTip)] LPWSTR pszTip,
2193 HRESULT OnBeforeItemDelete(
2194 [in] IShellItem *psi);
2196 HRESULT OnItemAdded(
2197 [in] IShellItem *psi,
2200 HRESULT OnItemDeleted(
2201 [in] IShellItem *psi,
2204 HRESULT OnBeforeContextMenu(
2205 [in, unique] IShellItem *psi,
2207 [out, iid_is(riid)] void **ppv);
2209 HRESULT OnAfterContextMenu(
2210 [in] IShellItem *psi,
2211 [in] IContextMenu *pcmIn,
2213 [out, iid_is(riid)] void **ppv);
2215 HRESULT OnBeforeStateImageChange(
2216 [in] IShellItem *psi);
2218 HRESULT OnGetDefaultIconIndex(
2219 [in] IShellItem *psi,
2220 [out] int *piDefaultIcon,
2221 [out] int *piOpenIcon);
2224 cpp_quote("#ifdef MIDL_PASS")
2225 typedef IUnknown *HIMAGELIST;
2228 /*****************************************************************************
2229 * INameSpaceTreeControlCustomDraw interface
2233 uuid(2D3BA758-33EE-42D5-BB7B-5F3431D86C78),
2237 interface INameSpaceTreeControlCustomDraw : IUnknown
2239 typedef struct NSTCCUSTOMDRAW
2243 NSTCITEMSTATE nstcis;
2254 [out] LRESULT *plres);
2260 HRESULT ItemPrePaint(
2263 [in, out] COLORREF *pclrText,
2264 [in, out] COLORREF *pclrTextBk,
2265 [out] LRESULT *plres);
2267 HRESULT ItemPostPaint(
2270 [in] NSTCCUSTOMDRAW *pnstccdItem);
2273 /*****************************************************************************
2274 * INameSpaceTreeControlDropHandler interface
2278 uuid(F9C665D6-C2F2-4C19-BF33-8322D7352F51),
2281 interface INameSpaceTreeControlDropHandler : IUnknown
2283 HRESULT OnDragEnter(
2284 [in, unique] IShellItem *psiOver,
2285 [in] IShellItemArray *psiaData,
2286 [in] BOOL fOutsideSource,
2287 [in] DWORD grfKeyState,
2288 [in, out] DWORD *pdwEffect);
2291 [in, unique] IShellItem *psiOver,
2292 [in] IShellItemArray *psiaData,
2293 [in] DWORD grfKeyState,
2294 [in, out] DWORD *pdwEffect);
2296 HRESULT OnDragPosition(
2297 [in, unique] IShellItem *psiOver,
2298 [in] IShellItemArray *psiaData,
2299 [in] int iNewPosition,
2300 [in] int iOldPosition);
2303 [in, unique] IShellItem *psiOver,
2304 [in] IShellItemArray *psiaData,
2306 [in] DWORD grfKeyState,
2307 [in, out] DWORD *pdwEffect);
2309 HRESULT OnDropPosition(
2310 [in, unique] IShellItem *psiOver,
2311 [in] IShellItemArray *psiaData,
2312 [in] int iNewPosition,
2313 [in] int iOldPosition);
2315 HRESULT OnDragLeave(
2316 [in, unique] IShellItem *psiOver);
2318 cpp_quote("#define NSTCDHPOS_ONTOP -1")
2320 interface IFileDialog;
2322 typedef [v1_enum] enum FDE_OVERWRITE_RESPONSE
2327 } FDE_OVERWRITE_RESPONSE;
2329 typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
2334 } FDE_SHAREVIOLATION_RESPONSE;
2336 /*****************************************************************************
2337 * IFileDialogEvents interface
2341 uuid(973510DB-7D7F-452B-8975-74A85828D354),
2342 pointer_default(unique)
2344 interface IFileDialogEvents : IUnknown
2347 [in] IFileDialog *pfd);
2349 HRESULT OnFolderChanging(
2350 [in] IFileDialog *pfd,
2351 [in] IShellItem *psiFolder);
2353 HRESULT OnFolderChange(
2354 [in] IFileDialog *pfd);
2356 HRESULT OnSelectionChange(
2357 [in] IFileDialog *pfd);
2359 HRESULT OnShareViolation(
2360 [in] IFileDialog *pfd,
2361 [in] IShellItem *psi,
2362 [out] FDE_SHAREVIOLATION_RESPONSE *pResponse);
2364 HRESULT OnTypeChange(
2365 [in] IFileDialog *pfd);
2367 HRESULT OnOverwrite(
2368 [in] IFileDialog *pfd,
2369 [in] IShellItem *psi,
2370 [out] FDE_OVERWRITE_RESPONSE *pResponse);
2373 /*****************************************************************************
2374 * IModalWindow interface
2378 uuid(B4DB1657-70D7-485E-8E3E-6FCB5A5C1802),
2379 pointer_default(unique)
2381 interface IModalWindow : IUnknown
2385 [in, unique, annotation("__in_opt")] HWND hwndOwner);
2389 [in, unique] HWND hwndOwner);
2392 typedef [v1_enum] enum FDAP
2398 /*****************************************************************************
2399 * IFileDialog interface
2403 uuid(42F85136-DB7E-439C-85F1-E4075D135FC8),
2404 pointer_default(unique)
2406 interface IFileDialog : IModalWindow
2408 [v1_enum] enum _FILEOPENDIALOGOPTIONS
2410 FOS_OVERWRITEPROMPT = 0x00000002,
2411 FOS_STRICTFILETYPES = 0x00000004,
2412 FOS_NOCHANGEDIR = 0x00000008,
2413 FOS_PICKFOLDERS = 0x00000020,
2414 FOS_FORCEFILESYSTEM = 0x00000040,
2415 FOS_ALLNONSTORAGEITEMS = 0x00000080,
2416 FOS_NOVALIDATE = 0x00000100,
2417 FOS_ALLOWMULTISELECT = 0x00000200,
2418 FOS_PATHMUSTEXIST = 0x00000800,
2419 FOS_FILEMUSTEXIST = 0x00001000,
2420 FOS_CREATEPROMPT = 0x00002000,
2421 FOS_SHAREAWARE = 0x00004000,
2422 FOS_NOREADONLYRETURN = 0x00008000,
2423 FOS_NOTESTFILECREATE = 0x00010000,
2424 FOS_HIDEMRUPLACES = 0x00020000,
2425 FOS_HIDEPINNEDPLACES = 0x00040000,
2426 FOS_NODEREFERENCELINKS = 0x00100000,
2427 FOS_DONTADDTORECENT = 0x02000000,
2428 FOS_FORCESHOWHIDDEN = 0x10000000,
2429 FOS_DEFAULTNOMINIMODE = 0x20000000,
2430 FOS_FORCEPREVIEWPANEON = 0x40000000
2432 typedef DWORD FILEOPENDIALOGOPTIONS;
2434 HRESULT SetFileTypes(
2435 [in] UINT cFileTypes,
2436 [in, size_is(cFileTypes)] const COMDLG_FILTERSPEC *rgFilterSpec);
2438 HRESULT SetFileTypeIndex(
2439 [in] UINT iFileType);
2441 HRESULT GetFileTypeIndex(
2442 [out] UINT *piFileType);
2445 [in] IFileDialogEvents *pfde,
2446 [out] DWORD *pdwCookie);
2449 [in] DWORD dwCookie);
2452 [in] FILEOPENDIALOGOPTIONS fos);
2455 [in] FILEOPENDIALOGOPTIONS *pfos);
2457 HRESULT SetDefaultFolder(
2458 [in] IShellItem *psi);
2461 [in] IShellItem *psi);
2464 [out] IShellItem **ppsi);
2466 HRESULT GetCurrentSelection(
2467 [out] IShellItem **ppsi);
2469 HRESULT SetFileName(
2470 [in, string] LPCWSTR pszName);
2472 HRESULT GetFileName(
2473 [out, string] LPWSTR *pszName);
2476 [in, string] LPCWSTR pszTitle);
2478 HRESULT SetOkButtonLabel(
2479 [in, string] LPCWSTR pszText);
2481 HRESULT SetFileNameLabel(
2482 [in, string] LPCWSTR pszLabel);
2485 [out] IShellItem **ppsi);
2488 [in] IShellItem *psi,
2491 HRESULT SetDefaultExtension(
2492 [in, string] LPCWSTR pszDefaultExtension);
2497 HRESULT SetClientGuid(
2500 HRESULT ClearClientData();
2503 [in] IShellItemFilter *pFilter);
2506 /*****************************************************************************
2507 * IFileDialog2 interface
2511 uuid(61744FC7-85B5-4791-A9B0-272276309B13),
2512 pointer_default(unique)
2514 interface IFileDialog2 : IFileDialog
2516 HRESULT SetCancelButtonLabel(
2517 [in] LPCWSTR pszLabel);
2519 HRESULT SetNavigationRoot(
2520 [in] IShellItem *psi);
2523 /*****************************************************************************
2524 * IFileOperationProgressSink interface
2528 uuid(04B0F1A7-9490-44BC-96E1-4296A31252E2),
2529 pointer_default(unique)
2531 interface IFileOperationProgressSink : IUnknown
2533 HRESULT StartOperations();
2535 HRESULT FinishOperations(
2536 [in] HRESULT hrResult);
2538 HRESULT PreRenameItem(
2540 [in] IShellItem *psiItem,
2541 [in, unique, string] LPCWSTR pszNewName);
2543 HRESULT PostRenameItem(
2545 [in] IShellItem *psiItem,
2546 [in, string] LPCWSTR pszNewName,
2547 [in] HRESULT hrRename,
2548 [in] IShellItem *psiNewlyCreated);
2550 HRESULT PreMoveItem(
2552 [in] IShellItem *psiItem,
2553 [in] IShellItem *psiDestinationFolder,
2554 [in, unique, string] LPCWSTR pszNewName);
2556 HRESULT PostMoveItem(
2558 [in] IShellItem *psiItem,
2559 [in] IShellItem *psiDestinationFolder,
2560 [in, unique, string] LPCWSTR pszNewName,
2561 [in] HRESULT hrMove,
2562 [in] IShellItem *psiNewlyCreated);
2564 HRESULT PreCopyItem(
2566 [in] IShellItem *psiItem,
2567 [in] IShellItem *psiDestinationFolder,
2568 [in, unique, string] LPCWSTR pszNewName);
2570 HRESULT PostCopyItem(
2572 [in] IShellItem *psiItem,
2573 [in] IShellItem *psiDestinationFolder,
2574 [in, unique, string] LPCWSTR pszNewName,
2575 [in] HRESULT hrCopy,
2576 [in] IShellItem *psiNewlyCreated);
2578 HRESULT PreDeleteItem(
2580 [in] IShellItem *psiItem);
2582 HRESULT PostDeleteItem(
2584 [in] IShellItem *psiItem,
2585 [in] HRESULT hrDelete,
2586 [in] IShellItem *psiNewlyCreated);
2590 [in] IShellItem *psiDestinationFolder,
2591 [in, unique, string] LPCWSTR pszNewName);
2593 HRESULT PostNewItem(
2595 [in] IShellItem *psiDestinationFolder,
2596 [in, unique, string] LPCWSTR pszNewName,
2597 [in, unique, string] LPCWSTR pszTemplateName,
2598 [in] DWORD dwFileAttributes,
2600 [in] IShellItem *psiNewItem);
2602 HRESULT UpdateProgress(
2603 [in] UINT iWorkTotal,
2604 [in] UINT iWorkSoFar);
2606 HRESULT ResetTimer();
2608 HRESULT PauseTimer();
2610 HRESULT ResumeTimer();
2613 /*****************************************************************************
2614 * IFileSaveDialog interface
2618 uuid(84BCCD23-5FDE-4CDB-AEA4-AF64B83D78AB),
2619 pointer_default(unique)
2621 interface IFileSaveDialog : IFileDialog
2623 HRESULT SetSaveAsItem(
2624 [in] IShellItem *psi);
2626 HRESULT SetProperties(
2627 [in] IPropertyStore *pStore);
2629 HRESULT SetCollectedProperties(
2630 [in] IPropertyDescriptionList *pList,
2631 [in] BOOL fAppendDefault);
2633 HRESULT GetProperties(
2634 [in] IPropertyStore **ppStore);
2636 HRESULT ApplyProperties(
2637 [in] IShellItem *psi,
2638 [in] IPropertyStore *pStore,
2639 [in, unique] HWND hwnd,
2640 [in, unique] IFileOperationProgressSink *pSink);
2644 /*****************************************************************************
2645 * IFileOpenDialog interface
2649 uuid(D57C7288-D4AD-4768-BE02-9D969532D960),
2650 pointer_default(unique)
2652 interface IFileOpenDialog : IFileDialog
2655 [out] IShellItemArray **ppenum);
2657 HRESULT GetSelectedItems(
2658 [out] IShellItemArray **ppsai);
2661 typedef [v1_enum] enum CDCONTROLSTATEF
2663 CDCS_INACTIVE = 0x0,
2666 CDCS_ENABLEDVISIBLE = 0x3
2668 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
2669 /*****************************************************************************
2670 * IFileDialogCustomize interface
2674 uuid(E6FDD21A-163F-4975-9C8C-A69F1BA37034),
2675 pointer_default(unique)
2677 interface IFileDialogCustomize : IUnknown
2679 HRESULT EnableOpenDropDown(
2680 [in] DWORD dwIDCtl);
2684 [in, string] LPCWSTR pszLabel);
2686 HRESULT AddPushButton(
2688 [in, string] LPCWSTR pszLabel);
2690 HRESULT AddComboBox(
2691 [in] DWORD dwIDCtl);
2693 HRESULT AddRadioButtonList(
2694 [in] DWORD dwIDCtl);
2696 HRESULT AddCheckButton(
2698 [in, string] LPCWSTR pszLabel,
2699 [in] BOOL bChecked);
2703 [in, string] LPCWSTR pszText);
2705 HRESULT AddSeparator(
2706 [in] DWORD dwIDCtl);
2710 [in, string] LPCWSTR pszText);
2712 HRESULT SetControlLabel(
2714 [in, string] LPCWSTR pszLabel);
2716 HRESULT GetControlState(
2718 [out] CDCONTROLSTATEF *pdwState);
2720 HRESULT SetControlState(
2722 [in] CDCONTROLSTATEF dwState);
2724 HRESULT GetEditBoxText(
2726 [out, string] WCHAR **ppszText);
2728 HRESULT SetEditBoxText(
2730 [in, string] LPCWSTR pszText);
2732 HRESULT GetCheckButtonState(
2734 [out] BOOL *pbChecked);
2736 HRESULT SetCheckButtonState(
2738 [in] BOOL bChecked);
2740 HRESULT AddControlItem(
2742 [in] DWORD dwIDItem,
2743 [in] LPCWSTR pszLabel);
2745 HRESULT RemoveControlItem(
2747 [in] DWORD dwIDItem);
2749 HRESULT RemoveAllControlItems(
2750 [in] DWORD dwIDCtl);
2752 HRESULT GetControlItemState(
2754 [in] DWORD dwIDItem,
2755 [out] CDCONTROLSTATEF *pdwState);
2757 HRESULT SetControlItemState(
2759 [in] DWORD dwIDItem,
2760 [in] CDCONTROLSTATEF dwState);
2762 HRESULT GetSelectedControlItem(
2764 [out] DWORD *pdwIDItem);
2766 HRESULT SetSelectedControlItem(
2768 [in] DWORD dwIDItem);
2770 HRESULT StartVisualGroup(
2772 [in, string] LPCWSTR pszLabel);
2774 HRESULT EndVisualGroup();
2776 HRESULT MakeProminent(
2777 [in] DWORD dwIDCtl);
2779 HRESULT SetControlItemText(
2781 [in] DWORD dwIDItem,
2782 [in, string] LPCWSTR pszLabel);
2785 /*****************************************************************************
2786 * IFileDialogControlEvents interface
2790 uuid(36116642-D713-4B97-9B83-7484A9D00433),
2791 pointer_default(unique)
2793 interface IFileDialogControlEvents : IUnknown
2795 HRESULT OnItemSelected(
2796 [in] IFileDialogCustomize *pfdc,
2798 [in] DWORD dwIDItem);
2800 HRESULT OnButtonClicked(
2801 [in] IFileDialogCustomize *pfdc,
2802 [in] DWORD dwIDCtl);
2804 HRESULT OnCheckButtonToggled(
2805 [in] IFileDialogCustomize *pfdc,
2807 [in] BOOL bChecked);
2809 HRESULT OnControlActivating(
2810 [in] IFileDialogCustomize *pfdc,
2811 [in] DWORD dwIDCtl);
2814 typedef [v1_enum] enum tagKF_CATEGORY
2816 KF_CATEGORY_VIRTUAL = 0x00000001,
2817 KF_CATEGORY_FIXED = 0x00000002,
2818 KF_CATEGORY_COMMON = 0x00000003,
2819 KF_CATEGORY_PERUSER = 0x00000004
2822 typedef [v1_enum] enum tagKF_REDIRECTION_CAPABILITIES
2824 KF_REDIRECTION_CAPABILITIES_ALLOW_ALL = 0x000000ff,
2825 KF_REDIRECTION_CAPABILITIES_REDIRECTABLE = 0x00000001,
2826 KF_REDIRECTION_CAPABILITIES_DENY_ALL = 0x000fff00,
2827 KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED = 0x00000100,
2828 KF_REDIRECTION_CAPABILITIES_DENY_POLICY = 0x00000200,
2829 KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS = 0x00000400
2830 } KF_REDIRECTION_CAPABILITIES;
2832 typedef [v1_enum] enum tagKF_DEFINITION_FLAGS
2834 KFDF_LOCAL_REDIRECT_ONLY = 0x00000002,
2835 KFDF_ROAMABLE = 0x00000004,
2836 KFDF_PRECREATE = 0x00000008
2837 } KF_DEFINITION_FLAGS;
2839 typedef struct tagKNOWNFOLDER_DEFINITION
2841 KF_CATEGORY category;
2843 LPWSTR pszDescription;
2844 KNOWNFOLDERID fidParent;
2845 LPWSTR pszRelativePath;
2846 LPWSTR pszParsingName;
2848 LPWSTR pszLocalizedName;
2852 KF_DEFINITION_FLAGS kfdFlags;
2853 FOLDERTYPEID ftidType;
2854 } KNOWNFOLDER_DEFINITION;
2858 uuid(3aa7af7e-9b36-420C-a8e3-f77d4674a488),
2859 pointer_default(ref)
2861 interface IKnownFolder : IUnknown
2864 [out] KNOWNFOLDERID *pkfid);
2866 HRESULT GetCategory(
2867 [out] KF_CATEGORY *pCategory);
2869 HRESULT GetShellItem(
2872 [out, iid_is(riid)] void **ppv);
2876 [out, string] LPWSTR *ppszPath);
2880 [in, string] LPCWSTR pszPath);
2884 [out] PIDLIST_ABSOLUTE *ppidl);
2886 HRESULT GetFolderType(
2887 [out] FOLDERTYPEID *pftid);
2889 HRESULT GetRedirectionCapabilities(
2890 [out] KF_REDIRECTION_CAPABILITIES *pCapabilities);
2892 HRESULT GetFolderDefinition(
2893 [out] KNOWNFOLDER_DEFINITION *pKFD);
2896 typedef [v1_enum] enum tagKF_REDIRECT_FLAGS
2898 KF_REDIRECT_USER_EXCLUSIVE = 0x00000001,
2899 KF_REDIRECT_COPY_SOURCE_DACL = 0x00000002,
2900 KF_REDIRECT_OWNER_USER = 0x00000004,
2901 KF_REDIRECT_SET_OWNER_EXPLICIT = 0x00000008,
2902 KF_REDIRECT_CHECK_ONLY = 0x00000010,
2903 KF_REDIRECT_WITH_UI = 0x00000020,
2904 KF_REDIRECT_UNPIN = 0x00000040,
2905 KF_REDIRECT_PIN = 0x00000080,
2906 KF_REDIRECT_COPY_CONTENTS = 0x00000200,
2907 KF_REDIRECT_DEL_SOURCE_CONTENTS = 0x00000400,
2908 KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS = 0x00000800
2909 } KF_REDIRECT_FLAGS;
2913 uuid(8BE2D872-86AA-4d47-B776-32CCA40C7018),
2914 pointer_default(ref)
2916 interface IKnownFolderManager : IUnknown
2918 typedef [v1_enum] enum tagFFFP_MODE
2921 FFFP_NEARESTPARENTMATCH
2924 HRESULT FolderIdFromCsidl(
2926 [out] KNOWNFOLDERID *pfid);
2928 HRESULT FolderIdToCsidl(
2929 [in] REFKNOWNFOLDERID rfid,
2930 [out] int *pnCsidl);
2932 HRESULT GetFolderIds(
2933 [out, size_is(, *pCount)] KNOWNFOLDERID **ppKFId,
2934 [in, out] UINT *pCount);
2937 [in] REFKNOWNFOLDERID rfid,
2938 [out] IKnownFolder **ppkf);
2940 HRESULT GetFolderByName(
2941 [in, string] LPCWSTR pszCanonicalName,
2942 [out] IKnownFolder **ppkf);
2944 HRESULT RegisterFolder(
2945 [in] REFKNOWNFOLDERID rfid,
2946 [in] KNOWNFOLDER_DEFINITION const *pKFD);
2948 HRESULT UnregisterFolder(
2949 [in] REFKNOWNFOLDERID rfid);
2951 HRESULT FindFolderFromPath(
2952 [in, string] LPCWSTR pszPath,
2953 [in] FFFP_MODE mode,
2954 [out] IKnownFolder **ppkf);
2956 HRESULT FindFolderFromIDList(
2957 [in] PCIDLIST_ABSOLUTE pidl,
2958 [out] IKnownFolder **ppkf);
2961 [in] REFKNOWNFOLDERID rfid,
2962 [in, unique] HWND hwnd,
2963 [in] KF_REDIRECT_FLAGS flags,
2964 [in, unique, string] LPCWSTR pszTargetPath,
2966 [in, size_is(cFolders), unique] KNOWNFOLDERID const *pExclusion,
2967 [out, string] LPWSTR *ppszError);
2970 /*****************************************************************************
2971 * ShellObjects typelibrary
2974 uuid(50A7E9B1-70EF-11D1-B75A-00A0C90564FE),
2978 library ShellObjects
2981 uuid(71F96385-DDD6-48D3-A0C1-AE06E8B055FB)
2983 coclass ExplorerBrowser
2985 interface IExplorerBrowser;
2989 uuid(DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7)
2991 coclass FileOpenDialog
2993 interface IFileOpenDialog;
2997 uuid(C0B4E2F3-BA21-4773-8DBA-335EC946EB8B)
2999 coclass FileSaveDialog
3001 interface IFileSaveDialog;
3005 uuid(AE054212-3535-4430-83ED-D501AA6680E6)
3007 coclass NamespaceTreeControl
3009 interface INameSpaceTreeControl2;
3013 uuid(4df0c730-df9d-4ae3-9153-aa6b82e9795a)
3015 coclass KnownFolderManager
3017 interface IKnownFolderManager;