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";*/
33 /* FIXME: import "propsys.idl"; */
34 /* FIXME: import "structuredquery.idl"; */
36 cpp_quote("/* FIXME: #include <sherrors.h> */")
39 /*****************************************************************************
40 * IPersistFolder interface
44 uuid(000214ea-0000-0000-c000-000000000046),
45 pointer_default(unique)
47 interface IPersistFolder : IPersist
49 typedef IPersistFolder *LPPERSISTFOLDER;
51 HRESULT Initialize( [in] LPCITEMIDLIST pidl );
55 /*****************************************************************************
56 * IPersistFolder2 interface
60 uuid(1ac3d9f0-175c-11d1-95be-00609797ea4f),
61 pointer_default(unique)
63 interface IPersistFolder2 : IPersistFolder
65 typedef IPersistFolder2 *LPPERSISTFOLDER2;
67 HRESULT GetCurFolder( [out] LPITEMIDLIST *ppidl );
71 /*****************************************************************************
72 * IEnumIDList interface
76 uuid(000214f2-0000-0000-c000-000000000046),
77 pointer_default(unique)
79 interface IEnumIDList : IUnknown
81 typedef IEnumIDList *LPENUMIDLIST;
85 [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
86 [out] ULONG *pceltFetched);
88 HRESULT Skip( [in] ULONG celt );
90 HRESULT Clone( [out] IEnumIDList **ppenum );
93 /*****************************************************************************
94 * IShellPropSheetExt interface
97 typedef LPARAM LPFNSVADDPROPSHEETPAGE;
99 cpp_quote("#include <prsht.h>")
100 cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
105 uuid(000214E9-0000-0000-C000-000000000046),
106 pointer_default(unique)
108 interface IShellPropSheetExt : IUnknown
110 enum tagSHELLPROPSHEETEXTPAGEID {
111 EXPPS_FILETYPES = 0x1
117 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
121 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
124 typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
126 /*****************************************************************************
127 * IShellFolder interface
131 uuid(000214e6-0000-0000-c000-000000000046),
132 pointer_default(unique)
134 interface IShellFolder : IUnknown
136 typedef IShellFolder * LPSHELLFOLDER;
138 typedef enum tagSHGDN
142 SHGDN_FOREDITING = 0x1000,
143 SHGDN_INCLUDE_NONFILESYS = 0x2000,
144 SHGDN_FORADDRESSBAR = 0x4000,
145 SHGDN_FORPARSING = 0x8000
148 typedef DWORD SHGDNF;
152 SHCONTF_FOLDERS = 32,
153 SHCONTF_NONFOLDERS = 64,
154 SHCONTF_INCLUDEHIDDEN = 128,
155 SHCONTF_INIT_ON_FIRST_NEXT = 256,
156 SHCONTF_NETPRINTERSRCH = 512,
157 SHCONTF_SHAREABLE = 1024,
158 SHCONTF_STORAGE = 2048
161 typedef DWORD SHCONTF;
163 cpp_quote("#define SHCIDS_ALLFIELDS 0x80000000L")
164 cpp_quote("#define SHCIDS_CANONICALONLY 0x10000000L")
165 cpp_quote("#define SHCIDS_BITMASK 0xFFFF0000L")
166 cpp_quote("#define SHCIDS_COLUMNMASK 0x0000FFFFL")
167 cpp_quote("#define SFGAO_CANCOPY DROPEFFECT_COPY")
168 cpp_quote("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
169 cpp_quote("#define SFGAO_CANLINK DROPEFFECT_LINK")
170 cpp_quote("#define SFGAO_STORAGE 0x00000008L")
171 cpp_quote("#define SFGAO_CANRENAME 0x00000010L")
172 cpp_quote("#define SFGAO_CANDELETE 0x00000020L")
173 cpp_quote("#define SFGAO_HASPROPSHEET 0x00000040L")
174 cpp_quote("#define SFGAO_DROPTARGET 0x00000100L")
175 cpp_quote("#define SFGAO_CAPABILITYMASK 0x00000177L")
176 cpp_quote("#define SFGAO_ENCRYPTED 0x00002000L")
177 cpp_quote("#define SFGAO_ISSLOW 0x00004000L")
178 cpp_quote("#define SFGAO_GHOSTED 0x00008000L")
179 cpp_quote("#define SFGAO_LINK 0x00010000L")
180 cpp_quote("#define SFGAO_SHARE 0x00020000L")
181 cpp_quote("#define SFGAO_READONLY 0x00040000L")
182 cpp_quote("#define SFGAO_HIDDEN 0x00080000L")
183 cpp_quote("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
184 cpp_quote("#define SFGAO_FILESYSANCESTOR 0x10000000L")
185 cpp_quote("#define SFGAO_FOLDER 0x20000000L")
186 cpp_quote("#define SFGAO_FILESYSTEM 0x40000000L")
187 cpp_quote("#define SFGAO_HASSUBFOLDER 0x80000000L")
188 cpp_quote("#define SFGAO_CONTENTSMASK 0x80000000L")
189 cpp_quote("#define SFGAO_VALIDATE 0x01000000L")
190 cpp_quote("#define SFGAO_REMOVABLE 0x02000000L")
191 cpp_quote("#define SFGAO_COMPRESSED 0x04000000L")
192 cpp_quote("#define SFGAO_BROWSABLE 0x08000000L")
193 cpp_quote("#define SFGAO_NONENUMERATED 0x00100000L")
194 cpp_quote("#define SFGAO_NEWCONTENT 0x00200000L")
195 cpp_quote("#define SFGAO_STREAM 0x00400000L")
196 cpp_quote("#define SFGAO_STORAGEANCESTOR 0x00800000L")
198 typedef ULONG SFGAOF;
200 HRESULT ParseDisplayName(
202 [in] LPBC pbcReserved,
203 [in, string] LPOLESTR lpszDisplayName,
204 [out] ULONG *pchEaten,
205 [out] LPITEMIDLIST *ppidl,
206 [in, out, unique] ULONG *pdwAttributes);
210 [in] SHCONTF grfFlags,
211 [out] IEnumIDList **ppenumIDList);
213 HRESULT BindToObject(
214 [in] LPCITEMIDLIST pidl,
215 [in] LPBC pbcReserved,
217 [out, iid_is(riid)] void **ppvOut);
219 HRESULT BindToStorage(
220 [in] LPCITEMIDLIST pidl,
221 [in] LPBC pbcReserved,
223 [out, iid_is(riid)] void **ppvObj);
227 [in] LPCITEMIDLIST pidl1,
228 [in] LPCITEMIDLIST pidl2);
230 HRESULT CreateViewObject(
233 [out, iid_is(riid)] void **ppvOut);
235 HRESULT GetAttributesOf(
237 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
238 [in, out] SFGAOF *rgfInOut);
240 HRESULT GetUIObjectOf(
243 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
245 [in, out, unique] UINT *prgfInOut,
246 [out, iid_is(riid)] void **ppvOut);
248 HRESULT GetDisplayNameOf(
249 [in] LPCITEMIDLIST pidl,
251 [out] STRRET *lpName);
255 [in] LPCITEMIDLIST pidl,
256 [in, string] LPCOLESTR lpszName,
258 [out] LPITEMIDLIST *ppidlOut);
262 /*****************************************************************************
263 * IEnumExtraSearch interface
267 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
268 pointer_default(unique)
270 interface IEnumExtraSearch : IUnknown
272 typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
277 WCHAR wszFriendlyName[80];
279 *WCHAR wszMenuText[80];
280 *WCHAR wszHelpText[MAX_PATH];
284 *WCHAR wszIcon[MAX_PATH+10];
285 *WCHAR wszGreyIcon[MAX_PATH+10];
286 *WCHAR wszClrIcon[MAX_PATH+10];
288 } EXTRASEARCH, *LPEXTRASEARCH;
292 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
293 [out] ULONG *pceltFetched);
295 HRESULT Skip( [in] ULONG celt );
297 HRESULT Clone( [out] IEnumExtraSearch **ppenum );
301 /*****************************************************************************
302 * IShellFolder2 interface
306 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
307 pointer_default(unique)
309 interface IShellFolder2 : IShellFolder
313 SHCOLSTATE_TYPE_STR = 0x00000001,
314 SHCOLSTATE_TYPE_INT = 0x00000002,
315 SHCOLSTATE_TYPE_DATE = 0x00000003,
316 SHCOLSTATE_TYPEMASK = 0x0000000f,
317 SHCOLSTATE_ONBYDEFAULT = 0x00000010,
318 SHCOLSTATE_SLOW = 0x00000020,
319 SHCOLSTATE_EXTENDED = 0x00000040,
320 SHCOLSTATE_SECONDARYUI = 0x00000080,
321 SHCOLSTATE_HIDDEN = 0x00000100,
322 SHCOLSTATE_PREFER_VARCMP = 0x00000200
325 typedef DWORD SHCOLSTATEF;
331 } SHCOLUMNID, *LPSHCOLUMNID;
332 typedef const SHCOLUMNID *LPCSHCOLUMNID;
334 HRESULT GetDefaultSearchGUID( [out] GUID *lpguid );
335 HRESULT EnumSearches( [out] IEnumExtraSearch **ppenum );
336 HRESULT GetDefaultColumn( [in] DWORD dwReserved, [out] ULONG *pSort, [out] ULONG *pDisplay );
337 HRESULT GetDefaultColumnState( [in] UINT iColumn, [out] SHCOLSTATEF *pcsFlags );
338 HRESULT GetDetailsEx( [in] LPCITEMIDLIST pidl, [in] const SHCOLUMNID *pscid, [out] VARIANT *pv);
339 HRESULT GetDetailsOf( [in] LPCITEMIDLIST pidl, [in] UINT iColumn, [out] SHELLDETAILS *psd);
340 HRESULT MapColumnToSCID( [in] UINT iColumn, [in] SHCOLUMNID *pscid );
345 /*****************************************************************************
348 typedef char *LPVIEWSETTINGS;
352 FWF_AUTOARRANGE = 0x00000001,
353 FWF_ABBREVIATEDNAMES = 0x00000002,
354 FWF_SNAPTOGRID = 0x00000004,
355 FWF_OWNERDATA = 0x00000008,
356 FWF_BESTFITWINDOW = 0x00000010,
357 FWF_DESKTOP = 0x00000020,
358 FWF_SINGLESEL = 0x00000040,
359 FWF_NOSUBFOLDERS = 0x00000080,
360 FWF_TRANSPARENT = 0x00000100,
361 FWF_NOCLIENTEDGE = 0x00000200,
362 FWF_NOSCROLL = 0x00000400,
363 FWF_ALIGNLEFT = 0x00000800,
364 FWF_NOICONS = 0x00001000,
365 FWF_SHOWSELALWAYS = 0x00002000,
366 FWF_NOVISIBLE = 0x00004000,
367 FWF_SINGLECLICKACTIVATE = 0x00008000,
368 FWF_NOWEBVIEW = 0x00010000,
369 FWF_HIDEFILENAMES = 0x00020000,
370 FWF_CHECKSELECT = 0x00040000
376 FVM_FIRST = FVM_ICON,
383 FVM_LAST = FVM_THUMBSTRIP
390 } FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
391 typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
394 /*****************************************************************************
395 * IShellView interface
397 interface IShellBrowser; /* forward declaration */
400 uuid(000214e3-0000-0000-c000-000000000046),
401 pointer_default(unique)
403 interface IShellView : IOleWindow
405 typedef IShellView *LPSHELLVIEW;
407 cpp_quote("#define SVSI_DESELECT 0x00000000")
408 cpp_quote("#define SVSI_SELECT 0x00000001")
409 cpp_quote("#define SVSI_EDIT 0x00000003")
410 cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
411 cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
412 cpp_quote("#define SVSI_FOCUSED 0x00000010")
413 cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
414 cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
415 cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
416 cpp_quote("#define SVSI_CHECK 0x00000100")
417 cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
423 SVGIO_BACKGROUND = 0x00000000,
424 SVGIO_SELECTION = 0x00000001,
425 SVGIO_ALLVIEW = 0x00000002,
426 SVGIO_CHECKED = 0x00000003,
427 SVGIO_TYPE_MASK = 0x0000000f,
428 SVGIO_FLAG_VIEWORDER = 0x80000000,
433 SVUIA_DEACTIVATE = 0,
434 SVUIA_ACTIVATE_NOFOCUS = 1,
435 SVUIA_ACTIVATE_FOCUS = 2,
436 SVUIA_INPLACEACTIVATE = 3
439 HRESULT TranslateAccelerator( [in] MSG *pmsg );
440 HRESULT EnableModeless( [in] BOOL fEnable );
441 HRESULT UIActivate( [in] UINT uState );
443 HRESULT CreateViewWindow(
444 [in] IShellView *psvPrevious,
445 [in] LPCFOLDERSETTINGS lpfs,
446 [in] IShellBrowser *psb,
450 HRESULT DestroyViewWindow();
451 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
453 [local] HRESULT AddPropertySheetPages(
454 [in] DWORD dwReserved,
455 [in] LPFNSVADDPROPSHEETPAGE pfn,
458 HRESULT SaveViewState();
460 [in] LPCITEMIDLIST pidlItem,
462 HRESULT GetItemObject(
465 [out, iid_is(riid)] void **ppv);
470 uuid(88E39E80-3578-11CF-AE69-08002B2E1262),
472 pointer_default(unique)
474 interface IShellView2 : IShellView
476 typedef GUID SHELLVIEWID;
478 cpp_quote("#define SV2GV_CURRENTVIEW ((UINT)-1)")
479 cpp_quote("#define SV2GV_DEFAULTVIEW ((UINT)-2)")
481 cpp_quote("#include <pshpack8.h>")
482 typedef struct _SV2CVW2_PARAMS
487 LPCFOLDERSETTINGS pfs;
488 IShellBrowser *psbOwner;
490 SHELLVIEWID const *pvid;
493 } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
495 cpp_quote("#include <poppack.h>")
498 [in, out] SHELLVIEWID* pvid,
501 HRESULT CreateViewWindow2(
502 [in] LPSV2CVW2_PARAMS lpParams);
504 HRESULT HandleRename(
505 [in, unique] PCUITEMID_CHILD pidlNew);
507 HRESULT SelectAndPositionItem(
508 [in] PCUITEMID_CHILD pidlItem,
510 [in, unique] POINT *ppt);
515 uuid(ec39fa88-f8af-41c5-8421-38bed28f4673),
517 pointer_default(unique)
519 interface IShellView3 : IShellView2
523 SV3CVW3_DEFAULT = 0x00000000,
524 SV3CVW3_NONINTERACTIVE = 0x00000001,
525 SV3CVW3_FORCEVIEWMODE = 0x00000002,
526 SV3CVW3_FORCEFOLDERFLAGS = 0x00000004,
528 typedef DWORD SV3CVW3_FLAGS;
530 HRESULT CreateViewWindow3(
531 [in] IShellBrowser *psbOwner,
532 [in, unique] IShellView *psvPrev,
533 [in] SV3CVW3_FLAGS dwViewFlags,
534 [in] FOLDERFLAGS dwMask,
535 [in] FOLDERFLAGS dwFlags,
536 [in] FOLDERVIEWMODE fvMode,
537 [in, unique] const SHELLVIEWID *pvid,
538 [in] const RECT *prcView,
539 [out] HWND *phwndView);
543 /*****************************************************************************
544 * IShellBrowser interface
548 uuid(000214e2-0000-0000-c000-000000000046),
549 pointer_default(unique)
551 interface IShellBrowser : IOleWindow
553 typedef IShellBrowser *LPSHELLBROWSER;
555 cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
556 cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
557 cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
558 cpp_quote("#define SBSP_DEFMODE 0x00000000")
559 cpp_quote("#define SBSP_OPENMODE 0x00000010")
560 cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
561 cpp_quote("#define SBSP_HELPMODE 0x00000040")
562 cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
563 cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
564 cpp_quote("#define SBSP_RELATIVE 0x00001000")
565 cpp_quote("#define SBSP_PARENT 0x00002000")
566 cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
567 cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
568 cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
569 cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
570 cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
571 cpp_quote("#define SBSP_REDIRECT 0x40000000")
572 cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
574 cpp_quote("#define FCW_STATUS 0x0001")
575 cpp_quote("#define FCW_TOOLBAR 0x0002")
576 cpp_quote("#define FCW_TREE 0x0003")
577 cpp_quote("#define FCW_INTERNETBAR 0x0006")
578 cpp_quote("#define FCW_PROGRESS 0x0008")
580 cpp_quote("#define FCT_MERGE 0x0001")
581 cpp_quote("#define FCT_CONFIGABLE 0x0002")
582 cpp_quote("#define FCT_ADDTOEND 0x0004")
585 typedef LPARAM LPTBBUTTONSB;
587 cpp_quote("#include <commctrl.h>")
588 cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
591 HRESULT InsertMenusSB(
592 [in] HMENU hmenuShared,
593 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
596 [in] HMENU hmenuShared,
597 [in] HOLEMENU holemenuReserved,
598 [in] HWND hwndActiveObject);
600 HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
601 HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
602 HRESULT EnableModelessSB( [in] BOOL fEnable );
603 HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
605 HRESULT BrowseObject(
606 [in] LPCITEMIDLIST pidl,
609 HRESULT GetViewStateStream(
611 [out] IStream **ppStrm);
613 HRESULT GetControlWindow(
617 [local] HRESULT SendControlMsg(
624 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
625 HRESULT OnViewWindowActive( [in] IShellView *pshv );
628 HRESULT SetToolbarItems(
629 [in] LPTBBUTTONSB lpButtons,
635 /*****************************************************************************
636 * IShellLinkA interface
640 uuid(000214ee-0000-0000-c000-000000000046),
641 pointer_default(unique)
643 interface IShellLinkA : IUnknown
648 SLR_ANY_MATCH = 0x0002,
650 SLR_NOUPDATE = 0x0008,
651 SLR_NOSEARCH = 0x0010,
652 SLR_NOTRACK = 0x0020,
653 SLR_NOLINKINFO = 0x0040,
654 SLR_INVOKE_MSI = 0x0080,
655 SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
660 SLGP_SHORTPATH = 0x0001,
661 SLGP_UNCPRIORITY = 0x0002,
662 SLGP_RAWPATH = 0x0004,
666 [out, size_is(cch)] LPSTR pszFile,
668 [in, out] WIN32_FIND_DATAA *pfd,
671 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
673 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
675 HRESULT GetDescription(
676 [out, size_is(cch)] LPSTR pszName,
679 HRESULT SetDescription( [in] LPCSTR pszName );
681 HRESULT GetWorkingDirectory(
682 [out, size_is(cch)] LPSTR pszDir,
685 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
687 HRESULT GetArguments(
688 [out, size_is(cch)] LPSTR pszArgs,
691 HRESULT SetArguments( [in] LPCSTR pszArgs );
693 HRESULT GetHotkey( [out] WORD *pwHotkey );
695 HRESULT SetHotkey( [in] WORD wHotkey );
697 HRESULT GetShowCmd( [out] int *piShowCmd );
699 HRESULT SetShowCmd( [in] int iShowCmd );
701 HRESULT GetIconLocation(
702 [out, size_is(cch)] LPSTR pszIconPath,
706 HRESULT SetIconLocation(
707 [in] LPCSTR pszIconPath,
710 HRESULT SetRelativePath(
711 [in] LPCSTR pszPathRel,
712 [in] DWORD dwReserved);
718 HRESULT SetPath( [in] LPCSTR pszFile );
722 /*****************************************************************************
723 * IShellLinkW interface
727 uuid(000214f9-0000-0000-c000-000000000046),
728 pointer_default(unique)
730 interface IShellLinkW : IUnknown
733 [out, size_is(cch)] LPWSTR pszFile,
735 [in, out] WIN32_FIND_DATAW *pfd,
738 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
740 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
742 HRESULT GetDescription(
743 [out, size_is(cch)] LPWSTR pszName,
746 HRESULT SetDescription( [in] LPCWSTR pszName );
748 HRESULT GetWorkingDirectory(
749 [out, size_is(cch)] LPWSTR pszDir,
752 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
754 HRESULT GetArguments(
755 [out, size_is(cch)] LPWSTR pszArgs,
758 HRESULT SetArguments( [in] LPCWSTR pszArgs );
760 HRESULT GetHotkey( [out] WORD *pwHotkey );
762 HRESULT SetHotkey( [in] WORD wHotkey );
764 HRESULT GetShowCmd( [out] int *piShowCmd );
766 HRESULT SetShowCmd( [in] int iShowCmd );
768 HRESULT GetIconLocation(
769 [out, size_is(cch)] LPWSTR pszIconPath,
773 HRESULT SetIconLocation(
774 [in] LPCWSTR pszIconPath,
777 HRESULT SetRelativePath(
778 [in] LPCWSTR pszPathRel,
779 [in] DWORD dwReserved);
785 HRESULT SetPath( [in] LPCWSTR pszFile );
788 cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
791 /*****************************************************************************
792 * IShellExtInit interface
796 uuid(000214e8-0000-0000-c000-000000000046),
797 pointer_default(unique),
800 interface IShellExtInit : IUnknown
802 typedef IShellExtInit *LPSHELLEXTINIT;
805 [in] LPCITEMIDLIST pidlFolder,
806 [in] IDataObject *pdtobj,
807 [in] HKEY hkeyProgID);
811 /*******************************************************************************/
812 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
813 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
814 /* them here anyway. */
815 /*******************************************************************************/
822 /*****************************************************************************
823 * IPersistFolder3 interface
827 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
828 pointer_default(unique)
830 interface IPersistFolder3 : IPersistFolder2
834 LPITEMIDLIST pidlTargetFolder;
835 WCHAR szTargetParsingName[MAX_PATH];
836 WCHAR szNetworkProvider[MAX_PATH];
839 } PERSIST_FOLDER_TARGET_INFO;
841 HRESULT InitializeEx(
843 [in] LPCITEMIDLIST pidlRoot,
844 [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
846 HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
850 /*****************************************************************************
851 * IExtractIconA interface
855 uuid(000214eb-0000-0000-c000-000000000046),
856 pointer_default(unique)
858 interface IExtractIconA : IUnknown
860 cpp_quote("#define GIL_OPENICON 0x0001")
861 cpp_quote("#define GIL_FORSHELL 0x0002")
862 cpp_quote("#define GIL_ASYNC 0x0020")
863 cpp_quote("#define GIL_DEFAULTICON 0x0040")
864 cpp_quote("#define GIL_FORSHORTCUT 0x0080")
866 cpp_quote("#define GIL_SIMULATEDOC 0x0001")
867 cpp_quote("#define GIL_PERINSTANCE 0x0002")
868 cpp_quote("#define GIL_PERCLASS 0x0004")
869 cpp_quote("#define GIL_NOTFILENAME 0x0008")
870 cpp_quote("#define GIL_DONTCACHE 0x0010")
872 typedef IExtractIconA *LPEXTRACTICONA;
874 HRESULT GetIconLocation(
876 [out, size_is(cchMax)] LPSTR szIconFile,
879 [out] UINT *pwFlags);
883 [in] UINT nIconIndex,
884 [out] HICON *phiconLarge,
885 [out] HICON *phiconSmall,
886 [in] UINT nIconSize );
890 /*****************************************************************************
891 * IExtractIconW interface
895 uuid(000214fa-0000-0000-c000-000000000046),
896 pointer_default(unique)
898 interface IExtractIconW : IUnknown
900 typedef IExtractIconW *LPEXTRACTICONW;
902 HRESULT GetIconLocation(
904 [out, size_is(cchMax)] LPWSTR szIconFile,
907 [out] UINT *pwFlags);
910 [in] LPCWSTR pszFile,
911 [in] UINT nIconIndex,
912 [out] HICON *phiconLarge,
913 [out] HICON *phiconSmall,
914 [in] UINT nIconSize );
917 cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
918 cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
921 /*****************************************************************************
922 * ICommDlgBrowser interface
926 uuid(000214f1-0000-0000-c000-000000000046),
927 pointer_default(unique)
929 interface ICommDlgBrowser : IUnknown
931 cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
932 cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
933 cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
934 cpp_quote("#define CDBOSC_RENAME 0x00000003")
935 cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
937 typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
939 HRESULT OnDefaultCommand( [in] IShellView *shv );
940 HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
941 HRESULT IncludeObject( [in] IShellView *shv, [in] LPCITEMIDLIST pidl );
945 /*****************************************************************************
946 * IDockingWindowFrame interface
950 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
951 pointer_default(unique),
954 interface IDockingWindowFrame : IOleWindow
956 cpp_quote("#define DWFRF_NORMAL 0x0000")
957 cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
958 cpp_quote("#define DWFAF_HIDDEN 0x0001")
961 [in] IUnknown *punkSrc,
962 [in] LPCWSTR pwszItem,
963 [in] DWORD dwAddFlags);
965 HRESULT RemoveToolbar(
966 [in] IUnknown *punkSrc,
967 [in] DWORD dwRemoveFlags);
970 [in] LPCWSTR pwszItem,
972 [out] LPVOID *ppvObj);
976 /*****************************************************************************
977 * IDragSourceHelper interface
981 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
982 pointer_default(unique)
984 interface IDragSourceHelper : IUnknown
990 HBITMAP hbmpDragImage;
992 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
994 HRESULT InitializeFromBitmap(
995 [in] LPSHDRAGIMAGE pshdi,
996 [in] IDataObject *pDataObject);
998 HRESULT InitializeFromWindow(
1001 [in] IDataObject *pDataObject);
1005 /*****************************************************************************
1006 * IDropTargetHelper interface
1010 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
1011 pointer_default(unique)
1013 interface IDropTargetHelper : IUnknown
1016 [in] HWND hwndTarget,
1017 [in] IDataObject *pDataObject,
1019 [in] DWORD dwEffect);
1021 HRESULT DragLeave();
1025 [in] DWORD dwEffect);
1028 [in] IDataObject *pDataObject,
1030 [in] DWORD dwEffect);
1032 HRESULT Show( [in] BOOL fShow );
1036 /*****************************************************************************
1037 * IContextMenu interface
1041 uuid(000214e4-0000-0000-c000-000000000046),
1042 pointer_default(unique),
1045 interface IContextMenu : IUnknown
1047 cpp_quote("#define CMF_NORMAL 0x00000000")
1048 cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
1049 cpp_quote("#define CMF_VERBSONLY 0x00000002")
1050 cpp_quote("#define CMF_EXPLORE 0x00000004")
1051 cpp_quote("#define CMF_NOVERBS 0x00000008")
1052 cpp_quote("#define CMF_CANRENAME 0x00000010")
1053 cpp_quote("#define CMF_NODEFAULT 0x00000020")
1054 cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
1055 cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
1056 cpp_quote("#define CMF_RESERVED 0xffff0000")
1058 cpp_quote("#define GCS_VERBA 0x00000000")
1059 cpp_quote("#define GCS_HELPTEXTA 0x00000001")
1060 cpp_quote("#define GCS_VALIDATEA 0x00000002")
1061 cpp_quote("#define GCS_VERBW 0x00000004")
1062 cpp_quote("#define GCS_HELPTEXTW 0x00000005")
1063 cpp_quote("#define GCS_VALIDATEW 0x00000006")
1064 cpp_quote("#define GCS_UNICODE 0x00000004")
1065 cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1066 cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1067 cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1069 cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1070 cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
1071 cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1072 cpp_quote("#if defined(__GNUC__)")
1073 cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1074 cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1075 cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1076 cpp_quote("#elif defined(_MSC_VER)")
1077 cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1078 cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1079 cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1081 cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1082 cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1083 cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1085 cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1086 cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1087 cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1089 cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1090 cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
1091 cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1092 cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1093 cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1094 cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1095 cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1096 cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1097 cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1098 cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1099 cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
1100 cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1101 cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1102 cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1104 typedef IContextMenu *LPCONTEXTMENU;
1106 typedef struct tagCMINVOKECOMMANDINFO
1112 LPCSTR lpParameters;
1117 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1119 typedef struct tagCMInvokeCommandInfoEx
1125 LPCSTR lpParameters;
1132 LPCWSTR lpParametersW;
1133 LPCWSTR lpDirectoryW;
1136 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1138 HRESULT QueryContextMenu(
1140 [in] UINT indexMenu,
1141 [in] UINT idCmdFirst,
1142 [in] UINT idCmdLast,
1145 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1147 HRESULT GetCommandString(
1148 [in] UINT_PTR idCmd,
1150 [out] UINT *pwReserved,
1151 [out, size_is(cchMax)] LPSTR pszName,
1156 /*****************************************************************************
1157 * IContextMenu2 interface
1161 uuid(000214f4-0000-0000-c000-000000000046),
1162 pointer_default(unique)
1164 interface IContextMenu2 : IContextMenu
1166 typedef IContextMenu2 *LPCONTEXTMENU2;
1168 HRESULT HandleMenuMsg(
1171 [in] LPARAM lParam);
1175 /*****************************************************************************
1176 * IContextMenu3 interface
1180 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1181 pointer_default(unique)
1183 interface IContextMenu3 : IContextMenu2
1185 typedef IContextMenu3 *LPCONTEXTMENU3;
1187 HRESULT HandleMenuMsg2(
1191 [out] LRESULT *plResult);
1195 /*****************************************************************************
1196 * IShellExecuteHookA interface
1200 uuid(000214f5-0000-0000-c000-000000000046),
1201 pointer_default(unique),
1204 interface IShellExecuteHookA : IUnknown
1206 cpp_quote("struct _SHELLEXECUTEINFOA;")
1208 [in, out] struct _SHELLEXECUTEINFOA* pei);
1212 /*****************************************************************************
1213 * IShellExecuteHookW interface
1217 uuid(000214fb-0000-0000-c000-000000000046),
1218 pointer_default(unique),
1221 interface IShellExecuteHookW : IUnknown
1223 cpp_quote("struct _SHELLEXECUTEINFOW;")
1225 [in, out] struct _SHELLEXECUTEINFOW* pei);
1228 /*****************************************************************************
1229 * IShellLinkDataList interface
1233 uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
1234 pointer_default(unique)
1236 interface IShellLinkDataList : IUnknown
1238 [local] HRESULT AddDataBlock(
1239 [in] void *pDataBlock);
1240 [local] HRESULT CopyDataBlock(
1242 [out] void **ppDataBlock);
1243 HRESULT RemoveDataBlock(
1246 [out] DWORD *pdwFlags);
1248 [in] DWORD dwFlags);
1252 /*****************************************************************************
1253 * IResolveShellLink interface
1257 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1258 pointer_default(unique)
1260 interface IResolveShellLink : IUnknown
1262 HRESULT ResolveShellLink(
1263 [in] IUnknown *punk,
1269 /*****************************************************************************
1270 * IURLSearchHook interface
1274 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1275 pointer_default(unique)
1277 interface IURLSearchHook : IUnknown
1280 [in, out] LPWSTR lpwszSearchURL,
1281 [in] DWORD cchBufferSize);
1285 /*****************************************************************************
1286 * ISearchContext interface
1290 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1291 pointer_default(unique)
1293 interface ISearchContext : IUnknown
1295 HRESULT GetSearchUrl(
1296 [in] BSTR *pbstrSearchUrl);
1297 HRESULT GetSearchText(
1298 [in] BSTR *pbstrSearchText);
1299 HRESULT GetSearchStyle(
1300 [in] BSTR *pdwSearchStyle);
1304 /*****************************************************************************
1305 * IURLSearchHook2 interface
1309 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1310 pointer_default(unique)
1312 interface IURLSearchHook2 : IURLSearchHook
1314 HRESULT TranslateWithSearchContext(
1315 [in, out] LPWSTR lpwszSearchURL,
1316 [in] DWORD cchBufferSize,
1317 [in] ISearchContext *pSearchContext);
1321 cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1323 /*****************************************************************************
1324 * INewShortcutHookA interface
1328 uuid(000214e1-0000-0000-c000-000000000046),
1329 pointer_default(unique)
1331 interface INewShortcutHookA : IUnknown
1333 HRESULT SetReferent(
1334 [in] LPCSTR pcszReferent,
1336 HRESULT GetReferent(
1337 [out] LPCSTR pcszReferent,
1338 [in] int cchReferent);
1340 [in] LPCSTR pcszReferent);
1342 [out] LPSTR pcszReferent,
1343 [in] int cchFolder);
1345 [out] LPSTR pszName,
1347 HRESULT GetExtension(
1348 [out] LPSTR pszExtension,
1349 [in] int cchExtension);
1353 /*****************************************************************************
1354 * INewShortcutHookW interface
1358 uuid(000214f7-0000-0000-c000-000000000046),
1359 pointer_default(unique)
1361 interface INewShortcutHookW : IUnknown
1363 HRESULT SetReferent(
1364 [in] LPCWSTR pcszReferent,
1366 HRESULT GetReferent(
1367 [out] LPCWSTR pcszReferent,
1368 [in] int cchReferent);
1370 [in] LPCWSTR pcszReferent);
1372 [out] LPWSTR pcszReferent,
1373 [in] int cchFolder);
1375 [out] LPWSTR pszName,
1377 HRESULT GetExtension(
1378 [out] LPWSTR pszExtension,
1379 [in] int cchExtension);
1382 /*****************************************************************************
1383 * IRunnableTask interface
1387 uuid(85788d00-6807-11d0-b810-00c04fd706ec),
1388 pointer_default(unique)
1390 interface IRunnableTask : IUnknown
1393 HRESULT Kill([in] BOOL fWait);
1399 /*****************************************************************************
1400 * IShellChangeNotify interface
1404 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
1405 pointer_default(unique)
1407 interface IShellChangeNotify : IUnknown
1411 [in] LPCITEMIDLIST pidl1,
1412 [in] LPCITEMIDLIST pidl2);
1415 /*****************************************************************************
1416 * IFileSystemBindData interface
1420 uuid(01e18d10-4d8b-11d2-855d-006008059367),
1421 pointer_default(unique)
1423 interface IFileSystemBindData : IUnknown
1425 HRESULT SetFindData(
1426 [in] const WIN32_FIND_DATAW *pfd);
1427 HRESULT GetFindData(
1428 [out] WIN32_FIND_DATAW *pfd);
1431 /*****************************************************************************
1432 * ITaskbarList interface
1436 uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
1437 pointer_default(unique)
1439 interface ITaskbarList : IUnknown
1449 HRESULT ActivateTab(
1452 HRESULT SetActiveAlt(
1456 cpp_quote("EXTERN_C const CLSID CLSID_TaskbarList;")
1458 /*****************************************************************************
1459 * IContextMenuCB interface
1464 uuid(3409e930-5a39-11d1-83fa-00a0c90dc849),
1465 pointer_default(unique)
1467 interface IContextMenuCB : IUnknown
1470 [in] IShellFolder *psf,
1471 [in] HWND hwndOwner,
1472 [in] IDataObject *pdtobj,
1475 [in] LPARAM lParam);
1478 /*****************************************************************************
1479 * IDefaultExtractIconInit interface
1484 uuid(800AB0B8-F5FA-4e72-8FF3-B1A243B87BD9), /* FIXME: wrong value! */
1485 pointer_default(unique),
1488 interface IDefaultExtractIconInit : IUnknown
1490 HRESULT SetDefaultIcon(
1491 [in] LPCWSTR pszFile,
1497 HRESULT SetNormalIcon(
1498 [in] LPCWSTR pszFile,
1500 HRESULT SetOpenIcon(
1501 [in] LPCWSTR pszFile,
1503 HRESULT SetShortcutIcon(
1504 [in] LPCWSTR pszFile,
1509 /*****************************************************************************
1510 * IDockingWindow interface
1513 uuid(012dd920-7b26-11d0-8ca9-00a0c92dbfe8),
1516 interface IDockingWindow : IOleWindow
1518 HRESULT ShowDW([in] BOOL fShow);
1520 HRESULT CloseDW([in] DWORD dwReserved);
1522 HRESULT ResizeBorderDW(
1523 [in] LPCRECT prcBorder,
1524 [in] IUnknown* punkToolbarSite,
1525 [in] BOOL fReserved);
1529 /*****************************************************************************
1530 * IDeskBand interface
1532 cpp_quote("#define DBIM_MINSIZE 0x0001")
1533 cpp_quote("#define DBIM_MAXSIZE 0x0002")
1534 cpp_quote("#define DBIM_INTEGRAL 0x0004")
1535 cpp_quote("#define DBIM_ACTUAL 0x0008")
1536 cpp_quote("#define DBIM_TITLE 0x0010")
1537 cpp_quote("#define DBIM_MODEFLAGS 0x0020")
1538 cpp_quote("#define DBIM_BKCOLOR 0x0040")
1540 cpp_quote("#include <pshpack8.h>")
1542 typedef struct tagDESKBANDINFO
1549 WCHAR wszTitle[256];
1554 cpp_quote("#include <poppack.h>")
1556 cpp_quote("#define DBIMF_NORMAL 0x0000")
1557 cpp_quote("#define DBIMF_FIXED 0x0001")
1558 cpp_quote("#define DBIMF_FIXEDBMP 0x0004 // a fixed background bitmap (if supported)")
1559 cpp_quote("#define DBIMF_VARIABLEHEIGHT 0x0008")
1560 cpp_quote("#define DBIMF_UNDELETEABLE 0x0010")
1561 cpp_quote("#define DBIMF_DEBOSSED 0x0020")
1562 cpp_quote("#define DBIMF_BKCOLOR 0x0040")
1563 cpp_quote("#define DBIMF_USECHEVRON 0x0080")
1564 cpp_quote("#define DBIMF_BREAK 0x0100")
1565 cpp_quote("#define DBIMF_ADDTOFRONT 0x0200")
1566 cpp_quote("#define DBIMF_TOPALIGN 0x0400")
1567 cpp_quote("#if (NTDDI_VERSION >= NTDDI_LONGHORN)")
1568 cpp_quote("#define DBIMF_NOGRIPPER 0x0800")
1569 cpp_quote("#define DBIMF_ALWAYSGRIPPER 0x1000")
1570 cpp_quote("#define DBIMF_NOMARGINS 0x2000")
1571 cpp_quote("#endif // NTDDI_LONGHORN")
1573 cpp_quote("#define DBIF_VIEWMODE_NORMAL 0x0000")
1574 cpp_quote("#define DBIF_VIEWMODE_VERTICAL 0x0001")
1575 cpp_quote("#define DBIF_VIEWMODE_FLOATING 0x0002")
1576 cpp_quote("#define DBIF_VIEWMODE_TRANSPARENT 0x0004")
1578 enum tagDESKBANDCID {
1579 DBID_BANDINFOCHANGED = 0,
1581 DBID_MAXIMIZEBAND = 2,
1582 DBID_PUSHCHEVRON = 3,
1584 DBID_FINISHINIT = 5,
1585 DBID_SETWINDOWTHEME = 6,
1586 DBID_PERMITAUTOHIDE = 7,
1589 cpp_quote("#define DBPC_SELECTFIRST (DWORD)-1")
1590 cpp_quote("#define DBPC_SELECTLAST (DWORD)-2")
1592 cpp_quote("#define CGID_DeskBand IID_IDeskBand")
1595 uuid(EB0FE172-1A3A-11D0-89B3-00A0C90A90AC),
1598 interface IDeskBand : IDockingWindow
1600 HRESULT GetBandInfo(
1601 [in] DWORD dwBandID,
1602 [in] DWORD dwViewMode,
1603 [in, out] DESKBANDINFO* pdbi);
1606 cpp_quote("#if (NTDDI_VERSION >= NTDDI_LONGHORN)")
1608 /*****************************************************************************
1609 * IDeskBandInfo interface
1612 uuid(77E425FC-CBF9-4307-BA6A-BB5727745661),
1615 interface IDeskBandInfo : IUnknown
1617 HRESULT GetDefaultBandWidth(
1618 [in] DWORD dwBandID,
1619 [in] DWORD dwViewMode,
1620 [out] int *pnWidth);
1624 /*****************************************************************************
1625 * IDeskBand2 interface
1628 uuid(79D16DE4-ABEE-4021-8D9D-9169B261D657),
1631 interface IDeskBand2 : IDeskBand
1633 HRESULT CanRenderComposited([out] BOOL *pfCanRenderComposited);
1635 HRESULT SetCompositionState([in] BOOL fCompositionEnabled);
1637 HRESULT GetCompositionState([out] BOOL *pfCompositionEnabled);
1640 cpp_quote("#endif // NTDDI_LONGHORN")
1644 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60)")
1647 uuid(EB0FE173-1A3A-11D0-89B3-00A0C90A90AC),
1649 pointer_default(unique),
1652 interface IDeskBar : IOleWindow
1654 HRESULT SetClient([in] IUnknown* punkClient);
1656 HRESULT GetClient([out] IUnknown** ppunkClient);
1658 HRESULT OnPosRectChangeDB([in] RECT *prc);
1662 /*****************************************************************************
1663 * IMenuPopup interface
1666 uuid(D1E7AFEB-6A2E-11d0-8C78-00C04FD918B4),
1668 pointer_default(unique),
1671 interface IMenuPopup : IDeskBar
1673 enum tagMENUPOPUPSELECT
1683 enum tagMENUPOPUPPOPUPFLAGS
1685 MPPF_SETFOCUS = 0x00000001,
1686 MPPF_INITIALSELECT = 0x00000002,
1687 MPPF_NOANIMATE = 0x00000004,
1688 MPPF_KEYBOARD = 0x00000010,
1689 MPPF_REPOSITION = 0x00000020,
1690 MPPF_FORCEZORDER = 0x00000040,
1691 MPPF_FINALSELECT = 0x00000080,
1692 MPPF_TOP = 0x20000000,
1693 MPPF_LEFT = 0x40000000,
1694 MPPF_RIGHT = 0x60000000,
1695 MPPF_BOTTOM = 0x80000000,
1696 MPPF_POS_MASK = 0xE0000000,
1697 MPPF_ALIGN_LEFT = 0x02000000,
1698 MPPF_ALIGN_RIGHT = 0x04000000
1700 typedef int MP_POPUPFLAGS;
1704 [in] RECTL *prcExclude,
1705 [in] MP_POPUPFLAGS dwFlags);
1707 HRESULT OnSelect([in] DWORD dwSelectType);
1710 [in] IMenuPopup* pmp,
1714 cpp_quote("#endif /* _WIN32_IE_IE60 */")
1716 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE40)")
1718 /*****************************************************************************
1719 * IBandSite interface
1721 cpp_quote("#include <pshpack8.h>")
1723 typedef struct tagBANDSITEINFO
1730 cpp_quote("#include <poppack.h>")
1733 enum tagBANDSITECID {
1738 cpp_quote("#define BSIM_STATE 0x00000001")
1739 cpp_quote("#define BSIM_STYLE 0x00000002")
1741 cpp_quote("#define BSSF_VISIBLE 0x00000001")
1742 cpp_quote("#define BSSF_NOTITLE 0x00000002")
1743 cpp_quote("#define BSSF_UNDELETEABLE 0x00001000")
1745 cpp_quote("#define BSIS_AUTOGRIPPER 0x00000000")
1746 cpp_quote("#define BSIS_NOGRIPPER 0x00000001")
1747 cpp_quote("#define BSIS_ALWAYSGRIPPER 0x00000002")
1748 cpp_quote("#define BSIS_LEFTALIGN 0x00000004")
1749 cpp_quote("#define BSIS_SINGLECLICK 0x00000008")
1750 cpp_quote("#define BSIS_NOCONTEXTMENU 0x00000010")
1751 cpp_quote("#define BSIS_NODROPTARGET 0x00000020")
1752 cpp_quote("#define BSIS_NOCAPTION 0x00000040")
1753 cpp_quote("#define BSIS_PREFERNOLINEBREAK 0x00000080")
1754 cpp_quote("#define BSIS_LOCKED 0x00000100")
1755 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
1756 cpp_quote("#define BSIS_PRESERVEORDERDURINGLAYOUT 0x00000200")
1757 cpp_quote("#endif /* _WIN32_IE_IE70 */")
1759 cpp_quote("#define SID_SBandSite IID_IBandSite")
1760 cpp_quote("#define CGID_BandSite IID_IBandSite")
1764 uuid(4CF504B0-DE96-11D0-8B3F-00A0C911E8E5)
1766 interface IBandSite : IUnknown
1768 HRESULT AddBand([in] IUnknown* punk);
1772 [out] DWORD* pdwBandID);
1775 [in] DWORD dwBandID,
1776 [out] IDeskBand** ppstb,
1777 [out] DWORD* pdwState,
1778 [out, string, size_is(cchName)] LPWSTR pszName,
1781 HRESULT SetBandState(
1782 [in] DWORD dwBandID,
1784 [in] DWORD dwState);
1786 HRESULT RemoveBand([in] DWORD dwBandID);
1788 HRESULT GetBandObject(
1789 [in] DWORD dwBandID,
1791 [out, iid_is(riid)] void **ppv);
1793 HRESULT SetBandSiteInfo([in] const BANDSITEINFO *pbsinfo);
1795 HRESULT GetBandSiteInfo([in, out] BANDSITEINFO *pbsinfo);
1798 cpp_quote("#endif /* _WIN32_IE_IE40 */")
1800 /*****************************************************************************
1801 * IMenuBand interface
1804 uuid(568804CD-CBD7-11d0-9816-00C04FD91972),
1806 pointer_default(unique),
1809 interface IMenuBand : IUnknown
1811 enum tagMENUBANDHANDLERCID {
1812 MBHANDCID_PIDLSELECT = 0,
1815 HRESULT IsMenuMessage([in] MSG* pmsg);
1817 HRESULT TranslateMenuMessage(
1818 [in, out] MSG* pmsg,
1819 [out] LRESULT* plRet);