2 * COM interfaces for shell objects
4 * Copyright (C) 1999 Juergen Schmied
5 * Copyright (C) 2003 Alexandre Julliard
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
27 import
"servprov.idl";
30 /* FIXME: import "prsht.idl";*/
34 import
"objectarray.idl";
35 /* FIXME: import "structuredquery.idl"; */
37 cpp_quote
("/* FIXME: #include <sherrors.h> */")
40 /*****************************************************************************
41 * IPersistFolder interface
45 uuid(000214ea
-0000-0000-c000
-000000000046),
46 pointer_default(unique)
48 interface IPersistFolder
: IPersist
50 typedef IPersistFolder
*LPPERSISTFOLDER
;
52 HRESULT Initialize
( [in] LPCITEMIDLIST pidl
);
56 /*****************************************************************************
57 * IPersistFolder2 interface
61 uuid(1ac3d9f0
-175c
-11d1
-95be
-00609797ea4f
),
62 pointer_default(unique)
64 interface IPersistFolder2
: IPersistFolder
66 typedef IPersistFolder2
*LPPERSISTFOLDER2
;
68 HRESULT GetCurFolder
( [out] LPITEMIDLIST
*ppidl
);
72 /*****************************************************************************
73 * IPersistIDList interface
77 uuid(1079acfc
-29bd
-11d3
-8e0d
-00c04f6837d5
),
78 pointer_default(unique)
80 interface IPersistIDList
: IPersist
82 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
83 HRESULT GetIDList
( [out] LPITEMIDLIST
*ppidl
);
87 /*****************************************************************************
88 * IEnumIDList interface
92 uuid(000214f2
-0000-0000-c000
-000000000046),
93 pointer_default(unique)
95 interface IEnumIDList
: IUnknown
97 typedef IEnumIDList
*LPENUMIDLIST
;
101 [out, size_is(celt
), length_is(*pceltFetched
)] LPITEMIDLIST
*rgelt
,
102 [out] ULONG
*pceltFetched
);
104 HRESULT Skip
( [in] ULONG celt
);
106 HRESULT Clone
( [out] IEnumIDList
**ppenum
);
109 /*****************************************************************************
110 * IShellPropSheetExt interface
113 typedef LPARAM LPFNSVADDPROPSHEETPAGE
;
115 cpp_quote
("#include <prsht.h>")
116 cpp_quote
("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
121 uuid(000214E9
-0000-0000-C000
-000000000046),
122 pointer_default(unique),
125 interface IShellPropSheetExt
: IUnknown
127 enum tagSHELLPROPSHEETEXTPAGEID
{
128 EXPPS_FILETYPES
= 0x1
134 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage
,
138 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith
,
141 typedef IShellPropSheetExt
*LPSHELLPROPSHEETEXT
;
143 /*****************************************************************************
144 * IShellFolder interface
148 uuid(000214e6
-0000-0000-c000
-000000000046),
149 pointer_default(unique)
151 interface IShellFolder
: IUnknown
153 typedef IShellFolder
* LPSHELLFOLDER
;
155 typedef enum tagSHGDN
159 SHGDN_FOREDITING
= 0x1000,
160 SHGDN_INCLUDE_NONFILESYS
= 0x2000,
161 SHGDN_FORADDRESSBAR
= 0x4000,
162 SHGDN_FORPARSING
= 0x8000
165 typedef DWORD SHGDNF
;
169 SHCONTF_FOLDERS
= 32,
170 SHCONTF_NONFOLDERS
= 64,
171 SHCONTF_INCLUDEHIDDEN
= 128,
172 SHCONTF_INIT_ON_FIRST_NEXT
= 256,
173 SHCONTF_NETPRINTERSRCH
= 512,
174 SHCONTF_SHAREABLE
= 1024,
175 SHCONTF_STORAGE
= 2048
178 typedef DWORD SHCONTF
;
180 cpp_quote
("#define SFGAO_CANCOPY DROPEFFECT_COPY")
181 cpp_quote
("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
182 cpp_quote
("#define SFGAO_CANLINK DROPEFFECT_LINK")
183 cpp_quote
("#define SFGAO_STORAGE 0x00000008L")
184 cpp_quote
("#define SFGAO_CANRENAME 0x00000010L")
185 cpp_quote
("#define SFGAO_CANDELETE 0x00000020L")
186 cpp_quote
("#define SFGAO_HASPROPSHEET 0x00000040L")
187 cpp_quote
("#define SFGAO_DROPTARGET 0x00000100L")
188 cpp_quote
("#define SFGAO_CAPABILITYMASK 0x00000177L")
189 cpp_quote
("#define SFGAO_ENCRYPTED 0x00002000L")
190 cpp_quote
("#define SFGAO_ISSLOW 0x00004000L")
191 cpp_quote
("#define SFGAO_GHOSTED 0x00008000L")
192 cpp_quote
("#define SFGAO_LINK 0x00010000L")
193 cpp_quote
("#define SFGAO_SHARE 0x00020000L")
194 cpp_quote
("#define SFGAO_READONLY 0x00040000L")
195 cpp_quote
("#define SFGAO_HIDDEN 0x00080000L")
196 cpp_quote
("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
197 cpp_quote
("#define SFGAO_FILESYSANCESTOR 0x10000000L")
198 cpp_quote
("#define SFGAO_FOLDER 0x20000000L")
199 cpp_quote
("#define SFGAO_FILESYSTEM 0x40000000L")
200 cpp_quote
("#define SFGAO_HASSUBFOLDER 0x80000000L")
201 cpp_quote
("#define SFGAO_CONTENTSMASK 0x80000000L")
202 cpp_quote
("#define SFGAO_VALIDATE 0x01000000L")
203 cpp_quote
("#define SFGAO_REMOVABLE 0x02000000L")
204 cpp_quote
("#define SFGAO_COMPRESSED 0x04000000L")
205 cpp_quote
("#define SFGAO_BROWSABLE 0x08000000L")
206 cpp_quote
("#define SFGAO_NONENUMERATED 0x00100000L")
207 cpp_quote
("#define SFGAO_NEWCONTENT 0x00200000L")
208 cpp_quote
("#define SFGAO_STREAM 0x00400000L")
209 cpp_quote
("#define SFGAO_STORAGEANCESTOR 0x00800000L")
211 typedef ULONG SFGAOF
;
213 HRESULT ParseDisplayName
(
215 [in] LPBC pbcReserved
,
216 [in, string] LPOLESTR lpszDisplayName
,
217 [out] ULONG
*pchEaten
,
218 [out] LPITEMIDLIST
*ppidl
,
219 [in, out, unique] ULONG
*pdwAttributes
);
223 [in] SHCONTF grfFlags
,
224 [out] IEnumIDList
**ppenumIDList
);
226 HRESULT BindToObject
(
227 [in] LPCITEMIDLIST pidl
,
228 [in] LPBC pbcReserved
,
230 [out, iid_is(riid
)] void **ppvOut
);
232 HRESULT BindToStorage
(
233 [in] LPCITEMIDLIST pidl
,
234 [in] LPBC pbcReserved
,
236 [out, iid_is(riid
)] void **ppvObj
);
240 [in] LPCITEMIDLIST pidl1
,
241 [in] LPCITEMIDLIST pidl2
);
243 HRESULT CreateViewObject
(
246 [out, iid_is(riid
)] void **ppvOut
);
248 HRESULT GetAttributesOf
(
250 [in, size_is(cidl
)] LPCITEMIDLIST
*apidl
,
251 [in, out] SFGAOF
*rgfInOut
);
253 HRESULT GetUIObjectOf
(
256 [in, size_is(cidl
)] LPCITEMIDLIST
*apidl
,
258 [in, out, unique] UINT
*prgfInOut
,
259 [out, iid_is(riid
)] void **ppvOut
);
261 HRESULT GetDisplayNameOf
(
262 [in] LPCITEMIDLIST pidl
,
264 [out] STRRET
*lpName
);
268 [in] LPCITEMIDLIST pidl
,
269 [in, string] LPCOLESTR lpszName
,
271 [out] LPITEMIDLIST
*ppidlOut
);
275 /*****************************************************************************
276 * IEnumExtraSearch interface
280 uuid(0e700be1
-9db6
-11d1
-a1ce
-00c04fd75d13
),
281 pointer_default(unique)
283 interface IEnumExtraSearch
: IUnknown
285 typedef IEnumExtraSearch
*LPENUMEXTRASEARCH
;
290 WCHAR wszFriendlyName
[80];
292 *WCHAR wszMenuText[80];
293 *WCHAR wszHelpText[MAX_PATH];
297 *WCHAR wszIcon[MAX_PATH+10];
298 *WCHAR wszGreyIcon[MAX_PATH+10];
299 *WCHAR wszClrIcon[MAX_PATH+10];
301 } EXTRASEARCH
, *LPEXTRASEARCH
;
305 [out, size_is(celt
), length_is(*pceltFetched
)] EXTRASEARCH
*rgelt
,
306 [out] ULONG
*pceltFetched
);
308 HRESULT Skip
( [in] ULONG celt
);
310 HRESULT Clone
( [out] IEnumExtraSearch
**ppenum
);
314 /*****************************************************************************
315 * IShellFolder2 interface
319 uuid(93f2f68c
-1d1b
-11d3
-a30e
-00c04f79abd1
),
320 pointer_default(unique)
322 interface IShellFolder2
: IShellFolder
328 } SHCOLUMNID
, *LPSHCOLUMNID
;
329 typedef const SHCOLUMNID
*LPCSHCOLUMNID
;
331 HRESULT GetDefaultSearchGUID
( [out] GUID
*lpguid
);
332 HRESULT EnumSearches
( [out] IEnumExtraSearch
**ppenum
);
333 HRESULT GetDefaultColumn
( [in] DWORD dwReserved
, [out] ULONG
*pSort
, [out] ULONG
*pDisplay
);
334 HRESULT GetDefaultColumnState
( [in] UINT iColumn
, [out] SHCOLSTATEF
*pcsFlags
);
335 HRESULT GetDetailsEx
( [in] LPCITEMIDLIST pidl
, [in] const SHCOLUMNID
*pscid
, [out] VARIANT *pv
);
336 HRESULT GetDetailsOf
( [in] LPCITEMIDLIST pidl
, [in] UINT iColumn
, [out] SHELLDETAILS
*psd
);
337 HRESULT MapColumnToSCID
( [in] UINT iColumn
, [in] SHCOLUMNID
*pscid
);
340 /*****************************************************************************
341 * IShellItem interface
345 uuid(43826d1e
-e718
-42ee
-bc55
-a1e261c37bfe
),
346 pointer_default(unique)
348 interface IShellItem
: IUnknown
350 typedef [v1_enum] enum {
351 SIGDN_NORMALDISPLAY
= 0,
352 SIGDN_PARENTRELATIVEPARSING
= 0x80018001,
353 SIGDN_DESKTOPABSOLUTEPARSING
= 0x80028000,
354 SIGDN_PARENTRELATIVEEDITING
= 0x80031001,
355 SIGDN_DESKTOPABSOLUTEEDITING
= 0x8004c000,
356 SIGDN_FILESYSPATH
= 0x80058000,
357 SIGDN_URL
= 0x80068000,
358 SIGDN_PARENTRELATIVEFORADDRESSBAR
= 0x8007c001,
359 SIGDN_PARENTRELATIVE
= 0x80080001
360 } SIGDN
; /* & 0xFFFF => SHGDN */
362 [v1_enum] enum _SICHINTF
364 SICHINT_DISPLAY
= 0x00000000,
365 SICHINT_CANONICAL
= 0x10000000,
366 SICHINT_TEST_FILESYSPATH_IF_NOT_EQUAL
= 0x20000000,
367 SICHINT_ALLFIELDS
= 0x80000000
369 typedef DWORD SICHINTF
;
371 HRESULT BindToHandler
(
375 [out, iid_is(riid
)] void **ppvOut
);
377 HRESULT GetParent
( [out] IShellItem
**ppsi
);
379 HRESULT GetDisplayName
(
380 [in] SIGDN sigdnName
,
381 [out] LPWSTR
*ppszName
);
383 HRESULT GetAttributes
(
384 [in] SFGAOF sfgaoMask
,
385 [out] SFGAOF
*psfgaoAttribs
);
388 [in] IShellItem
*psi
,
393 /*****************************************************************************
394 * IShellItem2 interface
398 uuid(7E9FB0D3
-919F
-4307-AB2E
-9B1860310C93
),
399 pointer_default(unique)
401 interface IShellItem2
: IShellItem
403 HRESULT GetPropertyStore
(
404 [in] GETPROPERTYSTOREFLAGS flags
,
406 [out, iid_is(riid
)] void **ppv
);
408 HRESULT GetPropertyStoreWithCreateObject
(
409 [in] GETPROPERTYSTOREFLAGS flags
,
410 [in] IUnknown
*punkCreateObject
,
412 [out, iid_is(riid
)] void **ppv
);
414 HRESULT GetPropertyStoreForKeys
(
415 [in, size_is(cKeys
)] const PROPERTYKEY
*rgKeys
,
417 [in] GETPROPERTYSTOREFLAGS flags
,
419 [out, iid_is(riid
)] void **ppv
);
421 HRESULT GetPropertyDescriptionList
(
422 [in] REFPROPERTYKEY keyType
,
424 [out, iid_is(riid
)] void **ppv
);
427 [in, unique] IBindCtx
*pbc
);
430 [in] REFPROPERTYKEY key
,
431 [out] PROPVARIANT
*ppropvar
);
434 [in] REFPROPERTYKEY key
,
435 [out] CLSID
*pclsid
);
437 HRESULT GetFileTime
(
438 [in] REFPROPERTYKEY key
,
439 [out] FILETIME
*pft
);
442 [in] REFPROPERTYKEY key
,
446 [in] REFPROPERTYKEY key
,
447 [out, string] LPWSTR
*ppsz
);
450 [in] REFPROPERTYKEY key
,
454 [in] REFPROPERTYKEY key
,
455 [out] ULONGLONG
*pull
);
458 [in] REFPROPERTYKEY key
,
462 typedef enum tagNWMF
{
463 NWMF_UNLOADING
= 0x0001,
464 NWMF_USERINITED
= 0x0002,
466 NWMF_OVERRIDEKEY
= 0x0008,
467 NWMF_SHOWHELP
= 0x0010,
468 NWMF_HTMLDIALOG
= 0x0020,
469 NWMF_FROMDIALOGCHILD
= 0x0040,
470 NWMF_USERREQUESTED
= 0x0080,
471 NWMF_USERALLOWED
= 0x0100
475 uuid(d2bc4c84
-3f72
-4a52
-a604
-7bcbf3982cbb
),
477 pointer_default(unique)
479 interface INewWindowManager
: IUnknown
481 HRESULT EvaluateNewWindow
(
482 [in, string] LPCWSTR pszUrl
,
483 [in, string] LPCWSTR pszName
,
484 [in, string] LPCWSTR pszUrlContext
,
485 [in, string] LPCWSTR pszFeatures
,
488 [in] DWORD dwUserActionTime
);
491 cpp_quote
("#define SID_SNewWindowManager IID_INewWindowManager")
493 /*****************************************************************************
494 * IEnumShellItems interface
498 uuid(70629033-E363
-4A28
-A567
-0DB78006E6D7
),
499 pointer_default(unique)
501 interface IEnumShellItems
: IUnknown
503 [local] HRESULT Next
(
505 [out, size_is(celt
), length_is(*pceltFetched
)] IShellItem
**rgelt
,
506 [out] ULONG
*pceltFetched
);
508 [call_as
(Next
)] HRESULT RemoteNext
(
510 [out, size_is(celt
), length_is(*pceltFetched
)] IShellItem
**rgelt
,
511 [out] ULONG
*pceltFetched
);
519 [out] IEnumShellItems
**ppenum
);
522 /*****************************************************************************
523 * IShellItemArray interface
527 uuid(B63EA76D
-1F85
-456F
-A19C
-48159EFA858B
),
528 pointer_default(unique)
530 interface IShellItemArray
: IUnknown
532 typedef [v1_enum] enum SIATTRIBFLAGS
{
533 SIATTRIBFLAGS_AND
= 0x0001,
534 SIATTRIBFLAGS_OR
= 0x0002,
535 SIATTRIBFLAGS_APPCOMPAT
= 0x0003,
536 SIATTRIBFLAGS_MASK
= 0x0003,
537 SIATTRIBFLAGS_ALLITEMS
= 0x4000
539 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(SIATTRIBFLAGS)")
541 HRESULT BindToHandler
(
542 [in, unique] IBindCtx
*pbc
,
545 [out, iid_is(riid
)] void **ppvOut
);
547 HRESULT GetPropertyStore
(
548 [in] GETPROPERTYSTOREFLAGS flags
,
550 [out, iid_is(riid
)] void **ppv
);
552 HRESULT GetPropertyDescriptionList
(
553 [in] REFPROPERTYKEY keyType
,
555 [out, iid_is(riid
)] void **ppv
);
557 HRESULT GetAttributes
(
558 [in] SIATTRIBFLAGS AttribFlags
,
559 [in] SFGAOF sfgaoMask
,
560 [out] SFGAOF
*psfgaoAttribs
);
563 [out] DWORD
*pdwNumItems
);
567 [out] IShellItem
**ppsi
);
570 [out] IEnumShellItems
**ppenumShellItems
);
574 typedef [v1_enum] enum DATAOBJ_GET_ITEM_FLAGS
577 DOGIF_TRAVERSE_LINK
= 0x1,
578 DOGIF_NO_HDROP
= 0x2,
580 DOGIF_ONLY_IF_ONE
= 0x8
581 } DATAOBJ_GET_ITEM_FLAGS
;
582 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(DATAOBJ_GET_ITEM_FLAGS)")
584 cpp_quote
("HRESULT WINAPI SHGetNameFromIDList(PCIDLIST_ABSOLUTE pidl, SIGDN sigdnName, PWSTR *ppszName);")
585 cpp_quote
("HRESULT WINAPI SHCreateItemFromParsingName(PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv);")
586 cpp_quote
("HRESULT WINAPI SHCreateItemFromIDList(PCIDLIST_ABSOLUTE pidl, REFIID riid, void **ppv);")
587 cpp_quote
("HRESULT WINAPI SHGetItemFromDataObject(IDataObject *pdtobj, DATAOBJ_GET_ITEM_FLAGS dwFlags, REFIID riid, void **ppv);")
588 cpp_quote
("HRESULT WINAPI SHGetIDListFromObject(IUnknown *punk, PIDLIST_ABSOLUTE *ppidl);")
589 cpp_quote
("HRESULT WINAPI SHGetItemFromObject(IUnknown *punk, REFIID riid, void **ppv);")
590 cpp_quote
("HRESULT WINAPI SHCreateShellItemArray(PCIDLIST_ABSOLUTE pidlParent, IShellFolder* psf, UINT cidl, PCUITEMID_CHILD_ARRAY ppidl, IShellItemArray **ppsiItemArray);")
591 cpp_quote
("HRESULT WINAPI SHCreateShellItemArrayFromShellItem(IShellItem *psi, REFIID riid, void **ppv);")
592 cpp_quote
("HRESULT WINAPI SHCreateShellItemArrayFromIDLists(UINT cidl, PCIDLIST_ABSOLUTE_ARRAY pidl_array, IShellItemArray **psia);")
593 cpp_quote
("HRESULT WINAPI SHCreateShellItemArrayFromDataObject(IDataObject *pdo, REFIID riid, void **ppv);")
595 /*****************************************************************************
596 * IShellItemFilter interface
600 uuid(2659B475
-EEB8
-48B7
-8F07
-B378810F48CF
),
601 pointer_default(unique)
603 interface IShellItemFilter
: IUnknown
606 [in] IShellItem
*psi
);
608 HRESULT GetEnumFlagsForItem
(
609 [in] IShellItem
*psi
,
610 [out] SHCONTF
*pgrfFlags
);
613 /*****************************************************************************
616 typedef char *LPVIEWSETTINGS
;
620 FWF_AUTOARRANGE
= 0x00000001,
621 FWF_ABBREVIATEDNAMES
= 0x00000002,
622 FWF_SNAPTOGRID
= 0x00000004,
623 FWF_OWNERDATA
= 0x00000008,
624 FWF_BESTFITWINDOW
= 0x00000010,
625 FWF_DESKTOP
= 0x00000020,
626 FWF_SINGLESEL
= 0x00000040,
627 FWF_NOSUBFOLDERS
= 0x00000080,
628 FWF_TRANSPARENT
= 0x00000100,
629 FWF_NOCLIENTEDGE
= 0x00000200,
630 FWF_NOSCROLL
= 0x00000400,
631 FWF_ALIGNLEFT
= 0x00000800,
632 FWF_NOICONS
= 0x00001000,
633 FWF_SHOWSELALWAYS
= 0x00002000,
634 FWF_NOVISIBLE
= 0x00004000,
635 FWF_SINGLECLICKACTIVATE
= 0x00008000,
636 FWF_NOWEBVIEW
= 0x00010000,
637 FWF_HIDEFILENAMES
= 0x00020000,
638 FWF_CHECKSELECT
= 0x00040000,
639 FWF_NOENUMREFRESH
= 0x00080000,
640 FWF_NOGROUPING
= 0x00100000,
641 FWF_FULLROWSELECT
= 0x00200000,
642 FWF_NOFILTERS
= 0x00400000,
643 FWF_NOCOLUMNHEADER
= 0x00800000,
644 FWF_NOHEADERINALLVIEWS
= 0x01000000,
645 FWF_EXTENDEDTILES
= 0x02000000,
646 FWF_TRICHECKSELECT
= 0x04000000,
647 FWF_AUTOCHECKSELECT
= 0x08000000,
648 FWF_NOBROWSERVIEWSTATE
= 0x10000000,
649 FWF_SUBSETGROUPS
= 0x20000000,
650 FWF_USESEARCHFOLDER
= 0x40000000,
651 FWF_ALLOWRTLREADING
= 0x80000000
658 FVM_FIRST
= FVM_ICON
,
666 FVM_LAST
= FVM_CONTENT
673 } FOLDERSETTINGS
, *PFOLDERSETTINGS
, *LPFOLDERSETTINGS
;
674 typedef const FOLDERSETTINGS
*LPCFOLDERSETTINGS
;
676 /*****************************************************************************
677 * IShellIcon interface
680 uuid(000214e5
-0000-0000-c000
-000000000046),
682 pointer_default(unique)
684 interface IShellIcon
: IUnknown
687 [in] PCUITEMID_CHILD pidl
,
689 [out] int *pIconIndex
);
692 /*****************************************************************************
693 * IShellView interface
695 interface IShellBrowser
; /* forward declaration */
698 uuid(000214e3
-0000-0000-c000
-000000000046),
699 pointer_default(unique)
701 interface IShellView
: IOleWindow
703 typedef IShellView
*LPSHELLVIEW
;
705 cpp_quote
("#define SVSI_DESELECT 0x00000000")
706 cpp_quote
("#define SVSI_SELECT 0x00000001")
707 cpp_quote
("#define SVSI_EDIT 0x00000003")
708 cpp_quote
("#define SVSI_DESELECTOTHERS 0x00000004")
709 cpp_quote
("#define SVSI_ENSUREVISIBLE 0x00000008")
710 cpp_quote
("#define SVSI_FOCUSED 0x00000010")
711 cpp_quote
("#define SVSI_TRANSLATEPT 0x00000020")
712 cpp_quote
("#define SVSI_SELECTIONMARK 0x00000040")
713 cpp_quote
("#define SVSI_POSITIONITEM 0x00000080")
714 cpp_quote
("#define SVSI_CHECK 0x00000100")
715 cpp_quote
("#define SVSI_NOSTATECHANGE 0x80000000")
721 SVGIO_BACKGROUND
= 0x00000000,
722 SVGIO_SELECTION
= 0x00000001,
723 SVGIO_ALLVIEW
= 0x00000002,
724 SVGIO_CHECKED
= 0x00000003,
725 SVGIO_TYPE_MASK
= 0x0000000f,
726 SVGIO_FLAG_VIEWORDER
= 0x80000000,
731 SVUIA_DEACTIVATE
= 0,
732 SVUIA_ACTIVATE_NOFOCUS
= 1,
733 SVUIA_ACTIVATE_FOCUS
= 2,
734 SVUIA_INPLACEACTIVATE
= 3
737 HRESULT TranslateAccelerator
( [in] MSG
*pmsg
);
738 HRESULT EnableModeless
( [in] BOOL fEnable
);
739 HRESULT UIActivate
( [in] UINT uState
);
741 HRESULT CreateViewWindow
(
742 [in] IShellView
*psvPrevious
,
743 [in] LPCFOLDERSETTINGS lpfs
,
744 [in] IShellBrowser
*psb
,
748 HRESULT DestroyViewWindow
();
749 HRESULT GetCurrentInfo
( [out] LPFOLDERSETTINGS lpfs
);
751 [local] HRESULT AddPropertySheetPages
(
752 [in] DWORD dwReserved
,
753 [in] LPFNSVADDPROPSHEETPAGE pfn
,
756 HRESULT SaveViewState
();
758 [in] LPCITEMIDLIST pidlItem
,
760 HRESULT GetItemObject
(
763 [out, iid_is(riid
)] void **ppv
);
768 uuid(88e39e80
-3578-11cf
-ae69
-08002b2e1262
),
769 pointer_default(unique)
771 interface IShellView2
: IShellView
773 typedef GUID SHELLVIEWID
;
774 cpp_quote
("#include <pshpack8.h>")
775 typedef struct _SV2CVW2_PARAMS
779 LPCFOLDERSETTINGS pfs
;
780 IShellBrowser
*psbOwner
;
782 SHELLVIEWID
const *pvid
;
784 } SV2CVW2_PARAMS
, *LPSV2CVW2_PARAMS
;
785 cpp_quote
("#include <poppack.h>")
788 [in, out] SHELLVIEWID
*view_guid
,
791 HRESULT CreateViewWindow2
(
792 [in] LPSV2CVW2_PARAMS view_params
794 HRESULT HandleRename
(
795 [in] LPCITEMIDLIST new_pidl
797 HRESULT SelectAndPositionItem
(
798 [in] LPCITEMIDLIST item
,
806 uuid(ec39fa88
-f8af
-41c5
-8421-38bed28f4673
),
807 pointer_default(unique)
809 interface IShellView3
: IShellView2
811 [v1_enum] enum _SV3CVW3_FLAGS
813 SV3CVW3_DEFAULT
= 0x00000000,
814 SV3CVW3_NONINTERACTIVE
= 0x00000001,
815 SV3CVW3_FORCEVIEWMODE
= 0x00000002,
816 SV3CVW3_FORCEFOLDERFLAGS
= 0x00000004
819 typedef DWORD SV3CVW3_FLAGS
;
821 HRESULT CreateViewWindow3
(
822 [in] IShellBrowser
*owner
,
823 [in, unique] IShellView
*prev_view
,
824 [in] SV3CVW3_FLAGS view_flags
,
825 [in] FOLDERFLAGS mask
,
826 [in] FOLDERFLAGS flags
,
827 [in] FOLDERVIEWMODE mode
,
828 [in, unique] const SHELLVIEWID
*view_id
,
829 [in] const RECT
*rect
,
833 /*****************************************************************************
834 * IFolderView interface
837 uuid(cde725b0
-ccc9
-4519-917e-325d72fab4ce
),
839 pointer_default(unique)
841 interface IFolderView
: IUnknown
843 HRESULT GetCurrentViewMode
( [out] UINT
*mode
);
844 HRESULT SetCurrentViewMode
( [in] UINT mode
);
845 HRESULT GetFolder
( [in] REFIID riid
, [out, iid_is(riid
)] void **ppv
);
848 [out] PITEMID_CHILD
*ppidl
857 [out, iid_is(riid
)] void **ppv
859 HRESULT GetSelectionMarkedItem
( [out] int *item
);
860 HRESULT GetFocusedItem
( [out] int *item
);
861 HRESULT GetItemPosition
(
862 [in] PCUITEMID_CHILD pidl
,
865 HRESULT GetSpacing
( [in, out, unique] POINT
* pt
);
866 HRESULT GetDefaultSpacing
( [out] POINT
* pt
);
867 HRESULT GetAutoArrange
();
872 HRESULT SelectAndPositionItems
(
874 [in, size_is(cidl
)] PCUITEMID_CHILD_ARRAY apidl
,
875 [in, unique, size_is(cidl
)] POINT
* apt
,
880 [v1_enum] enum tagSORTDIRECTION
882 SORT_DESCENDING
= -1,
885 typedef int SORTDIRECTION
;
887 typedef struct SORTCOLUMN
890 SORTDIRECTION direction
;
893 typedef [v1_enum] enum FVTEXTTYPE
899 uuid(1af3a467
-214f
-4298-908e-06b03e0b39f9
),
901 pointer_default(unique)
903 interface IFolderView2
: IFolderView
906 [in] REFPROPERTYKEY key
,
907 [in] BOOL ascending
);
911 [out] PROPERTYKEY
*pkey
,
912 [out] BOOL
*ascending
);
914 [call_as
(GetGroupBy
)]
915 HRESULT RemoteGetGroupBy
(
916 [out] PROPERTYKEY
*pkey
,
917 [out] BOOL
*ascending
);
919 HRESULT SetViewProperty
(
920 [in] PCUITEMID_CHILD pidl
,
921 [in] REFPROPERTYKEY propkey
,
922 [in] REFPROPVARIANT propvar
);
924 HRESULT GetViewProperty
(
925 [in] PCUITEMID_CHILD pidl
,
926 [in] REFPROPERTYKEY propkey
,
927 [out] PROPVARIANT
*propvar
);
929 HRESULT SetTileViewProperties
(
930 [in] PCUITEMID_CHILD pidl
,
931 [in, string] LPCWSTR prop_list
);
933 HRESULT SetExtendedTileViewProperties
(
934 [in] PCUITEMID_CHILD pidl
,
935 [in, string] LPCWSTR prop_list
);
938 [in] FVTEXTTYPE type
,
941 HRESULT SetCurrentFolderFlags
(
945 HRESULT GetCurrentFolderFlags
([out] DWORD
*flags
);
947 HRESULT GetSortColumnCount
([out] int *columns
);
949 HRESULT SetSortColumns
(
950 [in, size_is(count
)] const SORTCOLUMN
*columns
,
953 HRESULT GetSortColumns
(
954 [out, size_is(count
)] SORTCOLUMN
*columns
,
960 [out, iid_is(riid
)] void **ppv
);
962 HRESULT GetVisibleItem
(
967 HRESULT GetSelectedItem
(
971 HRESULT GetSelection
(
972 [in] BOOL none_implies_folder
,
973 [out] IShellItemArray
**array
);
975 HRESULT GetSelectionState
(
976 [in] PCUITEMID_CHILD pidl
,
979 HRESULT InvokeVerbOnSelection
([in, unique, string] LPCSTR verb
);
981 HRESULT SetViewModeAndIconSize
(
982 [in] FOLDERVIEWMODE mode
,
985 HRESULT GetViewModeAndIconSize
(
986 [out] FOLDERVIEWMODE
*mode
,
989 HRESULT SetGroupSubsetCount
([in] UINT visible_rows
);
991 HRESULT GetGroupSubsetCount
([out] UINT
*visible_rows
);
993 HRESULT SetRedraw
([in] BOOL redraw
);
995 HRESULT IsMoveInSameFolder
();
1000 /*****************************************************************************
1001 * IShellBrowser interface
1005 uuid(000214e2
-0000-0000-c000
-000000000046),
1006 pointer_default(unique)
1008 interface IShellBrowser
: IOleWindow
1010 typedef IShellBrowser
*LPSHELLBROWSER
;
1012 cpp_quote
("#define SBSP_DEFBROWSER 0x00000000")
1013 cpp_quote
("#define SBSP_SAMEBROWSER 0x00000001")
1014 cpp_quote
("#define SBSP_NEWBROWSER 0x00000002")
1015 cpp_quote
("#define SBSP_DEFMODE 0x00000000")
1016 cpp_quote
("#define SBSP_OPENMODE 0x00000010")
1017 cpp_quote
("#define SBSP_EXPLOREMODE 0x00000020")
1018 cpp_quote
("#define SBSP_HELPMODE 0x00000040")
1019 cpp_quote
("#define SBSP_NOTRANSFERHIST 0x00000080")
1020 cpp_quote
("#define SBSP_ABSOLUTE 0x00000000")
1021 cpp_quote
("#define SBSP_RELATIVE 0x00001000")
1022 cpp_quote
("#define SBSP_PARENT 0x00002000")
1023 cpp_quote
("#define SBSP_NAVIGATEBACK 0x00004000")
1024 cpp_quote
("#define SBSP_NAVIGATEFORWARD 0x00008000")
1025 cpp_quote
("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
1026 cpp_quote
("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
1027 cpp_quote
("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
1028 cpp_quote
("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
1029 cpp_quote
("#define SBSP_CREATENOHISTORY 0x00100000")
1030 cpp_quote
("#define SBSP_PLAYNOSOUND 0x00200000")
1031 cpp_quote
("#define SBSP_CALLERUNTURUSTED 0x00800000")
1032 cpp_quote
("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
1033 cpp_quote
("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
1034 cpp_quote
("#define SBSP_NOAUTOSELECT 0x04000000")
1035 cpp_quote
("#define SBSP_WRITENOHISTORY 0x08000000")
1036 cpp_quote
("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
1037 cpp_quote
("#define SBSP_FEEDNAVIGATION 0x20000000")
1038 cpp_quote
("#define SBSP_REDIRECT 0x40000000")
1039 cpp_quote
("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
1041 cpp_quote
("#define FCW_STATUS 0x0001")
1042 cpp_quote
("#define FCW_TOOLBAR 0x0002")
1043 cpp_quote
("#define FCW_TREE 0x0003")
1044 cpp_quote
("#define FCW_INTERNETBAR 0x0006")
1045 cpp_quote
("#define FCW_PROGRESS 0x0008")
1047 cpp_quote
("#define FCT_MERGE 0x0001")
1048 cpp_quote
("#define FCT_CONFIGABLE 0x0002")
1049 cpp_quote
("#define FCT_ADDTOEND 0x0004")
1052 typedef LPARAM LPTBBUTTONSB
;
1054 cpp_quote
("#include <commctrl.h>")
1055 cpp_quote
("typedef LPTBBUTTON LPTBBUTTONSB;")
1058 HRESULT InsertMenusSB
(
1059 [in] HMENU hmenuShared
,
1060 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths
);
1063 [in] HMENU hmenuShared
,
1064 [in] HOLEMENU holemenuReserved
,
1065 [in] HWND hwndActiveObject
);
1067 HRESULT RemoveMenusSB
( [in] HMENU hmenuShared
);
1068 HRESULT SetStatusTextSB
( [in, unique] LPCOLESTR pszStatusText
);
1069 HRESULT EnableModelessSB
( [in] BOOL fEnable
);
1070 HRESULT TranslateAcceleratorSB
( [in] MSG
*pmsg
, [in] WORD wID
);
1072 HRESULT BrowseObject
(
1073 [in] LPCITEMIDLIST pidl
,
1076 HRESULT GetViewStateStream
(
1078 [out] IStream
**ppStrm
);
1080 HRESULT GetControlWindow
(
1084 [local] HRESULT SendControlMsg
(
1089 [in] LRESULT
*pret
);
1091 HRESULT QueryActiveShellView
( [out] IShellView
**ppshv
);
1092 HRESULT OnViewWindowActive
( [in] IShellView
*pshv
);
1095 HRESULT SetToolbarItems
(
1096 [in] LPTBBUTTONSB lpButtons
,
1102 /*****************************************************************************
1103 * IShellLinkA interface
1107 uuid(000214ee
-0000-0000-c000
-000000000046),
1108 pointer_default(unique)
1110 interface IShellLinkA
: IUnknown
1115 SLR_ANY_MATCH
= 0x0002,
1116 SLR_UPDATE
= 0x0004,
1117 SLR_NOUPDATE
= 0x0008,
1118 SLR_NOSEARCH
= 0x0010,
1119 SLR_NOTRACK
= 0x0020,
1120 SLR_NOLINKINFO
= 0x0040,
1121 SLR_INVOKE_MSI
= 0x0080,
1122 SLR_NO_UI_WITH_MSG_PUMP
= 0x0101,
1127 SLGP_SHORTPATH
= 0x0001,
1128 SLGP_UNCPRIORITY
= 0x0002,
1129 SLGP_RAWPATH
= 0x0004,
1133 [out, size_is(cch
)] LPSTR pszFile
,
1135 [in, out, unique] WIN32_FIND_DATAA
*pfd
,
1138 HRESULT GetIDList
( [out] LPITEMIDLIST
* ppidl
);
1140 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
1142 HRESULT GetDescription
(
1143 [out, size_is(cch
)] LPSTR pszName
,
1146 HRESULT SetDescription
( [in] LPCSTR pszName
);
1148 HRESULT GetWorkingDirectory
(
1149 [out, size_is(cch
)] LPSTR pszDir
,
1152 HRESULT SetWorkingDirectory
( [in] LPCSTR pszDir
);
1154 HRESULT GetArguments
(
1155 [out, size_is(cch
)] LPSTR pszArgs
,
1158 HRESULT SetArguments
( [in] LPCSTR pszArgs
);
1160 HRESULT GetHotkey
( [out] WORD
*pwHotkey
);
1162 HRESULT SetHotkey
( [in] WORD wHotkey
);
1164 HRESULT GetShowCmd
( [out] int *piShowCmd
);
1166 HRESULT SetShowCmd
( [in] int iShowCmd
);
1168 HRESULT GetIconLocation
(
1169 [out, size_is(cch
)] LPSTR pszIconPath
,
1173 HRESULT SetIconLocation
(
1174 [in] LPCSTR pszIconPath
,
1177 HRESULT SetRelativePath
(
1178 [in] LPCSTR pszPathRel
,
1179 [in] DWORD dwReserved
);
1185 HRESULT SetPath
( [in] LPCSTR pszFile
);
1189 /*****************************************************************************
1190 * IShellLinkW interface
1194 uuid(000214f9
-0000-0000-c000
-000000000046),
1195 pointer_default(unique)
1197 interface IShellLinkW
: IUnknown
1200 [out, size_is(cch
)] LPWSTR pszFile
,
1202 [in, out] WIN32_FIND_DATAW
*pfd
,
1205 HRESULT GetIDList
( [out] LPITEMIDLIST
* ppidl
);
1207 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
1209 HRESULT GetDescription
(
1210 [out, size_is(cch
)] LPWSTR pszName
,
1213 HRESULT SetDescription
( [in] LPCWSTR pszName
);
1215 HRESULT GetWorkingDirectory
(
1216 [out, size_is(cch
)] LPWSTR pszDir
,
1219 HRESULT SetWorkingDirectory
( [in] LPCWSTR pszDir
);
1221 HRESULT GetArguments
(
1222 [out, size_is(cch
)] LPWSTR pszArgs
,
1225 HRESULT SetArguments
( [in] LPCWSTR pszArgs
);
1227 HRESULT GetHotkey
( [out] WORD
*pwHotkey
);
1229 HRESULT SetHotkey
( [in] WORD wHotkey
);
1231 HRESULT GetShowCmd
( [out] int *piShowCmd
);
1233 HRESULT SetShowCmd
( [in] int iShowCmd
);
1235 HRESULT GetIconLocation
(
1236 [out, size_is(cch
)] LPWSTR pszIconPath
,
1240 HRESULT SetIconLocation
(
1241 [in] LPCWSTR pszIconPath
,
1244 HRESULT SetRelativePath
(
1245 [in] LPCWSTR pszPathRel
,
1246 [in] DWORD dwReserved
);
1252 HRESULT SetPath
( [in] LPCWSTR pszFile
);
1255 cpp_quote
("#define IShellLink WINELIB_NAME_AW(IShellLink)")
1258 /*****************************************************************************
1259 * IShellExtInit interface
1263 uuid(000214e8
-0000-0000-c000
-000000000046),
1264 pointer_default(unique),
1267 interface IShellExtInit
: IUnknown
1269 typedef IShellExtInit
*LPSHELLEXTINIT
;
1272 [in] LPCITEMIDLIST pidlFolder
,
1273 [in] IDataObject
*pdtobj
,
1274 [in] HKEY hkeyProgID
);
1278 /*******************************************************************************/
1279 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
1280 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
1281 /* them here anyway. */
1282 /*******************************************************************************/
1285 #define MAX_PATH
260
1289 /*****************************************************************************
1290 * IPersistFolder3 interface
1294 uuid(cef04fdf
-fe72
-11d2
-87a5
-00c04f6837cf
),
1295 pointer_default(unique)
1297 interface IPersistFolder3
: IPersistFolder2
1301 LPITEMIDLIST pidlTargetFolder
;
1302 WCHAR szTargetParsingName
[MAX_PATH
];
1303 WCHAR szNetworkProvider
[MAX_PATH
];
1306 } PERSIST_FOLDER_TARGET_INFO
;
1308 HRESULT InitializeEx
(
1310 [in] LPCITEMIDLIST pidlRoot
,
1311 [in] const PERSIST_FOLDER_TARGET_INFO
*ppfti
);
1313 HRESULT GetFolderTargetInfo
( [out] PERSIST_FOLDER_TARGET_INFO
*ppfti
);
1317 /*****************************************************************************
1318 * IExtractIconA interface
1322 uuid(000214eb
-0000-0000-c000
-000000000046),
1323 pointer_default(unique),
1326 interface IExtractIconA
: IUnknown
1328 cpp_quote
("#define GIL_OPENICON 0x0001")
1329 cpp_quote
("#define GIL_FORSHELL 0x0002")
1330 cpp_quote
("#define GIL_ASYNC 0x0020")
1331 cpp_quote
("#define GIL_DEFAULTICON 0x0040")
1332 cpp_quote
("#define GIL_FORSHORTCUT 0x0080")
1334 cpp_quote
("#define GIL_SIMULATEDOC 0x0001")
1335 cpp_quote
("#define GIL_PERINSTANCE 0x0002")
1336 cpp_quote
("#define GIL_PERCLASS 0x0004")
1337 cpp_quote
("#define GIL_NOTFILENAME 0x0008")
1338 cpp_quote
("#define GIL_DONTCACHE 0x0010")
1340 typedef IExtractIconA
*LPEXTRACTICONA
;
1342 HRESULT GetIconLocation
(
1344 [out, size_is(cchMax
)] LPSTR szIconFile
,
1347 [out] UINT
*pwFlags
);
1350 [in] LPCSTR pszFile
,
1351 [in] UINT nIconIndex
,
1352 [out] HICON
*phiconLarge
,
1353 [out] HICON
*phiconSmall
,
1354 [in] UINT nIconSize
);
1358 /*****************************************************************************
1359 * IExtractIconW interface
1363 uuid(000214fa
-0000-0000-c000
-000000000046),
1364 pointer_default(unique),
1367 interface IExtractIconW
: IUnknown
1369 typedef IExtractIconW
*LPEXTRACTICONW
;
1371 HRESULT GetIconLocation
(
1373 [out, size_is(cchMax
)] LPWSTR szIconFile
,
1376 [out] UINT
*pwFlags
);
1379 [in] LPCWSTR pszFile
,
1380 [in] UINT nIconIndex
,
1381 [out] HICON
*phiconLarge
,
1382 [out] HICON
*phiconSmall
,
1383 [in] UINT nIconSize
);
1386 cpp_quote
("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1387 cpp_quote
("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1390 /*****************************************************************************
1391 * ICommDlgBrowser interface
1395 uuid(000214f1
-0000-0000-c000
-000000000046),
1396 pointer_default(unique)
1398 interface ICommDlgBrowser
: IUnknown
1400 cpp_quote
("#define CDBOSC_SETFOCUS 0x00000000")
1401 cpp_quote
("#define CDBOSC_KILLFOCUS 0x00000001")
1402 cpp_quote
("#define CDBOSC_SELCHANGE 0x00000002")
1403 cpp_quote
("#define CDBOSC_RENAME 0x00000003")
1404 cpp_quote
("#define CDBOSC_STATECHANGE 0x00000004")
1406 typedef ICommDlgBrowser
*LPCOMMDLGBROWSER
;
1408 HRESULT OnDefaultCommand
( [in] IShellView
*shv
);
1409 HRESULT OnStateChange
( [in] IShellView
*shv
, [in] ULONG uChange
);
1410 HRESULT IncludeObject
( [in] IShellView
*shv
, [in] LPCITEMIDLIST pidl
);
1414 /*****************************************************************************
1415 * ICommDlgBrowser2 interface
1419 uuid(10339516-2894-11D2
-9039-00C04F8EEB3E
),
1420 pointer_default(unique)
1422 interface ICommDlgBrowser2
: ICommDlgBrowser
1426 [in] IShellView
*ppshv
,
1427 [in] DWORD dwNotifyType
);
1429 HRESULT GetDefaultMenuText
(
1430 [in] IShellView
*ppshv
,
1431 [out, string, size_is(cchMax
)] LPWSTR pszText
,
1434 HRESULT GetViewFlags
(
1435 [out] DWORD
*pdwFlags
);
1439 /*****************************************************************************
1440 * ICommDlgBrowser3 interface
1444 uuid(C8AD25A1
-3294-41EE
-8165-71174BD01C57
),
1445 pointer_default(unique)
1447 interface ICommDlgBrowser3
: ICommDlgBrowser2
1450 HRESULT OnColumnClicked
(
1451 [in] IShellView
*ppshv
,
1454 HRESULT GetCurrentFilter
(
1455 [out, string, size_is(cchFileSpec
)] LPWSTR pszFileSpec
,
1456 [in] int cchFileSpec
);
1458 HRESULT OnPreviewCreated
(
1459 [in] IShellView
*ppshv
);
1462 /*****************************************************************************
1463 * IDockingWindow interface
1467 uuid(012dd920
-7b26
-11d0
-8ca9
-00a0c92dbfe8
)
1469 interface IDockingWindow
: IOleWindow
1475 [in] DWORD dwReserved
);
1477 HRESULT ResizeBorderDW
(
1478 [in] LPCRECT prcBorder
,
1479 [in] IUnknown
*punkToolbarSite
,
1480 [in] BOOL fReserved
);
1484 /*****************************************************************************
1485 * IDockingWindowFrame interface
1489 uuid(47d2657a
-7b27
-11d0
-8ca9
-00a0c92dbfe8
),
1490 pointer_default(unique),
1493 interface IDockingWindowFrame
: IOleWindow
1495 cpp_quote
("#define DWFRF_NORMAL 0x0000")
1496 cpp_quote
("#define DWFRF_DELETECONFIGDATA 0x0001")
1497 cpp_quote
("#define DWFAF_HIDDEN 0x0001")
1500 [in] IUnknown
*punkSrc
,
1501 [in] LPCWSTR pwszItem
,
1502 [in] DWORD dwAddFlags
);
1504 HRESULT RemoveToolbar
(
1505 [in] IUnknown
*punkSrc
,
1506 [in] DWORD dwRemoveFlags
);
1508 HRESULT FindToolbar
(
1509 [in] LPCWSTR pwszItem
,
1511 [out] LPVOID
*ppvObj
);
1515 /*****************************************************************************
1516 * IDragSourceHelper interface
1520 uuid(de5bf786
-477a
-11d2
-839d
-00c04fd918d0
),
1521 pointer_default(unique),
1524 interface IDragSourceHelper
: IUnknown
1530 HBITMAP hbmpDragImage
;
1531 COLORREF crColorKey
;
1532 } SHDRAGIMAGE
, *LPSHDRAGIMAGE
;
1534 HRESULT InitializeFromBitmap
(
1535 [in] LPSHDRAGIMAGE pshdi
,
1536 [in] IDataObject
*pDataObject
);
1538 HRESULT InitializeFromWindow
(
1541 [in] IDataObject
*pDataObject
);
1545 /*****************************************************************************
1546 * IDropTargetHelper interface
1550 uuid(4657278b
-411b
-11d2
-839a
-00c04fd918d0
),
1551 pointer_default(unique),
1554 interface IDropTargetHelper
: IUnknown
1557 [in] HWND hwndTarget
,
1558 [in] IDataObject
*pDataObject
,
1560 [in] DWORD dwEffect
);
1562 HRESULT DragLeave
();
1566 [in] DWORD dwEffect
);
1569 [in] IDataObject
*pDataObject
,
1571 [in] DWORD dwEffect
);
1573 HRESULT Show
( [in] BOOL fShow
);
1577 /*****************************************************************************
1578 * IContextMenu interface
1582 uuid(000214e4
-0000-0000-c000
-000000000046),
1583 pointer_default(unique),
1586 interface IContextMenu
: IUnknown
1588 cpp_quote
("#define CMF_NORMAL 0x00000000")
1589 cpp_quote
("#define CMF_DEFAULTONLY 0x00000001")
1590 cpp_quote
("#define CMF_VERBSONLY 0x00000002")
1591 cpp_quote
("#define CMF_EXPLORE 0x00000004")
1592 cpp_quote
("#define CMF_NOVERBS 0x00000008")
1593 cpp_quote
("#define CMF_CANRENAME 0x00000010")
1594 cpp_quote
("#define CMF_NODEFAULT 0x00000020")
1595 cpp_quote
("#define CMF_INCLUDESTATIC 0x00000040")
1596 cpp_quote
("#define CMF_EXTENDEDVERBS 0x00000100")
1597 cpp_quote
("#define CMF_RESERVED 0xffff0000")
1599 cpp_quote
("#define GCS_VERBA 0x00000000")
1600 cpp_quote
("#define GCS_HELPTEXTA 0x00000001")
1601 cpp_quote
("#define GCS_VALIDATEA 0x00000002")
1602 cpp_quote
("#define GCS_VERBW 0x00000004")
1603 cpp_quote
("#define GCS_HELPTEXTW 0x00000005")
1604 cpp_quote
("#define GCS_VALIDATEW 0x00000006")
1605 cpp_quote
("#define GCS_UNICODE 0x00000004")
1606 cpp_quote
("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1607 cpp_quote
("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1608 cpp_quote
("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1610 cpp_quote
("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1611 cpp_quote
("#define CMDSTR_VIEWLISTA \"ViewList\"")
1612 cpp_quote
("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1613 cpp_quote
("#if defined(__GNUC__)")
1614 cpp_quote
("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1615 cpp_quote
("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1616 cpp_quote
("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1617 cpp_quote
("#elif defined(_MSC_VER)")
1618 cpp_quote
("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1619 cpp_quote
("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1620 cpp_quote
("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1622 cpp_quote
("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1623 cpp_quote
("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1624 cpp_quote
("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1626 cpp_quote
("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1627 cpp_quote
("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1628 cpp_quote
("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1630 cpp_quote
("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1631 cpp_quote
("#define CMIC_MASK_ICON SEE_MASK_ICON")
1632 cpp_quote
("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1633 cpp_quote
("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1634 cpp_quote
("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1635 cpp_quote
("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1636 cpp_quote
("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1637 cpp_quote
("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1638 cpp_quote
("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1639 cpp_quote
("#define CMIC_MASK_NOASYNC SEE_MASK_NOASYNC")
1640 cpp_quote
("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1641 cpp_quote
("#define CMIC_MASK_PTINVOKE 0x20000000")
1642 cpp_quote
("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1643 cpp_quote
("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1644 cpp_quote
("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1646 typedef IContextMenu
*LPCONTEXTMENU
;
1648 typedef struct tagCMINVOKECOMMANDINFO
1654 LPCSTR lpParameters
;
1659 } CMINVOKECOMMANDINFO
, *LPCMINVOKECOMMANDINFO
;
1661 typedef struct tagCMInvokeCommandInfoEx
1667 LPCSTR lpParameters
;
1674 LPCWSTR lpParametersW
;
1675 LPCWSTR lpDirectoryW
;
1678 } CMINVOKECOMMANDINFOEX
, *LPCMINVOKECOMMANDINFOEX
;
1680 HRESULT QueryContextMenu
(
1682 [in] UINT indexMenu
,
1683 [in] UINT idCmdFirst
,
1684 [in] UINT idCmdLast
,
1687 HRESULT InvokeCommand
( [in] LPCMINVOKECOMMANDINFO lpici
);
1689 HRESULT GetCommandString
(
1690 [in] UINT_PTR idCmd
,
1692 [out] UINT
*pwReserved
,
1693 [out, size_is(cchMax
)] LPSTR pszName
,
1698 /*****************************************************************************
1699 * IContextMenu2 interface
1703 uuid(000214f4
-0000-0000-c000
-000000000046),
1704 pointer_default(unique),
1707 interface IContextMenu2
: IContextMenu
1709 typedef IContextMenu2
*LPCONTEXTMENU2
;
1711 HRESULT HandleMenuMsg
(
1714 [in] LPARAM lParam
);
1718 /*****************************************************************************
1719 * IContextMenu3 interface
1723 uuid(bcfce0a0
-ec17
-11d0
-8d10
-00a0c90f2719
),
1724 pointer_default(unique),
1727 interface IContextMenu3
: IContextMenu2
1729 typedef IContextMenu3
*LPCONTEXTMENU3
;
1731 HRESULT HandleMenuMsg2
(
1735 [out] LRESULT
*plResult
);
1741 uuid(3409e930
-5a39
-11d1
-83fa
-00a0c90dc849
),
1742 pointer_default(unique),
1745 interface IContextMenuCB
: IUnknown
1748 [in] IShellFolder
*psf
,
1749 [in] HWND hwndOwner
,
1750 [in] IDataObject
*pdtobj
,
1753 [in] LPARAM lParam
);
1756 /*****************************************************************************
1757 * IShellExecuteHookA interface
1761 uuid(000214f5
-0000-0000-c000
-000000000046),
1762 pointer_default(unique),
1765 interface IShellExecuteHookA
: IUnknown
1767 cpp_quote
("struct _SHELLEXECUTEINFOA;")
1769 [in, out] struct _SHELLEXECUTEINFOA
* pei
);
1773 /*****************************************************************************
1774 * IShellExecuteHookW interface
1778 uuid(000214fb
-0000-0000-c000
-000000000046),
1779 pointer_default(unique),
1782 interface IShellExecuteHookW
: IUnknown
1784 cpp_quote
("struct _SHELLEXECUTEINFOW;")
1786 [in, out] struct _SHELLEXECUTEINFOW
* pei
);
1789 /*****************************************************************************
1790 * IShellLinkDataList interface
1794 uuid(45e2b4ae
-b1c3
-11d0
-b92f
-00a0c90312e1
),
1795 pointer_default(unique)
1797 interface IShellLinkDataList
: IUnknown
1799 [local] HRESULT AddDataBlock
(
1800 [in] void *pDataBlock
);
1801 [local] HRESULT CopyDataBlock
(
1803 [out] void **ppDataBlock
);
1804 HRESULT RemoveDataBlock
(
1807 [out] DWORD
*pdwFlags
);
1809 [in] DWORD dwFlags
);
1813 /*****************************************************************************
1814 * IResolveShellLink interface
1818 uuid(5cd52983
-9449-11d2
-963a
-00c04f79adf0
),
1819 pointer_default(unique)
1821 interface IResolveShellLink
: IUnknown
1823 HRESULT ResolveShellLink
(
1824 [in] IUnknown
*punk
,
1830 /*****************************************************************************
1831 * IURLSearchHook interface
1835 uuid(ac60f6a0
-0fd9
-11d0
-99cb
-00c04fd64497
),
1836 pointer_default(unique),
1839 interface IURLSearchHook
: IUnknown
1842 [in, out] LPWSTR lpwszSearchURL
,
1843 [in] DWORD cchBufferSize
);
1847 /*****************************************************************************
1848 * ISearchContext interface
1852 uuid(09f656a2
-41af
-480c
-88f7
-16cc0d164615
),
1853 pointer_default(unique),
1856 interface ISearchContext
: IUnknown
1858 HRESULT GetSearchUrl
(
1859 [in] BSTR *pbstrSearchUrl
);
1860 HRESULT GetSearchText
(
1861 [in] BSTR *pbstrSearchText
);
1862 HRESULT GetSearchStyle
(
1863 [in] BSTR *pdwSearchStyle
);
1867 /*****************************************************************************
1868 * IURLSearchHook2 interface
1872 uuid(5ee44da4
-6d32
-46e3
-86bc
-07540dedd0e0
),
1873 pointer_default(unique),
1876 interface IURLSearchHook2
: IURLSearchHook
1878 HRESULT TranslateWithSearchContext
(
1879 [in, out] LPWSTR lpwszSearchURL
,
1880 [in] DWORD cchBufferSize
,
1881 [in] ISearchContext
*pSearchContext
);
1885 cpp_quote
("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1887 /*****************************************************************************
1888 * INewShortcutHookA interface
1892 uuid(000214e1
-0000-0000-c000
-000000000046),
1893 pointer_default(unique),
1896 interface INewShortcutHookA
: IUnknown
1898 HRESULT SetReferent
(
1899 [in] LPCSTR pcszReferent
,
1901 HRESULT GetReferent
(
1902 [out] LPSTR pcszReferent
,
1903 [in] int cchReferent
);
1905 [in] LPCSTR pcszReferent
);
1907 [out] LPSTR pcszReferent
,
1908 [in] int cchFolder
);
1910 [out] LPSTR pszName
,
1912 HRESULT GetExtension
(
1913 [out] LPSTR pszExtension
,
1914 [in] int cchExtension
);
1918 /*****************************************************************************
1919 * INewShortcutHookW interface
1923 uuid(000214f7
-0000-0000-c000
-000000000046),
1924 pointer_default(unique),
1927 interface INewShortcutHookW
: IUnknown
1929 HRESULT SetReferent
(
1930 [in] LPCWSTR pcszReferent
,
1932 HRESULT GetReferent
(
1933 [out] LPWSTR pcszReferent
,
1934 [in] int cchReferent
);
1936 [in] LPCWSTR pcszReferent
);
1938 [out] LPWSTR pcszReferent
,
1939 [in] int cchFolder
);
1941 [out] LPWSTR pszName
,
1943 HRESULT GetExtension
(
1944 [out] LPWSTR pszExtension
,
1945 [in] int cchExtension
);
1948 /*****************************************************************************
1949 * IRunnableTask interface
1953 uuid(85788d00
-6807-11d0
-b810
-00c04fd706ec
),
1954 pointer_default(unique),
1957 interface IRunnableTask
: IUnknown
1960 HRESULT Kill
([in] BOOL fWait
);
1966 /*****************************************************************************
1967 * IShellChangeNotify interface
1971 uuid(d82be2b1
-5764-11d0
-a96e
-00c04fd705a2
),
1972 pointer_default(unique),
1975 interface IShellChangeNotify
: IUnknown
1979 [in] LPCITEMIDLIST pidl1
,
1980 [in] LPCITEMIDLIST pidl2
);
1983 /*****************************************************************************
1984 * IFileSystemBindData interface
1988 uuid(01e18d10
-4d8b
-11d2
-855d
-006008059367),
1989 pointer_default(unique),
1992 interface IFileSystemBindData
: IUnknown
1994 HRESULT SetFindData
(
1995 [in] const WIN32_FIND_DATAW
*pfd
);
1996 HRESULT GetFindData
(
1997 [out] WIN32_FIND_DATAW
*pfd
);
2000 /*****************************************************************************
2001 * ITaskbarList interface
2005 uuid(56FDF342
-FD6D
-11d0
-958A
-006097C9A090
),
2006 pointer_default(unique)
2008 interface ITaskbarList
: IUnknown
2018 HRESULT ActivateTab
(
2021 HRESULT SetActiveAlt
(
2025 /*****************************************************************************
2026 * ITaskbarList2 interface
2030 uuid(602D4995
-B13A
-429B
-A66E
-1935E44F4317
),
2031 pointer_default(unique)
2033 interface ITaskbarList2
: ITaskbarList
2035 HRESULT MarkFullscreenWindow
(
2037 [in] BOOL fullscreen
);
2040 cpp_quote
("#ifdef MIDL_PASS")
2041 typedef IUnknown
* HIMAGELIST
;
2044 typedef [v1_enum] enum THUMBBUTTONFLAGS
{
2045 THBF_ENABLED
= 0x0000,
2046 THBF_DISABLED
= 0x0001,
2047 THBF_DISMISSONCLICK
= 0x0002,
2048 THBF_NOBACKGROUND
= 0x0004,
2049 THBF_HIDDEN
= 0x0008,
2050 THBF_NONINTERACTIVE
= 0x0010
2053 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONFLAGS)")
2055 typedef [v1_enum] enum THUMBBUTTONMASK
{
2056 THB_BITMAP
= 0x0001,
2058 THB_TOOLTIP
= 0x0004,
2062 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONMASK)")
2064 cpp_quote
("#include <pshpack8.h>")
2065 typedef struct THUMBBUTTON
{
2066 THUMBBUTTONMASK dwMask
;
2071 THUMBBUTTONFLAGS dwFlags
;
2072 } THUMBBUTTON
, *LPTHUMBBUTTON
;
2073 cpp_quote
("#include <poppack.h>")
2076 uuid(ea1afb91
-9e28
-4b86
-90e9
-9e9f8a5eefaf
),
2079 interface ITaskbarList3
: ITaskbarList2
2081 typedef [v1_enum] enum TBPFLAG
{
2082 TBPF_NOPROGRESS
= 0x0000,
2083 TBPF_INDETERMINATE
= 0x0001,
2084 TBPF_NORMAL
= 0x0002,
2085 TBPF_ERROR
= 0x0004,
2086 TBPF_PAUSED
= 0x0008
2089 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(TBPFLAG)")
2091 HRESULT SetProgressValue
(
2093 [in] ULONGLONG ullCompleted
,
2094 [in] ULONGLONG ullTotal
);
2096 HRESULT SetProgressState
(
2098 [in] TBPFLAG tbpFlags
);
2100 HRESULT RegisterTab
(
2104 HRESULT UnregisterTab
([in] HWND hwndTab
);
2106 HRESULT SetTabOrder
(
2108 [in] HWND hwndInsertBefore
);
2110 HRESULT SetTabActive
(
2113 [in] DWORD dwReserved
);
2115 HRESULT ThumbBarAddButtons
(
2118 [in, size_is(cButtons
)] LPTHUMBBUTTON pButton
);
2120 HRESULT ThumbBarUpdateButtons
(
2123 [in, size_is(cButtons
)] LPTHUMBBUTTON pButton
);
2125 HRESULT ThumbBarSetImageList
(
2127 [in] HIMAGELIST himl
);
2129 HRESULT SetOverlayIcon
(
2132 [in, unique, string] LPCWSTR pszDescription
);
2134 HRESULT SetThumbnailTooltip
(
2136 [in, unique, string] LPCWSTR pszTip
);
2138 HRESULT SetThumbnailClip
(
2140 [in] RECT
*prcClip
);
2144 uuid(c43dc798
-95d1
-4bea
-9030-bb99e2983a1a
),
2147 interface ITaskbarList4
: ITaskbarList3
2149 typedef [v1_enum] enum STPFLAG
{
2151 STPF_USEAPPTHUMBNAILALWAYS
= 0x0001,
2152 STPF_USEAPPTHUMBNAILWHENACTIVE
= 0x0002,
2153 STPF_USEAPPPEEKALWAYS
= 0x0004,
2154 STPF_USEAPPPEEKWHENACTIVE
= 0x0008
2157 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(STPFLAG)")
2159 HRESULT SetTabProperties
(
2161 [in] STPFLAG stpFlags
);
2164 /*****************************************************************************
2165 * IAutoCompleteDropDown interface
2169 uuid(3CD141F4
-3C6A
-11d2
-BCAA
-00C04FD929DB
),
2170 pointer_default(unique)
2172 interface IAutoCompleteDropDown
: IUnknown
2174 cpp_quote
("#define ACDD_VISIBLE 0x0001")
2176 HRESULT GetDropDownStatus
(
2177 [out] DWORD
*pdwFlags
,
2178 [out, string] LPWSTR
*ppwszString
);
2180 HRESULT ResetEnumerator
();
2185 uuid(cb728b20
-f786
-11ce
-92ad
-00aa00a74cd0
),
2186 pointer_default(unique)
2188 interface IProfferService
: IUnknown
2190 HRESULT ProfferService
(
2191 [in] REFGUID service
,
2192 [in] IServiceProvider
*pService
,
2193 [out] DWORD
*pCookie
);
2195 HRESULT RevokeService
([in] DWORD cookie
);
2198 /*****************************************************************************
2199 * IExplorerBrowserEvents interface
2203 uuid(361BBDC7
-E6EE
-4E13
-BE58
-58E2240C810F
)
2205 interface IExplorerBrowserEvents
: IUnknown
2207 HRESULT OnNavigationPending
(
2208 [in] PCIDLIST_ABSOLUTE pidlFolder
);
2210 HRESULT OnViewCreated
(
2211 [in] IShellView
*psv
);
2213 HRESULT OnNavigationComplete
(
2214 [in] PCIDLIST_ABSOLUTE pidlFolder
);
2216 HRESULT OnNavigationFailed
(
2217 [in] PCIDLIST_ABSOLUTE pidlFolder
);
2220 typedef GUID EXPLORERPANE
;
2221 typedef EXPLORERPANE
*REFEXPLORERPANE
;
2223 cpp_quote
("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
2225 /*****************************************************************************
2226 * IExplorerPaneVisibility interface
2230 uuid(E07010EC
-BC17
-44C0
-97B0
-46C7C95B9EDC
)
2232 interface IExplorerPaneVisibility
: IUnknown
2234 typedef enum tagEXPLORERPANESTATE
{
2236 EPS_DEFAULT_ON
= 0x1,
2237 EPS_DEFAULT_OFF
= 0x2,
2238 EPS_STATE_MASK
= 0xffff,
2239 EPS_INITIALSTATE
= 0x10000,
2241 } EXPLORERPANESTATE
;
2243 HRESULT GetPaneState
(
2244 [in] REFEXPLORERPANE ep
,
2245 [out] EXPLORERPANESTATE
*peps
);
2248 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS
{
2250 EBF_SELECTFROMDATAOBJECT
= 0x100,
2251 EBF_NODROPTARGET
= 0x200
2252 } EXPLORER_BROWSER_FILL_FLAGS
;
2254 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS
{
2256 EBO_NAVIGATEONCE
= 0x01,
2257 EBO_SHOWFRAMES
= 0x02,
2258 EBO_ALWAYSNAVIGATE
= 0x04,
2259 EBO_NOTRAVELLOG
= 0x08,
2260 EBO_NOWRAPPERWINDOW
= 0x10,
2261 EBO_HTMLSHAREPOINTVIEW
= 0x20
2262 } EXPLORER_BROWSER_OPTIONS
;
2264 cpp_quote
("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
2266 /*****************************************************************************
2267 * IExplorerBrowser interface
2271 uuid(DFD3B6B5
-C10C
-4BE9
-85F6
-A66969F402F6
),
2272 pointer_default(unique)
2274 interface IExplorerBrowser
: IUnknown
2277 [local] HRESULT Initialize
(
2278 [in] HWND hwndParent
,
2279 [in] const RECT
*prc
,
2280 [in, unique] const FOLDERSETTINGS
*pfs
);
2284 [local] HRESULT SetRect
(
2285 [in,out,unique] HDWP
*phdwp
,
2286 [in] RECT rcBrowser
);
2288 HRESULT SetPropertyBag
(
2289 [in, string] LPCWSTR pszPropertyBag
);
2291 HRESULT SetEmptyText
(
2292 [in, string] LPCWSTR pszEmptyText
);
2294 HRESULT SetFolderSettings
(
2295 [in] const FOLDERSETTINGS
*pfs
);
2298 [in] IExplorerBrowserEvents
*psbe
,
2299 [out] DWORD
*pdwCookie
);
2302 [in] DWORD dwCookie
);
2305 [in] EXPLORER_BROWSER_OPTIONS dwFlag
);
2308 [out] EXPLORER_BROWSER_OPTIONS
*pdwFlag
);
2310 HRESULT BrowseToIDList
(
2311 [in] PCUIDLIST_RELATIVE pidl
,
2314 HRESULT BrowseToObject
(
2315 [in] IUnknown
*punk
,
2318 HRESULT FillFromObject
(
2319 [in] IUnknown
*punk
,
2320 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags
);
2322 HRESULT RemoveAll
();
2324 HRESULT GetCurrentView
(
2326 [out, iid_is(riid
)] void **ppv
);
2329 /*****************************************************************************
2330 * INameSpaceTreeControl interface
2334 uuid(028212A3
-B627
-47E9
-8856-C14265554E4F
)
2336 interface INameSpaceTreeControl
: IUnknown
2338 [v1_enum] enum _NSTCSTYLE
{
2339 NSTCS_HASEXPANDOS
= 0x00000001,
2340 NSTCS_HASLINES
= 0x00000002,
2341 NSTCS_SINGLECLICKEXPAND
= 0x00000004,
2342 NSTCS_FULLROWSELECT
= 0x00000008,
2343 NSTCS_SPRINGEXPAND
= 0x00000010,
2344 NSTCS_HORIZONTALSCROLL
= 0x00000020,
2345 NSTCS_ROOTHASEXPANDO
= 0x00000040,
2346 NSTCS_SHOWSELECTIONALWAYS
= 0x00000080,
2347 NSTCS_NOINFOTIP
= 0x00000200,
2348 NSTCS_EVENHEIGHT
= 0x00000400,
2349 NSTCS_NOREPLACEOPEN
= 0x00000800,
2350 NSTCS_DISABLEDRAGDROP
= 0x00001000,
2351 NSTCS_NOORDERSTREAM
= 0x00002000,
2352 NSTCS_RICHTOOLTIP
= 0x00004000,
2353 NSTCS_BORDER
= 0x00008000,
2354 NSTCS_NOEDITLABELS
= 0x00010000,
2355 NSTCS_TABSTOP
= 0x00020000,
2356 NSTCS_FAVORITESMODE
= 0x00080000,
2357 NSTCS_AUTOHSCROLL
= 0x00100000,
2358 NSTCS_FADEINOUTEXPANDOS
= 0x00200000,
2359 NSTCS_EMPTYTEXT
= 0x00400000,
2360 NSTCS_CHECKBOXES
= 0x00800000,
2361 NSTCS_PARTIALCHECKBOXES
= 0x01000000,
2362 NSTCS_EXCLUSIONCHECKBOXES
= 0x02000000,
2363 NSTCS_DIMMEDCHECKBOXES
= 0x04000000,
2364 NSTCS_NOINDENTCHECKS
= 0x08000000,
2365 NSTCS_ALLOWJUNCTIONS
= 0x10000000,
2366 NSTCS_SHOWTABSBUTTON
= 0x20000000,
2367 NSTCS_SHOWDELETEBUTTON
= 0x40000000,
2368 NSTCS_SHOWREFRESHBUTTON
= (int)0x80000000
2370 typedef DWORD NSTCSTYLE
;
2372 [v1_enum] enum _NSTCROOTSTYLE
{
2373 NSTCRS_VISIBLE
= 0x0000,
2374 NSTCRS_HIDDEN
= 0x0001,
2375 NSTCRS_EXPANDED
= 0x0002
2377 typedef DWORD NSTCROOTSTYLE
;
2379 [v1_enum] enum _NSTCITEMSTATE
{
2380 NSTCIS_NONE
= 0x0000,
2381 NSTCIS_SELECTED
= 0x0001,
2382 NSTCIS_EXPANDED
= 0x0002,
2383 NSTCIS_BOLD
= 0x0004,
2384 NSTCIS_DISABLED
= 0x0008,
2385 NSTCIS_SELECTEDNOEXPAND
= 0x0010
2387 typedef DWORD NSTCITEMSTATE
;
2389 typedef [v1_enum] enum NSTCGNI
{
2391 NSTCGNI_NEXTVISIBLE
= 1,
2393 NSTCGNI_PREVVISIBLE
= 3,
2396 NSTCGNI_FIRSTVISIBLE
= 6,
2397 NSTCGNI_LASTVISIBLE
= 7
2401 [in] HWND hwndParent
,
2402 [in, unique] RECT
*prc
,
2403 [in] NSTCSTYLE nstcsFlags
);
2406 [in] IUnknown
*punk
,
2407 [out] DWORD
*pdwCookie
);
2409 HRESULT TreeUnadvise
(
2410 [in] DWORD dwCookie
);
2413 [in] IShellItem
*psiRoot
,
2414 [in] SHCONTF grfEnumFlags
,
2415 [in] NSTCROOTSTYLE grfRootStyle
,
2416 [in, unique] IShellItemFilter
*pif
);
2420 [in] IShellItem
*psiRoot
,
2421 [in] SHCONTF grfEnumFlags
,
2422 [in] NSTCROOTSTYLE grfRootStyle
,
2423 [in, unique] IShellItemFilter
*pif
);
2426 [in] IShellItem
*psiRoot
);
2428 HRESULT RemoveAllRoots
();
2430 HRESULT GetRootItems
(
2431 [out] IShellItemArray
**ppsiaRootItems
);
2433 HRESULT SetItemState
(
2434 [in] IShellItem
*psi
,
2435 [in] NSTCITEMSTATE nstcisMask
,
2436 [in] NSTCITEMSTATE nstcisFlags
);
2438 HRESULT GetItemState
(
2439 [in] IShellItem
*psi
,
2440 [in] NSTCITEMSTATE nstcismask
,
2441 [out] NSTCITEMSTATE
*pnstcisFlags
);
2443 HRESULT GetSelectedItems
(
2444 [out] IShellItemArray
**psiaItems
);
2446 HRESULT GetItemCustomState
(
2447 [in] IShellItem
*psi
,
2448 [out] int *piStateNumber
);
2450 HRESULT SetItemCustomState
(
2451 [in] IShellItem
*psi
,
2452 [in] int iStateNumber
);
2454 HRESULT EnsureItemVisible
(
2455 [in] IShellItem
*psi
);
2458 [in, string] LPCWSTR pszTheme
);
2460 HRESULT GetNextItem
(
2461 [in, unique] IShellItem
*psi
,
2462 [in] NSTCGNI nstcgi
,
2463 [out] IShellItem
**ppsiNext
);
2467 [out] IShellItem
**ppsiOut
);
2469 HRESULT GetItemRect
(
2470 [in] IShellItem
*psi
,
2473 HRESULT CollapseAll
();
2476 /*****************************************************************************
2477 * INameSpaceTreeControl2 interface
2481 uuid(7CC7AED8
-290E-49BC
-8945-C1401CC9306C
)
2483 interface INameSpaceTreeControl2
: INameSpaceTreeControl
2485 typedef [v1_enum] enum NSTCSTYLE2
{
2486 NSTCS2_DEFAULT
= 0x00,
2487 NSTCS2_INTERRUPTNOTIFICATIONS
= 0x01,
2488 NSTCS2_SHOWNULLSPACEMENU
= 0x02,
2489 NSTCS2_DISPLAYPADDING
= 0x04,
2490 NSTCS2_DISPLAYPINNEDONLY
= 0x08,
2491 NTSCS2_NOSINGLETONAUTOEXPAND
= 0x10, /* The apparent typo here is */
2492 NTSCS2_NEVERINSERTNONENUMERATED
= 0x20 /* present also in the Win SDK */
2494 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(NSTCSTYLE2)")
2496 HRESULT SetControlStyle
(
2497 [in] NSTCSTYLE nstcsMask
,
2498 [in] NSTCSTYLE nstcsStyle
);
2500 HRESULT GetControlStyle
(
2501 [in] NSTCSTYLE nstcsMask
,
2502 [out] NSTCSTYLE
*pnstcsStyle
);
2504 HRESULT SetControlStyle2
(
2505 [in] NSTCSTYLE2 nstcsMask
,
2506 [in] NSTCSTYLE2 nstcsStyle
);
2508 HRESULT GetControlStyle2
(
2509 [in] NSTCSTYLE2 nstcsMask
,
2510 [out] NSTCSTYLE2
*pnstcsStyle
);
2513 /*****************************************************************************
2514 * INameSpaceTreeControlEvents interface
2519 uuid(93D77985
-B3D8
-4484-8318-672CDDA002CE
),
2522 interface INameSpaceTreeControlEvents
: IUnknown
2524 [v1_enum] enum _NSTCEHITTEST
{
2525 NSTCEHT_NOWHERE
= 0x0001,
2526 NSTCEHT_ONITEMICON
= 0x0002,
2527 NSTCEHT_ONITEMLABEL
= 0x0004,
2528 NSTCEHT_ONITEMIDENT
= 0x0008,
2529 NSTCEHT_ONITEMBUTTON
= 0x0010,
2530 NSTCEHT_ONITEMRIGHT
= 0x0020,
2531 NSTCEHT_ONITEMSTATEICON
= 0x0040,
2532 NSTCEHT_ONITEM
= 0x0046,
2533 NSTCEHT_ONITEMTABBUTTON
= 0x1000
2535 typedef DWORD NSTCEHITTEST
;
2537 [v1_enum] enum _NSTCECLICKTYPE
{
2538 NSTCECT_LBUTTON
= 0x1,
2539 NSTCECT_MBUTTON
= 0x2,
2540 NSTCECT_RBUTTON
= 0x3,
2541 NSTCECT_BUTTON
= 0x3,
2542 NSTCECT_DBLCLICK
= 0x4
2544 typedef DWORD NSTCECLICKTYPE
;
2546 HRESULT OnItemClick
(
2547 [in] IShellItem
*psi
,
2548 [in] NSTCEHITTEST nstceHitTest
,
2549 [in] NSTCECLICKTYPE nstceClickType
);
2551 HRESULT OnPropertyItemCommit
(
2552 [in] IShellItem
*psi
);
2554 HRESULT OnItemStateChanging
(
2555 [in] IShellItem
*psi
,
2556 [in] NSTCITEMSTATE nstcisMask
,
2557 [in] NSTCITEMSTATE nstcisState
);
2559 HRESULT OnItemStateChanged
(
2560 [in] IShellItem
*psi
,
2561 [in] NSTCITEMSTATE nstcisMask
,
2562 [in] NSTCITEMSTATE nstcisState
);
2564 HRESULT OnSelectionChanged
(
2565 [in] IShellItemArray
*psiaSelection
);
2567 HRESULT OnKeyboardInput
(
2570 [in] LPARAM lParam
);
2572 HRESULT OnBeforeExpand
(
2573 [in] IShellItem
*psi
);
2575 HRESULT OnAfterExpand
(
2576 [in] IShellItem
*psi
);
2578 HRESULT OnBeginLabelEdit
(
2579 [in] IShellItem
*psi
);
2581 HRESULT OnEndLabelEdit
(
2582 [in] IShellItem
*psi
);
2584 HRESULT OnGetToolTip
(
2585 [in] IShellItem
*psi
,
2586 [out, string, size_is(cchTip
)] LPWSTR pszTip
,
2589 HRESULT OnBeforeItemDelete
(
2590 [in] IShellItem
*psi
);
2592 HRESULT OnItemAdded
(
2593 [in] IShellItem
*psi
,
2596 HRESULT OnItemDeleted
(
2597 [in] IShellItem
*psi
,
2600 HRESULT OnBeforeContextMenu
(
2601 [in, unique] IShellItem
*psi
,
2603 [out, iid_is(riid
)] void **ppv
);
2605 HRESULT OnAfterContextMenu
(
2606 [in] IShellItem
*psi
,
2607 [in] IContextMenu
*pcmIn
,
2609 [out, iid_is(riid
)] void **ppv
);
2611 HRESULT OnBeforeStateImageChange
(
2612 [in] IShellItem
*psi
);
2614 HRESULT OnGetDefaultIconIndex
(
2615 [in] IShellItem
*psi
,
2616 [out] int *piDefaultIcon
,
2617 [out] int *piOpenIcon
);
2620 /*****************************************************************************
2621 * INameSpaceTreeControlCustomDraw interface
2625 uuid(2D3BA758
-33EE
-42D5
-BB7B
-5F3431D86C78
),
2629 interface INameSpaceTreeControlCustomDraw
: IUnknown
2631 typedef struct NSTCCUSTOMDRAW
2635 NSTCITEMSTATE nstcis
;
2646 [out] LRESULT
*plres
);
2652 HRESULT ItemPrePaint
(
2655 [in, out] COLORREF
*pclrText
,
2656 [in, out] COLORREF
*pclrTextBk
,
2657 [out] LRESULT
*plres
);
2659 HRESULT ItemPostPaint
(
2662 [in] NSTCCUSTOMDRAW
*pnstccdItem
);
2665 /*****************************************************************************
2666 * INameSpaceTreeControlDropHandler interface
2670 uuid(F9C665D6
-C2F2
-4C19
-BF33
-8322D7352F51
),
2673 interface INameSpaceTreeControlDropHandler
: IUnknown
2675 HRESULT OnDragEnter
(
2676 [in, unique] IShellItem
*psiOver
,
2677 [in] IShellItemArray
*psiaData
,
2678 [in] BOOL fOutsideSource
,
2679 [in] DWORD grfKeyState
,
2680 [in, out] DWORD
*pdwEffect
);
2683 [in, unique] IShellItem
*psiOver
,
2684 [in] IShellItemArray
*psiaData
,
2685 [in] DWORD grfKeyState
,
2686 [in, out] DWORD
*pdwEffect
);
2688 HRESULT OnDragPosition
(
2689 [in, unique] IShellItem
*psiOver
,
2690 [in] IShellItemArray
*psiaData
,
2691 [in] int iNewPosition
,
2692 [in] int iOldPosition
);
2695 [in, unique] IShellItem
*psiOver
,
2696 [in] IShellItemArray
*psiaData
,
2698 [in] DWORD grfKeyState
,
2699 [in, out] DWORD
*pdwEffect
);
2701 HRESULT OnDropPosition
(
2702 [in, unique] IShellItem
*psiOver
,
2703 [in] IShellItemArray
*psiaData
,
2704 [in] int iNewPosition
,
2705 [in] int iOldPosition
);
2707 HRESULT OnDragLeave
(
2708 [in, unique] IShellItem
*psiOver
);
2710 cpp_quote
("#define NSTCDHPOS_ONTOP -1")
2712 interface IFileDialog
;
2714 typedef [v1_enum] enum FDE_OVERWRITE_RESPONSE
2719 } FDE_OVERWRITE_RESPONSE
;
2721 typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
2726 } FDE_SHAREVIOLATION_RESPONSE
;
2728 /*****************************************************************************
2729 * IFileDialogEvents interface
2733 uuid(973510DB
-7D7F
-452B
-8975-74A85828D354
),
2734 pointer_default(unique)
2736 interface IFileDialogEvents
: IUnknown
2739 [in] IFileDialog
*pfd
);
2741 HRESULT OnFolderChanging
(
2742 [in] IFileDialog
*pfd
,
2743 [in] IShellItem
*psiFolder
);
2745 HRESULT OnFolderChange
(
2746 [in] IFileDialog
*pfd
);
2748 HRESULT OnSelectionChange
(
2749 [in] IFileDialog
*pfd
);
2751 HRESULT OnShareViolation
(
2752 [in] IFileDialog
*pfd
,
2753 [in] IShellItem
*psi
,
2754 [out] FDE_SHAREVIOLATION_RESPONSE
*pResponse
);
2756 HRESULT OnTypeChange
(
2757 [in] IFileDialog
*pfd
);
2759 HRESULT OnOverwrite
(
2760 [in] IFileDialog
*pfd
,
2761 [in] IShellItem
*psi
,
2762 [out] FDE_OVERWRITE_RESPONSE
*pResponse
);
2765 /*****************************************************************************
2766 * IModalWindow interface
2770 uuid(B4DB1657
-70D7
-485E-8E3E
-6FCB5A5C1802
),
2771 pointer_default(unique)
2773 interface IModalWindow
: IUnknown
2777 [in, unique, annotation
("__in_opt")] HWND hwndOwner
);
2781 [in, unique] HWND hwndOwner
);
2784 typedef [v1_enum] enum FDAP
2790 /*****************************************************************************
2791 * IFileDialog interface
2795 uuid(42F85136
-DB7E
-439C
-85F1
-E4075D135FC8
),
2796 pointer_default(unique)
2798 interface IFileDialog
: IModalWindow
2800 [v1_enum] enum _FILEOPENDIALOGOPTIONS
2802 FOS_OVERWRITEPROMPT
= 0x00000002,
2803 FOS_STRICTFILETYPES
= 0x00000004,
2804 FOS_NOCHANGEDIR
= 0x00000008,
2805 FOS_PICKFOLDERS
= 0x00000020,
2806 FOS_FORCEFILESYSTEM
= 0x00000040,
2807 FOS_ALLNONSTORAGEITEMS
= 0x00000080,
2808 FOS_NOVALIDATE
= 0x00000100,
2809 FOS_ALLOWMULTISELECT
= 0x00000200,
2810 FOS_PATHMUSTEXIST
= 0x00000800,
2811 FOS_FILEMUSTEXIST
= 0x00001000,
2812 FOS_CREATEPROMPT
= 0x00002000,
2813 FOS_SHAREAWARE
= 0x00004000,
2814 FOS_NOREADONLYRETURN
= 0x00008000,
2815 FOS_NOTESTFILECREATE
= 0x00010000,
2816 FOS_HIDEMRUPLACES
= 0x00020000,
2817 FOS_HIDEPINNEDPLACES
= 0x00040000,
2818 FOS_NODEREFERENCELINKS
= 0x00100000,
2819 FOS_DONTADDTORECENT
= 0x02000000,
2820 FOS_FORCESHOWHIDDEN
= 0x10000000,
2821 FOS_DEFAULTNOMINIMODE
= 0x20000000,
2822 FOS_FORCEPREVIEWPANEON
= 0x40000000
2824 typedef DWORD FILEOPENDIALOGOPTIONS
;
2826 HRESULT SetFileTypes
(
2827 [in] UINT cFileTypes
,
2828 [in, size_is(cFileTypes
)] const COMDLG_FILTERSPEC
*rgFilterSpec
);
2830 HRESULT SetFileTypeIndex
(
2831 [in] UINT iFileType
);
2833 HRESULT GetFileTypeIndex
(
2834 [out] UINT
*piFileType
);
2837 [in] IFileDialogEvents
*pfde
,
2838 [out] DWORD
*pdwCookie
);
2841 [in] DWORD dwCookie
);
2844 [in] FILEOPENDIALOGOPTIONS fos
);
2847 [in] FILEOPENDIALOGOPTIONS
*pfos
);
2849 HRESULT SetDefaultFolder
(
2850 [in] IShellItem
*psi
);
2853 [in] IShellItem
*psi
);
2856 [out] IShellItem
**ppsi
);
2858 HRESULT GetCurrentSelection
(
2859 [out] IShellItem
**ppsi
);
2861 HRESULT SetFileName
(
2862 [in, string] LPCWSTR pszName
);
2864 HRESULT GetFileName
(
2865 [out, string] LPWSTR
*pszName
);
2868 [in, string] LPCWSTR pszTitle
);
2870 HRESULT SetOkButtonLabel
(
2871 [in, string] LPCWSTR pszText
);
2873 HRESULT SetFileNameLabel
(
2874 [in, string] LPCWSTR pszLabel
);
2877 [out] IShellItem
**ppsi
);
2880 [in] IShellItem
*psi
,
2883 HRESULT SetDefaultExtension
(
2884 [in, string] LPCWSTR pszDefaultExtension
);
2889 HRESULT SetClientGuid
(
2892 HRESULT ClearClientData
();
2895 [in] IShellItemFilter
*pFilter
);
2898 /*****************************************************************************
2899 * IFileDialog2 interface
2903 uuid(61744FC7
-85B5
-4791-A9B0
-272276309B13
),
2904 pointer_default(unique)
2906 interface IFileDialog2
: IFileDialog
2908 HRESULT SetCancelButtonLabel
(
2909 [in] LPCWSTR pszLabel
);
2911 HRESULT SetNavigationRoot
(
2912 [in] IShellItem
*psi
);
2915 /*****************************************************************************
2916 * IFileOperationProgressSink interface
2920 uuid(04B0F1A7
-9490-44BC
-96E1
-4296A31252E2
),
2921 pointer_default(unique)
2923 interface IFileOperationProgressSink
: IUnknown
2925 HRESULT StartOperations
();
2927 HRESULT FinishOperations
(
2928 [in] HRESULT hrResult
);
2930 HRESULT PreRenameItem
(
2932 [in] IShellItem
*psiItem
,
2933 [in, unique, string] LPCWSTR pszNewName
);
2935 HRESULT PostRenameItem
(
2937 [in] IShellItem
*psiItem
,
2938 [in, string] LPCWSTR pszNewName
,
2939 [in] HRESULT hrRename
,
2940 [in] IShellItem
*psiNewlyCreated
);
2942 HRESULT PreMoveItem
(
2944 [in] IShellItem
*psiItem
,
2945 [in] IShellItem
*psiDestinationFolder
,
2946 [in, unique, string] LPCWSTR pszNewName
);
2948 HRESULT PostMoveItem
(
2950 [in] IShellItem
*psiItem
,
2951 [in] IShellItem
*psiDestinationFolder
,
2952 [in, unique, string] LPCWSTR pszNewName
,
2953 [in] HRESULT hrMove
,
2954 [in] IShellItem
*psiNewlyCreated
);
2956 HRESULT PreCopyItem
(
2958 [in] IShellItem
*psiItem
,
2959 [in] IShellItem
*psiDestinationFolder
,
2960 [in, unique, string] LPCWSTR pszNewName
);
2962 HRESULT PostCopyItem
(
2964 [in] IShellItem
*psiItem
,
2965 [in] IShellItem
*psiDestinationFolder
,
2966 [in, unique, string] LPCWSTR pszNewName
,
2967 [in] HRESULT hrCopy
,
2968 [in] IShellItem
*psiNewlyCreated
);
2970 HRESULT PreDeleteItem
(
2972 [in] IShellItem
*psiItem
);
2974 HRESULT PostDeleteItem
(
2976 [in] IShellItem
*psiItem
,
2977 [in] HRESULT hrDelete
,
2978 [in] IShellItem
*psiNewlyCreated
);
2982 [in] IShellItem
*psiDestinationFolder
,
2983 [in, unique, string] LPCWSTR pszNewName
);
2985 HRESULT PostNewItem
(
2987 [in] IShellItem
*psiDestinationFolder
,
2988 [in, unique, string] LPCWSTR pszNewName
,
2989 [in, unique, string] LPCWSTR pszTemplateName
,
2990 [in] DWORD dwFileAttributes
,
2992 [in] IShellItem
*psiNewItem
);
2994 HRESULT UpdateProgress
(
2995 [in] UINT iWorkTotal
,
2996 [in] UINT iWorkSoFar
);
2998 HRESULT ResetTimer
();
3000 HRESULT PauseTimer
();
3002 HRESULT ResumeTimer
();
3005 /*****************************************************************************
3006 * IFileSaveDialog interface
3010 uuid(84BCCD23
-5FDE
-4CDB
-AEA4
-AF64B83D78AB
),
3011 pointer_default(unique)
3013 interface IFileSaveDialog
: IFileDialog
3015 HRESULT SetSaveAsItem
(
3016 [in] IShellItem
*psi
);
3018 HRESULT SetProperties
(
3019 [in] IPropertyStore
*pStore
);
3021 HRESULT SetCollectedProperties
(
3022 [in] IPropertyDescriptionList
*pList
,
3023 [in] BOOL fAppendDefault
);
3025 HRESULT GetProperties
(
3026 [in] IPropertyStore
**ppStore
);
3028 HRESULT ApplyProperties
(
3029 [in] IShellItem
*psi
,
3030 [in] IPropertyStore
*pStore
,
3031 [in, unique] HWND hwnd
,
3032 [in, unique] IFileOperationProgressSink
*pSink
);
3036 /*****************************************************************************
3037 * IFileOpenDialog interface
3041 uuid(D57C7288
-D4AD
-4768-BE02
-9D969532D960
),
3042 pointer_default(unique)
3044 interface IFileOpenDialog
: IFileDialog
3047 [out] IShellItemArray
**ppenum
);
3049 HRESULT GetSelectedItems
(
3050 [out] IShellItemArray
**ppsai
);
3053 typedef [v1_enum] enum CDCONTROLSTATEF
3055 CDCS_INACTIVE
= 0x0,
3058 CDCS_ENABLEDVISIBLE
= 0x3
3060 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
3061 /*****************************************************************************
3062 * IFileDialogCustomize interface
3066 uuid(E6FDD21A
-163F
-4975-9C8C
-A69F1BA37034
),
3067 pointer_default(unique)
3069 interface IFileDialogCustomize
: IUnknown
3071 HRESULT EnableOpenDropDown
(
3072 [in] DWORD dwIDCtl
);
3076 [in, string] LPCWSTR pszLabel
);
3078 HRESULT AddPushButton
(
3080 [in, string] LPCWSTR pszLabel
);
3082 HRESULT AddComboBox
(
3083 [in] DWORD dwIDCtl
);
3085 HRESULT AddRadioButtonList
(
3086 [in] DWORD dwIDCtl
);
3088 HRESULT AddCheckButton
(
3090 [in, string] LPCWSTR pszLabel
,
3091 [in] BOOL bChecked
);
3095 [in, string] LPCWSTR pszText
);
3097 HRESULT AddSeparator
(
3098 [in] DWORD dwIDCtl
);
3102 [in, string] LPCWSTR pszText
);
3104 HRESULT SetControlLabel
(
3106 [in, string] LPCWSTR pszLabel
);
3108 HRESULT GetControlState
(
3110 [out] CDCONTROLSTATEF
*pdwState
);
3112 HRESULT SetControlState
(
3114 [in] CDCONTROLSTATEF dwState
);
3116 HRESULT GetEditBoxText
(
3118 [out, string] WCHAR
**ppszText
);
3120 HRESULT SetEditBoxText
(
3122 [in, string] LPCWSTR pszText
);
3124 HRESULT GetCheckButtonState
(
3126 [out] BOOL
*pbChecked
);
3128 HRESULT SetCheckButtonState
(
3130 [in] BOOL bChecked
);
3132 HRESULT AddControlItem
(
3134 [in] DWORD dwIDItem
,
3135 [in] LPCWSTR pszLabel
);
3137 HRESULT RemoveControlItem
(
3139 [in] DWORD dwIDItem
);
3141 HRESULT RemoveAllControlItems
(
3142 [in] DWORD dwIDCtl
);
3144 HRESULT GetControlItemState
(
3146 [in] DWORD dwIDItem
,
3147 [out] CDCONTROLSTATEF
*pdwState
);
3149 HRESULT SetControlItemState
(
3151 [in] DWORD dwIDItem
,
3152 [in] CDCONTROLSTATEF dwState
);
3154 HRESULT GetSelectedControlItem
(
3156 [out] DWORD
*pdwIDItem
);
3158 HRESULT SetSelectedControlItem
(
3160 [in] DWORD dwIDItem
);
3162 HRESULT StartVisualGroup
(
3164 [in, string] LPCWSTR pszLabel
);
3166 HRESULT EndVisualGroup
();
3168 HRESULT MakeProminent
(
3169 [in] DWORD dwIDCtl
);
3171 HRESULT SetControlItemText
(
3173 [in] DWORD dwIDItem
,
3174 [in, string] LPCWSTR pszLabel
);
3177 /*****************************************************************************
3178 * IFileDialogControlEvents interface
3182 uuid(36116642-D713
-4B97
-9B83
-7484A9D00433
),
3183 pointer_default(unique)
3185 interface IFileDialogControlEvents
: IUnknown
3187 HRESULT OnItemSelected
(
3188 [in] IFileDialogCustomize
*pfdc
,
3190 [in] DWORD dwIDItem
);
3192 HRESULT OnButtonClicked
(
3193 [in] IFileDialogCustomize
*pfdc
,
3194 [in] DWORD dwIDCtl
);
3196 HRESULT OnCheckButtonToggled
(
3197 [in] IFileDialogCustomize
*pfdc
,
3199 [in] BOOL bChecked
);
3201 HRESULT OnControlActivating
(
3202 [in] IFileDialogCustomize
*pfdc
,
3203 [in] DWORD dwIDCtl
);
3206 typedef [v1_enum] enum tagKF_CATEGORY
3208 KF_CATEGORY_VIRTUAL
= 0x00000001,
3209 KF_CATEGORY_FIXED
= 0x00000002,
3210 KF_CATEGORY_COMMON
= 0x00000003,
3211 KF_CATEGORY_PERUSER
= 0x00000004
3214 typedef [v1_enum] enum tagKF_REDIRECTION_CAPABILITIES
3216 KF_REDIRECTION_CAPABILITIES_ALLOW_ALL
= 0x000000ff,
3217 KF_REDIRECTION_CAPABILITIES_REDIRECTABLE
= 0x00000001,
3218 KF_REDIRECTION_CAPABILITIES_DENY_ALL
= 0x000fff00,
3219 KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED
= 0x00000100,
3220 KF_REDIRECTION_CAPABILITIES_DENY_POLICY
= 0x00000200,
3221 KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS
= 0x00000400
3222 } KF_REDIRECTION_CAPABILITIES
;
3224 typedef [v1_enum] enum tagKF_DEFINITION_FLAGS
3226 KFDF_LOCAL_REDIRECT_ONLY
= 0x00000002,
3227 KFDF_ROAMABLE
= 0x00000004,
3228 KFDF_PRECREATE
= 0x00000008,
3229 KFDF_STREAM
= 0x00000010,
3230 KFDF_PUBLISHEXPANDEDPATH
= 0x00000020
3231 } KF_DEFINITION_FLAGS
;
3233 typedef struct tagKNOWNFOLDER_DEFINITION
3235 KF_CATEGORY category
;
3237 LPWSTR pszDescription
;
3238 KNOWNFOLDERID fidParent
;
3239 LPWSTR pszRelativePath
;
3240 LPWSTR pszParsingName
;
3242 LPWSTR pszLocalizedName
;
3246 KF_DEFINITION_FLAGS kfdFlags
;
3247 FOLDERTYPEID ftidType
;
3248 } KNOWNFOLDER_DEFINITION
;
3252 uuid(3aa7af7e
-9b36
-420C
-a8e3
-f77d4674a488
),
3253 pointer_default(ref)
3255 interface IKnownFolder
: IUnknown
3258 [out] KNOWNFOLDERID
*pkfid
);
3260 HRESULT GetCategory
(
3261 [out] KF_CATEGORY
*pCategory
);
3263 HRESULT GetShellItem
(
3266 [out, iid_is(riid
)] void **ppv
);
3270 [out, string] LPWSTR
*ppszPath
);
3274 [in, string] LPCWSTR pszPath
);
3278 [out] PIDLIST_ABSOLUTE
*ppidl
);
3280 HRESULT GetFolderType
(
3281 [out] FOLDERTYPEID
*pftid
);
3283 HRESULT GetRedirectionCapabilities
(
3284 [out] KF_REDIRECTION_CAPABILITIES
*pCapabilities
);
3286 HRESULT GetFolderDefinition
(
3287 [out] KNOWNFOLDER_DEFINITION
*pKFD
);
3290 typedef [v1_enum] enum tagKF_REDIRECT_FLAGS
3292 KF_REDIRECT_USER_EXCLUSIVE
= 0x00000001,
3293 KF_REDIRECT_COPY_SOURCE_DACL
= 0x00000002,
3294 KF_REDIRECT_OWNER_USER
= 0x00000004,
3295 KF_REDIRECT_SET_OWNER_EXPLICIT
= 0x00000008,
3296 KF_REDIRECT_CHECK_ONLY
= 0x00000010,
3297 KF_REDIRECT_WITH_UI
= 0x00000020,
3298 KF_REDIRECT_UNPIN
= 0x00000040,
3299 KF_REDIRECT_PIN
= 0x00000080,
3300 KF_REDIRECT_COPY_CONTENTS
= 0x00000200,
3301 KF_REDIRECT_DEL_SOURCE_CONTENTS
= 0x00000400,
3302 KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS
= 0x00000800
3303 } KF_REDIRECT_FLAGS
;
3307 uuid(8BE2D872
-86AA
-4d47
-B776
-32CCA40C7018
),
3308 pointer_default(ref)
3310 interface IKnownFolderManager
: IUnknown
3312 typedef [v1_enum] enum tagFFFP_MODE
3315 FFFP_NEARESTPARENTMATCH
3318 HRESULT FolderIdFromCsidl
(
3320 [out] KNOWNFOLDERID
*pfid
);
3322 HRESULT FolderIdToCsidl
(
3323 [in] REFKNOWNFOLDERID rfid
,
3324 [out] int *pnCsidl
);
3326 HRESULT GetFolderIds
(
3327 [out, size_is(, *pCount
)] KNOWNFOLDERID
**ppKFId
,
3328 [in, out] UINT
*pCount
);
3331 [in] REFKNOWNFOLDERID rfid
,
3332 [out] IKnownFolder
**ppkf
);
3334 HRESULT GetFolderByName
(
3335 [in, string] LPCWSTR pszCanonicalName
,
3336 [out] IKnownFolder
**ppkf
);
3338 HRESULT RegisterFolder
(
3339 [in] REFKNOWNFOLDERID rfid
,
3340 [in] KNOWNFOLDER_DEFINITION
const *pKFD
);
3342 HRESULT UnregisterFolder
(
3343 [in] REFKNOWNFOLDERID rfid
);
3345 HRESULT FindFolderFromPath
(
3346 [in, string] LPCWSTR pszPath
,
3347 [in] FFFP_MODE mode
,
3348 [out] IKnownFolder
**ppkf
);
3350 HRESULT FindFolderFromIDList
(
3351 [in] PCIDLIST_ABSOLUTE pidl
,
3352 [out] IKnownFolder
**ppkf
);
3355 [in] REFKNOWNFOLDERID rfid
,
3356 [in, unique] HWND hwnd
,
3357 [in] KF_REDIRECT_FLAGS flags
,
3358 [in, unique, string] LPCWSTR pszTargetPath
,
3360 [in, size_is(cFolders
), unique] KNOWNFOLDERID
const *pExclusion
,
3361 [out, string] LPWSTR
*ppszError
);
3364 /* function for releasing structure returned from IKnownFolder::GetFolderDefinition */
3365 cpp_quote
("static inline void FreeKnownFolderDefinitionFields(KNOWNFOLDER_DEFINITION *pKFD)")
3367 cpp_quote
(" CoTaskMemFree(pKFD->pszName);")
3368 cpp_quote
(" CoTaskMemFree(pKFD->pszDescription);")
3369 cpp_quote
(" CoTaskMemFree(pKFD->pszRelativePath);")
3370 cpp_quote
(" CoTaskMemFree(pKFD->pszParsingName);")
3371 cpp_quote
(" CoTaskMemFree(pKFD->pszTooltip);")
3372 cpp_quote
(" CoTaskMemFree(pKFD->pszLocalizedName);")
3373 cpp_quote
(" CoTaskMemFree(pKFD->pszIcon);")
3374 cpp_quote
(" CoTaskMemFree(pKFD->pszSecurity);")
3377 typedef [v1_enum] enum ASSOCIATIONLEVEL
{
3383 typedef [v1_enum] enum ASSOCIATIONTYPE
{
3392 uuid(4e530b0a
-e611
-4c77
-a3ac
-9031d022281b
),
3393 pointer_default(unique)
3395 interface IApplicationAssociationRegistration
: IUnknown
3397 HRESULT QueryCurrentDefault
(
3398 [in, string] LPCWSTR pszQuery
,
3399 [in] ASSOCIATIONTYPE atQueryType
,
3400 [in] ASSOCIATIONLEVEL alQueryLevel
,
3401 [out, string] LPWSTR
*ppszAssociation
);
3403 HRESULT QueryAppIsDefault
(
3404 [in, string] LPCWSTR pszQuery
,
3405 [in] ASSOCIATIONTYPE atQueryType
,
3406 [in] ASSOCIATIONLEVEL alQueryLevel
,
3407 [in, string] LPCWSTR pszAppRegistryName
,
3408 [out] BOOL
*pfDefault
);
3410 HRESULT QueryAppIsDefaultAll
(
3411 [in] ASSOCIATIONLEVEL alQueryLevel
,
3412 [in, string] LPCWSTR pszAppRegistryName
,
3413 [out] BOOL
* pfDefault
);
3415 HRESULT SetAppAsDefault
(
3416 [in, string] LPCWSTR pszAppRegistryName
,
3417 [in, string] LPCWSTR pszSet
,
3418 [in] ASSOCIATIONTYPE atSetType
);
3420 HRESULT SetAppAsDefaultAll
(
3421 [in, string] LPCWSTR pszAppRegistryName
);
3423 HRESULT ClearUserAssociations
();
3427 uuid(6332debf
-87b5
-4670-90c0
-5e57b408a49e
),
3429 pointer_default(unique)
3431 interface ICustomDestinationList
: IUnknown
3433 typedef [v1_enum] enum KNOWNDESTCATEGORY
{
3436 } KNOWNDESTCATEGORY
;
3438 HRESULT SetAppID
([in, string] LPCWSTR pszAppID
);
3441 [out] UINT
*pcMinSlots
,
3443 [out, iid_is(riid
)] void **ppv
);
3445 HRESULT AppendCategory
(
3446 [in, string] LPCWSTR pszCategory
,
3447 [in] IObjectArray
*poa
);
3449 HRESULT AppendKnownCategory
([in] KNOWNDESTCATEGORY category
);
3450 HRESULT AddUserTasks
([in] IObjectArray
*poa
);
3451 HRESULT CommitList
();
3453 HRESULT GetRemovedDestinations
(
3455 [out, iid_is(riid
)] void **ppv
);
3457 HRESULT DeleteList
([in, unique, string] LPCWSTR pszAppID
);
3458 HRESULT AbortList
();
3462 uuid(ddefe873
-6997-4e68
-be26
-39b633adbe12
),
3464 pointer_default(unique)
3466 interface IQueryCancelAutoPlay
: IUnknown
3468 HRESULT AllowAutoPlay
([in, string] LPCWSTR path
,
3469 [in] DWORD content_type
,
3470 [in, string] LPCWSTR label
,
3471 [in] DWORD serial_number
);
3475 uuid(d594d0d8
-8da7
-457b
-b3b4
-ce5dbaac0b88
),
3476 pointer_default(unique)
3478 interface ITransferAdviseSink
: IUnknown
3480 [v1_enum] enum _TRANSFER_ADVISE_STATE
3485 TS_INDETERMINATE
= 4
3487 typedef DWORD TRANSFER_ADVISE_STATE
;
3489 HRESULT UpdateProgress
([in] ULONGLONG size_current
,
3490 [in] ULONGLONG size_total
,
3491 [in] INT files_current
,
3492 [in] INT files_total
,
3493 [in] INT folders_current
,
3494 [in] INT folders_total
);
3495 HRESULT UpdateTransferState
([in] TRANSFER_ADVISE_STATE state
);
3496 HRESULT ConfirmOverwrite
([in] IShellItem
*source,
3497 [in] IShellItem
*dest_parent
,
3498 [in, string] LPCWSTR name
);
3499 HRESULT ConfirmEncryptLoss
([in] IShellItem
*source);
3500 HRESULT FileFailure
([in] IShellItem
*item
,
3501 [in, unique, string] LPCWSTR itemname
,
3503 [in, out, unique, size_is(crename
)] LPWSTR rename
,
3504 [in] ULONG crename
);
3505 HRESULT SubStreamFailure
([in] IShellItem
*item
,
3506 [in, string] LPCWSTR stream
,
3508 HRESULT PropertyFailure
([in] IShellItem
*item
,
3509 [in, unique] const PROPERTYKEY
*key
,
3513 [v1_enum] enum _TRANSFER_SOURCE_FLAGS
3517 TSF_RENAME_EXIST
= 0x1,
3518 TSF_OVERWRITE_EXIST
= 0x2,
3519 TSF_ALLOW_DECRYPTION
= 0x4,
3520 TSF_NO_SECURITY
= 0x8,
3521 TSF_COPY_CREATION_TIME
= 0x10,
3522 TSF_COPY_WRITE_TIME
= 0x20,
3523 TSF_USE_FULL_ACCESS
= 0x40,
3524 TSF_DELETE_RECYCLE_IF_POSSIBLE
= 0x80,
3525 TSF_COPY_HARD_LINK
= 0x100,
3526 TSF_COPY_LOCALIZED_NAME
= 0x200,
3527 TSF_MOVE_AS_COPY_DELETE
= 0x400,
3528 TSF_SUSPEND_SHELLEVENTS
= 0x800
3530 typedef DWORD TRANSFER_SOURCE_FLAGS
;
3533 uuid(00adb003
-bde9
-45c6
-8e29
-d09f9353e108
),
3535 pointer_default(unique)
3537 interface ITransferSource
: IUnknown
3539 HRESULT Advise
([in] ITransferAdviseSink
*sink
, [out] DWORD
*cookie
);
3540 HRESULT Unadvise
([in] DWORD cookie
);
3541 HRESULT SetProperties
([in] IPropertyChangeArray
*array
);
3542 HRESULT OpenItem
([in] IShellItem
*item
,
3543 [in] TRANSFER_SOURCE_FLAGS flags
,
3545 [out, iid_is(riid
)] void **ppv
);
3546 HRESULT MoveItem
([in] IShellItem
*item
,
3547 [in] IShellItem
*parent_dest
,
3548 [in, string] LPCWSTR name_dest
,
3549 [in] TRANSFER_SOURCE_FLAGS flags
,
3550 [out] IShellItem
**newitem
);
3551 HRESULT RecycleItem
([in] IShellItem
*source,
3552 [in] IShellItem
*parent_dest
,
3553 [in] TRANSFER_SOURCE_FLAGS flags
,
3554 [out] IShellItem
**new_dest
);
3555 HRESULT RemoveItem
([in] IShellItem
*source, [in] TRANSFER_SOURCE_FLAGS flags
);
3556 HRESULT RenameItem
([in] IShellItem
*source,
3557 [in, string] LPCWSTR newname
,
3558 [in] TRANSFER_SOURCE_FLAGS flags
,
3559 [out] IShellItem
**new_dest
);
3560 HRESULT LinkItem
([in] IShellItem
*source,
3561 [in] IShellItem
*parent_dest
,
3562 [in, unique, string] LPCWSTR new_name
,
3563 [in] TRANSFER_SOURCE_FLAGS flags
,
3564 [out] IShellItem
**new_dest
);
3565 HRESULT ApplyPropertiesToItem
([in] IShellItem
*source, [out] IShellItem
**newitem
);
3566 HRESULT GetDefaultDestinationName
([in] IShellItem
*source,
3567 [in] IShellItem
*parent_dest
,
3568 [out, string] LPWSTR
*dest_name
);
3569 HRESULT EnterFolder
([in] IShellItem
*child_folder
);
3570 HRESULT LeaveFolder
([in] IShellItem
*child_folder
);
3574 uuid(48addd32
-3ca5
-4124-abe3
-b5a72531b207
),
3576 pointer_default(unique)
3578 interface ITransferDestination
: IUnknown
3580 HRESULT Advise
([in] ITransferAdviseSink
*sink
, [out] DWORD
*cookie
);
3581 HRESULT Unadvise
([in] DWORD cookie
);
3582 HRESULT CreateItem
([in, string] LPCWSTR name
,
3584 [in] ULONGLONG size
,
3585 [in] TRANSFER_SOURCE_FLAGS flags
,
3587 [out, iid_is(riid
)] void **ppv
,
3588 [in] REFIID resources
,
3589 [out, iid_is(riid
)] void **presources
);
3593 uuid(92218cab
-ecaa
-4335-8133-807fd234c2ee
),
3595 pointer_default(unique)
3597 interface IAssocHandlerInvoker
: IUnknown
3599 HRESULT SupportsSelection
();
3604 uuid(f04061ac
-1659-4a3f
-a954
-775aa57fc083
),
3606 pointer_default(unique)
3608 interface IAssocHandler
: IUnknown
3610 HRESULT GetName
([out, string] LPWSTR
*name
);
3611 HRESULT GetUIName
([out, string] LPWSTR
*uiname
);
3612 HRESULT GetIconLocation
([out, string] LPWSTR
*path
,
3614 HRESULT IsRecommended
();
3615 HRESULT MakeDefault
([in, string] LPCWSTR description
);
3616 HRESULT Invoke
([in] IDataObject
*object);
3617 HRESULT CreateInvoker
([in] IDataObject
*object,
3618 [out] IAssocHandlerInvoker
**invoker
);
3622 uuid(973810ae
-9599-4b88
-9e4d
-6ee98c9552da
),
3624 pointer_default(unique)
3626 interface IEnumAssocHandlers
: IUnknown
3628 HRESULT Next
([in] ULONG count
,
3629 [out, size_is(count
), length_is(*fetched
)] IAssocHandler
**handlers
,
3630 [out] ULONG
*fetched
);
3633 typedef enum ASSOC_FILTER
3635 ASSOC_FILTER_NONE
= 0,
3636 ASSOC_FILTER_RECOMMENDED
3638 cpp_quote
("HRESULT WINAPI SHAssocEnumHandlers(PCWSTR extra, ASSOC_FILTER filter, IEnumAssocHandlers **handlersenum);")
3640 /*****************************************************************************
3641 * ShellObjects typelibrary
3644 uuid(50A7E9B1
-70EF
-11D1
-B75A
-00A0C90564FE
),
3648 library ShellObjects
3651 uuid(71F96385
-DDD6
-48D3
-A0C1
-AE06E8B055FB
)
3653 coclass ExplorerBrowser
3655 interface IExplorerBrowser
;
3659 uuid(DC1C5A9C
-E88A
-4DDE
-A5A1
-60F82A20AEF7
)
3661 coclass FileOpenDialog
3663 interface IFileOpenDialog
;
3667 uuid(C0B4E2F3
-BA21
-4773-8DBA
-335EC946EB8B
)
3669 coclass FileSaveDialog
3671 interface IFileSaveDialog
;
3675 uuid(AE054212
-3535-4430-83ED
-D501AA6680E6
)
3677 coclass NamespaceTreeControl
3679 interface INameSpaceTreeControl2
;
3683 uuid(4df0c730
-df9d
-4ae3
-9153-aa6b82e9795a
)
3685 coclass KnownFolderManager
3687 interface IKnownFolderManager
;
3691 uuid(591209c7
-767b
-42b2
-9fba
-44ee4615f2c7
)
3693 coclass ApplicationAssociationRegistration
3695 interface IApplicationAssociationRegistration
;
3699 uuid(00021401-0000-0000-c000
-000000000046)
3703 interface IShellLinkW
;
3707 uuid(56fdf344
-fd6d
-11d0
-958a
-006097c9a090
)
3711 interface ITaskbarList4
;
3715 uuid(77f10cf0
-3db5
-4966-b520
-b7c54fd35ed6
)
3717 coclass DestinationList
{
3718 interface ICustomDestinationList
;
3722 uuid(2d3468c1
-36a7
-43b6
-ac24
-d3f02fd9607a
)
3724 coclass EnumerableObjectCollection
3726 interface IEnumObjects
;
3730 uuid(331f1768
-05a9
-4ddd
-b86e
-dae34ddc998a
)
3732 coclass QueryCancelAutoPlay
3734 interface IQueryCancelAutoPlay
;