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 * IPersistIDList interface
76 uuid(1079acfc
-29bd
-11d3
-8e0d
-00c04f6837d5
),
77 pointer_default(unique)
79 interface IPersistIDList
: IPersist
81 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
82 HRESULT GetIDList
( [out] LPITEMIDLIST
*ppidl
);
86 /*****************************************************************************
87 * IEnumIDList interface
91 uuid(000214f2
-0000-0000-c000
-000000000046),
92 pointer_default(unique)
94 interface IEnumIDList
: IUnknown
96 typedef IEnumIDList
*LPENUMIDLIST
;
100 [out, size_is(celt
), length_is(*pceltFetched
)] LPITEMIDLIST
*rgelt
,
101 [out] ULONG
*pceltFetched
);
103 HRESULT Skip
( [in] ULONG celt
);
105 HRESULT Clone
( [out] IEnumIDList
**ppenum
);
108 /*****************************************************************************
109 * IShellPropSheetExt interface
112 typedef LPARAM LPFNSVADDPROPSHEETPAGE
;
114 cpp_quote
("#include <prsht.h>")
115 cpp_quote
("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
120 uuid(000214E9
-0000-0000-C000
-000000000046),
121 pointer_default(unique),
124 interface IShellPropSheetExt
: IUnknown
126 enum tagSHELLPROPSHEETEXTPAGEID
{
127 EXPPS_FILETYPES
= 0x1
133 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage
,
137 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith
,
140 typedef IShellPropSheetExt
*LPSHELLPROPSHEETEXT
;
142 /*****************************************************************************
143 * IShellFolder interface
147 uuid(000214e6
-0000-0000-c000
-000000000046),
148 pointer_default(unique)
150 interface IShellFolder
: IUnknown
152 typedef IShellFolder
* LPSHELLFOLDER
;
154 typedef enum tagSHGDN
158 SHGDN_FOREDITING
= 0x1000,
159 SHGDN_INCLUDE_NONFILESYS
= 0x2000,
160 SHGDN_FORADDRESSBAR
= 0x4000,
161 SHGDN_FORPARSING
= 0x8000
164 typedef DWORD SHGDNF
;
168 SHCONTF_FOLDERS
= 32,
169 SHCONTF_NONFOLDERS
= 64,
170 SHCONTF_INCLUDEHIDDEN
= 128,
171 SHCONTF_INIT_ON_FIRST_NEXT
= 256,
172 SHCONTF_NETPRINTERSRCH
= 512,
173 SHCONTF_SHAREABLE
= 1024,
174 SHCONTF_STORAGE
= 2048
177 typedef DWORD SHCONTF
;
179 cpp_quote
("#define SFGAO_CANCOPY DROPEFFECT_COPY")
180 cpp_quote
("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
181 cpp_quote
("#define SFGAO_CANLINK DROPEFFECT_LINK")
182 cpp_quote
("#define SFGAO_STORAGE 0x00000008L")
183 cpp_quote
("#define SFGAO_CANRENAME 0x00000010L")
184 cpp_quote
("#define SFGAO_CANDELETE 0x00000020L")
185 cpp_quote
("#define SFGAO_HASPROPSHEET 0x00000040L")
186 cpp_quote
("#define SFGAO_DROPTARGET 0x00000100L")
187 cpp_quote
("#define SFGAO_CAPABILITYMASK 0x00000177L")
188 cpp_quote
("#define SFGAO_ENCRYPTED 0x00002000L")
189 cpp_quote
("#define SFGAO_ISSLOW 0x00004000L")
190 cpp_quote
("#define SFGAO_GHOSTED 0x00008000L")
191 cpp_quote
("#define SFGAO_LINK 0x00010000L")
192 cpp_quote
("#define SFGAO_SHARE 0x00020000L")
193 cpp_quote
("#define SFGAO_READONLY 0x00040000L")
194 cpp_quote
("#define SFGAO_HIDDEN 0x00080000L")
195 cpp_quote
("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
196 cpp_quote
("#define SFGAO_FILESYSANCESTOR 0x10000000L")
197 cpp_quote
("#define SFGAO_FOLDER 0x20000000L")
198 cpp_quote
("#define SFGAO_FILESYSTEM 0x40000000L")
199 cpp_quote
("#define SFGAO_HASSUBFOLDER 0x80000000L")
200 cpp_quote
("#define SFGAO_CONTENTSMASK 0x80000000L")
201 cpp_quote
("#define SFGAO_VALIDATE 0x01000000L")
202 cpp_quote
("#define SFGAO_REMOVABLE 0x02000000L")
203 cpp_quote
("#define SFGAO_COMPRESSED 0x04000000L")
204 cpp_quote
("#define SFGAO_BROWSABLE 0x08000000L")
205 cpp_quote
("#define SFGAO_NONENUMERATED 0x00100000L")
206 cpp_quote
("#define SFGAO_NEWCONTENT 0x00200000L")
207 cpp_quote
("#define SFGAO_STREAM 0x00400000L")
208 cpp_quote
("#define SFGAO_STORAGEANCESTOR 0x00800000L")
210 typedef ULONG SFGAOF
;
212 HRESULT ParseDisplayName
(
214 [in] LPBC pbcReserved
,
215 [in, string] LPOLESTR lpszDisplayName
,
216 [out] ULONG
*pchEaten
,
217 [out] LPITEMIDLIST
*ppidl
,
218 [in, out, unique] ULONG
*pdwAttributes
);
222 [in] SHCONTF grfFlags
,
223 [out] IEnumIDList
**ppenumIDList
);
225 HRESULT BindToObject
(
226 [in] LPCITEMIDLIST pidl
,
227 [in] LPBC pbcReserved
,
229 [out, iid_is(riid
)] void **ppvOut
);
231 HRESULT BindToStorage
(
232 [in] LPCITEMIDLIST pidl
,
233 [in] LPBC pbcReserved
,
235 [out, iid_is(riid
)] void **ppvObj
);
239 [in] LPCITEMIDLIST pidl1
,
240 [in] LPCITEMIDLIST pidl2
);
242 HRESULT CreateViewObject
(
245 [out, iid_is(riid
)] void **ppvOut
);
247 HRESULT GetAttributesOf
(
249 [in, size_is(cidl
)] LPCITEMIDLIST
*apidl
,
250 [in, out] SFGAOF
*rgfInOut
);
252 HRESULT GetUIObjectOf
(
255 [in, size_is(cidl
)] LPCITEMIDLIST
*apidl
,
257 [in, out, unique] UINT
*prgfInOut
,
258 [out, iid_is(riid
)] void **ppvOut
);
260 HRESULT GetDisplayNameOf
(
261 [in] LPCITEMIDLIST pidl
,
263 [out] STRRET
*lpName
);
267 [in] LPCITEMIDLIST pidl
,
268 [in, string] LPCOLESTR lpszName
,
270 [out] LPITEMIDLIST
*ppidlOut
);
274 /*****************************************************************************
275 * IEnumExtraSearch interface
279 uuid(0e700be1
-9db6
-11d1
-a1ce
-00c04fd75d13
),
280 pointer_default(unique)
282 interface IEnumExtraSearch
: IUnknown
284 typedef IEnumExtraSearch
*LPENUMEXTRASEARCH
;
289 WCHAR wszFriendlyName
[80];
291 *WCHAR wszMenuText[80];
292 *WCHAR wszHelpText[MAX_PATH];
296 *WCHAR wszIcon[MAX_PATH+10];
297 *WCHAR wszGreyIcon[MAX_PATH+10];
298 *WCHAR wszClrIcon[MAX_PATH+10];
300 } EXTRASEARCH
, *LPEXTRASEARCH
;
304 [out, size_is(celt
), length_is(*pceltFetched
)] EXTRASEARCH
*rgelt
,
305 [out] ULONG
*pceltFetched
);
307 HRESULT Skip
( [in] ULONG celt
);
309 HRESULT Clone
( [out] IEnumExtraSearch
**ppenum
);
313 /*****************************************************************************
314 * IShellFolder2 interface
318 uuid(93f2f68c
-1d1b
-11d3
-a30e
-00c04f79abd1
),
319 pointer_default(unique)
321 interface IShellFolder2
: IShellFolder
327 } SHCOLUMNID
, *LPSHCOLUMNID
;
328 typedef const SHCOLUMNID
*LPCSHCOLUMNID
;
330 HRESULT GetDefaultSearchGUID
( [out] GUID
*lpguid
);
331 HRESULT EnumSearches
( [out] IEnumExtraSearch
**ppenum
);
332 HRESULT GetDefaultColumn
( [in] DWORD dwReserved
, [out] ULONG
*pSort
, [out] ULONG
*pDisplay
);
333 HRESULT GetDefaultColumnState
( [in] UINT iColumn
, [out] SHCOLSTATEF
*pcsFlags
);
334 HRESULT GetDetailsEx
( [in] LPCITEMIDLIST pidl
, [in] const SHCOLUMNID
*pscid
, [out] VARIANT *pv
);
335 HRESULT GetDetailsOf
( [in] LPCITEMIDLIST pidl
, [in] UINT iColumn
, [out] SHELLDETAILS
*psd
);
336 HRESULT MapColumnToSCID
( [in] UINT iColumn
, [in] SHCOLUMNID
*pscid
);
339 /*****************************************************************************
340 * IShellItem interface
344 uuid(43826d1e
-e718
-42ee
-bc55
-a1e261c37bfe
),
345 pointer_default(unique)
347 interface IShellItem
: IUnknown
351 typedef DWORD SICHINTF
;
353 HRESULT BindToHandler
(
357 [out, iid_is(riid
)] void **ppvOut
);
359 HRESULT GetParent
( [out] IShellItem
**ppsi
);
361 HRESULT GetDisplayName
(
362 [in] SIGDN sigdnName
,
363 [out] LPWSTR
*ppszName
);
365 HRESULT GetAttributes
(
366 [in] SFGAOF sfgaoMask
,
367 [out] SFGAOF
*psfgaoAttribs
);
370 [in] IShellItem
*psi
,
375 typedef enum tagNWMF
{
376 NWMF_UNLOADING
= 0x0001,
377 NWMF_USERINITED
= 0x0002,
379 NWMF_OVERRIDEKEY
= 0x0008,
380 NWMF_SHOWHELP
= 0x0010,
381 NWMF_HTMLDIALOG
= 0x0020,
382 NWMF_FROMDIALOGCHILD
= 0x0040,
383 NWMF_USERREQUESTED
= 0x0080,
384 NWMF_USERALLOWED
= 0x0100
387 /*****************************************************************************
390 typedef char *LPVIEWSETTINGS
;
394 FWF_AUTOARRANGE
= 0x00000001,
395 FWF_ABBREVIATEDNAMES
= 0x00000002,
396 FWF_SNAPTOGRID
= 0x00000004,
397 FWF_OWNERDATA
= 0x00000008,
398 FWF_BESTFITWINDOW
= 0x00000010,
399 FWF_DESKTOP
= 0x00000020,
400 FWF_SINGLESEL
= 0x00000040,
401 FWF_NOSUBFOLDERS
= 0x00000080,
402 FWF_TRANSPARENT
= 0x00000100,
403 FWF_NOCLIENTEDGE
= 0x00000200,
404 FWF_NOSCROLL
= 0x00000400,
405 FWF_ALIGNLEFT
= 0x00000800,
406 FWF_NOICONS
= 0x00001000,
407 FWF_SHOWSELALWAYS
= 0x00002000,
408 FWF_NOVISIBLE
= 0x00004000,
409 FWF_SINGLECLICKACTIVATE
= 0x00008000,
410 FWF_NOWEBVIEW
= 0x00010000,
411 FWF_HIDEFILENAMES
= 0x00020000,
412 FWF_CHECKSELECT
= 0x00040000,
413 FWF_NOENUMREFRESH
= 0x00080000,
414 FWF_NOGROUPING
= 0x00100000,
415 FWF_FULLROWSELECT
= 0x00200000,
416 FWF_NOFILTERS
= 0x00400000,
417 FWF_NOCOLUMNHEADER
= 0x00800000,
418 FWF_NOHEADERINALLVIEWS
= 0x01000000,
419 FWF_EXTENDEDTILES
= 0x02000000,
420 FWF_TRICHECKSELECT
= 0x04000000,
421 FWF_AUTOCHECKSELECT
= 0x08000000,
422 FWF_NOBROWSERVIEWSTATE
= 0x10000000,
423 FWF_SUBSETGROUPS
= 0x20000000,
424 FWF_USESEARCHFOLDER
= 0x40000000,
425 FWF_ALLOWRTLREADING
= 0x80000000
432 FVM_FIRST
= FVM_ICON
,
440 FVM_LAST
= FVM_CONTENT
447 } FOLDERSETTINGS
, *PFOLDERSETTINGS
, *LPFOLDERSETTINGS
;
448 typedef const FOLDERSETTINGS
*LPCFOLDERSETTINGS
;
450 /*****************************************************************************
451 * IShellIcon interface
454 uuid(000214e5
-0000-0000-c000
-000000000046),
456 pointer_default(unique)
458 interface IShellIcon
: IUnknown
461 [in] PCUITEMID_CHILD pidl
,
463 [out] int *pIconIndex
);
466 /*****************************************************************************
467 * IShellView interface
469 interface IShellBrowser
; /* forward declaration */
472 uuid(000214e3
-0000-0000-c000
-000000000046),
473 pointer_default(unique)
475 interface IShellView
: IOleWindow
477 typedef IShellView
*LPSHELLVIEW
;
479 cpp_quote
("#define SVSI_DESELECT 0x00000000")
480 cpp_quote
("#define SVSI_SELECT 0x00000001")
481 cpp_quote
("#define SVSI_EDIT 0x00000003")
482 cpp_quote
("#define SVSI_DESELECTOTHERS 0x00000004")
483 cpp_quote
("#define SVSI_ENSUREVISIBLE 0x00000008")
484 cpp_quote
("#define SVSI_FOCUSED 0x00000010")
485 cpp_quote
("#define SVSI_TRANSLATEPT 0x00000020")
486 cpp_quote
("#define SVSI_SELECTIONMARK 0x00000040")
487 cpp_quote
("#define SVSI_POSITIONITEM 0x00000080")
488 cpp_quote
("#define SVSI_CHECK 0x00000100")
489 cpp_quote
("#define SVSI_NOSTATECHANGE 0x80000000")
495 SVGIO_BACKGROUND
= 0x00000000,
496 SVGIO_SELECTION
= 0x00000001,
497 SVGIO_ALLVIEW
= 0x00000002,
498 SVGIO_CHECKED
= 0x00000003,
499 SVGIO_TYPE_MASK
= 0x0000000f,
500 SVGIO_FLAG_VIEWORDER
= 0x80000000,
505 SVUIA_DEACTIVATE
= 0,
506 SVUIA_ACTIVATE_NOFOCUS
= 1,
507 SVUIA_ACTIVATE_FOCUS
= 2,
508 SVUIA_INPLACEACTIVATE
= 3
511 HRESULT TranslateAccelerator
( [in] MSG
*pmsg
);
512 HRESULT EnableModeless
( [in] BOOL fEnable
);
513 HRESULT UIActivate
( [in] UINT uState
);
515 HRESULT CreateViewWindow
(
516 [in] IShellView
*psvPrevious
,
517 [in] LPCFOLDERSETTINGS lpfs
,
518 [in] IShellBrowser
*psb
,
522 HRESULT DestroyViewWindow
();
523 HRESULT GetCurrentInfo
( [out] LPFOLDERSETTINGS lpfs
);
525 [local] HRESULT AddPropertySheetPages
(
526 [in] DWORD dwReserved
,
527 [in] LPFNSVADDPROPSHEETPAGE pfn
,
530 HRESULT SaveViewState
();
532 [in] LPCITEMIDLIST pidlItem
,
534 HRESULT GetItemObject
(
537 [out, iid_is(riid
)] void **ppv
);
542 uuid(88e39e80
-3578-11cf
-ae69
-08002b2e1262
),
543 pointer_default(unique)
545 interface IShellView2
: IShellView
547 typedef GUID SHELLVIEWID
;
548 cpp_quote
("#include <pshpack8.h>")
549 typedef struct _SV2CVW2_PARAMS
553 LPCFOLDERSETTINGS pfs
;
554 IShellBrowser
*psbOwner
;
556 SHELLVIEWID
const *pvid
;
558 } SV2CVW2_PARAMS
, *LPSV2CVW2_PARAMS
;
559 cpp_quote
("#include <poppack.h>")
562 [in, out] SHELLVIEWID
*view_guid
,
565 HRESULT CreateViewWindow2
(
566 [in] LPSV2CVW2_PARAMS view_params
568 HRESULT HandleRename
(
569 [in] LPCITEMIDLIST new_pidl
571 HRESULT SelectAndPositionItem
(
572 [in] LPCITEMIDLIST item
,
578 /*****************************************************************************
579 * IFolderView interface
582 uuid(cde725b0
-ccc9
-4519-917e-325d72fab4ce
),
584 pointer_default(unique)
586 interface IFolderView
: IUnknown
588 HRESULT GetCurrentViewMode
( [out] UINT
*mode
);
589 HRESULT SetCurrentViewMode
( [in] UINT mode
);
590 HRESULT GetFolder
( [in] REFIID riid
, [out, iid_is(riid
)] void **ppv
);
593 [out] PITEMID_CHILD
*ppidl
602 [out, iid_is(riid
)] void **ppv
604 HRESULT GetSelectionMarkedItem
( [out] int *item
);
605 HRESULT GetFocusedItem
( [out] int *item
);
606 HRESULT GetItemPosition
(
607 [in] PCUITEMID_CHILD pidl
,
610 HRESULT GetSpacing
( [in, out, unique] POINT
* pt
);
611 HRESULT GetDefaultSpacing
( [out] POINT
* pt
);
612 HRESULT GetAutoArrange
();
617 HRESULT SelectAndPositionItems
(
619 [in, size_is(cidl
)] PCUITEMID_CHILD_ARRAY apidl
,
620 [in, unique, size_is(cidl
)] POINT
* apt
,
625 /*****************************************************************************
626 * IShellBrowser interface
630 uuid(000214e2
-0000-0000-c000
-000000000046),
631 pointer_default(unique)
633 interface IShellBrowser
: IOleWindow
635 typedef IShellBrowser
*LPSHELLBROWSER
;
637 cpp_quote
("#define SBSP_DEFBROWSER 0x00000000")
638 cpp_quote
("#define SBSP_SAMEBROWSER 0x00000001")
639 cpp_quote
("#define SBSP_NEWBROWSER 0x00000002")
640 cpp_quote
("#define SBSP_DEFMODE 0x00000000")
641 cpp_quote
("#define SBSP_OPENMODE 0x00000010")
642 cpp_quote
("#define SBSP_EXPLOREMODE 0x00000020")
643 cpp_quote
("#define SBSP_HELPMODE 0x00000040")
644 cpp_quote
("#define SBSP_NOTRANSFERHIST 0x00000080")
645 cpp_quote
("#define SBSP_ABSOLUTE 0x00000000")
646 cpp_quote
("#define SBSP_RELATIVE 0x00001000")
647 cpp_quote
("#define SBSP_PARENT 0x00002000")
648 cpp_quote
("#define SBSP_NAVIGATEBACK 0x00004000")
649 cpp_quote
("#define SBSP_NAVIGATEFORWARD 0x00008000")
650 cpp_quote
("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
651 cpp_quote
("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
652 cpp_quote
("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
653 cpp_quote
("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
654 cpp_quote
("#define SBSP_CREATENOHISTORY 0x00100000")
655 cpp_quote
("#define SBSP_PLAYNOSOUND 0x00200000")
656 cpp_quote
("#define SBSP_CALLERUNTURUSTED 0x00800000")
657 cpp_quote
("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
658 cpp_quote
("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
659 cpp_quote
("#define SBSP_NOAUTOSELECT 0x04000000")
660 cpp_quote
("#define SBSP_WRITENOHISTORY 0x08000000")
661 cpp_quote
("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
662 cpp_quote
("#define SBSP_FEEDNAVIGATION 0x20000000")
663 cpp_quote
("#define SBSP_REDIRECT 0x40000000")
664 cpp_quote
("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
666 cpp_quote
("#define FCW_STATUS 0x0001")
667 cpp_quote
("#define FCW_TOOLBAR 0x0002")
668 cpp_quote
("#define FCW_TREE 0x0003")
669 cpp_quote
("#define FCW_INTERNETBAR 0x0006")
670 cpp_quote
("#define FCW_PROGRESS 0x0008")
672 cpp_quote
("#define FCT_MERGE 0x0001")
673 cpp_quote
("#define FCT_CONFIGABLE 0x0002")
674 cpp_quote
("#define FCT_ADDTOEND 0x0004")
677 typedef LPARAM LPTBBUTTONSB
;
679 cpp_quote
("#include <commctrl.h>")
680 cpp_quote
("typedef LPTBBUTTON LPTBBUTTONSB;")
683 HRESULT InsertMenusSB
(
684 [in] HMENU hmenuShared
,
685 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths
);
688 [in] HMENU hmenuShared
,
689 [in] HOLEMENU holemenuReserved
,
690 [in] HWND hwndActiveObject
);
692 HRESULT RemoveMenusSB
( [in] HMENU hmenuShared
);
693 HRESULT SetStatusTextSB
( [in, unique] LPCOLESTR pszStatusText
);
694 HRESULT EnableModelessSB
( [in] BOOL fEnable
);
695 HRESULT TranslateAcceleratorSB
( [in] MSG
*pmsg
, [in] WORD wID
);
697 HRESULT BrowseObject
(
698 [in] LPCITEMIDLIST pidl
,
701 HRESULT GetViewStateStream
(
703 [out] IStream
**ppStrm
);
705 HRESULT GetControlWindow
(
709 [local] HRESULT SendControlMsg
(
716 HRESULT QueryActiveShellView
( [out] IShellView
**ppshv
);
717 HRESULT OnViewWindowActive
( [in] IShellView
*pshv
);
720 HRESULT SetToolbarItems
(
721 [in] LPTBBUTTONSB lpButtons
,
727 /*****************************************************************************
728 * IShellLinkA interface
732 uuid(000214ee
-0000-0000-c000
-000000000046),
733 pointer_default(unique)
735 interface IShellLinkA
: IUnknown
740 SLR_ANY_MATCH
= 0x0002,
742 SLR_NOUPDATE
= 0x0008,
743 SLR_NOSEARCH
= 0x0010,
744 SLR_NOTRACK
= 0x0020,
745 SLR_NOLINKINFO
= 0x0040,
746 SLR_INVOKE_MSI
= 0x0080,
747 SLR_NO_UI_WITH_MSG_PUMP
= 0x0101,
752 SLGP_SHORTPATH
= 0x0001,
753 SLGP_UNCPRIORITY
= 0x0002,
754 SLGP_RAWPATH
= 0x0004,
758 [out, size_is(cch
)] LPSTR pszFile
,
760 [in, out, unique] WIN32_FIND_DATAA
*pfd
,
763 HRESULT GetIDList
( [out] LPITEMIDLIST
* ppidl
);
765 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
767 HRESULT GetDescription
(
768 [out, size_is(cch
)] LPSTR pszName
,
771 HRESULT SetDescription
( [in] LPCSTR pszName
);
773 HRESULT GetWorkingDirectory
(
774 [out, size_is(cch
)] LPSTR pszDir
,
777 HRESULT SetWorkingDirectory
( [in] LPCSTR pszDir
);
779 HRESULT GetArguments
(
780 [out, size_is(cch
)] LPSTR pszArgs
,
783 HRESULT SetArguments
( [in] LPCSTR pszArgs
);
785 HRESULT GetHotkey
( [out] WORD
*pwHotkey
);
787 HRESULT SetHotkey
( [in] WORD wHotkey
);
789 HRESULT GetShowCmd
( [out] int *piShowCmd
);
791 HRESULT SetShowCmd
( [in] int iShowCmd
);
793 HRESULT GetIconLocation
(
794 [out, size_is(cch
)] LPSTR pszIconPath
,
798 HRESULT SetIconLocation
(
799 [in] LPCSTR pszIconPath
,
802 HRESULT SetRelativePath
(
803 [in] LPCSTR pszPathRel
,
804 [in] DWORD dwReserved
);
810 HRESULT SetPath
( [in] LPCSTR pszFile
);
814 /*****************************************************************************
815 * IShellLinkW interface
819 uuid(000214f9
-0000-0000-c000
-000000000046),
820 pointer_default(unique)
822 interface IShellLinkW
: IUnknown
825 [out, size_is(cch
)] LPWSTR pszFile
,
827 [in, out] WIN32_FIND_DATAW
*pfd
,
830 HRESULT GetIDList
( [out] LPITEMIDLIST
* ppidl
);
832 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
834 HRESULT GetDescription
(
835 [out, size_is(cch
)] LPWSTR pszName
,
838 HRESULT SetDescription
( [in] LPCWSTR pszName
);
840 HRESULT GetWorkingDirectory
(
841 [out, size_is(cch
)] LPWSTR pszDir
,
844 HRESULT SetWorkingDirectory
( [in] LPCWSTR pszDir
);
846 HRESULT GetArguments
(
847 [out, size_is(cch
)] LPWSTR pszArgs
,
850 HRESULT SetArguments
( [in] LPCWSTR pszArgs
);
852 HRESULT GetHotkey
( [out] WORD
*pwHotkey
);
854 HRESULT SetHotkey
( [in] WORD wHotkey
);
856 HRESULT GetShowCmd
( [out] int *piShowCmd
);
858 HRESULT SetShowCmd
( [in] int iShowCmd
);
860 HRESULT GetIconLocation
(
861 [out, size_is(cch
)] LPWSTR pszIconPath
,
865 HRESULT SetIconLocation
(
866 [in] LPCWSTR pszIconPath
,
869 HRESULT SetRelativePath
(
870 [in] LPCWSTR pszPathRel
,
871 [in] DWORD dwReserved
);
877 HRESULT SetPath
( [in] LPCWSTR pszFile
);
880 cpp_quote
("#define IShellLink WINELIB_NAME_AW(IShellLink)")
883 /*****************************************************************************
884 * IShellExtInit interface
888 uuid(000214e8
-0000-0000-c000
-000000000046),
889 pointer_default(unique),
892 interface IShellExtInit
: IUnknown
894 typedef IShellExtInit
*LPSHELLEXTINIT
;
897 [in] LPCITEMIDLIST pidlFolder
,
898 [in] IDataObject
*pdtobj
,
899 [in] HKEY hkeyProgID
);
903 /*******************************************************************************/
904 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
905 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
906 /* them here anyway. */
907 /*******************************************************************************/
914 /*****************************************************************************
915 * IPersistFolder3 interface
919 uuid(cef04fdf
-fe72
-11d2
-87a5
-00c04f6837cf
),
920 pointer_default(unique)
922 interface IPersistFolder3
: IPersistFolder2
926 LPITEMIDLIST pidlTargetFolder
;
927 WCHAR szTargetParsingName
[MAX_PATH
];
928 WCHAR szNetworkProvider
[MAX_PATH
];
931 } PERSIST_FOLDER_TARGET_INFO
;
933 HRESULT InitializeEx
(
935 [in] LPCITEMIDLIST pidlRoot
,
936 [in] const PERSIST_FOLDER_TARGET_INFO
*ppfti
);
938 HRESULT GetFolderTargetInfo
( [out] PERSIST_FOLDER_TARGET_INFO
*ppfti
);
942 /*****************************************************************************
943 * IExtractIconA interface
947 uuid(000214eb
-0000-0000-c000
-000000000046),
948 pointer_default(unique),
951 interface IExtractIconA
: IUnknown
953 cpp_quote
("#define GIL_OPENICON 0x0001")
954 cpp_quote
("#define GIL_FORSHELL 0x0002")
955 cpp_quote
("#define GIL_ASYNC 0x0020")
956 cpp_quote
("#define GIL_DEFAULTICON 0x0040")
957 cpp_quote
("#define GIL_FORSHORTCUT 0x0080")
959 cpp_quote
("#define GIL_SIMULATEDOC 0x0001")
960 cpp_quote
("#define GIL_PERINSTANCE 0x0002")
961 cpp_quote
("#define GIL_PERCLASS 0x0004")
962 cpp_quote
("#define GIL_NOTFILENAME 0x0008")
963 cpp_quote
("#define GIL_DONTCACHE 0x0010")
965 typedef IExtractIconA
*LPEXTRACTICONA
;
967 HRESULT GetIconLocation
(
969 [out, size_is(cchMax
)] LPSTR szIconFile
,
972 [out] UINT
*pwFlags
);
976 [in] UINT nIconIndex
,
977 [out] HICON
*phiconLarge
,
978 [out] HICON
*phiconSmall
,
979 [in] UINT nIconSize
);
983 /*****************************************************************************
984 * IExtractIconW interface
988 uuid(000214fa
-0000-0000-c000
-000000000046),
989 pointer_default(unique),
992 interface IExtractIconW
: IUnknown
994 typedef IExtractIconW
*LPEXTRACTICONW
;
996 HRESULT GetIconLocation
(
998 [out, size_is(cchMax
)] LPWSTR szIconFile
,
1001 [out] UINT
*pwFlags
);
1004 [in] LPCWSTR pszFile
,
1005 [in] UINT nIconIndex
,
1006 [out] HICON
*phiconLarge
,
1007 [out] HICON
*phiconSmall
,
1008 [in] UINT nIconSize
);
1011 cpp_quote
("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1012 cpp_quote
("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1015 /*****************************************************************************
1016 * ICommDlgBrowser interface
1020 uuid(000214f1
-0000-0000-c000
-000000000046),
1021 pointer_default(unique)
1023 interface ICommDlgBrowser
: IUnknown
1025 cpp_quote
("#define CDBOSC_SETFOCUS 0x00000000")
1026 cpp_quote
("#define CDBOSC_KILLFOCUS 0x00000001")
1027 cpp_quote
("#define CDBOSC_SELCHANGE 0x00000002")
1028 cpp_quote
("#define CDBOSC_RENAME 0x00000003")
1029 cpp_quote
("#define CDBOSC_STATECHANGE 0x00000004")
1031 typedef ICommDlgBrowser
*LPCOMMDLGBROWSER
;
1033 HRESULT OnDefaultCommand
( [in] IShellView
*shv
);
1034 HRESULT OnStateChange
( [in] IShellView
*shv
, [in] ULONG uChange
);
1035 HRESULT IncludeObject
( [in] IShellView
*shv
, [in] LPCITEMIDLIST pidl
);
1039 /*****************************************************************************
1040 * ICommDlgBrowser2 interface
1044 uuid(10339516-2894-11D2
-9039-00C04F8EEB3E
),
1045 pointer_default(unique)
1047 interface ICommDlgBrowser2
: ICommDlgBrowser
1051 [in] IShellView
*ppshv
,
1052 [in] DWORD dwNotifyType
);
1054 HRESULT GetDefaultMenuText
(
1055 [in] IShellView
*ppshv
,
1056 [out, string, size_is(cchMax
)] LPWSTR pszText
,
1059 HRESULT GetViewFlags
(
1060 [out] DWORD
*pdwFlags
);
1064 /*****************************************************************************
1065 * ICommDlgBrowser3 interface
1069 uuid(C8AD25A1
-3294-41EE
-8165-71174BD01C57
),
1070 pointer_default(unique)
1072 interface ICommDlgBrowser3
: ICommDlgBrowser2
1075 HRESULT OnColumnClicked
(
1076 [in] IShellView
*ppshv
,
1079 HRESULT GetCurrentFilter
(
1080 [out, string, size_is(cchFileSpec
)] LPWSTR pszFileSpec
,
1081 [in] int cchFileSpec
);
1083 HRESULT OnPreviewCreated
(
1084 [in] IShellView
*ppshv
);
1088 /*****************************************************************************
1089 * IDockingWindowFrame interface
1093 uuid(47d2657a
-7b27
-11d0
-8ca9
-00a0c92dbfe8
),
1094 pointer_default(unique),
1097 interface IDockingWindowFrame
: IOleWindow
1099 cpp_quote
("#define DWFRF_NORMAL 0x0000")
1100 cpp_quote
("#define DWFRF_DELETECONFIGDATA 0x0001")
1101 cpp_quote
("#define DWFAF_HIDDEN 0x0001")
1104 [in] IUnknown
*punkSrc
,
1105 [in] LPCWSTR pwszItem
,
1106 [in] DWORD dwAddFlags
);
1108 HRESULT RemoveToolbar
(
1109 [in] IUnknown
*punkSrc
,
1110 [in] DWORD dwRemoveFlags
);
1112 HRESULT FindToolbar
(
1113 [in] LPCWSTR pwszItem
,
1115 [out] LPVOID
*ppvObj
);
1119 /*****************************************************************************
1120 * IDragSourceHelper interface
1124 uuid(de5bf786
-477a
-11d2
-839d
-00c04fd918d0
),
1125 pointer_default(unique),
1128 interface IDragSourceHelper
: IUnknown
1134 HBITMAP hbmpDragImage
;
1135 COLORREF crColorKey
;
1136 } SHDRAGIMAGE
, *LPSHDRAGIMAGE
;
1138 HRESULT InitializeFromBitmap
(
1139 [in] LPSHDRAGIMAGE pshdi
,
1140 [in] IDataObject
*pDataObject
);
1142 HRESULT InitializeFromWindow
(
1145 [in] IDataObject
*pDataObject
);
1149 /*****************************************************************************
1150 * IDropTargetHelper interface
1154 uuid(4657278b
-411b
-11d2
-839a
-00c04fd918d0
),
1155 pointer_default(unique),
1158 interface IDropTargetHelper
: IUnknown
1161 [in] HWND hwndTarget
,
1162 [in] IDataObject
*pDataObject
,
1164 [in] DWORD dwEffect
);
1166 HRESULT DragLeave
();
1170 [in] DWORD dwEffect
);
1173 [in] IDataObject
*pDataObject
,
1175 [in] DWORD dwEffect
);
1177 HRESULT Show
( [in] BOOL fShow
);
1181 /*****************************************************************************
1182 * IContextMenu interface
1186 uuid(000214e4
-0000-0000-c000
-000000000046),
1187 pointer_default(unique),
1190 interface IContextMenu
: IUnknown
1192 cpp_quote
("#define CMF_NORMAL 0x00000000")
1193 cpp_quote
("#define CMF_DEFAULTONLY 0x00000001")
1194 cpp_quote
("#define CMF_VERBSONLY 0x00000002")
1195 cpp_quote
("#define CMF_EXPLORE 0x00000004")
1196 cpp_quote
("#define CMF_NOVERBS 0x00000008")
1197 cpp_quote
("#define CMF_CANRENAME 0x00000010")
1198 cpp_quote
("#define CMF_NODEFAULT 0x00000020")
1199 cpp_quote
("#define CMF_INCLUDESTATIC 0x00000040")
1200 cpp_quote
("#define CMF_EXTENDEDVERBS 0x00000100")
1201 cpp_quote
("#define CMF_RESERVED 0xffff0000")
1203 cpp_quote
("#define GCS_VERBA 0x00000000")
1204 cpp_quote
("#define GCS_HELPTEXTA 0x00000001")
1205 cpp_quote
("#define GCS_VALIDATEA 0x00000002")
1206 cpp_quote
("#define GCS_VERBW 0x00000004")
1207 cpp_quote
("#define GCS_HELPTEXTW 0x00000005")
1208 cpp_quote
("#define GCS_VALIDATEW 0x00000006")
1209 cpp_quote
("#define GCS_UNICODE 0x00000004")
1210 cpp_quote
("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1211 cpp_quote
("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1212 cpp_quote
("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1214 cpp_quote
("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1215 cpp_quote
("#define CMDSTR_VIEWLISTA \"ViewList\"")
1216 cpp_quote
("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1217 cpp_quote
("#if defined(__GNUC__)")
1218 cpp_quote
("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1219 cpp_quote
("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1220 cpp_quote
("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1221 cpp_quote
("#elif defined(_MSC_VER)")
1222 cpp_quote
("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1223 cpp_quote
("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1224 cpp_quote
("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1226 cpp_quote
("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1227 cpp_quote
("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1228 cpp_quote
("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1230 cpp_quote
("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1231 cpp_quote
("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1232 cpp_quote
("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1234 cpp_quote
("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1235 cpp_quote
("#define CMIC_MASK_ICON SEE_MASK_ICON")
1236 cpp_quote
("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1237 cpp_quote
("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1238 cpp_quote
("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1239 cpp_quote
("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1240 cpp_quote
("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1241 cpp_quote
("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1242 cpp_quote
("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1243 cpp_quote
("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1244 cpp_quote
("#define CMIC_MASK_PTINVOKE 0x20000000")
1245 cpp_quote
("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1246 cpp_quote
("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1247 cpp_quote
("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1249 typedef IContextMenu
*LPCONTEXTMENU
;
1251 typedef struct tagCMINVOKECOMMANDINFO
1257 LPCSTR lpParameters
;
1262 } CMINVOKECOMMANDINFO
, *LPCMINVOKECOMMANDINFO
;
1264 typedef struct tagCMInvokeCommandInfoEx
1270 LPCSTR lpParameters
;
1277 LPCWSTR lpParametersW
;
1278 LPCWSTR lpDirectoryW
;
1281 } CMINVOKECOMMANDINFOEX
, *LPCMINVOKECOMMANDINFOEX
;
1283 HRESULT QueryContextMenu
(
1285 [in] UINT indexMenu
,
1286 [in] UINT idCmdFirst
,
1287 [in] UINT idCmdLast
,
1290 HRESULT InvokeCommand
( [in] LPCMINVOKECOMMANDINFO lpici
);
1292 HRESULT GetCommandString
(
1293 [in] UINT_PTR idCmd
,
1295 [out] UINT
*pwReserved
,
1296 [out, size_is(cchMax
)] LPSTR pszName
,
1301 /*****************************************************************************
1302 * IContextMenu2 interface
1306 uuid(000214f4
-0000-0000-c000
-000000000046),
1307 pointer_default(unique),
1310 interface IContextMenu2
: IContextMenu
1312 typedef IContextMenu2
*LPCONTEXTMENU2
;
1314 HRESULT HandleMenuMsg
(
1317 [in] LPARAM lParam
);
1321 /*****************************************************************************
1322 * IContextMenu3 interface
1326 uuid(bcfce0a0
-ec17
-11d0
-8d10
-00a0c90f2719
),
1327 pointer_default(unique),
1330 interface IContextMenu3
: IContextMenu2
1332 typedef IContextMenu3
*LPCONTEXTMENU3
;
1334 HRESULT HandleMenuMsg2
(
1338 [out] LRESULT
*plResult
);
1342 /*****************************************************************************
1343 * IShellExecuteHookA interface
1347 uuid(000214f5
-0000-0000-c000
-000000000046),
1348 pointer_default(unique),
1351 interface IShellExecuteHookA
: IUnknown
1353 cpp_quote
("struct _SHELLEXECUTEINFOA;")
1355 [in, out] struct _SHELLEXECUTEINFOA
* pei
);
1359 /*****************************************************************************
1360 * IShellExecuteHookW interface
1364 uuid(000214fb
-0000-0000-c000
-000000000046),
1365 pointer_default(unique),
1368 interface IShellExecuteHookW
: IUnknown
1370 cpp_quote
("struct _SHELLEXECUTEINFOW;")
1372 [in, out] struct _SHELLEXECUTEINFOW
* pei
);
1375 /*****************************************************************************
1376 * IShellLinkDataList interface
1380 uuid(45e2b4ae
-b1c3
-11d0
-b92f
-00a0c90312e1
),
1381 pointer_default(unique)
1383 interface IShellLinkDataList
: IUnknown
1385 [local] HRESULT AddDataBlock
(
1386 [in] void *pDataBlock
);
1387 [local] HRESULT CopyDataBlock
(
1389 [out] void **ppDataBlock
);
1390 HRESULT RemoveDataBlock
(
1393 [out] DWORD
*pdwFlags
);
1395 [in] DWORD dwFlags
);
1399 /*****************************************************************************
1400 * IResolveShellLink interface
1404 uuid(5cd52983
-9449-11d2
-963a
-00c04f79adf0
),
1405 pointer_default(unique)
1407 interface IResolveShellLink
: IUnknown
1409 HRESULT ResolveShellLink
(
1410 [in] IUnknown
*punk
,
1416 /*****************************************************************************
1417 * IURLSearchHook interface
1421 uuid(ac60f6a0
-0fd9
-11d0
-99cb
-00c04fd64497
),
1422 pointer_default(unique),
1425 interface IURLSearchHook
: IUnknown
1428 [in, out] LPWSTR lpwszSearchURL
,
1429 [in] DWORD cchBufferSize
);
1433 /*****************************************************************************
1434 * ISearchContext interface
1438 uuid(09f656a2
-41af
-480c
-88f7
-16cc0d164615
),
1439 pointer_default(unique),
1442 interface ISearchContext
: IUnknown
1444 HRESULT GetSearchUrl
(
1445 [in] BSTR *pbstrSearchUrl
);
1446 HRESULT GetSearchText
(
1447 [in] BSTR *pbstrSearchText
);
1448 HRESULT GetSearchStyle
(
1449 [in] BSTR *pdwSearchStyle
);
1453 /*****************************************************************************
1454 * IURLSearchHook2 interface
1458 uuid(5ee44da4
-6d32
-46e3
-86bc
-07540dedd0e0
),
1459 pointer_default(unique),
1462 interface IURLSearchHook2
: IURLSearchHook
1464 HRESULT TranslateWithSearchContext
(
1465 [in, out] LPWSTR lpwszSearchURL
,
1466 [in] DWORD cchBufferSize
,
1467 [in] ISearchContext
*pSearchContext
);
1471 cpp_quote
("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1473 /*****************************************************************************
1474 * INewShortcutHookA interface
1478 uuid(000214e1
-0000-0000-c000
-000000000046),
1479 pointer_default(unique),
1482 interface INewShortcutHookA
: IUnknown
1484 HRESULT SetReferent
(
1485 [in] LPCSTR pcszReferent
,
1487 HRESULT GetReferent
(
1488 [out] LPSTR pcszReferent
,
1489 [in] int cchReferent
);
1491 [in] LPCSTR pcszReferent
);
1493 [out] LPSTR pcszReferent
,
1494 [in] int cchFolder
);
1496 [out] LPSTR pszName
,
1498 HRESULT GetExtension
(
1499 [out] LPSTR pszExtension
,
1500 [in] int cchExtension
);
1504 /*****************************************************************************
1505 * INewShortcutHookW interface
1509 uuid(000214f7
-0000-0000-c000
-000000000046),
1510 pointer_default(unique),
1513 interface INewShortcutHookW
: IUnknown
1515 HRESULT SetReferent
(
1516 [in] LPCWSTR pcszReferent
,
1518 HRESULT GetReferent
(
1519 [out] LPWSTR pcszReferent
,
1520 [in] int cchReferent
);
1522 [in] LPCWSTR pcszReferent
);
1524 [out] LPWSTR pcszReferent
,
1525 [in] int cchFolder
);
1527 [out] LPWSTR pszName
,
1529 HRESULT GetExtension
(
1530 [out] LPWSTR pszExtension
,
1531 [in] int cchExtension
);
1534 /*****************************************************************************
1535 * IRunnableTask interface
1539 uuid(85788d00
-6807-11d0
-b810
-00c04fd706ec
),
1540 pointer_default(unique),
1543 interface IRunnableTask
: IUnknown
1546 HRESULT Kill
([in] BOOL fWait
);
1552 /*****************************************************************************
1553 * IShellChangeNotify interface
1557 uuid(d82be2b1
-5764-11d0
-a96e
-00c04fd705a2
),
1558 pointer_default(unique),
1561 interface IShellChangeNotify
: IUnknown
1565 [in] LPCITEMIDLIST pidl1
,
1566 [in] LPCITEMIDLIST pidl2
);
1569 /*****************************************************************************
1570 * IFileSystemBindData interface
1574 uuid(01e18d10
-4d8b
-11d2
-855d
-006008059367),
1575 pointer_default(unique),
1578 interface IFileSystemBindData
: IUnknown
1580 HRESULT SetFindData
(
1581 [in] const WIN32_FIND_DATAW
*pfd
);
1582 HRESULT GetFindData
(
1583 [out] WIN32_FIND_DATAW
*pfd
);
1586 /*****************************************************************************
1587 * ITaskbarList interface
1591 uuid(56FDF342
-FD6D
-11d0
-958A
-006097C9A090
),
1592 pointer_default(unique)
1594 interface ITaskbarList
: IUnknown
1604 HRESULT ActivateTab
(
1607 HRESULT SetActiveAlt
(
1611 cpp_quote
("EXTERN_C const CLSID CLSID_TaskbarList;")
1613 /*****************************************************************************
1614 * IAutoCompleteDropDown interface
1618 uuid(3CD141F4
-3C6A
-11d2
-BCAA
-00C04FD929DB
),
1619 pointer_default(unique)
1621 interface IAutoCompleteDropDown
: IUnknown
1623 cpp_quote
("#define ACDD_VISIBLE 0x0001")
1625 HRESULT GetDropDownStatus
(
1626 [out] DWORD
*pdwFlags
,
1627 [out, string] LPWSTR
*ppwszString
);
1629 HRESULT ResetEnumerator
();
1634 uuid(cb728b20
-f786
-11ce
-92ad
-00aa00a74cd0
),
1635 pointer_default(unique)
1637 interface IProfferService
: IUnknown
1639 HRESULT ProfferService
(
1640 [in] REFGUID service
,
1641 [in] IServiceProvider
*pService
,
1642 [out] DWORD
*pCookie
);
1644 HRESULT RevokeService
([in] DWORD cookie
);
1647 /*****************************************************************************
1648 * IExplorerBrowserEvents interface
1652 uuid(361BBDC7
-E6EE
-4E13
-BE58
-58E2240C810F
)
1654 interface IExplorerBrowserEvents
: IUnknown
1656 HRESULT OnNavigationPending
(
1657 [in] PCIDLIST_ABSOLUTE pidlFolder
);
1659 HRESULT OnViewCreated
(
1660 [in] IShellView
*psv
);
1662 HRESULT OnNavigationComplete
(
1663 [in] PCIDLIST_ABSOLUTE pidlFolder
);
1665 HRESULT OnNavigationFailed
(
1666 [in] PCIDLIST_ABSOLUTE pidlFolder
);
1669 typedef GUID EXPLORERPANE
;
1670 typedef EXPLORERPANE
*REFEXPLORERPANE
;
1672 cpp_quote
("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
1674 /*****************************************************************************
1675 * IExplorerPaneVisibility interface
1679 uuid(E07010EC
-BC17
-44C0
-97B0
-46C7C95B9EDC
)
1681 interface IExplorerPaneVisibility
: IUnknown
1683 typedef enum tagEXPLORERPANESTATE
{
1685 EPS_DEFAULT_ON
= 0x1,
1686 EPS_DEFAULT_OFF
= 0x2,
1687 EPS_STATE_MASK
= 0xffff,
1688 EPS_INITIALSTATE
= 0x10000,
1690 } EXPLORERPANESTATE
;
1692 HRESULT GetPaneState
(
1693 [in] REFEXPLORERPANE ep
,
1694 [out] EXPLORERPANESTATE
*peps
);
1697 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS
{
1699 EBF_SELECTFROMDATAOBJECT
= 0x100,
1700 EBF_NODROPTARGET
= 0x200
1701 } EXPLORER_BROWSER_FILL_FLAGS
;
1703 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS
{
1705 EBO_NAVIGATEONCE
= 0x01,
1706 EBO_SHOWFRAMES
= 0x02,
1707 EBO_ALWAYSNAVIGATE
= 0x04,
1708 EBO_NOTRAVELLOG
= 0x08,
1709 EBO_NOWRAPPERWINDOW
= 0x10,
1710 EBO_HTMLSHAREPOINTVIEW
= 0x20
1711 } EXPLORER_BROWSER_OPTIONS
;
1713 cpp_quote
("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
1715 /*****************************************************************************
1716 * IExplorerBrowser interface
1720 uuid(DFD3B6B5
-C10C
-4BE9
-85F6
-A66969F402F6
),
1721 pointer_default(unique)
1723 interface IExplorerBrowser
: IUnknown
1726 [local] HRESULT Initialize
(
1727 [in] HWND hwndParent
,
1728 [in] const RECT
*prc
,
1729 [in, unique] const FOLDERSETTINGS
*pfs
);
1733 [local] HRESULT SetRect
(
1734 [in,out,unique] HDWP
*phdwp
,
1735 [in] RECT rcBrowser
);
1737 HRESULT SetPropertyBag
(
1738 [in, string] LPCWSTR pszPropertyBag
);
1740 HRESULT SetEmptyText
(
1741 [in, string] LPCWSTR pszEmptyText
);
1743 HRESULT SetFolderSettings
(
1744 [in] const FOLDERSETTINGS
*pfs
);
1747 [in] IExplorerBrowserEvents
*psbe
,
1748 [out] DWORD
*pdwCookie
);
1751 [in] DWORD dwCookie
);
1754 [in] EXPLORER_BROWSER_OPTIONS dwFlag
);
1757 [out] EXPLORER_BROWSER_OPTIONS
*pdwFlag
);
1759 HRESULT BrowseToIDList
(
1760 [in] PCUIDLIST_RELATIVE pidl
,
1763 HRESULT BrowseToObject
(
1764 [in] IUnknown
*punk
,
1767 HRESULT FillFromObject
(
1768 [in] IUnknown
*punk
,
1769 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags
);
1771 HRESULT RemoveAll
();
1773 HRESULT GetCurrentView
(
1775 [out, iid_is(riid
)] IUnknown
**ppv
);