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
26 import "servprov.idl";
29 /*import "prsht.idl";*/
30 /*import "msxml.idl";*/
33 /*****************************************************************************
34 * IPersistFolder interface
38 uuid(000214ea-0000-0000-c000-000000000046),
39 pointer_default(unique)
41 interface IPersistFolder : IPersist
43 typedef IPersistFolder *LPPERSISTFOLDER;
45 HRESULT Initialize( [in] LPCITEMIDLIST pidl );
49 /*****************************************************************************
50 * IPersistFolder2 interface
54 uuid(1ac3d9f0-175c-11d1-95be-00609797ea4f),
55 pointer_default(unique)
57 interface IPersistFolder2 : IPersistFolder
59 typedef IPersistFolder2 *LPPERSISTFOLDER2;
61 HRESULT GetCurFolder( [out] LPITEMIDLIST *ppidl );
65 /*****************************************************************************
66 * IEnumIDList interface
70 uuid(000214f2-0000-0000-c000-000000000046),
71 pointer_default(unique)
73 interface IEnumIDList : IUnknown
75 typedef IEnumIDList *LPENUMIDLIST;
79 [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
80 [out] ULONG *pceltFetched);
82 HRESULT Skip( [in] ULONG celt );
84 HRESULT Clone( [out] IEnumIDList **ppenum );
87 /*****************************************************************************
88 * IShellPropSheetExt interface
91 typedef LPARAM LPFNSVADDPROPSHEETPAGE;
93 cpp_quote("#include <prsht.h>")
94 cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
99 uuid(000214E9-0000-0000-C000-000000000046),
100 pointer_default(unique)
102 interface IShellPropSheetExt : IUnknown
104 enum tagSHELLPROPSHEETEXTPAGEID {
105 EXPPS_FILETYPES = 0x1
111 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
115 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
118 typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
120 /*****************************************************************************
121 * IShellFolder interface
125 uuid(000214e6-0000-0000-c000-000000000046),
126 pointer_default(unique)
128 interface IShellFolder : IUnknown
130 typedef IShellFolder * LPSHELLFOLDER;
132 typedef enum tagSHGDN
136 SHGDN_FOREDITING = 0x1000,
137 SHGDN_INCLUDE_NONFILESYS = 0x2000,
138 SHGDN_FORADDRESSBAR = 0x4000,
139 SHGDN_FORPARSING = 0x8000
142 typedef DWORD SHGDNF;
146 SHCONTF_FOLDERS = 32,
147 SHCONTF_NONFOLDERS = 64,
148 SHCONTF_INCLUDEHIDDEN = 128,
149 SHCONTF_INIT_ON_FIRST_NEXT = 256,
150 SHCONTF_NETPRINTERSRCH = 512,
151 SHCONTF_SHAREABLE = 1024,
152 SHCONTF_STORAGE = 2048
155 typedef DWORD SHCONTF;
157 cpp_quote("#define SHCIDS_ALLFIELDS 0x80000000L")
158 cpp_quote("#define SHCIDS_CANONICALONLY 0x10000000L")
159 cpp_quote("#define SHCIDS_BITMASK 0xFFFF0000L")
160 cpp_quote("#define SHCIDS_COLUMNMASK 0x0000FFFFL")
161 cpp_quote("#define SFGAO_CANCOPY DROPEFFECT_COPY")
162 cpp_quote("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
163 cpp_quote("#define SFGAO_CANLINK DROPEFFECT_LINK")
164 cpp_quote("#define SFGAO_STORAGE 0x00000008L")
165 cpp_quote("#define SFGAO_CANRENAME 0x00000010L")
166 cpp_quote("#define SFGAO_CANDELETE 0x00000020L")
167 cpp_quote("#define SFGAO_HASPROPSHEET 0x00000040L")
168 cpp_quote("#define SFGAO_DROPTARGET 0x00000100L")
169 cpp_quote("#define SFGAO_CAPABILITYMASK 0x00000177L")
170 cpp_quote("#define SFGAO_ENCRYPTED 0x00002000L")
171 cpp_quote("#define SFGAO_ISSLOW 0x00004000L")
172 cpp_quote("#define SFGAO_GHOSTED 0x00008000L")
173 cpp_quote("#define SFGAO_LINK 0x00010000L")
174 cpp_quote("#define SFGAO_SHARE 0x00020000L")
175 cpp_quote("#define SFGAO_READONLY 0x00040000L")
176 cpp_quote("#define SFGAO_HIDDEN 0x00080000L")
177 cpp_quote("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
178 cpp_quote("#define SFGAO_FILESYSANCESTOR 0x10000000L")
179 cpp_quote("#define SFGAO_FOLDER 0x20000000L")
180 cpp_quote("#define SFGAO_FILESYSTEM 0x40000000L")
181 cpp_quote("#define SFGAO_HASSUBFOLDER 0x80000000L")
182 cpp_quote("#define SFGAO_CONTENTSMASK 0x80000000L")
183 cpp_quote("#define SFGAO_VALIDATE 0x01000000L")
184 cpp_quote("#define SFGAO_REMOVABLE 0x02000000L")
185 cpp_quote("#define SFGAO_COMPRESSED 0x04000000L")
186 cpp_quote("#define SFGAO_BROWSABLE 0x08000000L")
187 cpp_quote("#define SFGAO_NONENUMERATED 0x00100000L")
188 cpp_quote("#define SFGAO_NEWCONTENT 0x00200000L")
189 cpp_quote("#define SFGAO_STREAM 0x00400000L")
190 cpp_quote("#define SFGAO_STORAGEANCESTOR 0x00800000L")
192 typedef ULONG SFGAOF;
194 HRESULT ParseDisplayName(
196 [in] LPBC pbcReserved,
197 [in, string] LPOLESTR lpszDisplayName,
198 [out] ULONG *pchEaten,
199 [out] LPITEMIDLIST *ppidl,
200 [in, out, unique] ULONG *pdwAttributes);
204 [in] SHCONTF grfFlags,
205 [out] IEnumIDList **ppenumIDList);
207 HRESULT BindToObject(
208 [in] LPCITEMIDLIST pidl,
209 [in] LPBC pbcReserved,
211 [out, iid_is(riid)] void **ppvOut);
213 HRESULT BindToStorage(
214 [in] LPCITEMIDLIST pidl,
215 [in] LPBC pbcReserved,
217 [out, iid_is(riid)] void **ppvObj);
221 [in] LPCITEMIDLIST pidl1,
222 [in] LPCITEMIDLIST pidl2);
224 HRESULT CreateViewObject(
227 [out, iid_is(riid)] void **ppvOut);
229 HRESULT GetAttributesOf(
231 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
232 [in, out] SFGAOF *rgfInOut);
234 HRESULT GetUIObjectOf(
237 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
239 [in, out, unique] UINT *prgfInOut,
240 [out, iid_is(riid)] void **ppvOut);
242 HRESULT GetDisplayNameOf(
243 [in] LPCITEMIDLIST pidl,
245 [out] STRRET *lpName);
249 [in] LPCITEMIDLIST pidl,
250 [in, string] LPCOLESTR lpszName,
252 [out] LPITEMIDLIST *ppidlOut);
256 /*****************************************************************************
257 * IEnumExtraSearch interface
261 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
262 pointer_default(unique)
264 interface IEnumExtraSearch : IUnknown
266 typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
271 WCHAR wszFriendlyName[80];
273 *WCHAR wszMenuText[80];
274 *WCHAR wszHelpText[MAX_PATH];
278 *WCHAR wszIcon[MAX_PATH+10];
279 *WCHAR wszGreyIcon[MAX_PATH+10];
280 *WCHAR wszClrIcon[MAX_PATH+10];
282 } EXTRASEARCH, *LPEXTRASEARCH;
286 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
287 [out] ULONG *pceltFetched);
289 HRESULT Skip( [in] ULONG celt );
291 HRESULT Clone( [out] IEnumExtraSearch **ppenum );
295 /*****************************************************************************
296 * IShellFolder2 interface
300 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
301 pointer_default(unique)
303 interface IShellFolder2 : IShellFolder
307 SHCOLSTATE_TYPE_STR = 0x00000001,
308 SHCOLSTATE_TYPE_INT = 0x00000002,
309 SHCOLSTATE_TYPE_DATE = 0x00000003,
310 SHCOLSTATE_TYPEMASK = 0x0000000f,
311 SHCOLSTATE_ONBYDEFAULT = 0x00000010,
312 SHCOLSTATE_SLOW = 0x00000020,
313 SHCOLSTATE_EXTENDED = 0x00000040,
314 SHCOLSTATE_SECONDARYUI = 0x00000080,
315 SHCOLSTATE_HIDDEN = 0x00000100,
316 SHCOLSTATE_PREFER_VARCMP = 0x00000200
319 typedef DWORD SHCOLSTATEF;
325 } SHCOLUMNID, *LPSHCOLUMNID;
326 typedef const SHCOLUMNID *LPCSHCOLUMNID;
328 HRESULT GetDefaultSearchGUID( [out] GUID *lpguid );
329 HRESULT EnumSearches( [out] IEnumExtraSearch **ppenum );
330 HRESULT GetDefaultColumn( [in] DWORD dwReserved, [out] ULONG *pSort, [out] ULONG *pDisplay );
331 HRESULT GetDefaultColumnState( [in] UINT iColumn, [out] SHCOLSTATEF *pcsFlags );
332 HRESULT GetDetailsEx( [in] LPCITEMIDLIST pidl, [in] const SHCOLUMNID *pscid, [out] VARIANT *pv);
333 HRESULT GetDetailsOf( [in] LPCITEMIDLIST pidl, [in] UINT iColumn, [out] SHELLDETAILS *psd);
334 HRESULT MapColumnToSCID( [in] UINT iColumn, [in] SHCOLUMNID *pscid );
339 /*****************************************************************************
342 typedef char *LPVIEWSETTINGS;
346 FWF_AUTOARRANGE = 0x00000001,
347 FWF_ABBREVIATEDNAMES = 0x00000002,
348 FWF_SNAPTOGRID = 0x00000004,
349 FWF_OWNERDATA = 0x00000008,
350 FWF_BESTFITWINDOW = 0x00000010,
351 FWF_DESKTOP = 0x00000020,
352 FWF_SINGLESEL = 0x00000040,
353 FWF_NOSUBFOLDERS = 0x00000080,
354 FWF_TRANSPARENT = 0x00000100,
355 FWF_NOCLIENTEDGE = 0x00000200,
356 FWF_NOSCROLL = 0x00000400,
357 FWF_ALIGNLEFT = 0x00000800,
358 FWF_NOICONS = 0x00001000,
359 FWF_SHOWSELALWAYS = 0x00002000,
360 FWF_NOVISIBLE = 0x00004000,
361 FWF_SINGLECLICKACTIVATE = 0x00008000,
362 FWF_NOWEBVIEW = 0x00010000,
363 FWF_HIDEFILENAMES = 0x00020000,
364 FWF_CHECKSELECT = 0x00040000
370 FVM_FIRST = FVM_ICON,
377 FVM_LAST = FVM_THUMBSTRIP
384 } FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
385 typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
388 /*****************************************************************************
389 * IShellView interface
391 interface IShellBrowser; /* forward declaration */
394 uuid(000214e3-0000-0000-c000-000000000046),
395 pointer_default(unique)
397 interface IShellView : IOleWindow
399 typedef IShellView *LPSHELLVIEW;
401 cpp_quote("#define SVSI_DESELECT 0x00000000")
402 cpp_quote("#define SVSI_SELECT 0x00000001")
403 cpp_quote("#define SVSI_EDIT 0x00000003")
404 cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
405 cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
406 cpp_quote("#define SVSI_FOCUSED 0x00000010")
407 cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
408 cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
409 cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
410 cpp_quote("#define SVSI_CHECK 0x00000100")
411 cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
417 SVGIO_BACKGROUND = 0x00000000,
418 SVGIO_SELECTION = 0x00000001,
419 SVGIO_ALLVIEW = 0x00000002,
420 SVGIO_CHECKED = 0x00000003,
421 SVGIO_TYPE_MASK = 0x0000000f,
422 SVGIO_FLAG_VIEWORDER = 0x80000000,
427 SVUIA_DEACTIVATE = 0,
428 SVUIA_ACTIVATE_NOFOCUS = 1,
429 SVUIA_ACTIVATE_FOCUS = 2,
430 SVUIA_INPLACEACTIVATE = 3
433 HRESULT TranslateAccelerator( [in] MSG *pmsg );
434 HRESULT EnableModeless( [in] BOOL fEnable );
435 HRESULT UIActivate( [in] UINT uState );
437 HRESULT CreateViewWindow(
438 [in] IShellView *psvPrevious,
439 [in] LPCFOLDERSETTINGS lpfs,
440 [in] IShellBrowser *psb,
444 HRESULT DestroyViewWindow();
445 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
447 [local] HRESULT AddPropertySheetPages(
448 [in] DWORD dwReserved,
449 [in] LPFNSVADDPROPSHEETPAGE pfn,
452 HRESULT SaveViewState();
454 [in] LPCITEMIDLIST pidlItem,
456 HRESULT GetItemObject(
459 [out, iid_is(riid)] void **ppv);
463 /*****************************************************************************
464 * IShellBrowser interface
468 uuid(000214e2-0000-0000-c000-000000000046),
469 pointer_default(unique)
471 interface IShellBrowser : IOleWindow
473 typedef IShellBrowser *LPSHELLBROWSER;
475 cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
476 cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
477 cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
478 cpp_quote("#define SBSP_DEFMODE 0x00000000")
479 cpp_quote("#define SBSP_OPENMODE 0x00000010")
480 cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
481 cpp_quote("#define SBSP_HELPMODE 0x00000040")
482 cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
483 cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
484 cpp_quote("#define SBSP_RELATIVE 0x00001000")
485 cpp_quote("#define SBSP_PARENT 0x00002000")
486 cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
487 cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
488 cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
489 cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
490 cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
491 cpp_quote("#define SBSP_REDIRECT 0x40000000")
492 cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
494 cpp_quote("#define FCW_STATUS 0x0001")
495 cpp_quote("#define FCW_TOOLBAR 0x0002")
496 cpp_quote("#define FCW_TREE 0x0003")
497 cpp_quote("#define FCW_INTERNETBAR 0x0006")
498 cpp_quote("#define FCW_PROGRESS 0x0008")
500 cpp_quote("#define FCT_MERGE 0x0001")
501 cpp_quote("#define FCT_CONFIGABLE 0x0002")
502 cpp_quote("#define FCT_ADDTOEND 0x0004")
505 typedef LPARAM LPTBBUTTONSB;
507 cpp_quote("#include <commctrl.h>")
508 cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
511 HRESULT InsertMenusSB(
512 [in] HMENU hmenuShared,
513 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
516 [in] HMENU hmenuShared,
517 [in] HOLEMENU holemenuReserved,
518 [in] HWND hwndActiveObject);
520 HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
521 HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
522 HRESULT EnableModelessSB( [in] BOOL fEnable );
523 HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
525 HRESULT BrowseObject(
526 [in] LPCITEMIDLIST pidl,
529 HRESULT GetViewStateStream(
531 [out] IStream **ppStrm);
533 HRESULT GetControlWindow(
537 [local] HRESULT SendControlMsg(
544 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
545 HRESULT OnViewWindowActive( [in] IShellView *pshv );
548 HRESULT SetToolbarItems(
549 [in] LPTBBUTTONSB lpButtons,
555 /*****************************************************************************
556 * IShellLinkA interface
560 uuid(000214ee-0000-0000-c000-000000000046),
561 pointer_default(unique)
563 interface IShellLinkA : IUnknown
568 SLR_ANY_MATCH = 0x0002,
570 SLR_NOUPDATE = 0x0008,
571 SLR_NOSEARCH = 0x0010,
572 SLR_NOTRACK = 0x0020,
573 SLR_NOLINKINFO = 0x0040,
574 SLR_INVOKE_MSI = 0x0080,
575 SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
580 SLGP_SHORTPATH = 0x0001,
581 SLGP_UNCPRIORITY = 0x0002,
582 SLGP_RAWPATH = 0x0004,
586 [out, size_is(cch)] LPSTR pszFile,
588 [in, out] WIN32_FIND_DATAA *pfd,
591 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
593 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
595 HRESULT GetDescription(
596 [out, size_is(cch)] LPSTR pszName,
599 HRESULT SetDescription( [in] LPCSTR pszName );
601 HRESULT GetWorkingDirectory(
602 [out, size_is(cch)] LPSTR pszDir,
605 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
607 HRESULT GetArguments(
608 [out, size_is(cch)] LPSTR pszArgs,
611 HRESULT SetArguments( [in] LPCSTR pszArgs );
613 HRESULT GetHotkey( [out] WORD *pwHotkey );
615 HRESULT SetHotkey( [in] WORD wHotkey );
617 HRESULT GetShowCmd( [out] int *piShowCmd );
619 HRESULT SetShowCmd( [in] int iShowCmd );
621 HRESULT GetIconLocation(
622 [out, size_is(cch)] LPSTR pszIconPath,
626 HRESULT SetIconLocation(
627 [in] LPCSTR pszIconPath,
630 HRESULT SetRelativePath(
631 [in] LPCSTR pszPathRel,
632 [in] DWORD dwReserved);
638 HRESULT SetPath( [in] LPCSTR pszFile );
642 /*****************************************************************************
643 * IShellLinkW interface
647 uuid(000214f9-0000-0000-c000-000000000046),
648 pointer_default(unique)
650 interface IShellLinkW : IUnknown
653 [out, size_is(cch)] LPWSTR pszFile,
655 [in, out] WIN32_FIND_DATAW *pfd,
658 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
660 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
662 HRESULT GetDescription(
663 [out, size_is(cch)] LPWSTR pszName,
666 HRESULT SetDescription( [in] LPCWSTR pszName );
668 HRESULT GetWorkingDirectory(
669 [out, size_is(cch)] LPWSTR pszDir,
672 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
674 HRESULT GetArguments(
675 [out, size_is(cch)] LPWSTR pszArgs,
678 HRESULT SetArguments( [in] LPCWSTR pszArgs );
680 HRESULT GetHotkey( [out] WORD *pwHotkey );
682 HRESULT SetHotkey( [in] WORD wHotkey );
684 HRESULT GetShowCmd( [out] int *piShowCmd );
686 HRESULT SetShowCmd( [in] int iShowCmd );
688 HRESULT GetIconLocation(
689 [out, size_is(cch)] LPWSTR pszIconPath,
693 HRESULT SetIconLocation(
694 [in] LPCWSTR pszIconPath,
697 HRESULT SetRelativePath(
698 [in] LPCWSTR pszPathRel,
699 [in] DWORD dwReserved);
705 HRESULT SetPath( [in] LPCWSTR pszFile );
708 cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
711 /*****************************************************************************
712 * IShellExtInit interface
716 uuid(000214e8-0000-0000-c000-000000000046),
717 pointer_default(unique)
719 interface IShellExtInit : IUnknown
721 typedef IShellExtInit *LPSHELLEXTINIT;
724 [in] LPCITEMIDLIST pidlFolder,
725 [in] IDataObject *pdtobj,
726 [in] HKEY hkeyProgID);
730 /*******************************************************************************/
731 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
732 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
733 /* them here anyway. */
734 /*******************************************************************************/
741 /*****************************************************************************
742 * IPersistFolder3 interface
746 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
747 pointer_default(unique)
749 interface IPersistFolder3 : IPersistFolder2
753 LPITEMIDLIST pidlTargetFolder;
754 WCHAR szTargetParsingName[MAX_PATH];
755 WCHAR szNetworkProvider[MAX_PATH];
758 } PERSIST_FOLDER_TARGET_INFO;
760 HRESULT InitializeEx(
762 [in] LPCITEMIDLIST pidlRoot,
763 [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
765 HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
769 /*****************************************************************************
770 * IExtractIconA interface
774 uuid(000214eb-0000-0000-c000-000000000046),
775 pointer_default(unique)
777 interface IExtractIconA : IUnknown
779 cpp_quote("#define GIL_OPENICON 0x0001")
780 cpp_quote("#define GIL_FORSHELL 0x0002")
781 cpp_quote("#define GIL_ASYNC 0x0020")
782 cpp_quote("#define GIL_DEFAULTICON 0x0040")
783 cpp_quote("#define GIL_FORSHORTCUT 0x0080")
785 cpp_quote("#define GIL_SIMULATEDOC 0x0001")
786 cpp_quote("#define GIL_PERINSTANCE 0x0002")
787 cpp_quote("#define GIL_PERCLASS 0x0004")
788 cpp_quote("#define GIL_NOTFILENAME 0x0008")
789 cpp_quote("#define GIL_DONTCACHE 0x0010")
791 typedef IExtractIconA *LPEXTRACTICONA;
793 HRESULT GetIconLocation(
795 [out, size_is(cchMax)] LPSTR szIconFile,
798 [out] UINT *pwFlags);
802 [in] UINT nIconIndex,
803 [out] HICON *phiconLarge,
804 [out] HICON *phiconSmall,
805 [in] UINT nIconSize );
809 /*****************************************************************************
810 * IExtractIconW interface
814 uuid(000214fa-0000-0000-c000-000000000046),
815 pointer_default(unique)
817 interface IExtractIconW : IUnknown
819 typedef IExtractIconW *LPEXTRACTICONW;
821 HRESULT GetIconLocation(
823 [out, size_is(cchMax)] LPWSTR szIconFile,
826 [out] UINT *pwFlags);
829 [in] LPCWSTR pszFile,
830 [in] UINT nIconIndex,
831 [out] HICON *phiconLarge,
832 [out] HICON *phiconSmall,
833 [in] UINT nIconSize );
836 cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
837 cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
840 /*****************************************************************************
841 * ICommDlgBrowser interface
845 uuid(000214f1-0000-0000-c000-000000000046),
846 pointer_default(unique)
848 interface ICommDlgBrowser : IUnknown
850 cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
851 cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
852 cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
853 cpp_quote("#define CDBOSC_RENAME 0x00000003")
854 cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
856 typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
858 HRESULT OnDefaultCommand( [in] IShellView *shv );
859 HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
860 HRESULT IncludeObject( [in] IShellView *shv, [in] LPCITEMIDLIST pidl );
864 /*****************************************************************************
865 * IDockingWindowFrame interface
869 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
870 pointer_default(unique)
872 interface IDockingWindowFrame : IOleWindow
874 cpp_quote("#define DWFRF_NORMAL 0x0000")
875 cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
876 cpp_quote("#define DWFAF_HIDDEN 0x0001")
879 [in] IUnknown *punkSrc,
880 [in] LPCWSTR pwszItem,
881 [in] DWORD dwAddFlags);
883 HRESULT RemoveToolbar(
884 [in] IUnknown *punkSrc,
885 [in] DWORD dwRemoveFlags);
888 [in] LPCWSTR pwszItem,
890 [out] LPVOID *ppvObj);
894 /*****************************************************************************
895 * IDragSourceHelper interface
899 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
900 pointer_default(unique)
902 interface IDragSourceHelper : IUnknown
908 HBITMAP hbmpDragImage;
910 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
912 HRESULT InitializeFromBitmap(
913 [in] LPSHDRAGIMAGE pshdi,
914 [in] IDataObject *pDataObject);
916 HRESULT InitializeFromWindow(
919 [in] IDataObject *pDataObject);
923 /*****************************************************************************
924 * IDropTargetHelper interface
928 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
929 pointer_default(unique)
931 interface IDropTargetHelper : IUnknown
934 [in] HWND hwndTarget,
935 [in] IDataObject *pDataObject,
937 [in] DWORD dwEffect);
943 [in] DWORD dwEffect);
946 [in] IDataObject *pDataObject,
948 [in] DWORD dwEffect);
950 HRESULT Show( [in] BOOL fShow );
954 /*****************************************************************************
955 * IContextMenu interface
959 uuid(000214e4-0000-0000-c000-000000000046),
960 pointer_default(unique)
962 interface IContextMenu : IUnknown
964 cpp_quote("#define CMF_NORMAL 0x00000000")
965 cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
966 cpp_quote("#define CMF_VERBSONLY 0x00000002")
967 cpp_quote("#define CMF_EXPLORE 0x00000004")
968 cpp_quote("#define CMF_NOVERBS 0x00000008")
969 cpp_quote("#define CMF_CANRENAME 0x00000010")
970 cpp_quote("#define CMF_NODEFAULT 0x00000020")
971 cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
972 cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
973 cpp_quote("#define CMF_RESERVED 0xffff0000")
975 cpp_quote("#define GCS_VERBA 0x00000000")
976 cpp_quote("#define GCS_HELPTEXTA 0x00000001")
977 cpp_quote("#define GCS_VALIDATEA 0x00000002")
978 cpp_quote("#define GCS_VERBW 0x00000004")
979 cpp_quote("#define GCS_HELPTEXTW 0x00000005")
980 cpp_quote("#define GCS_VALIDATEW 0x00000006")
981 cpp_quote("#define GCS_UNICODE 0x00000004")
982 cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
983 cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
984 cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
986 cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
987 cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
988 cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
989 cpp_quote("#if defined(__GNUC__)")
990 cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
991 cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
992 cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
993 cpp_quote("#elif defined(_MSC_VER)")
994 cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
995 cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
996 cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
998 cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
999 cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1000 cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1002 cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1003 cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1004 cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1006 cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1007 cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
1008 cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1009 cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1010 cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1011 cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1012 cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1013 cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1014 cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1015 cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1016 cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
1017 cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1018 cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1019 cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1021 typedef IContextMenu *LPCONTEXTMENU;
1023 typedef struct tagCMINVOKECOMMANDINFO
1029 LPCSTR lpParameters;
1034 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1036 typedef struct tagCMInvokeCommandInfoEx
1042 LPCSTR lpParameters;
1049 LPCWSTR lpParametersW;
1050 LPCWSTR lpDirectoryW;
1053 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1055 HRESULT QueryContextMenu(
1057 [in] UINT indexMenu,
1058 [in] UINT idCmdFirst,
1059 [in] UINT idCmdLast,
1062 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1064 HRESULT GetCommandString(
1065 [in] UINT_PTR idCmd,
1067 [out] UINT *pwReserved,
1068 [out, size_is(cchMax)] LPSTR pszName,
1073 /*****************************************************************************
1074 * IContextMenu2 interface
1078 uuid(000214f4-0000-0000-c000-000000000046),
1079 pointer_default(unique)
1081 interface IContextMenu2 : IContextMenu
1083 typedef IContextMenu2 *LPCONTEXTMENU2;
1085 HRESULT HandleMenuMsg(
1088 [in] LPARAM lParam);
1092 /*****************************************************************************
1093 * IContextMenu3 interface
1097 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1098 pointer_default(unique)
1100 interface IContextMenu3 : IContextMenu2
1102 typedef IContextMenu3 *LPCONTEXTMENU3;
1104 HRESULT HandleMenuMsg2(
1108 [out] LRESULT *plResult);
1112 /*****************************************************************************
1113 * IShellExecuteHookA interface
1117 uuid(000214f5-0000-0000-c000-000000000046),
1118 pointer_default(unique)
1120 interface IShellExecuteHookA : IUnknown
1122 cpp_quote("struct _SHELLEXECUTEINFOA;")
1124 [in, out] struct _SHELLEXECUTEINFOA* pei);
1128 /*****************************************************************************
1129 * IShellExecuteHookW interface
1133 uuid(000214fb-0000-0000-c000-000000000046),
1134 pointer_default(unique)
1136 interface IShellExecuteHookW : IUnknown
1138 cpp_quote("struct _SHELLEXECUTEINFOW;")
1140 [in, out] struct _SHELLEXECUTEINFOW* pei);
1143 /*****************************************************************************
1144 * IShellLinkDataList interface
1148 uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
1149 pointer_default(unique)
1151 interface IShellLinkDataList : IUnknown
1153 HRESULT AddDataBlock(
1154 [in] void *pDataBlock);
1155 HRESULT CopyDataBlock(
1157 [out] void **ppDataBlock);
1158 HRESULT RemoveDataBlock(
1161 [out] DWORD *pdwFlags);
1163 [in] DWORD dwFlags);
1167 /*****************************************************************************
1168 * IResolveShellLink interface
1172 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1173 pointer_default(unique)
1175 interface IResolveShellLink : IUnknown
1177 HRESULT ResolveShellLink(
1178 [in] IUnknown *punk,
1184 /*****************************************************************************
1185 * IURLSearchHook interface
1189 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1190 pointer_default(unique)
1192 interface IURLSearchHook : IUnknown
1195 [in, out] LPWSTR lpwszSearchURL,
1196 [in] DWORD cchBufferSize);
1200 /*****************************************************************************
1201 * ISearchContext interface
1205 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1206 pointer_default(unique)
1208 interface ISearchContext : IUnknown
1210 HRESULT GetSearchUrl(
1211 [in] BSTR *pbstrSearchUrl);
1212 HRESULT GetSearchText(
1213 [in] BSTR *pbstrSearchText);
1214 HRESULT GetSearchStyle(
1215 [in] BSTR *pdwSearchStyle);
1219 /*****************************************************************************
1220 * IURLSearchHook2 interface
1224 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1225 pointer_default(unique)
1227 interface IURLSearchHook2 : IURLSearchHook
1229 HRESULT TranslateWithSearchContext(
1230 [in, out] LPWSTR lpwszSearchURL,
1231 [in] DWORD cchBufferSize,
1232 [in] ISearchContext *pSearchContext);
1236 cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1238 /*****************************************************************************
1239 * INewShortcutHookA interface
1243 uuid(000214e1-0000-0000-c000-000000000046),
1244 pointer_default(unique)
1246 interface INewShortcutHookA : IUnknown
1248 HRESULT SetReferent(
1249 [in] LPCSTR pcszReferent,
1251 HRESULT GetReferent(
1252 [out] LPCSTR pcszReferent,
1253 [in] int cchReferent);
1255 [in] LPCSTR pcszReferent);
1257 [out] LPSTR pcszReferent,
1258 [in] int cchFolder);
1260 [out] LPSTR pszName,
1262 HRESULT GetExtension(
1263 [out] LPSTR pszExtension,
1264 [in] int cchExtension);
1268 /*****************************************************************************
1269 * INewShortcutHookW interface
1273 uuid(000214f7-0000-0000-c000-000000000046),
1274 pointer_default(unique)
1276 interface INewShortcutHookW : IUnknown
1278 HRESULT SetReferent(
1279 [in] LPCWSTR pcszReferent,
1281 HRESULT GetReferent(
1282 [out] LPCWSTR pcszReferent,
1283 [in] int cchReferent);
1285 [in] LPCWSTR pcszReferent);
1287 [out] LPWSTR pcszReferent,
1288 [in] int cchFolder);
1290 [out] LPWSTR pszName,
1292 HRESULT GetExtension(
1293 [out] LPWSTR pszExtension,
1294 [in] int cchExtension);
1298 /*****************************************************************************
1299 * IShellChangeNotify interface
1303 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
1304 pointer_default(unique)
1306 interface IShellChangeNotify : IUnknown
1310 [in] LPCITEMIDLIST pidl1,
1311 [in] LPCITEMIDLIST pidl2);
1314 /*****************************************************************************
1315 * IFileSystemBindData interface
1319 uuid(01e18d10-4d8b-11d2-855d-006008059367),
1320 pointer_default(unique)
1322 interface IFileSystemBindData : IUnknown
1324 HRESULT SetFindData(
1325 [in] const WIN32_FIND_DATAW *pfd);
1326 HRESULT GetFindData(
1327 [out] WIN32_FIND_DATAW *pfd);
1330 /*****************************************************************************
1331 * IContextMenuCB interface
1336 uuid(3409e930-5a39-11d1-83fa-00a0c90dc849),
1337 pointer_default(unique)
1339 interface IContextMenuCB : IUnknown
1342 [in] IShellFolder *psf,
1343 [in] HWND hwndOwner,
1344 [in] IDataObject *pdtobj,
1347 [in] LPARAM lParam);
1350 /*****************************************************************************
1351 * IDefaultExtractIconInit interface
1356 uuid(800AB0B8-F5FA-4e72-8FF3-B1A243B87BD9), /* FIXME: wrong value! */
1357 pointer_default(unique)
1359 interface IDefaultExtractIconInit : IUnknown
1361 HRESULT SetDefaultIcon(
1362 [in] LPCWSTR pszFile,
1368 HRESULT SetNormalIcon(
1369 [in] LPCWSTR pszFile,
1371 HRESULT SetOpenIcon(
1372 [in] LPCWSTR pszFile,
1374 HRESULT SetShortcutIcon(
1375 [in] LPCWSTR pszFile,