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 import "objectarray.idl";
35 /* FIXME: import "structuredquery.idl"; */
37 cpp_quote("/* FIXME: #include <sherrors.h> */")
40 /*****************************************************************************
41 * IPersistFolder interface
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
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
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
92 uuid(000214f2-0000-0000-c000-000000000046),
93 pointer_default(unique)
95 interface IEnumIDList : IUnknown
97 typedef IEnumIDList *LPENUMIDLIST;
101 [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
102 [out] ULONG *pceltFetched);
104 HRESULT Skip( [in] ULONG celt );
106 HRESULT Clone( [out] IEnumIDList **ppenum );
109 /*****************************************************************************
110 * IShellPropSheetExt interface
113 typedef LPARAM LPFNSVADDPROPSHEETPAGE;
115 cpp_quote("#include <prsht.h>")
116 cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
121 uuid(000214E9-0000-0000-C000-000000000046),
122 pointer_default(unique),
125 interface IShellPropSheetExt : IUnknown
127 enum tagSHELLPROPSHEETEXTPAGEID {
128 EXPPS_FILETYPES = 0x1
134 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
138 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
141 typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
143 /*****************************************************************************
144 * IShellFolder interface
148 uuid(000214e6-0000-0000-c000-000000000046),
149 pointer_default(unique)
151 interface IShellFolder : IUnknown
153 typedef IShellFolder * LPSHELLFOLDER;
155 typedef enum tagSHGDN
159 SHGDN_FOREDITING = 0x1000,
160 SHGDN_INCLUDE_NONFILESYS = 0x2000,
161 SHGDN_FORADDRESSBAR = 0x4000,
162 SHGDN_FORPARSING = 0x8000
165 typedef DWORD SHGDNF;
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(
215 [in] LPBC pbcReserved,
216 [in, string] LPOLESTR lpszDisplayName,
217 [out] ULONG *pchEaten,
218 [out] LPITEMIDLIST *ppidl,
219 [in, out, unique] ULONG *pdwAttributes);
223 [in] SHCONTF grfFlags,
224 [out] IEnumIDList **ppenumIDList);
226 HRESULT BindToObject(
227 [in] LPCITEMIDLIST pidl,
228 [in] LPBC pbcReserved,
230 [out, iid_is(riid)] void **ppvOut);
232 HRESULT BindToStorage(
233 [in] LPCITEMIDLIST pidl,
234 [in] LPBC pbcReserved,
236 [out, iid_is(riid)] void **ppvObj);
240 [in] LPCITEMIDLIST pidl1,
241 [in] LPCITEMIDLIST pidl2);
243 HRESULT CreateViewObject(
246 [out, iid_is(riid)] void **ppvOut);
248 HRESULT GetAttributesOf(
250 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
251 [in, out] SFGAOF *rgfInOut);
253 HRESULT GetUIObjectOf(
256 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
258 [in, out, unique] UINT *prgfInOut,
259 [out, iid_is(riid)] void **ppvOut);
261 HRESULT GetDisplayNameOf(
262 [in] LPCITEMIDLIST pidl,
264 [out] STRRET *lpName);
268 [in] LPCITEMIDLIST pidl,
269 [in, string] LPCOLESTR lpszName,
271 [out] LPITEMIDLIST *ppidlOut);
275 /*****************************************************************************
276 * IEnumExtraSearch interface
280 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
281 pointer_default(unique)
283 interface IEnumExtraSearch : IUnknown
285 typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
290 WCHAR wszFriendlyName[80];
292 *WCHAR wszMenuText[80];
293 *WCHAR wszHelpText[MAX_PATH];
297 *WCHAR wszIcon[MAX_PATH+10];
298 *WCHAR wszGreyIcon[MAX_PATH+10];
299 *WCHAR wszClrIcon[MAX_PATH+10];
301 } EXTRASEARCH, *LPEXTRASEARCH;
305 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
306 [out] ULONG *pceltFetched);
308 HRESULT Skip( [in] ULONG celt );
310 HRESULT Clone( [out] IEnumExtraSearch **ppenum );
314 /*****************************************************************************
315 * IShellFolder2 interface
319 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
320 pointer_default(unique)
322 interface IShellFolder2 : IShellFolder
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
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(
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);
388 [in] IShellItem *psi,
393 /*****************************************************************************
394 * IShellItem2 interface
398 uuid(7E9FB0D3-919F-4307-AB2E-9B1860310C93),
399 pointer_default(unique)
401 interface IShellItem2 : IShellItem
403 HRESULT GetPropertyStore(
404 [in] GETPROPERTYSTOREFLAGS flags,
406 [out, iid_is(riid)] void **ppv);
408 HRESULT GetPropertyStoreWithCreateObject(
409 [in] GETPROPERTYSTOREFLAGS flags,
410 [in] IUnknown *punkCreateObject,
412 [out, iid_is(riid)] void **ppv);
414 HRESULT GetPropertyStoreForKeys(
415 [in, size_is(cKeys)] const PROPERTYKEY *rgKeys,
417 [in] GETPROPERTYSTOREFLAGS flags,
419 [out, iid_is(riid)] void **ppv);
421 HRESULT GetPropertyDescriptionList(
422 [in] REFPROPERTYKEY keyType,
424 [out, iid_is(riid)] void **ppv);
427 [in, unique] IBindCtx *pbc);
430 [in] REFPROPERTYKEY key,
431 [out] PROPVARIANT *ppropvar);
434 [in] REFPROPERTYKEY key,
435 [out] CLSID *pclsid);
437 HRESULT GetFileTime (
438 [in] REFPROPERTYKEY key,
439 [out] FILETIME *pft);
442 [in] REFPROPERTYKEY key,
446 [in] REFPROPERTYKEY key,
447 [out, string] LPWSTR *ppsz);
450 [in] REFPROPERTYKEY key,
454 [in] REFPROPERTYKEY key,
455 [out] ULONGLONG *pull);
458 [in] REFPROPERTYKEY key,
462 typedef enum tagNWMF {
463 NWMF_UNLOADING = 0x0001,
464 NWMF_USERINITED = 0x0002,
466 NWMF_OVERRIDEKEY = 0x0008,
467 NWMF_SHOWHELP = 0x0010,
468 NWMF_HTMLDIALOG = 0x0020,
469 NWMF_FROMDIALOGCHILD = 0x0040,
470 NWMF_USERREQUESTED = 0x0080,
471 NWMF_USERALLOWED = 0x0100
475 uuid(d2bc4c84-3f72-4a52-a604-7bcbf3982cbb),
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,
488 [in] DWORD dwUserActionTime);
491 cpp_quote("#define SID_SNewWindowManager IID_INewWindowManager")
493 /*****************************************************************************
494 * IEnumShellItems interface
498 uuid(70629033-E363-4A28-A567-0DB78006E6D7),
499 pointer_default(unique)
501 interface IEnumShellItems : IUnknown
503 [local] HRESULT Next(
505 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
506 [out] ULONG *pceltFetched);
508 [call_as(Next)] HRESULT RemoteNext(
510 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
511 [out] ULONG *pceltFetched);
519 [out] IEnumShellItems **ppenum);
522 /*****************************************************************************
523 * IShellItemArray interface
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
539 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(SIATTRIBFLAGS)")
541 HRESULT BindToHandler(
542 [in, unique] IBindCtx *pbc,
545 [out, iid_is(riid)] void **ppvOut);
547 HRESULT GetPropertyStore(
548 [in] GETPROPERTYSTOREFLAGS flags,
550 [out, iid_is(riid)] void **ppv);
552 HRESULT GetPropertyDescriptionList(
553 [in] REFPROPERTYKEY keyType,
555 [out, iid_is(riid)] void **ppv);
557 HRESULT GetAttributes(
558 [in] SIATTRIBFLAGS AttribFlags,
559 [in] SFGAOF sfgaoMask,
560 [out] SFGAOF *psfgaoAttribs);
563 [out] DWORD *pdwNumItems);
567 [out] IShellItem **ppsi);
570 [out] IEnumShellItems **ppenumShellItems);
574 typedef [v1_enum] enum DATAOBJ_GET_ITEM_FLAGS
577 DOGIF_TRAVERSE_LINK = 0x1,
578 DOGIF_NO_HDROP = 0x2,
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 SHCreateShellItemArrayFromDataObject(IDataObject *pdo, REFIID riid, void **ppv);")
594 /*****************************************************************************
595 * IShellItemFilter interface
599 uuid(2659B475-EEB8-48B7-8F07-B378810F48CF),
600 pointer_default(unique)
602 interface IShellItemFilter : IUnknown
605 [in] IShellItem *psi);
607 HRESULT GetEnumFlagsForItem(
608 [in] IShellItem *psi,
609 [out] SHCONTF *pgrfFlags);
612 /*****************************************************************************
615 typedef char *LPVIEWSETTINGS;
619 FWF_AUTOARRANGE = 0x00000001,
620 FWF_ABBREVIATEDNAMES = 0x00000002,
621 FWF_SNAPTOGRID = 0x00000004,
622 FWF_OWNERDATA = 0x00000008,
623 FWF_BESTFITWINDOW = 0x00000010,
624 FWF_DESKTOP = 0x00000020,
625 FWF_SINGLESEL = 0x00000040,
626 FWF_NOSUBFOLDERS = 0x00000080,
627 FWF_TRANSPARENT = 0x00000100,
628 FWF_NOCLIENTEDGE = 0x00000200,
629 FWF_NOSCROLL = 0x00000400,
630 FWF_ALIGNLEFT = 0x00000800,
631 FWF_NOICONS = 0x00001000,
632 FWF_SHOWSELALWAYS = 0x00002000,
633 FWF_NOVISIBLE = 0x00004000,
634 FWF_SINGLECLICKACTIVATE = 0x00008000,
635 FWF_NOWEBVIEW = 0x00010000,
636 FWF_HIDEFILENAMES = 0x00020000,
637 FWF_CHECKSELECT = 0x00040000,
638 FWF_NOENUMREFRESH = 0x00080000,
639 FWF_NOGROUPING = 0x00100000,
640 FWF_FULLROWSELECT = 0x00200000,
641 FWF_NOFILTERS = 0x00400000,
642 FWF_NOCOLUMNHEADER = 0x00800000,
643 FWF_NOHEADERINALLVIEWS = 0x01000000,
644 FWF_EXTENDEDTILES = 0x02000000,
645 FWF_TRICHECKSELECT = 0x04000000,
646 FWF_AUTOCHECKSELECT = 0x08000000,
647 FWF_NOBROWSERVIEWSTATE = 0x10000000,
648 FWF_SUBSETGROUPS = 0x20000000,
649 FWF_USESEARCHFOLDER = 0x40000000,
650 FWF_ALLOWRTLREADING = 0x80000000
657 FVM_FIRST = FVM_ICON,
665 FVM_LAST = FVM_CONTENT
672 } FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
673 typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
675 /*****************************************************************************
676 * IShellIcon interface
679 uuid(000214e5-0000-0000-c000-000000000046),
681 pointer_default(unique)
683 interface IShellIcon : IUnknown
686 [in] PCUITEMID_CHILD pidl,
688 [out] int *pIconIndex);
691 /*****************************************************************************
692 * IShellView interface
694 interface IShellBrowser; /* forward declaration */
697 uuid(000214e3-0000-0000-c000-000000000046),
698 pointer_default(unique)
700 interface IShellView : IOleWindow
702 typedef IShellView *LPSHELLVIEW;
704 cpp_quote("#define SVSI_DESELECT 0x00000000")
705 cpp_quote("#define SVSI_SELECT 0x00000001")
706 cpp_quote("#define SVSI_EDIT 0x00000003")
707 cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
708 cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
709 cpp_quote("#define SVSI_FOCUSED 0x00000010")
710 cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
711 cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
712 cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
713 cpp_quote("#define SVSI_CHECK 0x00000100")
714 cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
720 SVGIO_BACKGROUND = 0x00000000,
721 SVGIO_SELECTION = 0x00000001,
722 SVGIO_ALLVIEW = 0x00000002,
723 SVGIO_CHECKED = 0x00000003,
724 SVGIO_TYPE_MASK = 0x0000000f,
725 SVGIO_FLAG_VIEWORDER = 0x80000000,
730 SVUIA_DEACTIVATE = 0,
731 SVUIA_ACTIVATE_NOFOCUS = 1,
732 SVUIA_ACTIVATE_FOCUS = 2,
733 SVUIA_INPLACEACTIVATE = 3
736 HRESULT TranslateAccelerator( [in] MSG *pmsg );
737 HRESULT EnableModeless( [in] BOOL fEnable );
738 HRESULT UIActivate( [in] UINT uState );
740 HRESULT CreateViewWindow(
741 [in] IShellView *psvPrevious,
742 [in] LPCFOLDERSETTINGS lpfs,
743 [in] IShellBrowser *psb,
747 HRESULT DestroyViewWindow();
748 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
750 [local] HRESULT AddPropertySheetPages(
751 [in] DWORD dwReserved,
752 [in] LPFNSVADDPROPSHEETPAGE pfn,
755 HRESULT SaveViewState();
757 [in] LPCITEMIDLIST pidlItem,
759 HRESULT GetItemObject(
762 [out, iid_is(riid)] void **ppv);
767 uuid(88e39e80-3578-11cf-ae69-08002b2e1262),
768 pointer_default(unique)
770 interface IShellView2 : IShellView
772 typedef GUID SHELLVIEWID;
773 cpp_quote("#include <pshpack8.h>")
774 typedef struct _SV2CVW2_PARAMS
778 LPCFOLDERSETTINGS pfs;
779 IShellBrowser *psbOwner;
781 SHELLVIEWID const *pvid;
783 } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
784 cpp_quote("#include <poppack.h>")
787 [in, out] SHELLVIEWID *view_guid,
790 HRESULT CreateViewWindow2(
791 [in] LPSV2CVW2_PARAMS view_params
793 HRESULT HandleRename(
794 [in] LPCITEMIDLIST new_pidl
796 HRESULT SelectAndPositionItem(
797 [in] LPCITEMIDLIST item,
803 /*****************************************************************************
804 * IFolderView interface
807 uuid(cde725b0-ccc9-4519-917e-325d72fab4ce),
809 pointer_default(unique)
811 interface IFolderView : IUnknown
813 HRESULT GetCurrentViewMode( [out] UINT *mode );
814 HRESULT SetCurrentViewMode( [in] UINT mode );
815 HRESULT GetFolder( [in] REFIID riid, [out, iid_is(riid)] void **ppv );
818 [out] PITEMID_CHILD *ppidl
827 [out, iid_is(riid)] void **ppv
829 HRESULT GetSelectionMarkedItem( [out] int *item );
830 HRESULT GetFocusedItem( [out] int *item );
831 HRESULT GetItemPosition(
832 [in] PCUITEMID_CHILD pidl,
835 HRESULT GetSpacing( [in, out, unique] POINT* pt );
836 HRESULT GetDefaultSpacing( [out] POINT* pt );
837 HRESULT GetAutoArrange();
842 HRESULT SelectAndPositionItems(
844 [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
845 [in, unique, size_is(cidl)] POINT* apt,
850 /*****************************************************************************
851 * IShellBrowser interface
855 uuid(000214e2-0000-0000-c000-000000000046),
856 pointer_default(unique)
858 interface IShellBrowser : IOleWindow
860 typedef IShellBrowser *LPSHELLBROWSER;
862 cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
863 cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
864 cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
865 cpp_quote("#define SBSP_DEFMODE 0x00000000")
866 cpp_quote("#define SBSP_OPENMODE 0x00000010")
867 cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
868 cpp_quote("#define SBSP_HELPMODE 0x00000040")
869 cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
870 cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
871 cpp_quote("#define SBSP_RELATIVE 0x00001000")
872 cpp_quote("#define SBSP_PARENT 0x00002000")
873 cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
874 cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
875 cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
876 cpp_quote("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
877 cpp_quote("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
878 cpp_quote("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
879 cpp_quote("#define SBSP_CREATENOHISTORY 0x00100000")
880 cpp_quote("#define SBSP_PLAYNOSOUND 0x00200000")
881 cpp_quote("#define SBSP_CALLERUNTURUSTED 0x00800000")
882 cpp_quote("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
883 cpp_quote("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
884 cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
885 cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
886 cpp_quote("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
887 cpp_quote("#define SBSP_FEEDNAVIGATION 0x20000000")
888 cpp_quote("#define SBSP_REDIRECT 0x40000000")
889 cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
891 cpp_quote("#define FCW_STATUS 0x0001")
892 cpp_quote("#define FCW_TOOLBAR 0x0002")
893 cpp_quote("#define FCW_TREE 0x0003")
894 cpp_quote("#define FCW_INTERNETBAR 0x0006")
895 cpp_quote("#define FCW_PROGRESS 0x0008")
897 cpp_quote("#define FCT_MERGE 0x0001")
898 cpp_quote("#define FCT_CONFIGABLE 0x0002")
899 cpp_quote("#define FCT_ADDTOEND 0x0004")
902 typedef LPARAM LPTBBUTTONSB;
904 cpp_quote("#include <commctrl.h>")
905 cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
908 HRESULT InsertMenusSB(
909 [in] HMENU hmenuShared,
910 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
913 [in] HMENU hmenuShared,
914 [in] HOLEMENU holemenuReserved,
915 [in] HWND hwndActiveObject);
917 HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
918 HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
919 HRESULT EnableModelessSB( [in] BOOL fEnable );
920 HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
922 HRESULT BrowseObject(
923 [in] LPCITEMIDLIST pidl,
926 HRESULT GetViewStateStream(
928 [out] IStream **ppStrm);
930 HRESULT GetControlWindow(
934 [local] HRESULT SendControlMsg(
941 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
942 HRESULT OnViewWindowActive( [in] IShellView *pshv );
945 HRESULT SetToolbarItems(
946 [in] LPTBBUTTONSB lpButtons,
952 /*****************************************************************************
953 * IShellLinkA interface
957 uuid(000214ee-0000-0000-c000-000000000046),
958 pointer_default(unique)
960 interface IShellLinkA : IUnknown
965 SLR_ANY_MATCH = 0x0002,
967 SLR_NOUPDATE = 0x0008,
968 SLR_NOSEARCH = 0x0010,
969 SLR_NOTRACK = 0x0020,
970 SLR_NOLINKINFO = 0x0040,
971 SLR_INVOKE_MSI = 0x0080,
972 SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
977 SLGP_SHORTPATH = 0x0001,
978 SLGP_UNCPRIORITY = 0x0002,
979 SLGP_RAWPATH = 0x0004,
983 [out, size_is(cch)] LPSTR pszFile,
985 [in, out, unique] WIN32_FIND_DATAA *pfd,
988 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
990 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
992 HRESULT GetDescription(
993 [out, size_is(cch)] LPSTR pszName,
996 HRESULT SetDescription( [in] LPCSTR pszName );
998 HRESULT GetWorkingDirectory(
999 [out, size_is(cch)] LPSTR pszDir,
1002 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
1004 HRESULT GetArguments(
1005 [out, size_is(cch)] LPSTR pszArgs,
1008 HRESULT SetArguments( [in] LPCSTR pszArgs );
1010 HRESULT GetHotkey( [out] WORD *pwHotkey );
1012 HRESULT SetHotkey( [in] WORD wHotkey );
1014 HRESULT GetShowCmd( [out] int *piShowCmd );
1016 HRESULT SetShowCmd( [in] int iShowCmd );
1018 HRESULT GetIconLocation(
1019 [out, size_is(cch)] LPSTR pszIconPath,
1023 HRESULT SetIconLocation(
1024 [in] LPCSTR pszIconPath,
1027 HRESULT SetRelativePath(
1028 [in] LPCSTR pszPathRel,
1029 [in] DWORD dwReserved);
1035 HRESULT SetPath( [in] LPCSTR pszFile );
1039 /*****************************************************************************
1040 * IShellLinkW interface
1044 uuid(000214f9-0000-0000-c000-000000000046),
1045 pointer_default(unique)
1047 interface IShellLinkW : IUnknown
1050 [out, size_is(cch)] LPWSTR pszFile,
1052 [in, out] WIN32_FIND_DATAW *pfd,
1055 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
1057 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
1059 HRESULT GetDescription(
1060 [out, size_is(cch)] LPWSTR pszName,
1063 HRESULT SetDescription( [in] LPCWSTR pszName );
1065 HRESULT GetWorkingDirectory(
1066 [out, size_is(cch)] LPWSTR pszDir,
1069 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
1071 HRESULT GetArguments(
1072 [out, size_is(cch)] LPWSTR pszArgs,
1075 HRESULT SetArguments( [in] LPCWSTR pszArgs );
1077 HRESULT GetHotkey( [out] WORD *pwHotkey );
1079 HRESULT SetHotkey( [in] WORD wHotkey );
1081 HRESULT GetShowCmd( [out] int *piShowCmd );
1083 HRESULT SetShowCmd( [in] int iShowCmd );
1085 HRESULT GetIconLocation(
1086 [out, size_is(cch)] LPWSTR pszIconPath,
1090 HRESULT SetIconLocation(
1091 [in] LPCWSTR pszIconPath,
1094 HRESULT SetRelativePath(
1095 [in] LPCWSTR pszPathRel,
1096 [in] DWORD dwReserved);
1102 HRESULT SetPath( [in] LPCWSTR pszFile );
1105 cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
1108 /*****************************************************************************
1109 * IShellExtInit interface
1113 uuid(000214e8-0000-0000-c000-000000000046),
1114 pointer_default(unique),
1117 interface IShellExtInit : IUnknown
1119 typedef IShellExtInit *LPSHELLEXTINIT;
1122 [in] LPCITEMIDLIST pidlFolder,
1123 [in] IDataObject *pdtobj,
1124 [in] HKEY hkeyProgID);
1128 /*******************************************************************************/
1129 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
1130 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
1131 /* them here anyway. */
1132 /*******************************************************************************/
1135 #define MAX_PATH 260
1139 /*****************************************************************************
1140 * IPersistFolder3 interface
1144 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
1145 pointer_default(unique)
1147 interface IPersistFolder3 : IPersistFolder2
1151 LPITEMIDLIST pidlTargetFolder;
1152 WCHAR szTargetParsingName[MAX_PATH];
1153 WCHAR szNetworkProvider[MAX_PATH];
1156 } PERSIST_FOLDER_TARGET_INFO;
1158 HRESULT InitializeEx(
1160 [in] LPCITEMIDLIST pidlRoot,
1161 [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
1163 HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
1167 /*****************************************************************************
1168 * IExtractIconA interface
1172 uuid(000214eb-0000-0000-c000-000000000046),
1173 pointer_default(unique),
1176 interface IExtractIconA : IUnknown
1178 cpp_quote("#define GIL_OPENICON 0x0001")
1179 cpp_quote("#define GIL_FORSHELL 0x0002")
1180 cpp_quote("#define GIL_ASYNC 0x0020")
1181 cpp_quote("#define GIL_DEFAULTICON 0x0040")
1182 cpp_quote("#define GIL_FORSHORTCUT 0x0080")
1184 cpp_quote("#define GIL_SIMULATEDOC 0x0001")
1185 cpp_quote("#define GIL_PERINSTANCE 0x0002")
1186 cpp_quote("#define GIL_PERCLASS 0x0004")
1187 cpp_quote("#define GIL_NOTFILENAME 0x0008")
1188 cpp_quote("#define GIL_DONTCACHE 0x0010")
1190 typedef IExtractIconA *LPEXTRACTICONA;
1192 HRESULT GetIconLocation(
1194 [out, size_is(cchMax)] LPSTR szIconFile,
1197 [out] UINT *pwFlags);
1200 [in] LPCSTR pszFile,
1201 [in] UINT nIconIndex,
1202 [out] HICON *phiconLarge,
1203 [out] HICON *phiconSmall,
1204 [in] UINT nIconSize );
1208 /*****************************************************************************
1209 * IExtractIconW interface
1213 uuid(000214fa-0000-0000-c000-000000000046),
1214 pointer_default(unique),
1217 interface IExtractIconW : IUnknown
1219 typedef IExtractIconW *LPEXTRACTICONW;
1221 HRESULT GetIconLocation(
1223 [out, size_is(cchMax)] LPWSTR szIconFile,
1226 [out] UINT *pwFlags);
1229 [in] LPCWSTR pszFile,
1230 [in] UINT nIconIndex,
1231 [out] HICON *phiconLarge,
1232 [out] HICON *phiconSmall,
1233 [in] UINT nIconSize );
1236 cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1237 cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1240 /*****************************************************************************
1241 * ICommDlgBrowser interface
1245 uuid(000214f1-0000-0000-c000-000000000046),
1246 pointer_default(unique)
1248 interface ICommDlgBrowser : IUnknown
1250 cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
1251 cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
1252 cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
1253 cpp_quote("#define CDBOSC_RENAME 0x00000003")
1254 cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
1256 typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
1258 HRESULT OnDefaultCommand( [in] IShellView *shv );
1259 HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
1260 HRESULT IncludeObject( [in] IShellView *shv, [in] LPCITEMIDLIST pidl );
1264 /*****************************************************************************
1265 * ICommDlgBrowser2 interface
1269 uuid(10339516-2894-11D2-9039-00C04F8EEB3E),
1270 pointer_default(unique)
1272 interface ICommDlgBrowser2 : ICommDlgBrowser
1276 [in] IShellView *ppshv,
1277 [in] DWORD dwNotifyType);
1279 HRESULT GetDefaultMenuText(
1280 [in] IShellView *ppshv,
1281 [out, string, size_is(cchMax)] LPWSTR pszText,
1284 HRESULT GetViewFlags(
1285 [out] DWORD *pdwFlags);
1289 /*****************************************************************************
1290 * ICommDlgBrowser3 interface
1294 uuid(C8AD25A1-3294-41EE-8165-71174BD01C57),
1295 pointer_default(unique)
1297 interface ICommDlgBrowser3 : ICommDlgBrowser2
1300 HRESULT OnColumnClicked(
1301 [in] IShellView *ppshv,
1304 HRESULT GetCurrentFilter(
1305 [out, string, size_is(cchFileSpec)] LPWSTR pszFileSpec,
1306 [in] int cchFileSpec);
1308 HRESULT OnPreviewCreated(
1309 [in] IShellView *ppshv);
1312 /*****************************************************************************
1313 * IDockingWindow interface
1317 uuid(012dd920-7b26-11d0-8ca9-00a0c92dbfe8)
1319 interface IDockingWindow : IOleWindow
1325 [in] DWORD dwReserved);
1327 HRESULT ResizeBorderDW(
1328 [in] LPCRECT prcBorder,
1329 [in] IUnknown *punkToolbarSite,
1330 [in] BOOL fReserved);
1334 /*****************************************************************************
1335 * IDockingWindowFrame interface
1339 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
1340 pointer_default(unique),
1343 interface IDockingWindowFrame : IOleWindow
1345 cpp_quote("#define DWFRF_NORMAL 0x0000")
1346 cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
1347 cpp_quote("#define DWFAF_HIDDEN 0x0001")
1350 [in] IUnknown *punkSrc,
1351 [in] LPCWSTR pwszItem,
1352 [in] DWORD dwAddFlags);
1354 HRESULT RemoveToolbar(
1355 [in] IUnknown *punkSrc,
1356 [in] DWORD dwRemoveFlags);
1358 HRESULT FindToolbar(
1359 [in] LPCWSTR pwszItem,
1361 [out] LPVOID *ppvObj);
1365 /*****************************************************************************
1366 * IDragSourceHelper interface
1370 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
1371 pointer_default(unique),
1374 interface IDragSourceHelper : IUnknown
1380 HBITMAP hbmpDragImage;
1381 COLORREF crColorKey;
1382 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
1384 HRESULT InitializeFromBitmap(
1385 [in] LPSHDRAGIMAGE pshdi,
1386 [in] IDataObject *pDataObject);
1388 HRESULT InitializeFromWindow(
1391 [in] IDataObject *pDataObject);
1395 /*****************************************************************************
1396 * IDropTargetHelper interface
1400 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
1401 pointer_default(unique),
1404 interface IDropTargetHelper : IUnknown
1407 [in] HWND hwndTarget,
1408 [in] IDataObject *pDataObject,
1410 [in] DWORD dwEffect);
1412 HRESULT DragLeave();
1416 [in] DWORD dwEffect);
1419 [in] IDataObject *pDataObject,
1421 [in] DWORD dwEffect);
1423 HRESULT Show( [in] BOOL fShow );
1427 /*****************************************************************************
1428 * IContextMenu interface
1432 uuid(000214e4-0000-0000-c000-000000000046),
1433 pointer_default(unique),
1436 interface IContextMenu : IUnknown
1438 cpp_quote("#define CMF_NORMAL 0x00000000")
1439 cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
1440 cpp_quote("#define CMF_VERBSONLY 0x00000002")
1441 cpp_quote("#define CMF_EXPLORE 0x00000004")
1442 cpp_quote("#define CMF_NOVERBS 0x00000008")
1443 cpp_quote("#define CMF_CANRENAME 0x00000010")
1444 cpp_quote("#define CMF_NODEFAULT 0x00000020")
1445 cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
1446 cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
1447 cpp_quote("#define CMF_RESERVED 0xffff0000")
1449 cpp_quote("#define GCS_VERBA 0x00000000")
1450 cpp_quote("#define GCS_HELPTEXTA 0x00000001")
1451 cpp_quote("#define GCS_VALIDATEA 0x00000002")
1452 cpp_quote("#define GCS_VERBW 0x00000004")
1453 cpp_quote("#define GCS_HELPTEXTW 0x00000005")
1454 cpp_quote("#define GCS_VALIDATEW 0x00000006")
1455 cpp_quote("#define GCS_UNICODE 0x00000004")
1456 cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1457 cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1458 cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1460 cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1461 cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
1462 cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1463 cpp_quote("#if defined(__GNUC__)")
1464 cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1465 cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1466 cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1467 cpp_quote("#elif defined(_MSC_VER)")
1468 cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1469 cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1470 cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1472 cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1473 cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1474 cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1476 cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1477 cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1478 cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1480 cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1481 cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
1482 cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1483 cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1484 cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1485 cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1486 cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1487 cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1488 cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1489 cpp_quote("#define CMIC_MASK_NOASYNC SEE_MASK_NOASYNC")
1490 cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1491 cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
1492 cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1493 cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1494 cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1496 typedef IContextMenu *LPCONTEXTMENU;
1498 typedef struct tagCMINVOKECOMMANDINFO
1504 LPCSTR lpParameters;
1509 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1511 typedef struct tagCMInvokeCommandInfoEx
1517 LPCSTR lpParameters;
1524 LPCWSTR lpParametersW;
1525 LPCWSTR lpDirectoryW;
1528 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1530 HRESULT QueryContextMenu(
1532 [in] UINT indexMenu,
1533 [in] UINT idCmdFirst,
1534 [in] UINT idCmdLast,
1537 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1539 HRESULT GetCommandString(
1540 [in] UINT_PTR idCmd,
1542 [out] UINT *pwReserved,
1543 [out, size_is(cchMax)] LPSTR pszName,
1548 /*****************************************************************************
1549 * IContextMenu2 interface
1553 uuid(000214f4-0000-0000-c000-000000000046),
1554 pointer_default(unique),
1557 interface IContextMenu2 : IContextMenu
1559 typedef IContextMenu2 *LPCONTEXTMENU2;
1561 HRESULT HandleMenuMsg(
1564 [in] LPARAM lParam);
1568 /*****************************************************************************
1569 * IContextMenu3 interface
1573 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1574 pointer_default(unique),
1577 interface IContextMenu3 : IContextMenu2
1579 typedef IContextMenu3 *LPCONTEXTMENU3;
1581 HRESULT HandleMenuMsg2(
1585 [out] LRESULT *plResult);
1588 /*****************************************************************************
1589 * IContextMenuCB interface
1594 uuid(3409e930-5a39-11d1-83fa-00a0c90dc849),
1595 pointer_default(unique),
1598 interface IContextMenuCB : IUnknown
1601 [in] IShellFolder *psf,
1602 [in] HWND hwndOwner,
1603 [in] IDataObject *pdtobj,
1606 [in] LPARAM lParam);
1609 /*****************************************************************************
1610 * IShellExecuteHookA interface
1614 uuid(000214f5-0000-0000-c000-000000000046),
1615 pointer_default(unique),
1618 interface IShellExecuteHookA : IUnknown
1620 cpp_quote("struct _SHELLEXECUTEINFOA;")
1622 [in, out] struct _SHELLEXECUTEINFOA* pei);
1626 /*****************************************************************************
1627 * IShellExecuteHookW interface
1631 uuid(000214fb-0000-0000-c000-000000000046),
1632 pointer_default(unique),
1635 interface IShellExecuteHookW : IUnknown
1637 cpp_quote("struct _SHELLEXECUTEINFOW;")
1639 [in, out] struct _SHELLEXECUTEINFOW* pei);
1642 /*****************************************************************************
1643 * IShellLinkDataList interface
1647 uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
1648 pointer_default(unique)
1650 interface IShellLinkDataList : IUnknown
1652 [local] HRESULT AddDataBlock(
1653 [in] void *pDataBlock);
1654 [local] HRESULT CopyDataBlock(
1656 [out] void **ppDataBlock);
1657 HRESULT RemoveDataBlock(
1660 [out] DWORD *pdwFlags);
1662 [in] DWORD dwFlags);
1666 /*****************************************************************************
1667 * IResolveShellLink interface
1671 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1672 pointer_default(unique)
1674 interface IResolveShellLink : IUnknown
1676 HRESULT ResolveShellLink(
1677 [in] IUnknown *punk,
1683 /*****************************************************************************
1684 * IURLSearchHook interface
1688 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1689 pointer_default(unique),
1692 interface IURLSearchHook : IUnknown
1695 [in, out] LPWSTR lpwszSearchURL,
1696 [in] DWORD cchBufferSize);
1700 /*****************************************************************************
1701 * ISearchContext interface
1705 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1706 pointer_default(unique),
1709 interface ISearchContext : IUnknown
1711 HRESULT GetSearchUrl(
1712 [in] BSTR *pbstrSearchUrl);
1713 HRESULT GetSearchText(
1714 [in] BSTR *pbstrSearchText);
1715 HRESULT GetSearchStyle(
1716 [in] BSTR *pdwSearchStyle);
1720 /*****************************************************************************
1721 * IURLSearchHook2 interface
1725 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1726 pointer_default(unique),
1729 interface IURLSearchHook2 : IURLSearchHook
1731 HRESULT TranslateWithSearchContext(
1732 [in, out] LPWSTR lpwszSearchURL,
1733 [in] DWORD cchBufferSize,
1734 [in] ISearchContext *pSearchContext);
1738 cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1740 /*****************************************************************************
1741 * INewShortcutHookA interface
1745 uuid(000214e1-0000-0000-c000-000000000046),
1746 pointer_default(unique),
1749 interface INewShortcutHookA : IUnknown
1751 HRESULT SetReferent(
1752 [in] LPCSTR pcszReferent,
1754 HRESULT GetReferent(
1755 [out] LPSTR pcszReferent,
1756 [in] int cchReferent);
1758 [in] LPCSTR pcszReferent);
1760 [out] LPSTR pcszReferent,
1761 [in] int cchFolder);
1763 [out] LPSTR pszName,
1765 HRESULT GetExtension(
1766 [out] LPSTR pszExtension,
1767 [in] int cchExtension);
1771 /*****************************************************************************
1772 * INewShortcutHookW interface
1776 uuid(000214f7-0000-0000-c000-000000000046),
1777 pointer_default(unique),
1780 interface INewShortcutHookW : IUnknown
1782 HRESULT SetReferent(
1783 [in] LPCWSTR pcszReferent,
1785 HRESULT GetReferent(
1786 [out] LPWSTR pcszReferent,
1787 [in] int cchReferent);
1789 [in] LPCWSTR pcszReferent);
1791 [out] LPWSTR pcszReferent,
1792 [in] int cchFolder);
1794 [out] LPWSTR pszName,
1796 HRESULT GetExtension(
1797 [out] LPWSTR pszExtension,
1798 [in] int cchExtension);
1801 /*****************************************************************************
1802 * IRunnableTask interface
1806 uuid(85788d00-6807-11d0-b810-00c04fd706ec),
1807 pointer_default(unique),
1810 interface IRunnableTask : IUnknown
1813 HRESULT Kill([in] BOOL fWait);
1819 /*****************************************************************************
1820 * IShellChangeNotify interface
1824 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
1825 pointer_default(unique),
1828 interface IShellChangeNotify : IUnknown
1832 [in] LPCITEMIDLIST pidl1,
1833 [in] LPCITEMIDLIST pidl2);
1836 /*****************************************************************************
1837 * IFileSystemBindData interface
1841 uuid(01e18d10-4d8b-11d2-855d-006008059367),
1842 pointer_default(unique),
1845 interface IFileSystemBindData : IUnknown
1847 HRESULT SetFindData(
1848 [in] const WIN32_FIND_DATAW *pfd);
1849 HRESULT GetFindData(
1850 [out] WIN32_FIND_DATAW *pfd);
1853 /*****************************************************************************
1854 * ITaskbarList interface
1858 uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
1859 pointer_default(unique)
1861 interface ITaskbarList : IUnknown
1871 HRESULT ActivateTab(
1874 HRESULT SetActiveAlt(
1878 /*****************************************************************************
1879 * IDefaultExtractIconInit interface
1884 uuid(800AB0B8-F5FA-4e72-8FF3-B1A243B87BD9), /* FIXME: wrong value! */
1885 pointer_default(unique),
1888 interface IDefaultExtractIconInit : IUnknown
1890 HRESULT SetDefaultIcon(
1891 [in] LPCWSTR pszFile,
1897 HRESULT SetNormalIcon(
1898 [in] LPCWSTR pszFile,
1900 HRESULT SetOpenIcon(
1901 [in] LPCWSTR pszFile,
1903 HRESULT SetShortcutIcon(
1904 [in] LPCWSTR pszFile,
1908 /*****************************************************************************
1909 * IDeskBand interface
1911 cpp_quote("#define DBIM_MINSIZE 0x0001")
1912 cpp_quote("#define DBIM_MAXSIZE 0x0002")
1913 cpp_quote("#define DBIM_INTEGRAL 0x0004")
1914 cpp_quote("#define DBIM_ACTUAL 0x0008")
1915 cpp_quote("#define DBIM_TITLE 0x0010")
1916 cpp_quote("#define DBIM_MODEFLAGS 0x0020")
1917 cpp_quote("#define DBIM_BKCOLOR 0x0040")
1919 cpp_quote("#include <pshpack8.h>")
1921 typedef struct tagDESKBANDINFO
1928 WCHAR wszTitle[256];
1933 cpp_quote("#include <poppack.h>")
1935 cpp_quote("#define DBIMF_NORMAL 0x0000")
1936 cpp_quote("#define DBIMF_FIXED 0x0001")
1937 cpp_quote("#define DBIMF_FIXEDBMP 0x0004 // a fixed background bitmap (if supported)")
1938 cpp_quote("#define DBIMF_VARIABLEHEIGHT 0x0008")
1939 cpp_quote("#define DBIMF_UNDELETEABLE 0x0010")
1940 cpp_quote("#define DBIMF_DEBOSSED 0x0020")
1941 cpp_quote("#define DBIMF_BKCOLOR 0x0040")
1942 cpp_quote("#define DBIMF_USECHEVRON 0x0080")
1943 cpp_quote("#define DBIMF_BREAK 0x0100")
1944 cpp_quote("#define DBIMF_ADDTOFRONT 0x0200")
1945 cpp_quote("#define DBIMF_TOPALIGN 0x0400")
1946 cpp_quote("#if (NTDDI_VERSION >= NTDDI_LONGHORN)")
1947 cpp_quote("#define DBIMF_NOGRIPPER 0x0800")
1948 cpp_quote("#define DBIMF_ALWAYSGRIPPER 0x1000")
1949 cpp_quote("#define DBIMF_NOMARGINS 0x2000")
1950 cpp_quote("#endif // NTDDI_LONGHORN")
1952 cpp_quote("#define DBIF_VIEWMODE_NORMAL 0x0000")
1953 cpp_quote("#define DBIF_VIEWMODE_VERTICAL 0x0001")
1954 cpp_quote("#define DBIF_VIEWMODE_FLOATING 0x0002")
1955 cpp_quote("#define DBIF_VIEWMODE_TRANSPARENT 0x0004")
1957 enum tagDESKBANDCID {
1958 DBID_BANDINFOCHANGED = 0,
1960 DBID_MAXIMIZEBAND = 2,
1961 DBID_PUSHCHEVRON = 3,
1963 DBID_FINISHINIT = 5,
1964 DBID_SETWINDOWTHEME = 6,
1965 DBID_PERMITAUTOHIDE = 7,
1968 cpp_quote("#define DBPC_SELECTFIRST (DWORD)-1")
1969 cpp_quote("#define DBPC_SELECTLAST (DWORD)-2")
1971 cpp_quote("#define CGID_DeskBand IID_IDeskBand")
1974 uuid(EB0FE172-1A3A-11D0-89B3-00A0C90A90AC),
1977 interface IDeskBand : IDockingWindow
1979 HRESULT GetBandInfo(
1980 [in] DWORD dwBandID,
1981 [in] DWORD dwViewMode,
1982 [in, out] DESKBANDINFO* pdbi);
1985 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60)")
1988 uuid(EB0FE173-1A3A-11D0-89B3-00A0C90A90AC),
1990 pointer_default(unique),
1993 interface IDeskBar : IOleWindow
1995 HRESULT SetClient([in] IUnknown* punkClient);
1997 HRESULT GetClient([out] IUnknown** ppunkClient);
1999 HRESULT OnPosRectChangeDB([in] RECT *prc);
2003 /*****************************************************************************
2004 * IMenuPopup interface
2007 uuid(D1E7AFEB-6A2E-11d0-8C78-00C04FD918B4),
2009 pointer_default(unique),
2012 interface IMenuPopup : IDeskBar
2014 enum tagMENUPOPUPSELECT
2024 enum tagMENUPOPUPPOPUPFLAGS
2026 MPPF_SETFOCUS = 0x00000001,
2027 MPPF_INITIALSELECT = 0x00000002,
2028 MPPF_NOANIMATE = 0x00000004,
2029 MPPF_KEYBOARD = 0x00000010,
2030 MPPF_REPOSITION = 0x00000020,
2031 MPPF_FORCEZORDER = 0x00000040,
2032 MPPF_FINALSELECT = 0x00000080,
2033 MPPF_TOP = 0x20000000,
2034 MPPF_LEFT = 0x40000000,
2035 MPPF_RIGHT = 0x60000000,
2036 MPPF_BOTTOM = 0x80000000,
2037 MPPF_POS_MASK = 0xE0000000,
2038 MPPF_ALIGN_LEFT = 0x02000000,
2039 MPPF_ALIGN_RIGHT = 0x04000000
2041 typedef int MP_POPUPFLAGS;
2045 [in] RECTL *prcExclude,
2046 [in] MP_POPUPFLAGS dwFlags);
2048 HRESULT OnSelect([in] DWORD dwSelectType);
2051 [in] IMenuPopup* pmp,
2055 cpp_quote("#endif /* _WIN32_IE_IE60 */")
2057 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE40)")
2059 /*****************************************************************************
2060 * IBandSite interface
2062 cpp_quote("#include <pshpack8.h>")
2064 typedef struct tagBANDSITEINFO
2071 cpp_quote("#include <poppack.h>")
2074 enum tagBANDSITECID {
2079 cpp_quote("#define BSIM_STATE 0x00000001")
2080 cpp_quote("#define BSIM_STYLE 0x00000002")
2082 cpp_quote("#define BSSF_VISIBLE 0x00000001")
2083 cpp_quote("#define BSSF_NOTITLE 0x00000002")
2084 cpp_quote("#define BSSF_UNDELETEABLE 0x00001000")
2086 cpp_quote("#define BSIS_AUTOGRIPPER 0x00000000")
2087 cpp_quote("#define BSIS_NOGRIPPER 0x00000001")
2088 cpp_quote("#define BSIS_ALWAYSGRIPPER 0x00000002")
2089 cpp_quote("#define BSIS_LEFTALIGN 0x00000004")
2090 cpp_quote("#define BSIS_SINGLECLICK 0x00000008")
2091 cpp_quote("#define BSIS_NOCONTEXTMENU 0x00000010")
2092 cpp_quote("#define BSIS_NODROPTARGET 0x00000020")
2093 cpp_quote("#define BSIS_NOCAPTION 0x00000040")
2094 cpp_quote("#define BSIS_PREFERNOLINEBREAK 0x00000080")
2095 cpp_quote("#define BSIS_LOCKED 0x00000100")
2096 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
2097 cpp_quote("#define BSIS_PRESERVEORDERDURINGLAYOUT 0x00000200")
2098 cpp_quote("#endif /* _WIN32_IE_IE70 */")
2100 cpp_quote("#define SID_SBandSite IID_IBandSite")
2101 cpp_quote("#define CGID_BandSite IID_IBandSite")
2105 uuid(4CF504B0-DE96-11D0-8B3F-00A0C911E8E5)
2107 interface IBandSite : IUnknown
2109 HRESULT AddBand([in] IUnknown* punk);
2113 [out] DWORD* pdwBandID);
2116 [in] DWORD dwBandID,
2117 [out] IDeskBand** ppstb,
2118 [out] DWORD* pdwState,
2119 [out, string, size_is(cchName)] LPWSTR pszName,
2122 HRESULT SetBandState(
2123 [in] DWORD dwBandID,
2125 [in] DWORD dwState);
2127 HRESULT RemoveBand([in] DWORD dwBandID);
2129 HRESULT GetBandObject(
2130 [in] DWORD dwBandID,
2132 [out, iid_is(riid)] void **ppv);
2134 HRESULT SetBandSiteInfo([in] const BANDSITEINFO *pbsinfo);
2136 HRESULT GetBandSiteInfo([in, out] BANDSITEINFO *pbsinfo);
2139 cpp_quote("#endif /* _WIN32_IE_IE40 */")
2141 /*****************************************************************************
2142 * IMenuBand interface
2145 uuid(568804CD-CBD7-11d0-9816-00C04FD91972),
2147 pointer_default(unique),
2150 interface IMenuBand : IUnknown
2152 enum tagMENUBANDHANDLERCID {
2153 MBHANDCID_PIDLSELECT = 0,
2156 HRESULT IsMenuMessage([in] MSG* pmsg);
2158 HRESULT TranslateMenuMessage(
2159 [in, out] MSG* pmsg,
2160 [out] LRESULT* plRet);
2163 /*****************************************************************************
2164 * IProfferService interface
2167 uuid(cb728b20-f786-11ce-92ad-00aa00a74cd0),
2169 pointer_default(unique),
2172 interface IProfferService : IUnknown
2174 HRESULT ProfferService(
2175 [in] REFGUID service,
2176 [in] IServiceProvider *pService,
2177 [out] DWORD *pCookie);
2179 HRESULT RevokeService([in] DWORD cookie);
2182 /*****************************************************************************
2183 * IShellMenuCallback interface
2185 cpp_quote("#include <pshpack8.h>")
2187 typedef struct tagSMDATA
2197 LPITEMIDLIST pidlFolder;
2198 LPITEMIDLIST pidlItem;
2201 } SMDATA, *LPSMDATA;
2203 cpp_quote("#define SMDM_SHELLFOLDER 0x00000001")
2204 cpp_quote("#define SMDM_HMENU 0x00000002")
2205 cpp_quote("#define SMDM_TOOLBAR 0x00000004")
2207 typedef struct tagSMINFO
2215 typedef struct tagSHCSCHANGENOTIFYSTRUCT
2218 LPCITEMIDLIST pidl1;
2219 LPCITEMIDLIST pidl2;
2220 } SMCSHCHANGENOTIFYSTRUCT, *PSMCSHCHANGENOTIFYSTRUCT;
2222 cpp_quote("#include <poppack.h>")
2226 SMIM_TYPE = 0x00000001,
2227 SMIM_FLAGS = 0x00000002,
2228 SMIM_ICON = 0x00000004
2233 SMIT_SEPARATOR = 0x00000001,
2234 SMIT_STRING = 0x00000002
2239 SMIF_ICON = 0x00000001,
2240 SMIF_ACCELERATOR = 0x00000002,
2241 SMIF_DROPTARGET = 0x00000004,
2242 SMIF_SUBMENU = 0x00000008,
2243 SMIF_CHECKED = 0x00000020,
2244 SMIF_DROPCASCADE = 0x00000040,
2245 SMIF_HIDDEN = 0x00000080,
2246 SMIF_DISABLED = 0x00000100,
2247 SMIF_TRACKPOPUP = 0x00000200,
2248 SMIF_DEMOTED = 0x00000400,
2249 SMIF_ALTSTATE = 0x00000800,
2250 SMIF_DRAGNDROP = 0x00001000,
2251 SMIF_NEW = 0x00002000,
2255 cpp_quote("#define SMC_INITMENU 0x00000001")
2256 cpp_quote("#define SMC_CREATE 0x00000002")
2257 cpp_quote("#define SMC_EXITMENU 0x00000003")
2258 cpp_quote("#define SMC_GETINFO 0x00000005")
2259 cpp_quote("#define SMC_GETSFINFO 0x00000006")
2260 cpp_quote("#define SMC_GETOBJECT 0x00000007")
2261 cpp_quote("#define SMC_GETSFOBJECT 0x00000008")
2262 cpp_quote("#define SMC_SFEXEC 0x00000009")
2263 cpp_quote("#define SMC_SFSELECTITEM 0x0000000A")
2264 cpp_quote("#define SMC_REFRESH 0x00000010")
2265 cpp_quote("#define SMC_DEMOTE 0x00000011")
2266 cpp_quote("#define SMC_PROMOTE 0x00000012")
2267 cpp_quote("#define SMC_DEFAULTICON 0x00000016")
2268 cpp_quote("#define SMC_NEWITEM 0x00000017")
2269 cpp_quote("#define SMC_CHEVRONEXPAND 0x00000019")
2270 cpp_quote("#define SMC_DISPLAYCHEVRONTIP 0x0000002A")
2271 cpp_quote("#define SMC_SETSFOBJECT 0x0000002D")
2272 cpp_quote("#define SMC_SHCHANGENOTIFY 0x0000002E")
2273 cpp_quote("#define SMC_CHEVRONGETTIP 0x0000002F")
2274 cpp_quote("#define SMC_SFDDRESTRICTED 0x00000030")
2277 uuid(4CA300A1-9B8D-11d1-8B22-00C04FD918D0),
2279 pointer_default(unique),
2282 interface IShellMenuCallback : IUnknown
2285 [in, out] LPSMDATA psmd,
2288 [in] LPARAM lParam);
2292 /*****************************************************************************
2293 * IShellMenu interface
2296 cpp_quote("#define SMINIT_DEFAULT 0x00000000")
2297 cpp_quote("#define SMINIT_RESTRICT_DRAGDROP 0x00000002")
2298 cpp_quote("#define SMINIT_TOPLEVEL 0x00000004")
2299 cpp_quote("#define SMINIT_CACHED 0x00000010")
2300 cpp_quote("#define SMINIT_VERTICAL 0x10000000")
2301 cpp_quote("#define SMINIT_HORIZONTAL 0x20000000")
2303 cpp_quote("#define ANCESTORDEFAULT (UINT)-1")
2305 cpp_quote("#define SMSET_TOP 0x10000000")
2306 cpp_quote("#define SMSET_BOTTOM 0x20000000")
2307 cpp_quote("#define SMSET_DONTOWN 0x00000001")
2309 cpp_quote("#define SMINV_REFRESH 0x00000001")
2310 cpp_quote("#define SMINV_ID 0x00000008")
2313 uuid(EE1F7637-E138-11d1-8379-00C04FD918D0),
2315 pointer_default(unique),
2318 interface IShellMenu : IUnknown
2321 [in] IShellMenuCallback *psmc,
2323 [in] UINT uIdAncestor,
2324 [in] DWORD dwFlags);
2326 HRESULT GetMenuInfo(
2327 [out] IShellMenuCallback **ppsmc,
2329 [out] UINT *puIdAncestor,
2330 [out] DWORD *pdwFlags);
2332 HRESULT SetShellFolder(
2333 [in] IShellFolder *psf,
2334 [in] LPCITEMIDLIST pidlFolder,
2336 [in] DWORD dwFlags);
2338 HRESULT GetShellFolder(
2339 [out] DWORD *pdwFlags,
2340 [out] LPITEMIDLIST *ppidl,
2347 [in] DWORD dwFlags);
2350 [out] HMENU *phmenu,
2352 [out] DWORD *pdwFlags);
2354 HRESULT InvalidateItem(
2356 [in] DWORD dwFlags);
2359 [out] LPSMDATA psmd);
2361 HRESULT SetMenuToolbar(
2362 [in] IUnknown *punk,
2363 [in] DWORD dwFlags);
2366 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60)")
2368 /*****************************************************************************
2369 * ITrackShellMenu interface
2372 uuid(8278F932-2A3E-11d2-838F-00C04FD918D0),
2374 pointer_default(unique),
2377 interface ITrackShellMenu : IShellMenu
2379 HRESULT SetObscured(
2381 [in] IUnknown *punkBand,
2382 DWORD dwSMSetFlags);
2387 [in] RECTL *prcExclude,
2388 MP_POPUPFLAGS dwFlags);
2391 cpp_quote("#endif /* _WIN32_IE_IE60 */")
2393 cpp_quote("#ifdef MIDL_PASS")
2394 typedef IUnknown* HIMAGELIST;
2397 typedef [v1_enum] enum THUMBBUTTONFLAGS {
2398 THBF_ENABLED = 0x0000,
2399 THBF_DISABLED = 0x0001,
2400 THBF_DISMISSONCLICK = 0x0002,
2401 THBF_NOBACKGROUND = 0x0004,
2402 THBF_HIDDEN = 0x0008,
2403 THBF_NONINTERACTIVE = 0x0010
2406 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONFLAGS)")
2408 typedef [v1_enum] enum THUMBBUTTONMASK {
2409 THB_BITMAP = 0x0001,
2411 THB_TOOLTIP = 0x0004,
2415 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONMASK)")
2417 cpp_quote("#include <pshpack8.h>")
2418 typedef struct THUMBBUTTON {
2419 THUMBBUTTONMASK dwMask;
2424 THUMBBUTTONFLAGS dwFlags;
2425 } THUMBBUTTON, *LPTHUMBBUTTON;
2426 cpp_quote("#include <poppack.h>")
2428 /*****************************************************************************
2429 * ITaskbarList2 interface
2433 uuid(602D4995-B13A-429B-A66E-1935E44F4317),
2434 pointer_default(unique)
2436 interface ITaskbarList2 : ITaskbarList
2438 HRESULT MarkFullscreenWindow(
2440 [in] BOOL fullscreen);
2444 uuid(ea1afb91-9e28-4b86-90e9-9e9f8a5eefaf),
2447 interface ITaskbarList3 : ITaskbarList2
2449 typedef [v1_enum] enum TBPFLAG {
2450 TBPF_NOPROGRESS = 0x0000,
2451 TBPF_INDETERMINATE = 0x0001,
2452 TBPF_NORMAL = 0x0002,
2453 TBPF_ERROR = 0x0004,
2454 TBPF_PAUSED = 0x0008
2457 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(TBPFLAG)")
2459 HRESULT SetProgressValue(
2461 [in] ULONGLONG ullCompleted,
2462 [in] ULONGLONG ullTotal);
2464 HRESULT SetProgressState(
2466 [in] TBPFLAG tbpFlags);
2468 HRESULT RegisterTab(
2472 HRESULT UnregisterTab([in] HWND hwndTab);
2474 HRESULT SetTabOrder(
2476 [in] HWND hwndInsertBefore);
2478 HRESULT SetTabActive(
2481 [in] DWORD dwReserved);
2483 HRESULT ThumbBarAddButtons(
2486 [in, size_is(cButtons)] LPTHUMBBUTTON pButton);
2488 HRESULT ThumbBarUpdateButtons(
2491 [in, size_is(cButtons)] LPTHUMBBUTTON pButton);
2493 HRESULT ThumbBarSetImageList(
2495 [in] HIMAGELIST himl);
2497 HRESULT SetOverlayIcon(
2500 [in, unique, string] LPCWSTR pszDescription);
2502 HRESULT SetThumbnailTooltip(
2504 [in, unique, string] LPCWSTR pszTip);
2506 HRESULT SetThumbnailClip(
2508 [in] RECT *prcClip);
2512 uuid(c43dc798-95d1-4bea-9030-bb99e2983a1a),
2515 interface ITaskbarList4 : ITaskbarList3
2517 typedef [v1_enum] enum STPFLAG {
2519 STPF_USEAPPTHUMBNAILALWAYS = 0x0001,
2520 STPF_USEAPPTHUMBNAILWHENACTIVE = 0x0002,
2521 STPF_USEAPPPEEKALWAYS = 0x0004,
2522 STPF_USEAPPPEEKWHENACTIVE = 0x0008
2525 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(STPFLAG)")
2527 HRESULT SetTabProperties(
2529 [in] STPFLAG stpFlags);
2532 /*****************************************************************************
2533 * IAutoCompleteDropDown interface
2537 uuid(3CD141F4-3C6A-11d2-BCAA-00C04FD929DB),
2538 pointer_default(unique)
2540 interface IAutoCompleteDropDown : IUnknown
2542 cpp_quote("#define ACDD_VISIBLE 0x0001")
2544 HRESULT GetDropDownStatus(
2545 [out] DWORD *pdwFlags,
2546 [out, string] LPWSTR *ppwszString);
2548 HRESULT ResetEnumerator();
2551 /*****************************************************************************
2552 * IExplorerBrowserEvents interface
2556 uuid(361BBDC7-E6EE-4E13-BE58-58E2240C810F)
2558 interface IExplorerBrowserEvents : IUnknown
2560 HRESULT OnNavigationPending(
2561 [in] PCIDLIST_ABSOLUTE pidlFolder);
2563 HRESULT OnViewCreated(
2564 [in] IShellView *psv);
2566 HRESULT OnNavigationComplete(
2567 [in] PCIDLIST_ABSOLUTE pidlFolder);
2569 HRESULT OnNavigationFailed(
2570 [in] PCIDLIST_ABSOLUTE pidlFolder);
2573 typedef GUID EXPLORERPANE;
2574 typedef EXPLORERPANE *REFEXPLORERPANE;
2576 cpp_quote("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
2578 /*****************************************************************************
2579 * IExplorerPaneVisibility interface
2583 uuid(E07010EC-BC17-44C0-97B0-46C7C95B9EDC)
2585 interface IExplorerPaneVisibility : IUnknown
2587 typedef enum tagEXPLORERPANESTATE {
2589 EPS_DEFAULT_ON = 0x1,
2590 EPS_DEFAULT_OFF = 0x2,
2591 EPS_STATE_MASK = 0xffff,
2592 EPS_INITIALSTATE = 0x10000,
2594 } EXPLORERPANESTATE;
2596 HRESULT GetPaneState(
2597 [in] REFEXPLORERPANE ep,
2598 [out] EXPLORERPANESTATE *peps);
2601 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS {
2603 EBF_SELECTFROMDATAOBJECT = 0x100,
2604 EBF_NODROPTARGET = 0x200
2605 } EXPLORER_BROWSER_FILL_FLAGS;
2607 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS {
2609 EBO_NAVIGATEONCE = 0x01,
2610 EBO_SHOWFRAMES = 0x02,
2611 EBO_ALWAYSNAVIGATE = 0x04,
2612 EBO_NOTRAVELLOG = 0x08,
2613 EBO_NOWRAPPERWINDOW = 0x10,
2614 EBO_HTMLSHAREPOINTVIEW = 0x20
2615 } EXPLORER_BROWSER_OPTIONS;
2617 cpp_quote("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
2619 /*****************************************************************************
2620 * IExplorerBrowser interface
2624 uuid(DFD3B6B5-C10C-4BE9-85F6-A66969F402F6),
2625 pointer_default(unique)
2627 interface IExplorerBrowser : IUnknown
2630 [local] HRESULT Initialize(
2631 [in] HWND hwndParent,
2632 [in] const RECT *prc,
2633 [in, unique] const FOLDERSETTINGS *pfs);
2637 [local] HRESULT SetRect(
2638 [in,out,unique] HDWP *phdwp,
2639 [in] RECT rcBrowser);
2641 HRESULT SetPropertyBag(
2642 [in, string] LPCWSTR pszPropertyBag);
2644 HRESULT SetEmptyText(
2645 [in, string] LPCWSTR pszEmptyText);
2647 HRESULT SetFolderSettings(
2648 [in] const FOLDERSETTINGS *pfs);
2651 [in] IExplorerBrowserEvents *psbe,
2652 [out] DWORD *pdwCookie);
2655 [in] DWORD dwCookie);
2658 [in] EXPLORER_BROWSER_OPTIONS dwFlag);
2661 [out] EXPLORER_BROWSER_OPTIONS *pdwFlag);
2663 HRESULT BrowseToIDList(
2664 [in] PCUIDLIST_RELATIVE pidl,
2667 HRESULT BrowseToObject(
2668 [in] IUnknown *punk,
2671 HRESULT FillFromObject(
2672 [in] IUnknown *punk,
2673 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags);
2675 HRESULT RemoveAll();
2677 HRESULT GetCurrentView(
2679 [out, iid_is(riid)] void **ppv);
2682 /*****************************************************************************
2683 * INameSpaceTreeControl interface
2687 uuid(028212A3-B627-47E9-8856-C14265554E4F)
2689 interface INameSpaceTreeControl : IUnknown
2691 [v1_enum] enum _NSTCSTYLE {
2692 NSTCS_HASEXPANDOS = 0x00000001,
2693 NSTCS_HASLINES = 0x00000002,
2694 NSTCS_SINGLECLICKEXPAND = 0x00000004,
2695 NSTCS_FULLROWSELECT = 0x00000008,
2696 NSTCS_SPRINGEXPAND = 0x00000010,
2697 NSTCS_HORIZONTALSCROLL = 0x00000020,
2698 NSTCS_ROOTHASEXPANDO = 0x00000040,
2699 NSTCS_SHOWSELECTIONALWAYS = 0x00000080,
2700 NSTCS_NOINFOTIP = 0x00000200,
2701 NSTCS_EVENHEIGHT = 0x00000400,
2702 NSTCS_NOREPLACEOPEN = 0x00000800,
2703 NSTCS_DISABLEDRAGDROP = 0x00001000,
2704 NSTCS_NOORDERSTREAM = 0x00002000,
2705 NSTCS_RICHTOOLTIP = 0x00004000,
2706 NSTCS_BORDER = 0x00008000,
2707 NSTCS_NOEDITLABELS = 0x00010000,
2708 NSTCS_TABSTOP = 0x00020000,
2709 NSTCS_FAVORITESMODE = 0x00080000,
2710 NSTCS_AUTOHSCROLL = 0x00100000,
2711 NSTCS_FADEINOUTEXPANDOS = 0x00200000,
2712 NSTCS_EMPTYTEXT = 0x00400000,
2713 NSTCS_CHECKBOXES = 0x00800000,
2714 NSTCS_PARTIALCHECKBOXES = 0x01000000,
2715 NSTCS_EXCLUSIONCHECKBOXES = 0x02000000,
2716 NSTCS_DIMMEDCHECKBOXES = 0x04000000,
2717 NSTCS_NOINDENTCHECKS = 0x08000000,
2718 NSTCS_ALLOWJUNCTIONS = 0x10000000,
2719 NSTCS_SHOWTABSBUTTON = 0x20000000,
2720 NSTCS_SHOWDELETEBUTTON = 0x40000000,
2721 NSTCS_SHOWREFRESHBUTTON = (int)0x80000000
2723 typedef DWORD NSTCSTYLE;
2725 [v1_enum] enum _NSTCROOTSTYLE {
2726 NSTCRS_VISIBLE = 0x0000,
2727 NSTCRS_HIDDEN = 0x0001,
2728 NSTCRS_EXPANDED = 0x0002
2730 typedef DWORD NSTCROOTSTYLE;
2732 [v1_enum] enum _NSTCITEMSTATE {
2733 NSTCIS_NONE = 0x0000,
2734 NSTCIS_SELECTED = 0x0001,
2735 NSTCIS_EXPANDED = 0x0002,
2736 NSTCIS_BOLD = 0x0004,
2737 NSTCIS_DISABLED = 0x0008,
2738 NSTCIS_SELECTEDNOEXPAND = 0x0010
2740 typedef DWORD NSTCITEMSTATE;
2742 typedef [v1_enum] enum NSTCGNI {
2744 NSTCGNI_NEXTVISIBLE = 1,
2746 NSTCGNI_PREVVISIBLE = 3,
2749 NSTCGNI_FIRSTVISIBLE = 6,
2750 NSTCGNI_LASTVISIBLE = 7
2754 [in] HWND hwndParent,
2755 [in, unique] RECT *prc,
2756 [in] NSTCSTYLE nstcsFlags);
2759 [in] IUnknown *punk,
2760 [out] DWORD *pdwCookie);
2762 HRESULT TreeUnadvise(
2763 [in] DWORD dwCookie);
2766 [in] IShellItem *psiRoot,
2767 [in] SHCONTF grfEnumFlags,
2768 [in] NSTCROOTSTYLE grfRootStyle,
2769 [in, unique] IShellItemFilter *pif);
2773 [in] IShellItem *psiRoot,
2774 [in] SHCONTF grfEnumFlags,
2775 [in] NSTCROOTSTYLE grfRootStyle,
2776 [in, unique] IShellItemFilter *pif);
2779 [in] IShellItem *psiRoot);
2781 HRESULT RemoveAllRoots();
2783 HRESULT GetRootItems(
2784 [out] IShellItemArray **ppsiaRootItems);
2786 HRESULT SetItemState(
2787 [in] IShellItem *psi,
2788 [in] NSTCITEMSTATE nstcisMask,
2789 [in] NSTCITEMSTATE nstcisFlags);
2791 HRESULT GetItemState(
2792 [in] IShellItem *psi,
2793 [in] NSTCITEMSTATE nstcismask,
2794 [out] NSTCITEMSTATE *pnstcisFlags);
2796 HRESULT GetSelectedItems(
2797 [out] IShellItemArray **psiaItems);
2799 HRESULT GetItemCustomState(
2800 [in] IShellItem *psi,
2801 [out] int *piStateNumber);
2803 HRESULT SetItemCustomState(
2804 [in] IShellItem *psi,
2805 [in] int iStateNumber);
2807 HRESULT EnsureItemVisible(
2808 [in] IShellItem *psi);
2811 [in, string] LPCWSTR pszTheme);
2813 HRESULT GetNextItem(
2814 [in, unique] IShellItem *psi,
2815 [in] NSTCGNI nstcgi,
2816 [out] IShellItem **ppsiNext);
2820 [out] IShellItem **ppsiOut);
2822 HRESULT GetItemRect(
2823 [in] IShellItem *psi,
2826 HRESULT CollapseAll();
2829 /*****************************************************************************
2830 * INameSpaceTreeControl2 interface
2834 uuid(7CC7AED8-290E-49BC-8945-C1401CC9306C)
2836 interface INameSpaceTreeControl2 : INameSpaceTreeControl
2838 typedef [v1_enum] enum NSTCSTYLE2 {
2839 NSTCS2_DEFAULT = 0x00,
2840 NSTCS2_INTERRUPTNOTIFICATIONS = 0x01,
2841 NSTCS2_SHOWNULLSPACEMENU = 0x02,
2842 NSTCS2_DISPLAYPADDING = 0x04,
2843 NSTCS2_DISPLAYPINNEDONLY = 0x08,
2844 NTSCS2_NOSINGLETONAUTOEXPAND = 0x10, /* The apparent typo here is */
2845 NTSCS2_NEVERINSERTNONENUMERATED = 0x20 /* present also in the Win SDK */
2847 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(NSTCSTYLE2)")
2849 HRESULT SetControlStyle(
2850 [in] NSTCSTYLE nstcsMask,
2851 [in] NSTCSTYLE nstcsStyle);
2853 HRESULT GetControlStyle(
2854 [in] NSTCSTYLE nstcsMask,
2855 [out] NSTCSTYLE *pnstcsStyle);
2857 HRESULT SetControlStyle2(
2858 [in] NSTCSTYLE2 nstcsMask,
2859 [in] NSTCSTYLE2 nstcsStyle);
2861 HRESULT GetControlStyle2(
2862 [in] NSTCSTYLE2 nstcsMask,
2863 [out] NSTCSTYLE2 *pnstcsStyle);
2866 /*****************************************************************************
2867 * INameSpaceTreeControlEvents interface
2872 uuid(93D77985-B3D8-4484-8318-672CDDA002CE),
2875 interface INameSpaceTreeControlEvents : IUnknown
2877 [v1_enum] enum _NSTCEHITTEST {
2878 NSTCEHT_NOWHERE = 0x0001,
2879 NSTCEHT_ONITEMICON = 0x0002,
2880 NSTCEHT_ONITEMLABEL = 0x0004,
2881 NSTCEHT_ONITEMIDENT = 0x0008,
2882 NSTCEHT_ONITEMBUTTON = 0x0010,
2883 NSTCEHT_ONITEMRIGHT = 0x0020,
2884 NSTCEHT_ONITEMSTATEICON = 0x0040,
2885 NSTCEHT_ONITEM = 0x0046,
2886 NSTCEHT_ONITEMTABBUTTON = 0x1000
2888 typedef DWORD NSTCEHITTEST;
2890 [v1_enum] enum _NSTCECLICKTYPE {
2891 NSTCECT_LBUTTON = 0x1,
2892 NSTCECT_MBUTTON = 0x2,
2893 NSTCECT_RBUTTON = 0x3,
2894 NSTCECT_BUTTON = 0x3,
2895 NSTCECT_DBLCLICK = 0x4
2897 typedef DWORD NSTCECLICKTYPE;
2899 HRESULT OnItemClick(
2900 [in] IShellItem *psi,
2901 [in] NSTCEHITTEST nstceHitTest,
2902 [in] NSTCECLICKTYPE nstceClickType);
2904 HRESULT OnPropertyItemCommit(
2905 [in] IShellItem *psi);
2907 HRESULT OnItemStateChanging(
2908 [in] IShellItem *psi,
2909 [in] NSTCITEMSTATE nstcisMask,
2910 [in] NSTCITEMSTATE nstcisState);
2912 HRESULT OnItemStateChanged(
2913 [in] IShellItem *psi,
2914 [in] NSTCITEMSTATE nstcisMask,
2915 [in] NSTCITEMSTATE nstcisState);
2917 HRESULT OnSelectionChanged(
2918 [in] IShellItemArray *psiaSelection);
2920 HRESULT OnKeyboardInput(
2923 [in] LPARAM lParam);
2925 HRESULT OnBeforeExpand(
2926 [in] IShellItem *psi);
2928 HRESULT OnAfterExpand(
2929 [in] IShellItem *psi);
2931 HRESULT OnBeginLabelEdit(
2932 [in] IShellItem *psi);
2934 HRESULT OnEndLabelEdit(
2935 [in] IShellItem *psi);
2937 HRESULT OnGetToolTip(
2938 [in] IShellItem *psi,
2939 [out, string, size_is(cchTip)] LPWSTR pszTip,
2942 HRESULT OnBeforeItemDelete(
2943 [in] IShellItem *psi);
2945 HRESULT OnItemAdded(
2946 [in] IShellItem *psi,
2949 HRESULT OnItemDeleted(
2950 [in] IShellItem *psi,
2953 HRESULT OnBeforeContextMenu(
2954 [in, unique] IShellItem *psi,
2956 [out, iid_is(riid)] void **ppv);
2958 HRESULT OnAfterContextMenu(
2959 [in] IShellItem *psi,
2960 [in] IContextMenu *pcmIn,
2962 [out, iid_is(riid)] void **ppv);
2964 HRESULT OnBeforeStateImageChange(
2965 [in] IShellItem *psi);
2967 HRESULT OnGetDefaultIconIndex(
2968 [in] IShellItem *psi,
2969 [out] int *piDefaultIcon,
2970 [out] int *piOpenIcon);
2973 /*****************************************************************************
2974 * INameSpaceTreeControlCustomDraw interface
2978 uuid(2D3BA758-33EE-42D5-BB7B-5F3431D86C78),
2982 interface INameSpaceTreeControlCustomDraw : IUnknown
2984 typedef struct NSTCCUSTOMDRAW
2988 NSTCITEMSTATE nstcis;
2999 [out] LRESULT *plres);
3005 HRESULT ItemPrePaint(
3008 [in, out] COLORREF *pclrText,
3009 [in, out] COLORREF *pclrTextBk,
3010 [out] LRESULT *plres);
3012 HRESULT ItemPostPaint(
3015 [in] NSTCCUSTOMDRAW *pnstccdItem);
3018 /*****************************************************************************
3019 * INameSpaceTreeControlDropHandler interface
3023 uuid(F9C665D6-C2F2-4C19-BF33-8322D7352F51),
3026 interface INameSpaceTreeControlDropHandler : IUnknown
3028 HRESULT OnDragEnter(
3029 [in, unique] IShellItem *psiOver,
3030 [in] IShellItemArray *psiaData,
3031 [in] BOOL fOutsideSource,
3032 [in] DWORD grfKeyState,
3033 [in, out] DWORD *pdwEffect);
3036 [in, unique] IShellItem *psiOver,
3037 [in] IShellItemArray *psiaData,
3038 [in] DWORD grfKeyState,
3039 [in, out] DWORD *pdwEffect);
3041 HRESULT OnDragPosition(
3042 [in, unique] IShellItem *psiOver,
3043 [in] IShellItemArray *psiaData,
3044 [in] int iNewPosition,
3045 [in] int iOldPosition);
3048 [in, unique] IShellItem *psiOver,
3049 [in] IShellItemArray *psiaData,
3051 [in] DWORD grfKeyState,
3052 [in, out] DWORD *pdwEffect);
3054 HRESULT OnDropPosition(
3055 [in, unique] IShellItem *psiOver,
3056 [in] IShellItemArray *psiaData,
3057 [in] int iNewPosition,
3058 [in] int iOldPosition);
3060 HRESULT OnDragLeave(
3061 [in, unique] IShellItem *psiOver);
3063 cpp_quote("#define NSTCDHPOS_ONTOP -1")
3065 interface IFileDialog;
3067 typedef [v1_enum] enum FDE_OVERWRITE_RESPONSE
3072 } FDE_OVERWRITE_RESPONSE;
3074 typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
3079 } FDE_SHAREVIOLATION_RESPONSE;
3081 /*****************************************************************************
3082 * IFileDialogEvents interface
3086 uuid(973510DB-7D7F-452B-8975-74A85828D354),
3087 pointer_default(unique)
3089 interface IFileDialogEvents : IUnknown
3092 [in] IFileDialog *pfd);
3094 HRESULT OnFolderChanging(
3095 [in] IFileDialog *pfd,
3096 [in] IShellItem *psiFolder);
3098 HRESULT OnFolderChange(
3099 [in] IFileDialog *pfd);
3101 HRESULT OnSelectionChange(
3102 [in] IFileDialog *pfd);
3104 HRESULT OnShareViolation(
3105 [in] IFileDialog *pfd,
3106 [in] IShellItem *psi,
3107 [out] FDE_SHAREVIOLATION_RESPONSE *pResponse);
3109 HRESULT OnTypeChange(
3110 [in] IFileDialog *pfd);
3112 HRESULT OnOverwrite(
3113 [in] IFileDialog *pfd,
3114 [in] IShellItem *psi,
3115 [out] FDE_OVERWRITE_RESPONSE *pResponse);
3118 /*****************************************************************************
3119 * IModalWindow interface
3123 uuid(B4DB1657-70D7-485E-8E3E-6FCB5A5C1802),
3124 pointer_default(unique)
3126 interface IModalWindow : IUnknown
3130 [in, unique, annotation("__in_opt")] HWND hwndOwner);
3134 [in, unique] HWND hwndOwner);
3137 typedef [v1_enum] enum FDAP
3143 /*****************************************************************************
3144 * IFileDialog interface
3148 uuid(42F85136-DB7E-439C-85F1-E4075D135FC8),
3149 pointer_default(unique)
3151 interface IFileDialog : IModalWindow
3153 [v1_enum] enum _FILEOPENDIALOGOPTIONS
3155 FOS_OVERWRITEPROMPT = 0x00000002,
3156 FOS_STRICTFILETYPES = 0x00000004,
3157 FOS_NOCHANGEDIR = 0x00000008,
3158 FOS_PICKFOLDERS = 0x00000020,
3159 FOS_FORCEFILESYSTEM = 0x00000040,
3160 FOS_ALLNONSTORAGEITEMS = 0x00000080,
3161 FOS_NOVALIDATE = 0x00000100,
3162 FOS_ALLOWMULTISELECT = 0x00000200,
3163 FOS_PATHMUSTEXIST = 0x00000800,
3164 FOS_FILEMUSTEXIST = 0x00001000,
3165 FOS_CREATEPROMPT = 0x00002000,
3166 FOS_SHAREAWARE = 0x00004000,
3167 FOS_NOREADONLYRETURN = 0x00008000,
3168 FOS_NOTESTFILECREATE = 0x00010000,
3169 FOS_HIDEMRUPLACES = 0x00020000,
3170 FOS_HIDEPINNEDPLACES = 0x00040000,
3171 FOS_NODEREFERENCELINKS = 0x00100000,
3172 FOS_DONTADDTORECENT = 0x02000000,
3173 FOS_FORCESHOWHIDDEN = 0x10000000,
3174 FOS_DEFAULTNOMINIMODE = 0x20000000,
3175 FOS_FORCEPREVIEWPANEON = 0x40000000
3177 typedef DWORD FILEOPENDIALOGOPTIONS;
3179 HRESULT SetFileTypes(
3180 [in] UINT cFileTypes,
3181 [in, size_is(cFileTypes)] const COMDLG_FILTERSPEC *rgFilterSpec);
3183 HRESULT SetFileTypeIndex(
3184 [in] UINT iFileType);
3186 HRESULT GetFileTypeIndex(
3187 [out] UINT *piFileType);
3190 [in] IFileDialogEvents *pfde,
3191 [out] DWORD *pdwCookie);
3194 [in] DWORD dwCookie);
3197 [in] FILEOPENDIALOGOPTIONS fos);
3200 [in] FILEOPENDIALOGOPTIONS *pfos);
3202 HRESULT SetDefaultFolder(
3203 [in] IShellItem *psi);
3206 [in] IShellItem *psi);
3209 [out] IShellItem **ppsi);
3211 HRESULT GetCurrentSelection(
3212 [out] IShellItem **ppsi);
3214 HRESULT SetFileName(
3215 [in, string] LPCWSTR pszName);
3217 HRESULT GetFileName(
3218 [out, string] LPWSTR *pszName);
3221 [in, string] LPCWSTR pszTitle);
3223 HRESULT SetOkButtonLabel(
3224 [in, string] LPCWSTR pszText);
3226 HRESULT SetFileNameLabel(
3227 [in, string] LPCWSTR pszLabel);
3230 [out] IShellItem **ppsi);
3233 [in] IShellItem *psi,
3236 HRESULT SetDefaultExtension(
3237 [in, string] LPCWSTR pszDefaultExtension);
3242 HRESULT SetClientGuid(
3245 HRESULT ClearClientData();
3248 [in] IShellItemFilter *pFilter);
3251 /*****************************************************************************
3252 * IFileDialog2 interface
3256 uuid(61744FC7-85B5-4791-A9B0-272276309B13),
3257 pointer_default(unique)
3259 interface IFileDialog2 : IFileDialog
3261 HRESULT SetCancelButtonLabel(
3262 [in] LPCWSTR pszLabel);
3264 HRESULT SetNavigationRoot(
3265 [in] IShellItem *psi);
3268 /*****************************************************************************
3269 * IFileOperationProgressSink interface
3273 uuid(04B0F1A7-9490-44BC-96E1-4296A31252E2),
3274 pointer_default(unique)
3276 interface IFileOperationProgressSink : IUnknown
3278 HRESULT StartOperations();
3280 HRESULT FinishOperations(
3281 [in] HRESULT hrResult);
3283 HRESULT PreRenameItem(
3285 [in] IShellItem *psiItem,
3286 [in, unique, string] LPCWSTR pszNewName);
3288 HRESULT PostRenameItem(
3290 [in] IShellItem *psiItem,
3291 [in, string] LPCWSTR pszNewName,
3292 [in] HRESULT hrRename,
3293 [in] IShellItem *psiNewlyCreated);
3295 HRESULT PreMoveItem(
3297 [in] IShellItem *psiItem,
3298 [in] IShellItem *psiDestinationFolder,
3299 [in, unique, string] LPCWSTR pszNewName);
3301 HRESULT PostMoveItem(
3303 [in] IShellItem *psiItem,
3304 [in] IShellItem *psiDestinationFolder,
3305 [in, unique, string] LPCWSTR pszNewName,
3306 [in] HRESULT hrMove,
3307 [in] IShellItem *psiNewlyCreated);
3309 HRESULT PreCopyItem(
3311 [in] IShellItem *psiItem,
3312 [in] IShellItem *psiDestinationFolder,
3313 [in, unique, string] LPCWSTR pszNewName);
3315 HRESULT PostCopyItem(
3317 [in] IShellItem *psiItem,
3318 [in] IShellItem *psiDestinationFolder,
3319 [in, unique, string] LPCWSTR pszNewName,
3320 [in] HRESULT hrCopy,
3321 [in] IShellItem *psiNewlyCreated);
3323 HRESULT PreDeleteItem(
3325 [in] IShellItem *psiItem);
3327 HRESULT PostDeleteItem(
3329 [in] IShellItem *psiItem,
3330 [in] HRESULT hrDelete,
3331 [in] IShellItem *psiNewlyCreated);
3335 [in] IShellItem *psiDestinationFolder,
3336 [in, unique, string] LPCWSTR pszNewName);
3338 HRESULT PostNewItem(
3340 [in] IShellItem *psiDestinationFolder,
3341 [in, unique, string] LPCWSTR pszNewName,
3342 [in, unique, string] LPCWSTR pszTemplateName,
3343 [in] DWORD dwFileAttributes,
3345 [in] IShellItem *psiNewItem);
3347 HRESULT UpdateProgress(
3348 [in] UINT iWorkTotal,
3349 [in] UINT iWorkSoFar);
3351 HRESULT ResetTimer();
3353 HRESULT PauseTimer();
3355 HRESULT ResumeTimer();
3358 /*****************************************************************************
3359 * IFileSaveDialog interface
3363 uuid(84BCCD23-5FDE-4CDB-AEA4-AF64B83D78AB),
3364 pointer_default(unique)
3366 interface IFileSaveDialog : IFileDialog
3368 HRESULT SetSaveAsItem(
3369 [in] IShellItem *psi);
3371 HRESULT SetProperties(
3372 [in] IPropertyStore *pStore);
3374 HRESULT SetCollectedProperties(
3375 [in] IPropertyDescriptionList *pList,
3376 [in] BOOL fAppendDefault);
3378 HRESULT GetProperties(
3379 [in] IPropertyStore **ppStore);
3381 HRESULT ApplyProperties(
3382 [in] IShellItem *psi,
3383 [in] IPropertyStore *pStore,
3384 [in, unique] HWND hwnd,
3385 [in, unique] IFileOperationProgressSink *pSink);
3389 /*****************************************************************************
3390 * IFileOpenDialog interface
3394 uuid(D57C7288-D4AD-4768-BE02-9D969532D960),
3395 pointer_default(unique)
3397 interface IFileOpenDialog : IFileDialog
3400 [out] IShellItemArray **ppenum);
3402 HRESULT GetSelectedItems(
3403 [out] IShellItemArray **ppsai);
3406 typedef [v1_enum] enum CDCONTROLSTATEF
3408 CDCS_INACTIVE = 0x0,
3411 CDCS_ENABLEDVISIBLE = 0x3
3413 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
3414 /*****************************************************************************
3415 * IFileDialogCustomize interface
3419 uuid(E6FDD21A-163F-4975-9C8C-A69F1BA37034),
3420 pointer_default(unique)
3422 interface IFileDialogCustomize : IUnknown
3424 HRESULT EnableOpenDropDown(
3425 [in] DWORD dwIDCtl);
3429 [in, string] LPCWSTR pszLabel);
3431 HRESULT AddPushButton(
3433 [in, string] LPCWSTR pszLabel);
3435 HRESULT AddComboBox(
3436 [in] DWORD dwIDCtl);
3438 HRESULT AddRadioButtonList(
3439 [in] DWORD dwIDCtl);
3441 HRESULT AddCheckButton(
3443 [in, string] LPCWSTR pszLabel,
3444 [in] BOOL bChecked);
3448 [in, string] LPCWSTR pszText);
3450 HRESULT AddSeparator(
3451 [in] DWORD dwIDCtl);
3455 [in, string] LPCWSTR pszText);
3457 HRESULT SetControlLabel(
3459 [in, string] LPCWSTR pszLabel);
3461 HRESULT GetControlState(
3463 [out] CDCONTROLSTATEF *pdwState);
3465 HRESULT SetControlState(
3467 [in] CDCONTROLSTATEF dwState);
3469 HRESULT GetEditBoxText(
3471 [out, string] WCHAR **ppszText);
3473 HRESULT SetEditBoxText(
3475 [in, string] LPCWSTR pszText);
3477 HRESULT GetCheckButtonState(
3479 [out] BOOL *pbChecked);
3481 HRESULT SetCheckButtonState(
3483 [in] BOOL bChecked);
3485 HRESULT AddControlItem(
3487 [in] DWORD dwIDItem,
3488 [in] LPCWSTR pszLabel);
3490 HRESULT RemoveControlItem(
3492 [in] DWORD dwIDItem);
3494 HRESULT RemoveAllControlItems(
3495 [in] DWORD dwIDCtl);
3497 HRESULT GetControlItemState(
3499 [in] DWORD dwIDItem,
3500 [out] CDCONTROLSTATEF *pdwState);
3502 HRESULT SetControlItemState(
3504 [in] DWORD dwIDItem,
3505 [in] CDCONTROLSTATEF dwState);
3507 HRESULT GetSelectedControlItem(
3509 [out] DWORD *pdwIDItem);
3511 HRESULT SetSelectedControlItem(
3513 [in] DWORD dwIDItem);
3515 HRESULT StartVisualGroup(
3517 [in, string] LPCWSTR pszLabel);
3519 HRESULT EndVisualGroup();
3521 HRESULT MakeProminent(
3522 [in] DWORD dwIDCtl);
3524 HRESULT SetControlItemText(
3526 [in] DWORD dwIDItem,
3527 [in, string] LPCWSTR pszLabel);
3530 /*****************************************************************************
3531 * IFileDialogControlEvents interface
3535 uuid(36116642-D713-4B97-9B83-7484A9D00433),
3536 pointer_default(unique)
3538 interface IFileDialogControlEvents : IUnknown
3540 HRESULT OnItemSelected(
3541 [in] IFileDialogCustomize *pfdc,
3543 [in] DWORD dwIDItem);
3545 HRESULT OnButtonClicked(
3546 [in] IFileDialogCustomize *pfdc,
3547 [in] DWORD dwIDCtl);
3549 HRESULT OnCheckButtonToggled(
3550 [in] IFileDialogCustomize *pfdc,
3552 [in] BOOL bChecked);
3554 HRESULT OnControlActivating(
3555 [in] IFileDialogCustomize *pfdc,
3556 [in] DWORD dwIDCtl);
3559 typedef [v1_enum] enum tagKF_CATEGORY
3561 KF_CATEGORY_VIRTUAL = 0x00000001,
3562 KF_CATEGORY_FIXED = 0x00000002,
3563 KF_CATEGORY_COMMON = 0x00000003,
3564 KF_CATEGORY_PERUSER = 0x00000004
3567 typedef [v1_enum] enum tagKF_REDIRECTION_CAPABILITIES
3569 KF_REDIRECTION_CAPABILITIES_ALLOW_ALL = 0x000000ff,
3570 KF_REDIRECTION_CAPABILITIES_REDIRECTABLE = 0x00000001,
3571 KF_REDIRECTION_CAPABILITIES_DENY_ALL = 0x000fff00,
3572 KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED = 0x00000100,
3573 KF_REDIRECTION_CAPABILITIES_DENY_POLICY = 0x00000200,
3574 KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS = 0x00000400
3575 } KF_REDIRECTION_CAPABILITIES;
3577 typedef [v1_enum] enum tagKF_DEFINITION_FLAGS
3579 KFDF_LOCAL_REDIRECT_ONLY = 0x00000002,
3580 KFDF_ROAMABLE = 0x00000004,
3581 KFDF_PRECREATE = 0x00000008,
3582 KFDF_STREAM = 0x00000010,
3583 KFDF_PUBLISHEXPANDEDPATH = 0x00000020
3584 } KF_DEFINITION_FLAGS;
3586 typedef struct tagKNOWNFOLDER_DEFINITION
3588 KF_CATEGORY category;
3590 LPWSTR pszDescription;
3591 KNOWNFOLDERID fidParent;
3592 LPWSTR pszRelativePath;
3593 LPWSTR pszParsingName;
3595 LPWSTR pszLocalizedName;
3599 KF_DEFINITION_FLAGS kfdFlags;
3600 FOLDERTYPEID ftidType;
3601 } KNOWNFOLDER_DEFINITION;
3605 uuid(3aa7af7e-9b36-420C-a8e3-f77d4674a488),
3606 pointer_default(ref)
3608 interface IKnownFolder : IUnknown
3611 [out] KNOWNFOLDERID *pkfid);
3613 HRESULT GetCategory(
3614 [out] KF_CATEGORY *pCategory);
3616 HRESULT GetShellItem(
3619 [out, iid_is(riid)] void **ppv);
3623 [out, string] LPWSTR *ppszPath);
3627 [in, string] LPCWSTR pszPath);
3631 [out] PIDLIST_ABSOLUTE *ppidl);
3633 HRESULT GetFolderType(
3634 [out] FOLDERTYPEID *pftid);
3636 HRESULT GetRedirectionCapabilities(
3637 [out] KF_REDIRECTION_CAPABILITIES *pCapabilities);
3639 HRESULT GetFolderDefinition(
3640 [out] KNOWNFOLDER_DEFINITION *pKFD);
3643 typedef [v1_enum] enum tagKF_REDIRECT_FLAGS
3645 KF_REDIRECT_USER_EXCLUSIVE = 0x00000001,
3646 KF_REDIRECT_COPY_SOURCE_DACL = 0x00000002,
3647 KF_REDIRECT_OWNER_USER = 0x00000004,
3648 KF_REDIRECT_SET_OWNER_EXPLICIT = 0x00000008,
3649 KF_REDIRECT_CHECK_ONLY = 0x00000010,
3650 KF_REDIRECT_WITH_UI = 0x00000020,
3651 KF_REDIRECT_UNPIN = 0x00000040,
3652 KF_REDIRECT_PIN = 0x00000080,
3653 KF_REDIRECT_COPY_CONTENTS = 0x00000200,
3654 KF_REDIRECT_DEL_SOURCE_CONTENTS = 0x00000400,
3655 KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS = 0x00000800
3656 } KF_REDIRECT_FLAGS;
3660 uuid(8BE2D872-86AA-4d47-B776-32CCA40C7018),
3661 pointer_default(ref)
3663 interface IKnownFolderManager : IUnknown
3665 typedef [v1_enum] enum tagFFFP_MODE
3668 FFFP_NEARESTPARENTMATCH
3671 HRESULT FolderIdFromCsidl(
3673 [out] KNOWNFOLDERID *pfid);
3675 HRESULT FolderIdToCsidl(
3676 [in] REFKNOWNFOLDERID rfid,
3677 [out] int *pnCsidl);
3679 HRESULT GetFolderIds(
3680 [out, size_is(, *pCount)] KNOWNFOLDERID **ppKFId,
3681 [in, out] UINT *pCount);
3684 [in] REFKNOWNFOLDERID rfid,
3685 [out] IKnownFolder **ppkf);
3687 HRESULT GetFolderByName(
3688 [in, string] LPCWSTR pszCanonicalName,
3689 [out] IKnownFolder **ppkf);
3691 HRESULT RegisterFolder(
3692 [in] REFKNOWNFOLDERID rfid,
3693 [in] KNOWNFOLDER_DEFINITION const *pKFD);
3695 HRESULT UnregisterFolder(
3696 [in] REFKNOWNFOLDERID rfid);
3698 HRESULT FindFolderFromPath(
3699 [in, string] LPCWSTR pszPath,
3700 [in] FFFP_MODE mode,
3701 [out] IKnownFolder **ppkf);
3703 HRESULT FindFolderFromIDList(
3704 [in] PCIDLIST_ABSOLUTE pidl,
3705 [out] IKnownFolder **ppkf);
3708 [in] REFKNOWNFOLDERID rfid,
3709 [in, unique] HWND hwnd,
3710 [in] KF_REDIRECT_FLAGS flags,
3711 [in, unique, string] LPCWSTR pszTargetPath,
3713 [in, size_is(cFolders), unique] KNOWNFOLDERID const *pExclusion,
3714 [out, string] LPWSTR *ppszError);
3717 /* function for releasing structure returned from IKnownFolder::GetFolderDefinition */
3718 cpp_quote("static inline void FreeKnownFolderDefinitionFields(KNOWNFOLDER_DEFINITION *pKFD)")
3720 cpp_quote(" CoTaskMemFree(pKFD->pszName);")
3721 cpp_quote(" CoTaskMemFree(pKFD->pszDescription);")
3722 cpp_quote(" CoTaskMemFree(pKFD->pszRelativePath);")
3723 cpp_quote(" CoTaskMemFree(pKFD->pszParsingName);")
3724 cpp_quote(" CoTaskMemFree(pKFD->pszTooltip);")
3725 cpp_quote(" CoTaskMemFree(pKFD->pszLocalizedName);")
3726 cpp_quote(" CoTaskMemFree(pKFD->pszIcon);")
3727 cpp_quote(" CoTaskMemFree(pKFD->pszSecurity);")
3730 typedef [v1_enum] enum ASSOCIATIONLEVEL {
3736 typedef [v1_enum] enum ASSOCIATIONTYPE {
3745 uuid(4e530b0a-e611-4c77-a3ac-9031d022281b),
3746 pointer_default(unique)
3748 interface IApplicationAssociationRegistration : IUnknown
3750 HRESULT QueryCurrentDefault(
3751 [in, string] LPCWSTR pszQuery,
3752 [in] ASSOCIATIONTYPE atQueryType,
3753 [in] ASSOCIATIONLEVEL alQueryLevel,
3754 [out, string] LPWSTR *ppszAssociation);
3756 HRESULT QueryAppIsDefault(
3757 [in, string] LPCWSTR pszQuery,
3758 [in] ASSOCIATIONTYPE atQueryType,
3759 [in] ASSOCIATIONLEVEL alQueryLevel,
3760 [in, string] LPCWSTR pszAppRegistryName,
3761 [out] BOOL *pfDefault);
3763 HRESULT QueryAppIsDefaultAll(
3764 [in] ASSOCIATIONLEVEL alQueryLevel,
3765 [in, string] LPCWSTR pszAppRegistryName,
3766 [out] BOOL* pfDefault);
3768 HRESULT SetAppAsDefault(
3769 [in, string] LPCWSTR pszAppRegistryName,
3770 [in, string] LPCWSTR pszSet,
3771 [in] ASSOCIATIONTYPE atSetType);
3773 HRESULT SetAppAsDefaultAll(
3774 [in, string] LPCWSTR pszAppRegistryName);
3776 HRESULT ClearUserAssociations();
3780 uuid(6332debf-87b5-4670-90c0-5e57b408a49e),
3782 pointer_default(unique)
3784 interface ICustomDestinationList : IUnknown
3786 typedef [v1_enum] enum KNOWNDESTCATEGORY {
3789 } KNOWNDESTCATEGORY;
3791 HRESULT SetAppID([in, string] LPCWSTR pszAppID);
3794 [out] UINT *pcMinSlots,
3796 [out, iid_is(riid)] void **ppv);
3798 HRESULT AppendCategory(
3799 [in, string] LPCWSTR pszCategory,
3800 [in] IObjectArray *poa);
3802 HRESULT AppendKnownCategory([in] KNOWNDESTCATEGORY category);
3803 HRESULT AddUserTasks([in] IObjectArray *poa);
3804 HRESULT CommitList();
3806 HRESULT GetRemovedDestinations(
3808 [out, iid_is(riid)] void **ppv);
3810 HRESULT DeleteList([in, unique, string] LPCWSTR pszAppID);
3811 HRESULT AbortList();
3814 /*****************************************************************************
3815 * ShellObjects typelibrary
3818 uuid(50A7E9B1-70EF-11D1-B75A-00A0C90564FE),
3822 library ShellObjects
3825 uuid(71F96385-DDD6-48D3-A0C1-AE06E8B055FB)
3827 coclass ExplorerBrowser
3829 interface IExplorerBrowser;
3833 uuid(DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7)
3835 coclass FileOpenDialog
3837 interface IFileOpenDialog;
3841 uuid(C0B4E2F3-BA21-4773-8DBA-335EC946EB8B)
3843 coclass FileSaveDialog
3845 interface IFileSaveDialog;
3849 uuid(AE054212-3535-4430-83ED-D501AA6680E6)
3851 coclass NamespaceTreeControl
3853 interface INameSpaceTreeControl2;
3857 uuid(4df0c730-df9d-4ae3-9153-aa6b82e9795a)
3859 coclass KnownFolderManager
3861 interface IKnownFolderManager;
3865 uuid(591209c7-767b-42b2-9fba-44ee4615f2c7)
3867 coclass ApplicationAssociationRegistration
3869 interface IApplicationAssociationRegistration;
3873 uuid(00021401-0000-0000-c000-000000000046)
3877 interface IShellLinkW;
3881 uuid(56fdf344-fd6d-11d0-958a-006097c9a090)
3885 interface ITaskbarList4;
3889 uuid(77f10cf0-3db5-4966-b520-b7c54fd35ed6)
3891 coclass DestinationList {
3892 interface ICustomDestinationList;
3896 uuid(9ac9fbe1-e0a2-4ad6-b4ee-e212013ea917)
3899 interface IShellItem2;