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
,
804 /*****************************************************************************
805 * IFolderView interface
808 uuid(cde725b0
-ccc9
-4519-917e-325d72fab4ce
),
810 pointer_default(unique)
812 interface IFolderView
: IUnknown
814 HRESULT GetCurrentViewMode
( [out] UINT
*mode
);
815 HRESULT SetCurrentViewMode
( [in] UINT mode
);
816 HRESULT GetFolder
( [in] REFIID riid
, [out, iid_is(riid
)] void **ppv
);
819 [out] PITEMID_CHILD
*ppidl
828 [out, iid_is(riid
)] void **ppv
830 HRESULT GetSelectionMarkedItem
( [out] int *item
);
831 HRESULT GetFocusedItem
( [out] int *item
);
832 HRESULT GetItemPosition
(
833 [in] PCUITEMID_CHILD pidl
,
836 HRESULT GetSpacing
( [in, out, unique] POINT
* pt
);
837 HRESULT GetDefaultSpacing
( [out] POINT
* pt
);
838 HRESULT GetAutoArrange
();
843 HRESULT SelectAndPositionItems
(
845 [in, size_is(cidl
)] PCUITEMID_CHILD_ARRAY apidl
,
846 [in, unique, size_is(cidl
)] POINT
* apt
,
851 /*****************************************************************************
852 * IShellBrowser interface
856 uuid(000214e2
-0000-0000-c000
-000000000046),
857 pointer_default(unique)
859 interface IShellBrowser
: IOleWindow
861 typedef IShellBrowser
*LPSHELLBROWSER
;
863 cpp_quote
("#define SBSP_DEFBROWSER 0x00000000")
864 cpp_quote
("#define SBSP_SAMEBROWSER 0x00000001")
865 cpp_quote
("#define SBSP_NEWBROWSER 0x00000002")
866 cpp_quote
("#define SBSP_DEFMODE 0x00000000")
867 cpp_quote
("#define SBSP_OPENMODE 0x00000010")
868 cpp_quote
("#define SBSP_EXPLOREMODE 0x00000020")
869 cpp_quote
("#define SBSP_HELPMODE 0x00000040")
870 cpp_quote
("#define SBSP_NOTRANSFERHIST 0x00000080")
871 cpp_quote
("#define SBSP_ABSOLUTE 0x00000000")
872 cpp_quote
("#define SBSP_RELATIVE 0x00001000")
873 cpp_quote
("#define SBSP_PARENT 0x00002000")
874 cpp_quote
("#define SBSP_NAVIGATEBACK 0x00004000")
875 cpp_quote
("#define SBSP_NAVIGATEFORWARD 0x00008000")
876 cpp_quote
("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
877 cpp_quote
("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
878 cpp_quote
("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
879 cpp_quote
("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
880 cpp_quote
("#define SBSP_CREATENOHISTORY 0x00100000")
881 cpp_quote
("#define SBSP_PLAYNOSOUND 0x00200000")
882 cpp_quote
("#define SBSP_CALLERUNTURUSTED 0x00800000")
883 cpp_quote
("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
884 cpp_quote
("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
885 cpp_quote
("#define SBSP_NOAUTOSELECT 0x04000000")
886 cpp_quote
("#define SBSP_WRITENOHISTORY 0x08000000")
887 cpp_quote
("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
888 cpp_quote
("#define SBSP_FEEDNAVIGATION 0x20000000")
889 cpp_quote
("#define SBSP_REDIRECT 0x40000000")
890 cpp_quote
("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
892 cpp_quote
("#define FCW_STATUS 0x0001")
893 cpp_quote
("#define FCW_TOOLBAR 0x0002")
894 cpp_quote
("#define FCW_TREE 0x0003")
895 cpp_quote
("#define FCW_INTERNETBAR 0x0006")
896 cpp_quote
("#define FCW_PROGRESS 0x0008")
898 cpp_quote
("#define FCT_MERGE 0x0001")
899 cpp_quote
("#define FCT_CONFIGABLE 0x0002")
900 cpp_quote
("#define FCT_ADDTOEND 0x0004")
903 typedef LPARAM LPTBBUTTONSB
;
905 cpp_quote
("#include <commctrl.h>")
906 cpp_quote
("typedef LPTBBUTTON LPTBBUTTONSB;")
909 HRESULT InsertMenusSB
(
910 [in] HMENU hmenuShared
,
911 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths
);
914 [in] HMENU hmenuShared
,
915 [in] HOLEMENU holemenuReserved
,
916 [in] HWND hwndActiveObject
);
918 HRESULT RemoveMenusSB
( [in] HMENU hmenuShared
);
919 HRESULT SetStatusTextSB
( [in, unique] LPCOLESTR pszStatusText
);
920 HRESULT EnableModelessSB
( [in] BOOL fEnable
);
921 HRESULT TranslateAcceleratorSB
( [in] MSG
*pmsg
, [in] WORD wID
);
923 HRESULT BrowseObject
(
924 [in] LPCITEMIDLIST pidl
,
927 HRESULT GetViewStateStream
(
929 [out] IStream
**ppStrm
);
931 HRESULT GetControlWindow
(
935 [local] HRESULT SendControlMsg
(
942 HRESULT QueryActiveShellView
( [out] IShellView
**ppshv
);
943 HRESULT OnViewWindowActive
( [in] IShellView
*pshv
);
946 HRESULT SetToolbarItems
(
947 [in] LPTBBUTTONSB lpButtons
,
953 /*****************************************************************************
954 * IShellLinkA interface
958 uuid(000214ee
-0000-0000-c000
-000000000046),
959 pointer_default(unique)
961 interface IShellLinkA
: IUnknown
966 SLR_ANY_MATCH
= 0x0002,
968 SLR_NOUPDATE
= 0x0008,
969 SLR_NOSEARCH
= 0x0010,
970 SLR_NOTRACK
= 0x0020,
971 SLR_NOLINKINFO
= 0x0040,
972 SLR_INVOKE_MSI
= 0x0080,
973 SLR_NO_UI_WITH_MSG_PUMP
= 0x0101,
978 SLGP_SHORTPATH
= 0x0001,
979 SLGP_UNCPRIORITY
= 0x0002,
980 SLGP_RAWPATH
= 0x0004,
984 [out, size_is(cch
)] LPSTR pszFile
,
986 [in, out, unique] WIN32_FIND_DATAA
*pfd
,
989 HRESULT GetIDList
( [out] LPITEMIDLIST
* ppidl
);
991 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
993 HRESULT GetDescription
(
994 [out, size_is(cch
)] LPSTR pszName
,
997 HRESULT SetDescription
( [in] LPCSTR pszName
);
999 HRESULT GetWorkingDirectory
(
1000 [out, size_is(cch
)] LPSTR pszDir
,
1003 HRESULT SetWorkingDirectory
( [in] LPCSTR pszDir
);
1005 HRESULT GetArguments
(
1006 [out, size_is(cch
)] LPSTR pszArgs
,
1009 HRESULT SetArguments
( [in] LPCSTR pszArgs
);
1011 HRESULT GetHotkey
( [out] WORD
*pwHotkey
);
1013 HRESULT SetHotkey
( [in] WORD wHotkey
);
1015 HRESULT GetShowCmd
( [out] int *piShowCmd
);
1017 HRESULT SetShowCmd
( [in] int iShowCmd
);
1019 HRESULT GetIconLocation
(
1020 [out, size_is(cch
)] LPSTR pszIconPath
,
1024 HRESULT SetIconLocation
(
1025 [in] LPCSTR pszIconPath
,
1028 HRESULT SetRelativePath
(
1029 [in] LPCSTR pszPathRel
,
1030 [in] DWORD dwReserved
);
1036 HRESULT SetPath
( [in] LPCSTR pszFile
);
1040 /*****************************************************************************
1041 * IShellLinkW interface
1045 uuid(000214f9
-0000-0000-c000
-000000000046),
1046 pointer_default(unique)
1048 interface IShellLinkW
: IUnknown
1051 [out, size_is(cch
)] LPWSTR pszFile
,
1053 [in, out] WIN32_FIND_DATAW
*pfd
,
1056 HRESULT GetIDList
( [out] LPITEMIDLIST
* ppidl
);
1058 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
1060 HRESULT GetDescription
(
1061 [out, size_is(cch
)] LPWSTR pszName
,
1064 HRESULT SetDescription
( [in] LPCWSTR pszName
);
1066 HRESULT GetWorkingDirectory
(
1067 [out, size_is(cch
)] LPWSTR pszDir
,
1070 HRESULT SetWorkingDirectory
( [in] LPCWSTR pszDir
);
1072 HRESULT GetArguments
(
1073 [out, size_is(cch
)] LPWSTR pszArgs
,
1076 HRESULT SetArguments
( [in] LPCWSTR pszArgs
);
1078 HRESULT GetHotkey
( [out] WORD
*pwHotkey
);
1080 HRESULT SetHotkey
( [in] WORD wHotkey
);
1082 HRESULT GetShowCmd
( [out] int *piShowCmd
);
1084 HRESULT SetShowCmd
( [in] int iShowCmd
);
1086 HRESULT GetIconLocation
(
1087 [out, size_is(cch
)] LPWSTR pszIconPath
,
1091 HRESULT SetIconLocation
(
1092 [in] LPCWSTR pszIconPath
,
1095 HRESULT SetRelativePath
(
1096 [in] LPCWSTR pszPathRel
,
1097 [in] DWORD dwReserved
);
1103 HRESULT SetPath
( [in] LPCWSTR pszFile
);
1106 cpp_quote
("#define IShellLink WINELIB_NAME_AW(IShellLink)")
1109 /*****************************************************************************
1110 * IShellExtInit interface
1114 uuid(000214e8
-0000-0000-c000
-000000000046),
1115 pointer_default(unique),
1118 interface IShellExtInit
: IUnknown
1120 typedef IShellExtInit
*LPSHELLEXTINIT
;
1123 [in] LPCITEMIDLIST pidlFolder
,
1124 [in] IDataObject
*pdtobj
,
1125 [in] HKEY hkeyProgID
);
1129 /*******************************************************************************/
1130 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
1131 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
1132 /* them here anyway. */
1133 /*******************************************************************************/
1136 #define MAX_PATH
260
1140 /*****************************************************************************
1141 * IPersistFolder3 interface
1145 uuid(cef04fdf
-fe72
-11d2
-87a5
-00c04f6837cf
),
1146 pointer_default(unique)
1148 interface IPersistFolder3
: IPersistFolder2
1152 LPITEMIDLIST pidlTargetFolder
;
1153 WCHAR szTargetParsingName
[MAX_PATH
];
1154 WCHAR szNetworkProvider
[MAX_PATH
];
1157 } PERSIST_FOLDER_TARGET_INFO
;
1159 HRESULT InitializeEx
(
1161 [in] LPCITEMIDLIST pidlRoot
,
1162 [in] const PERSIST_FOLDER_TARGET_INFO
*ppfti
);
1164 HRESULT GetFolderTargetInfo
( [out] PERSIST_FOLDER_TARGET_INFO
*ppfti
);
1168 /*****************************************************************************
1169 * IExtractIconA interface
1173 uuid(000214eb
-0000-0000-c000
-000000000046),
1174 pointer_default(unique),
1177 interface IExtractIconA
: IUnknown
1179 cpp_quote
("#define GIL_OPENICON 0x0001")
1180 cpp_quote
("#define GIL_FORSHELL 0x0002")
1181 cpp_quote
("#define GIL_ASYNC 0x0020")
1182 cpp_quote
("#define GIL_DEFAULTICON 0x0040")
1183 cpp_quote
("#define GIL_FORSHORTCUT 0x0080")
1185 cpp_quote
("#define GIL_SIMULATEDOC 0x0001")
1186 cpp_quote
("#define GIL_PERINSTANCE 0x0002")
1187 cpp_quote
("#define GIL_PERCLASS 0x0004")
1188 cpp_quote
("#define GIL_NOTFILENAME 0x0008")
1189 cpp_quote
("#define GIL_DONTCACHE 0x0010")
1191 typedef IExtractIconA
*LPEXTRACTICONA
;
1193 HRESULT GetIconLocation
(
1195 [out, size_is(cchMax
)] LPSTR szIconFile
,
1198 [out] UINT
*pwFlags
);
1201 [in] LPCSTR pszFile
,
1202 [in] UINT nIconIndex
,
1203 [out] HICON
*phiconLarge
,
1204 [out] HICON
*phiconSmall
,
1205 [in] UINT nIconSize
);
1209 /*****************************************************************************
1210 * IExtractIconW interface
1214 uuid(000214fa
-0000-0000-c000
-000000000046),
1215 pointer_default(unique),
1218 interface IExtractIconW
: IUnknown
1220 typedef IExtractIconW
*LPEXTRACTICONW
;
1222 HRESULT GetIconLocation
(
1224 [out, size_is(cchMax
)] LPWSTR szIconFile
,
1227 [out] UINT
*pwFlags
);
1230 [in] LPCWSTR pszFile
,
1231 [in] UINT nIconIndex
,
1232 [out] HICON
*phiconLarge
,
1233 [out] HICON
*phiconSmall
,
1234 [in] UINT nIconSize
);
1237 cpp_quote
("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1238 cpp_quote
("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1241 /*****************************************************************************
1242 * ICommDlgBrowser interface
1246 uuid(000214f1
-0000-0000-c000
-000000000046),
1247 pointer_default(unique)
1249 interface ICommDlgBrowser
: IUnknown
1251 cpp_quote
("#define CDBOSC_SETFOCUS 0x00000000")
1252 cpp_quote
("#define CDBOSC_KILLFOCUS 0x00000001")
1253 cpp_quote
("#define CDBOSC_SELCHANGE 0x00000002")
1254 cpp_quote
("#define CDBOSC_RENAME 0x00000003")
1255 cpp_quote
("#define CDBOSC_STATECHANGE 0x00000004")
1257 typedef ICommDlgBrowser
*LPCOMMDLGBROWSER
;
1259 HRESULT OnDefaultCommand
( [in] IShellView
*shv
);
1260 HRESULT OnStateChange
( [in] IShellView
*shv
, [in] ULONG uChange
);
1261 HRESULT IncludeObject
( [in] IShellView
*shv
, [in] LPCITEMIDLIST pidl
);
1265 /*****************************************************************************
1266 * ICommDlgBrowser2 interface
1270 uuid(10339516-2894-11D2
-9039-00C04F8EEB3E
),
1271 pointer_default(unique)
1273 interface ICommDlgBrowser2
: ICommDlgBrowser
1277 [in] IShellView
*ppshv
,
1278 [in] DWORD dwNotifyType
);
1280 HRESULT GetDefaultMenuText
(
1281 [in] IShellView
*ppshv
,
1282 [out, string, size_is(cchMax
)] LPWSTR pszText
,
1285 HRESULT GetViewFlags
(
1286 [out] DWORD
*pdwFlags
);
1290 /*****************************************************************************
1291 * ICommDlgBrowser3 interface
1295 uuid(C8AD25A1
-3294-41EE
-8165-71174BD01C57
),
1296 pointer_default(unique)
1298 interface ICommDlgBrowser3
: ICommDlgBrowser2
1301 HRESULT OnColumnClicked
(
1302 [in] IShellView
*ppshv
,
1305 HRESULT GetCurrentFilter
(
1306 [out, string, size_is(cchFileSpec
)] LPWSTR pszFileSpec
,
1307 [in] int cchFileSpec
);
1309 HRESULT OnPreviewCreated
(
1310 [in] IShellView
*ppshv
);
1313 /*****************************************************************************
1314 * IDockingWindow interface
1318 uuid(012dd920
-7b26
-11d0
-8ca9
-00a0c92dbfe8
)
1320 interface IDockingWindow
: IOleWindow
1326 [in] DWORD dwReserved
);
1328 HRESULT ResizeBorderDW
(
1329 [in] LPCRECT prcBorder
,
1330 [in] IUnknown
*punkToolbarSite
,
1331 [in] BOOL fReserved
);
1335 /*****************************************************************************
1336 * IDockingWindowFrame interface
1340 uuid(47d2657a
-7b27
-11d0
-8ca9
-00a0c92dbfe8
),
1341 pointer_default(unique),
1344 interface IDockingWindowFrame
: IOleWindow
1346 cpp_quote
("#define DWFRF_NORMAL 0x0000")
1347 cpp_quote
("#define DWFRF_DELETECONFIGDATA 0x0001")
1348 cpp_quote
("#define DWFAF_HIDDEN 0x0001")
1351 [in] IUnknown
*punkSrc
,
1352 [in] LPCWSTR pwszItem
,
1353 [in] DWORD dwAddFlags
);
1355 HRESULT RemoveToolbar
(
1356 [in] IUnknown
*punkSrc
,
1357 [in] DWORD dwRemoveFlags
);
1359 HRESULT FindToolbar
(
1360 [in] LPCWSTR pwszItem
,
1362 [out] LPVOID
*ppvObj
);
1366 /*****************************************************************************
1367 * IDragSourceHelper interface
1371 uuid(de5bf786
-477a
-11d2
-839d
-00c04fd918d0
),
1372 pointer_default(unique),
1375 interface IDragSourceHelper
: IUnknown
1381 HBITMAP hbmpDragImage
;
1382 COLORREF crColorKey
;
1383 } SHDRAGIMAGE
, *LPSHDRAGIMAGE
;
1385 HRESULT InitializeFromBitmap
(
1386 [in] LPSHDRAGIMAGE pshdi
,
1387 [in] IDataObject
*pDataObject
);
1389 HRESULT InitializeFromWindow
(
1392 [in] IDataObject
*pDataObject
);
1396 /*****************************************************************************
1397 * IDropTargetHelper interface
1401 uuid(4657278b
-411b
-11d2
-839a
-00c04fd918d0
),
1402 pointer_default(unique),
1405 interface IDropTargetHelper
: IUnknown
1408 [in] HWND hwndTarget
,
1409 [in] IDataObject
*pDataObject
,
1411 [in] DWORD dwEffect
);
1413 HRESULT DragLeave
();
1417 [in] DWORD dwEffect
);
1420 [in] IDataObject
*pDataObject
,
1422 [in] DWORD dwEffect
);
1424 HRESULT Show
( [in] BOOL fShow
);
1428 /*****************************************************************************
1429 * IContextMenu interface
1433 uuid(000214e4
-0000-0000-c000
-000000000046),
1434 pointer_default(unique),
1437 interface IContextMenu
: IUnknown
1439 cpp_quote
("#define CMF_NORMAL 0x00000000")
1440 cpp_quote
("#define CMF_DEFAULTONLY 0x00000001")
1441 cpp_quote
("#define CMF_VERBSONLY 0x00000002")
1442 cpp_quote
("#define CMF_EXPLORE 0x00000004")
1443 cpp_quote
("#define CMF_NOVERBS 0x00000008")
1444 cpp_quote
("#define CMF_CANRENAME 0x00000010")
1445 cpp_quote
("#define CMF_NODEFAULT 0x00000020")
1446 cpp_quote
("#define CMF_INCLUDESTATIC 0x00000040")
1447 cpp_quote
("#define CMF_EXTENDEDVERBS 0x00000100")
1448 cpp_quote
("#define CMF_RESERVED 0xffff0000")
1450 cpp_quote
("#define GCS_VERBA 0x00000000")
1451 cpp_quote
("#define GCS_HELPTEXTA 0x00000001")
1452 cpp_quote
("#define GCS_VALIDATEA 0x00000002")
1453 cpp_quote
("#define GCS_VERBW 0x00000004")
1454 cpp_quote
("#define GCS_HELPTEXTW 0x00000005")
1455 cpp_quote
("#define GCS_VALIDATEW 0x00000006")
1456 cpp_quote
("#define GCS_UNICODE 0x00000004")
1457 cpp_quote
("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1458 cpp_quote
("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1459 cpp_quote
("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1461 cpp_quote
("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1462 cpp_quote
("#define CMDSTR_VIEWLISTA \"ViewList\"")
1463 cpp_quote
("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1464 cpp_quote
("#if defined(__GNUC__)")
1465 cpp_quote
("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1466 cpp_quote
("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1467 cpp_quote
("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1468 cpp_quote
("#elif defined(_MSC_VER)")
1469 cpp_quote
("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1470 cpp_quote
("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1471 cpp_quote
("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1473 cpp_quote
("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1474 cpp_quote
("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1475 cpp_quote
("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1477 cpp_quote
("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1478 cpp_quote
("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1479 cpp_quote
("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1481 cpp_quote
("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1482 cpp_quote
("#define CMIC_MASK_ICON SEE_MASK_ICON")
1483 cpp_quote
("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1484 cpp_quote
("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1485 cpp_quote
("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1486 cpp_quote
("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1487 cpp_quote
("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1488 cpp_quote
("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1489 cpp_quote
("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1490 cpp_quote
("#define CMIC_MASK_NOASYNC SEE_MASK_NOASYNC")
1491 cpp_quote
("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1492 cpp_quote
("#define CMIC_MASK_PTINVOKE 0x20000000")
1493 cpp_quote
("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1494 cpp_quote
("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1495 cpp_quote
("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1497 typedef IContextMenu
*LPCONTEXTMENU
;
1499 typedef struct tagCMINVOKECOMMANDINFO
1505 LPCSTR lpParameters
;
1510 } CMINVOKECOMMANDINFO
, *LPCMINVOKECOMMANDINFO
;
1512 typedef struct tagCMInvokeCommandInfoEx
1518 LPCSTR lpParameters
;
1525 LPCWSTR lpParametersW
;
1526 LPCWSTR lpDirectoryW
;
1529 } CMINVOKECOMMANDINFOEX
, *LPCMINVOKECOMMANDINFOEX
;
1531 HRESULT QueryContextMenu
(
1533 [in] UINT indexMenu
,
1534 [in] UINT idCmdFirst
,
1535 [in] UINT idCmdLast
,
1538 HRESULT InvokeCommand
( [in] LPCMINVOKECOMMANDINFO lpici
);
1540 HRESULT GetCommandString
(
1541 [in] UINT_PTR idCmd
,
1543 [out] UINT
*pwReserved
,
1544 [out, size_is(cchMax
)] LPSTR pszName
,
1549 /*****************************************************************************
1550 * IContextMenu2 interface
1554 uuid(000214f4
-0000-0000-c000
-000000000046),
1555 pointer_default(unique),
1558 interface IContextMenu2
: IContextMenu
1560 typedef IContextMenu2
*LPCONTEXTMENU2
;
1562 HRESULT HandleMenuMsg
(
1565 [in] LPARAM lParam
);
1569 /*****************************************************************************
1570 * IContextMenu3 interface
1574 uuid(bcfce0a0
-ec17
-11d0
-8d10
-00a0c90f2719
),
1575 pointer_default(unique),
1578 interface IContextMenu3
: IContextMenu2
1580 typedef IContextMenu3
*LPCONTEXTMENU3
;
1582 HRESULT HandleMenuMsg2
(
1586 [out] LRESULT
*plResult
);
1592 uuid(3409e930
-5a39
-11d1
-83fa
-00a0c90dc849
),
1593 pointer_default(unique),
1596 interface IContextMenuCB
: IUnknown
1599 [in] IShellFolder
*psf
,
1600 [in] HWND hwndOwner
,
1601 [in] IDataObject
*pdtobj
,
1604 [in] LPARAM lParam
);
1607 /*****************************************************************************
1608 * IShellExecuteHookA interface
1612 uuid(000214f5
-0000-0000-c000
-000000000046),
1613 pointer_default(unique),
1616 interface IShellExecuteHookA
: IUnknown
1618 cpp_quote
("struct _SHELLEXECUTEINFOA;")
1620 [in, out] struct _SHELLEXECUTEINFOA
* pei
);
1624 /*****************************************************************************
1625 * IShellExecuteHookW interface
1629 uuid(000214fb
-0000-0000-c000
-000000000046),
1630 pointer_default(unique),
1633 interface IShellExecuteHookW
: IUnknown
1635 cpp_quote
("struct _SHELLEXECUTEINFOW;")
1637 [in, out] struct _SHELLEXECUTEINFOW
* pei
);
1640 /*****************************************************************************
1641 * IShellLinkDataList interface
1645 uuid(45e2b4ae
-b1c3
-11d0
-b92f
-00a0c90312e1
),
1646 pointer_default(unique)
1648 interface IShellLinkDataList
: IUnknown
1650 [local] HRESULT AddDataBlock
(
1651 [in] void *pDataBlock
);
1652 [local] HRESULT CopyDataBlock
(
1654 [out] void **ppDataBlock
);
1655 HRESULT RemoveDataBlock
(
1658 [out] DWORD
*pdwFlags
);
1660 [in] DWORD dwFlags
);
1664 /*****************************************************************************
1665 * IResolveShellLink interface
1669 uuid(5cd52983
-9449-11d2
-963a
-00c04f79adf0
),
1670 pointer_default(unique)
1672 interface IResolveShellLink
: IUnknown
1674 HRESULT ResolveShellLink
(
1675 [in] IUnknown
*punk
,
1681 /*****************************************************************************
1682 * IURLSearchHook interface
1686 uuid(ac60f6a0
-0fd9
-11d0
-99cb
-00c04fd64497
),
1687 pointer_default(unique),
1690 interface IURLSearchHook
: IUnknown
1693 [in, out] LPWSTR lpwszSearchURL
,
1694 [in] DWORD cchBufferSize
);
1698 /*****************************************************************************
1699 * ISearchContext interface
1703 uuid(09f656a2
-41af
-480c
-88f7
-16cc0d164615
),
1704 pointer_default(unique),
1707 interface ISearchContext
: IUnknown
1709 HRESULT GetSearchUrl
(
1710 [in] BSTR *pbstrSearchUrl
);
1711 HRESULT GetSearchText
(
1712 [in] BSTR *pbstrSearchText
);
1713 HRESULT GetSearchStyle
(
1714 [in] BSTR *pdwSearchStyle
);
1718 /*****************************************************************************
1719 * IURLSearchHook2 interface
1723 uuid(5ee44da4
-6d32
-46e3
-86bc
-07540dedd0e0
),
1724 pointer_default(unique),
1727 interface IURLSearchHook2
: IURLSearchHook
1729 HRESULT TranslateWithSearchContext
(
1730 [in, out] LPWSTR lpwszSearchURL
,
1731 [in] DWORD cchBufferSize
,
1732 [in] ISearchContext
*pSearchContext
);
1736 cpp_quote
("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1738 /*****************************************************************************
1739 * INewShortcutHookA interface
1743 uuid(000214e1
-0000-0000-c000
-000000000046),
1744 pointer_default(unique),
1747 interface INewShortcutHookA
: IUnknown
1749 HRESULT SetReferent
(
1750 [in] LPCSTR pcszReferent
,
1752 HRESULT GetReferent
(
1753 [out] LPSTR pcszReferent
,
1754 [in] int cchReferent
);
1756 [in] LPCSTR pcszReferent
);
1758 [out] LPSTR pcszReferent
,
1759 [in] int cchFolder
);
1761 [out] LPSTR pszName
,
1763 HRESULT GetExtension
(
1764 [out] LPSTR pszExtension
,
1765 [in] int cchExtension
);
1769 /*****************************************************************************
1770 * INewShortcutHookW interface
1774 uuid(000214f7
-0000-0000-c000
-000000000046),
1775 pointer_default(unique),
1778 interface INewShortcutHookW
: IUnknown
1780 HRESULT SetReferent
(
1781 [in] LPCWSTR pcszReferent
,
1783 HRESULT GetReferent
(
1784 [out] LPWSTR pcszReferent
,
1785 [in] int cchReferent
);
1787 [in] LPCWSTR pcszReferent
);
1789 [out] LPWSTR pcszReferent
,
1790 [in] int cchFolder
);
1792 [out] LPWSTR pszName
,
1794 HRESULT GetExtension
(
1795 [out] LPWSTR pszExtension
,
1796 [in] int cchExtension
);
1799 /*****************************************************************************
1800 * IRunnableTask interface
1804 uuid(85788d00
-6807-11d0
-b810
-00c04fd706ec
),
1805 pointer_default(unique),
1808 interface IRunnableTask
: IUnknown
1811 HRESULT Kill
([in] BOOL fWait
);
1817 /*****************************************************************************
1818 * IShellChangeNotify interface
1822 uuid(d82be2b1
-5764-11d0
-a96e
-00c04fd705a2
),
1823 pointer_default(unique),
1826 interface IShellChangeNotify
: IUnknown
1830 [in] LPCITEMIDLIST pidl1
,
1831 [in] LPCITEMIDLIST pidl2
);
1834 /*****************************************************************************
1835 * IFileSystemBindData interface
1839 uuid(01e18d10
-4d8b
-11d2
-855d
-006008059367),
1840 pointer_default(unique),
1843 interface IFileSystemBindData
: IUnknown
1845 HRESULT SetFindData
(
1846 [in] const WIN32_FIND_DATAW
*pfd
);
1847 HRESULT GetFindData
(
1848 [out] WIN32_FIND_DATAW
*pfd
);
1851 /*****************************************************************************
1852 * ITaskbarList interface
1856 uuid(56FDF342
-FD6D
-11d0
-958A
-006097C9A090
),
1857 pointer_default(unique)
1859 interface ITaskbarList
: IUnknown
1869 HRESULT ActivateTab
(
1872 HRESULT SetActiveAlt
(
1876 /*****************************************************************************
1877 * ITaskbarList2 interface
1881 uuid(602D4995
-B13A
-429B
-A66E
-1935E44F4317
),
1882 pointer_default(unique)
1884 interface ITaskbarList2
: ITaskbarList
1886 HRESULT MarkFullscreenWindow
(
1888 [in] BOOL fullscreen
);
1891 cpp_quote
("#ifdef MIDL_PASS")
1892 typedef IUnknown
* HIMAGELIST
;
1895 typedef [v1_enum] enum THUMBBUTTONFLAGS
{
1896 THBF_ENABLED
= 0x0000,
1897 THBF_DISABLED
= 0x0001,
1898 THBF_DISMISSONCLICK
= 0x0002,
1899 THBF_NOBACKGROUND
= 0x0004,
1900 THBF_HIDDEN
= 0x0008,
1901 THBF_NONINTERACTIVE
= 0x0010
1904 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONFLAGS)")
1906 typedef [v1_enum] enum THUMBBUTTONMASK
{
1907 THB_BITMAP
= 0x0001,
1909 THB_TOOLTIP
= 0x0004,
1913 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONMASK)")
1915 cpp_quote
("#include <pshpack8.h>")
1916 typedef struct THUMBBUTTON
{
1917 THUMBBUTTONMASK dwMask
;
1922 THUMBBUTTONFLAGS dwFlags
;
1923 } THUMBBUTTON
, *LPTHUMBBUTTON
;
1924 cpp_quote
("#include <poppack.h>")
1927 uuid(ea1afb91
-9e28
-4b86
-90e9
-9e9f8a5eefaf
),
1930 interface ITaskbarList3
: ITaskbarList2
1932 typedef [v1_enum] enum TBPFLAG
{
1933 TBPF_NOPROGRESS
= 0x0000,
1934 TBPF_INDETERMINATE
= 0x0001,
1935 TBPF_NORMAL
= 0x0002,
1936 TBPF_ERROR
= 0x0004,
1937 TBPF_PAUSED
= 0x0008
1940 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(TBPFLAG)")
1942 HRESULT SetProgressValue
(
1944 [in] ULONGLONG ullCompleted
,
1945 [in] ULONGLONG ullTotal
);
1947 HRESULT SetProgressState
(
1949 [in] TBPFLAG tbpFlags
);
1951 HRESULT RegisterTab
(
1955 HRESULT UnregisterTab
([in] HWND hwndTab
);
1957 HRESULT SetTabOrder
(
1959 [in] HWND hwndInsertBefore
);
1961 HRESULT SetTabActive
(
1964 [in] DWORD dwReserved
);
1966 HRESULT ThumbBarAddButtons
(
1969 [in, size_is(cButtons
)] LPTHUMBBUTTON pButton
);
1971 HRESULT ThumbBarUpdateButtons
(
1974 [in, size_is(cButtons
)] LPTHUMBBUTTON pButton
);
1976 HRESULT ThumbBarSetImageList
(
1978 [in] HIMAGELIST himl
);
1980 HRESULT SetOverlayIcon
(
1983 [in, unique, string] LPCWSTR pszDescription
);
1985 HRESULT SetThumbnailTooltip
(
1987 [in, unique, string] LPCWSTR pszTip
);
1989 HRESULT SetThumbnailClip
(
1991 [in] RECT
*prcClip
);
1995 uuid(c43dc798
-95d1
-4bea
-9030-bb99e2983a1a
),
1998 interface ITaskbarList4
: ITaskbarList3
2000 typedef [v1_enum] enum STPFLAG
{
2002 STPF_USEAPPTHUMBNAILALWAYS
= 0x0001,
2003 STPF_USEAPPTHUMBNAILWHENACTIVE
= 0x0002,
2004 STPF_USEAPPPEEKALWAYS
= 0x0004,
2005 STPF_USEAPPPEEKWHENACTIVE
= 0x0008
2008 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(STPFLAG)")
2010 HRESULT SetTabProperties
(
2012 [in] STPFLAG stpFlags
);
2015 /*****************************************************************************
2016 * IAutoCompleteDropDown interface
2020 uuid(3CD141F4
-3C6A
-11d2
-BCAA
-00C04FD929DB
),
2021 pointer_default(unique)
2023 interface IAutoCompleteDropDown
: IUnknown
2025 cpp_quote
("#define ACDD_VISIBLE 0x0001")
2027 HRESULT GetDropDownStatus
(
2028 [out] DWORD
*pdwFlags
,
2029 [out, string] LPWSTR
*ppwszString
);
2031 HRESULT ResetEnumerator
();
2036 uuid(cb728b20
-f786
-11ce
-92ad
-00aa00a74cd0
),
2037 pointer_default(unique)
2039 interface IProfferService
: IUnknown
2041 HRESULT ProfferService
(
2042 [in] REFGUID service
,
2043 [in] IServiceProvider
*pService
,
2044 [out] DWORD
*pCookie
);
2046 HRESULT RevokeService
([in] DWORD cookie
);
2049 /*****************************************************************************
2050 * IExplorerBrowserEvents interface
2054 uuid(361BBDC7
-E6EE
-4E13
-BE58
-58E2240C810F
)
2056 interface IExplorerBrowserEvents
: IUnknown
2058 HRESULT OnNavigationPending
(
2059 [in] PCIDLIST_ABSOLUTE pidlFolder
);
2061 HRESULT OnViewCreated
(
2062 [in] IShellView
*psv
);
2064 HRESULT OnNavigationComplete
(
2065 [in] PCIDLIST_ABSOLUTE pidlFolder
);
2067 HRESULT OnNavigationFailed
(
2068 [in] PCIDLIST_ABSOLUTE pidlFolder
);
2071 typedef GUID EXPLORERPANE
;
2072 typedef EXPLORERPANE
*REFEXPLORERPANE
;
2074 cpp_quote
("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
2076 /*****************************************************************************
2077 * IExplorerPaneVisibility interface
2081 uuid(E07010EC
-BC17
-44C0
-97B0
-46C7C95B9EDC
)
2083 interface IExplorerPaneVisibility
: IUnknown
2085 typedef enum tagEXPLORERPANESTATE
{
2087 EPS_DEFAULT_ON
= 0x1,
2088 EPS_DEFAULT_OFF
= 0x2,
2089 EPS_STATE_MASK
= 0xffff,
2090 EPS_INITIALSTATE
= 0x10000,
2092 } EXPLORERPANESTATE
;
2094 HRESULT GetPaneState
(
2095 [in] REFEXPLORERPANE ep
,
2096 [out] EXPLORERPANESTATE
*peps
);
2099 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS
{
2101 EBF_SELECTFROMDATAOBJECT
= 0x100,
2102 EBF_NODROPTARGET
= 0x200
2103 } EXPLORER_BROWSER_FILL_FLAGS
;
2105 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS
{
2107 EBO_NAVIGATEONCE
= 0x01,
2108 EBO_SHOWFRAMES
= 0x02,
2109 EBO_ALWAYSNAVIGATE
= 0x04,
2110 EBO_NOTRAVELLOG
= 0x08,
2111 EBO_NOWRAPPERWINDOW
= 0x10,
2112 EBO_HTMLSHAREPOINTVIEW
= 0x20
2113 } EXPLORER_BROWSER_OPTIONS
;
2115 cpp_quote
("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
2117 /*****************************************************************************
2118 * IExplorerBrowser interface
2122 uuid(DFD3B6B5
-C10C
-4BE9
-85F6
-A66969F402F6
),
2123 pointer_default(unique)
2125 interface IExplorerBrowser
: IUnknown
2128 [local] HRESULT Initialize
(
2129 [in] HWND hwndParent
,
2130 [in] const RECT
*prc
,
2131 [in, unique] const FOLDERSETTINGS
*pfs
);
2135 [local] HRESULT SetRect
(
2136 [in,out,unique] HDWP
*phdwp
,
2137 [in] RECT rcBrowser
);
2139 HRESULT SetPropertyBag
(
2140 [in, string] LPCWSTR pszPropertyBag
);
2142 HRESULT SetEmptyText
(
2143 [in, string] LPCWSTR pszEmptyText
);
2145 HRESULT SetFolderSettings
(
2146 [in] const FOLDERSETTINGS
*pfs
);
2149 [in] IExplorerBrowserEvents
*psbe
,
2150 [out] DWORD
*pdwCookie
);
2153 [in] DWORD dwCookie
);
2156 [in] EXPLORER_BROWSER_OPTIONS dwFlag
);
2159 [out] EXPLORER_BROWSER_OPTIONS
*pdwFlag
);
2161 HRESULT BrowseToIDList
(
2162 [in] PCUIDLIST_RELATIVE pidl
,
2165 HRESULT BrowseToObject
(
2166 [in] IUnknown
*punk
,
2169 HRESULT FillFromObject
(
2170 [in] IUnknown
*punk
,
2171 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags
);
2173 HRESULT RemoveAll
();
2175 HRESULT GetCurrentView
(
2177 [out, iid_is(riid
)] void **ppv
);
2180 /*****************************************************************************
2181 * INameSpaceTreeControl interface
2185 uuid(028212A3
-B627
-47E9
-8856-C14265554E4F
)
2187 interface INameSpaceTreeControl
: IUnknown
2189 [v1_enum] enum _NSTCSTYLE
{
2190 NSTCS_HASEXPANDOS
= 0x00000001,
2191 NSTCS_HASLINES
= 0x00000002,
2192 NSTCS_SINGLECLICKEXPAND
= 0x00000004,
2193 NSTCS_FULLROWSELECT
= 0x00000008,
2194 NSTCS_SPRINGEXPAND
= 0x00000010,
2195 NSTCS_HORIZONTALSCROLL
= 0x00000020,
2196 NSTCS_ROOTHASEXPANDO
= 0x00000040,
2197 NSTCS_SHOWSELECTIONALWAYS
= 0x00000080,
2198 NSTCS_NOINFOTIP
= 0x00000200,
2199 NSTCS_EVENHEIGHT
= 0x00000400,
2200 NSTCS_NOREPLACEOPEN
= 0x00000800,
2201 NSTCS_DISABLEDRAGDROP
= 0x00001000,
2202 NSTCS_NOORDERSTREAM
= 0x00002000,
2203 NSTCS_RICHTOOLTIP
= 0x00004000,
2204 NSTCS_BORDER
= 0x00008000,
2205 NSTCS_NOEDITLABELS
= 0x00010000,
2206 NSTCS_TABSTOP
= 0x00020000,
2207 NSTCS_FAVORITESMODE
= 0x00080000,
2208 NSTCS_AUTOHSCROLL
= 0x00100000,
2209 NSTCS_FADEINOUTEXPANDOS
= 0x00200000,
2210 NSTCS_EMPTYTEXT
= 0x00400000,
2211 NSTCS_CHECKBOXES
= 0x00800000,
2212 NSTCS_PARTIALCHECKBOXES
= 0x01000000,
2213 NSTCS_EXCLUSIONCHECKBOXES
= 0x02000000,
2214 NSTCS_DIMMEDCHECKBOXES
= 0x04000000,
2215 NSTCS_NOINDENTCHECKS
= 0x08000000,
2216 NSTCS_ALLOWJUNCTIONS
= 0x10000000,
2217 NSTCS_SHOWTABSBUTTON
= 0x20000000,
2218 NSTCS_SHOWDELETEBUTTON
= 0x40000000,
2219 NSTCS_SHOWREFRESHBUTTON
= (int)0x80000000
2221 typedef DWORD NSTCSTYLE
;
2223 [v1_enum] enum _NSTCROOTSTYLE
{
2224 NSTCRS_VISIBLE
= 0x0000,
2225 NSTCRS_HIDDEN
= 0x0001,
2226 NSTCRS_EXPANDED
= 0x0002
2228 typedef DWORD NSTCROOTSTYLE
;
2230 [v1_enum] enum _NSTCITEMSTATE
{
2231 NSTCIS_NONE
= 0x0000,
2232 NSTCIS_SELECTED
= 0x0001,
2233 NSTCIS_EXPANDED
= 0x0002,
2234 NSTCIS_BOLD
= 0x0004,
2235 NSTCIS_DISABLED
= 0x0008,
2236 NSTCIS_SELECTEDNOEXPAND
= 0x0010
2238 typedef DWORD NSTCITEMSTATE
;
2240 typedef [v1_enum] enum NSTCGNI
{
2242 NSTCGNI_NEXTVISIBLE
= 1,
2244 NSTCGNI_PREVVISIBLE
= 3,
2247 NSTCGNI_FIRSTVISIBLE
= 6,
2248 NSTCGNI_LASTVISIBLE
= 7
2252 [in] HWND hwndParent
,
2253 [in, unique] RECT
*prc
,
2254 [in] NSTCSTYLE nstcsFlags
);
2257 [in] IUnknown
*punk
,
2258 [out] DWORD
*pdwCookie
);
2260 HRESULT TreeUnadvise
(
2261 [in] DWORD dwCookie
);
2264 [in] IShellItem
*psiRoot
,
2265 [in] SHCONTF grfEnumFlags
,
2266 [in] NSTCROOTSTYLE grfRootStyle
,
2267 [in, unique] IShellItemFilter
*pif
);
2271 [in] IShellItem
*psiRoot
,
2272 [in] SHCONTF grfEnumFlags
,
2273 [in] NSTCROOTSTYLE grfRootStyle
,
2274 [in, unique] IShellItemFilter
*pif
);
2277 [in] IShellItem
*psiRoot
);
2279 HRESULT RemoveAllRoots
();
2281 HRESULT GetRootItems
(
2282 [out] IShellItemArray
**ppsiaRootItems
);
2284 HRESULT SetItemState
(
2285 [in] IShellItem
*psi
,
2286 [in] NSTCITEMSTATE nstcisMask
,
2287 [in] NSTCITEMSTATE nstcisFlags
);
2289 HRESULT GetItemState
(
2290 [in] IShellItem
*psi
,
2291 [in] NSTCITEMSTATE nstcismask
,
2292 [out] NSTCITEMSTATE
*pnstcisFlags
);
2294 HRESULT GetSelectedItems
(
2295 [out] IShellItemArray
**psiaItems
);
2297 HRESULT GetItemCustomState
(
2298 [in] IShellItem
*psi
,
2299 [out] int *piStateNumber
);
2301 HRESULT SetItemCustomState
(
2302 [in] IShellItem
*psi
,
2303 [in] int iStateNumber
);
2305 HRESULT EnsureItemVisible
(
2306 [in] IShellItem
*psi
);
2309 [in, string] LPCWSTR pszTheme
);
2311 HRESULT GetNextItem
(
2312 [in, unique] IShellItem
*psi
,
2313 [in] NSTCGNI nstcgi
,
2314 [out] IShellItem
**ppsiNext
);
2318 [out] IShellItem
**ppsiOut
);
2320 HRESULT GetItemRect
(
2321 [in] IShellItem
*psi
,
2324 HRESULT CollapseAll
();
2327 /*****************************************************************************
2328 * INameSpaceTreeControl2 interface
2332 uuid(7CC7AED8
-290E-49BC
-8945-C1401CC9306C
)
2334 interface INameSpaceTreeControl2
: INameSpaceTreeControl
2336 typedef [v1_enum] enum NSTCSTYLE2
{
2337 NSTCS2_DEFAULT
= 0x00,
2338 NSTCS2_INTERRUPTNOTIFICATIONS
= 0x01,
2339 NSTCS2_SHOWNULLSPACEMENU
= 0x02,
2340 NSTCS2_DISPLAYPADDING
= 0x04,
2341 NSTCS2_DISPLAYPINNEDONLY
= 0x08,
2342 NTSCS2_NOSINGLETONAUTOEXPAND
= 0x10, /* The apparent typo here is */
2343 NTSCS2_NEVERINSERTNONENUMERATED
= 0x20 /* present also in the Win SDK */
2345 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(NSTCSTYLE2)")
2347 HRESULT SetControlStyle
(
2348 [in] NSTCSTYLE nstcsMask
,
2349 [in] NSTCSTYLE nstcsStyle
);
2351 HRESULT GetControlStyle
(
2352 [in] NSTCSTYLE nstcsMask
,
2353 [out] NSTCSTYLE
*pnstcsStyle
);
2355 HRESULT SetControlStyle2
(
2356 [in] NSTCSTYLE2 nstcsMask
,
2357 [in] NSTCSTYLE2 nstcsStyle
);
2359 HRESULT GetControlStyle2
(
2360 [in] NSTCSTYLE2 nstcsMask
,
2361 [out] NSTCSTYLE2
*pnstcsStyle
);
2364 /*****************************************************************************
2365 * INameSpaceTreeControlEvents interface
2370 uuid(93D77985
-B3D8
-4484-8318-672CDDA002CE
),
2373 interface INameSpaceTreeControlEvents
: IUnknown
2375 [v1_enum] enum _NSTCEHITTEST
{
2376 NSTCEHT_NOWHERE
= 0x0001,
2377 NSTCEHT_ONITEMICON
= 0x0002,
2378 NSTCEHT_ONITEMLABEL
= 0x0004,
2379 NSTCEHT_ONITEMIDENT
= 0x0008,
2380 NSTCEHT_ONITEMBUTTON
= 0x0010,
2381 NSTCEHT_ONITEMRIGHT
= 0x0020,
2382 NSTCEHT_ONITEMSTATEICON
= 0x0040,
2383 NSTCEHT_ONITEM
= 0x0046,
2384 NSTCEHT_ONITEMTABBUTTON
= 0x1000
2386 typedef DWORD NSTCEHITTEST
;
2388 [v1_enum] enum _NSTCECLICKTYPE
{
2389 NSTCECT_LBUTTON
= 0x1,
2390 NSTCECT_MBUTTON
= 0x2,
2391 NSTCECT_RBUTTON
= 0x3,
2392 NSTCECT_BUTTON
= 0x3,
2393 NSTCECT_DBLCLICK
= 0x4
2395 typedef DWORD NSTCECLICKTYPE
;
2397 HRESULT OnItemClick
(
2398 [in] IShellItem
*psi
,
2399 [in] NSTCEHITTEST nstceHitTest
,
2400 [in] NSTCECLICKTYPE nstceClickType
);
2402 HRESULT OnPropertyItemCommit
(
2403 [in] IShellItem
*psi
);
2405 HRESULT OnItemStateChanging
(
2406 [in] IShellItem
*psi
,
2407 [in] NSTCITEMSTATE nstcisMask
,
2408 [in] NSTCITEMSTATE nstcisState
);
2410 HRESULT OnItemStateChanged
(
2411 [in] IShellItem
*psi
,
2412 [in] NSTCITEMSTATE nstcisMask
,
2413 [in] NSTCITEMSTATE nstcisState
);
2415 HRESULT OnSelectionChanged
(
2416 [in] IShellItemArray
*psiaSelection
);
2418 HRESULT OnKeyboardInput
(
2421 [in] LPARAM lParam
);
2423 HRESULT OnBeforeExpand
(
2424 [in] IShellItem
*psi
);
2426 HRESULT OnAfterExpand
(
2427 [in] IShellItem
*psi
);
2429 HRESULT OnBeginLabelEdit
(
2430 [in] IShellItem
*psi
);
2432 HRESULT OnEndLabelEdit
(
2433 [in] IShellItem
*psi
);
2435 HRESULT OnGetToolTip
(
2436 [in] IShellItem
*psi
,
2437 [out, string, size_is(cchTip
)] LPWSTR pszTip
,
2440 HRESULT OnBeforeItemDelete
(
2441 [in] IShellItem
*psi
);
2443 HRESULT OnItemAdded
(
2444 [in] IShellItem
*psi
,
2447 HRESULT OnItemDeleted
(
2448 [in] IShellItem
*psi
,
2451 HRESULT OnBeforeContextMenu
(
2452 [in, unique] IShellItem
*psi
,
2454 [out, iid_is(riid
)] void **ppv
);
2456 HRESULT OnAfterContextMenu
(
2457 [in] IShellItem
*psi
,
2458 [in] IContextMenu
*pcmIn
,
2460 [out, iid_is(riid
)] void **ppv
);
2462 HRESULT OnBeforeStateImageChange
(
2463 [in] IShellItem
*psi
);
2465 HRESULT OnGetDefaultIconIndex
(
2466 [in] IShellItem
*psi
,
2467 [out] int *piDefaultIcon
,
2468 [out] int *piOpenIcon
);
2471 /*****************************************************************************
2472 * INameSpaceTreeControlCustomDraw interface
2476 uuid(2D3BA758
-33EE
-42D5
-BB7B
-5F3431D86C78
),
2480 interface INameSpaceTreeControlCustomDraw
: IUnknown
2482 typedef struct NSTCCUSTOMDRAW
2486 NSTCITEMSTATE nstcis
;
2497 [out] LRESULT
*plres
);
2503 HRESULT ItemPrePaint
(
2506 [in, out] COLORREF
*pclrText
,
2507 [in, out] COLORREF
*pclrTextBk
,
2508 [out] LRESULT
*plres
);
2510 HRESULT ItemPostPaint
(
2513 [in] NSTCCUSTOMDRAW
*pnstccdItem
);
2516 /*****************************************************************************
2517 * INameSpaceTreeControlDropHandler interface
2521 uuid(F9C665D6
-C2F2
-4C19
-BF33
-8322D7352F51
),
2524 interface INameSpaceTreeControlDropHandler
: IUnknown
2526 HRESULT OnDragEnter
(
2527 [in, unique] IShellItem
*psiOver
,
2528 [in] IShellItemArray
*psiaData
,
2529 [in] BOOL fOutsideSource
,
2530 [in] DWORD grfKeyState
,
2531 [in, out] DWORD
*pdwEffect
);
2534 [in, unique] IShellItem
*psiOver
,
2535 [in] IShellItemArray
*psiaData
,
2536 [in] DWORD grfKeyState
,
2537 [in, out] DWORD
*pdwEffect
);
2539 HRESULT OnDragPosition
(
2540 [in, unique] IShellItem
*psiOver
,
2541 [in] IShellItemArray
*psiaData
,
2542 [in] int iNewPosition
,
2543 [in] int iOldPosition
);
2546 [in, unique] IShellItem
*psiOver
,
2547 [in] IShellItemArray
*psiaData
,
2549 [in] DWORD grfKeyState
,
2550 [in, out] DWORD
*pdwEffect
);
2552 HRESULT OnDropPosition
(
2553 [in, unique] IShellItem
*psiOver
,
2554 [in] IShellItemArray
*psiaData
,
2555 [in] int iNewPosition
,
2556 [in] int iOldPosition
);
2558 HRESULT OnDragLeave
(
2559 [in, unique] IShellItem
*psiOver
);
2561 cpp_quote
("#define NSTCDHPOS_ONTOP -1")
2563 interface IFileDialog
;
2565 typedef [v1_enum] enum FDE_OVERWRITE_RESPONSE
2570 } FDE_OVERWRITE_RESPONSE
;
2572 typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
2577 } FDE_SHAREVIOLATION_RESPONSE
;
2579 /*****************************************************************************
2580 * IFileDialogEvents interface
2584 uuid(973510DB
-7D7F
-452B
-8975-74A85828D354
),
2585 pointer_default(unique)
2587 interface IFileDialogEvents
: IUnknown
2590 [in] IFileDialog
*pfd
);
2592 HRESULT OnFolderChanging
(
2593 [in] IFileDialog
*pfd
,
2594 [in] IShellItem
*psiFolder
);
2596 HRESULT OnFolderChange
(
2597 [in] IFileDialog
*pfd
);
2599 HRESULT OnSelectionChange
(
2600 [in] IFileDialog
*pfd
);
2602 HRESULT OnShareViolation
(
2603 [in] IFileDialog
*pfd
,
2604 [in] IShellItem
*psi
,
2605 [out] FDE_SHAREVIOLATION_RESPONSE
*pResponse
);
2607 HRESULT OnTypeChange
(
2608 [in] IFileDialog
*pfd
);
2610 HRESULT OnOverwrite
(
2611 [in] IFileDialog
*pfd
,
2612 [in] IShellItem
*psi
,
2613 [out] FDE_OVERWRITE_RESPONSE
*pResponse
);
2616 /*****************************************************************************
2617 * IModalWindow interface
2621 uuid(B4DB1657
-70D7
-485E-8E3E
-6FCB5A5C1802
),
2622 pointer_default(unique)
2624 interface IModalWindow
: IUnknown
2628 [in, unique, annotation
("__in_opt")] HWND hwndOwner
);
2632 [in, unique] HWND hwndOwner
);
2635 typedef [v1_enum] enum FDAP
2641 /*****************************************************************************
2642 * IFileDialog interface
2646 uuid(42F85136
-DB7E
-439C
-85F1
-E4075D135FC8
),
2647 pointer_default(unique)
2649 interface IFileDialog
: IModalWindow
2651 [v1_enum] enum _FILEOPENDIALOGOPTIONS
2653 FOS_OVERWRITEPROMPT
= 0x00000002,
2654 FOS_STRICTFILETYPES
= 0x00000004,
2655 FOS_NOCHANGEDIR
= 0x00000008,
2656 FOS_PICKFOLDERS
= 0x00000020,
2657 FOS_FORCEFILESYSTEM
= 0x00000040,
2658 FOS_ALLNONSTORAGEITEMS
= 0x00000080,
2659 FOS_NOVALIDATE
= 0x00000100,
2660 FOS_ALLOWMULTISELECT
= 0x00000200,
2661 FOS_PATHMUSTEXIST
= 0x00000800,
2662 FOS_FILEMUSTEXIST
= 0x00001000,
2663 FOS_CREATEPROMPT
= 0x00002000,
2664 FOS_SHAREAWARE
= 0x00004000,
2665 FOS_NOREADONLYRETURN
= 0x00008000,
2666 FOS_NOTESTFILECREATE
= 0x00010000,
2667 FOS_HIDEMRUPLACES
= 0x00020000,
2668 FOS_HIDEPINNEDPLACES
= 0x00040000,
2669 FOS_NODEREFERENCELINKS
= 0x00100000,
2670 FOS_DONTADDTORECENT
= 0x02000000,
2671 FOS_FORCESHOWHIDDEN
= 0x10000000,
2672 FOS_DEFAULTNOMINIMODE
= 0x20000000,
2673 FOS_FORCEPREVIEWPANEON
= 0x40000000
2675 typedef DWORD FILEOPENDIALOGOPTIONS
;
2677 HRESULT SetFileTypes
(
2678 [in] UINT cFileTypes
,
2679 [in, size_is(cFileTypes
)] const COMDLG_FILTERSPEC
*rgFilterSpec
);
2681 HRESULT SetFileTypeIndex
(
2682 [in] UINT iFileType
);
2684 HRESULT GetFileTypeIndex
(
2685 [out] UINT
*piFileType
);
2688 [in] IFileDialogEvents
*pfde
,
2689 [out] DWORD
*pdwCookie
);
2692 [in] DWORD dwCookie
);
2695 [in] FILEOPENDIALOGOPTIONS fos
);
2698 [in] FILEOPENDIALOGOPTIONS
*pfos
);
2700 HRESULT SetDefaultFolder
(
2701 [in] IShellItem
*psi
);
2704 [in] IShellItem
*psi
);
2707 [out] IShellItem
**ppsi
);
2709 HRESULT GetCurrentSelection
(
2710 [out] IShellItem
**ppsi
);
2712 HRESULT SetFileName
(
2713 [in, string] LPCWSTR pszName
);
2715 HRESULT GetFileName
(
2716 [out, string] LPWSTR
*pszName
);
2719 [in, string] LPCWSTR pszTitle
);
2721 HRESULT SetOkButtonLabel
(
2722 [in, string] LPCWSTR pszText
);
2724 HRESULT SetFileNameLabel
(
2725 [in, string] LPCWSTR pszLabel
);
2728 [out] IShellItem
**ppsi
);
2731 [in] IShellItem
*psi
,
2734 HRESULT SetDefaultExtension
(
2735 [in, string] LPCWSTR pszDefaultExtension
);
2740 HRESULT SetClientGuid
(
2743 HRESULT ClearClientData
();
2746 [in] IShellItemFilter
*pFilter
);
2749 /*****************************************************************************
2750 * IFileDialog2 interface
2754 uuid(61744FC7
-85B5
-4791-A9B0
-272276309B13
),
2755 pointer_default(unique)
2757 interface IFileDialog2
: IFileDialog
2759 HRESULT SetCancelButtonLabel
(
2760 [in] LPCWSTR pszLabel
);
2762 HRESULT SetNavigationRoot
(
2763 [in] IShellItem
*psi
);
2766 /*****************************************************************************
2767 * IFileOperationProgressSink interface
2771 uuid(04B0F1A7
-9490-44BC
-96E1
-4296A31252E2
),
2772 pointer_default(unique)
2774 interface IFileOperationProgressSink
: IUnknown
2776 HRESULT StartOperations
();
2778 HRESULT FinishOperations
(
2779 [in] HRESULT hrResult
);
2781 HRESULT PreRenameItem
(
2783 [in] IShellItem
*psiItem
,
2784 [in, unique, string] LPCWSTR pszNewName
);
2786 HRESULT PostRenameItem
(
2788 [in] IShellItem
*psiItem
,
2789 [in, string] LPCWSTR pszNewName
,
2790 [in] HRESULT hrRename
,
2791 [in] IShellItem
*psiNewlyCreated
);
2793 HRESULT PreMoveItem
(
2795 [in] IShellItem
*psiItem
,
2796 [in] IShellItem
*psiDestinationFolder
,
2797 [in, unique, string] LPCWSTR pszNewName
);
2799 HRESULT PostMoveItem
(
2801 [in] IShellItem
*psiItem
,
2802 [in] IShellItem
*psiDestinationFolder
,
2803 [in, unique, string] LPCWSTR pszNewName
,
2804 [in] HRESULT hrMove
,
2805 [in] IShellItem
*psiNewlyCreated
);
2807 HRESULT PreCopyItem
(
2809 [in] IShellItem
*psiItem
,
2810 [in] IShellItem
*psiDestinationFolder
,
2811 [in, unique, string] LPCWSTR pszNewName
);
2813 HRESULT PostCopyItem
(
2815 [in] IShellItem
*psiItem
,
2816 [in] IShellItem
*psiDestinationFolder
,
2817 [in, unique, string] LPCWSTR pszNewName
,
2818 [in] HRESULT hrCopy
,
2819 [in] IShellItem
*psiNewlyCreated
);
2821 HRESULT PreDeleteItem
(
2823 [in] IShellItem
*psiItem
);
2825 HRESULT PostDeleteItem
(
2827 [in] IShellItem
*psiItem
,
2828 [in] HRESULT hrDelete
,
2829 [in] IShellItem
*psiNewlyCreated
);
2833 [in] IShellItem
*psiDestinationFolder
,
2834 [in, unique, string] LPCWSTR pszNewName
);
2836 HRESULT PostNewItem
(
2838 [in] IShellItem
*psiDestinationFolder
,
2839 [in, unique, string] LPCWSTR pszNewName
,
2840 [in, unique, string] LPCWSTR pszTemplateName
,
2841 [in] DWORD dwFileAttributes
,
2843 [in] IShellItem
*psiNewItem
);
2845 HRESULT UpdateProgress
(
2846 [in] UINT iWorkTotal
,
2847 [in] UINT iWorkSoFar
);
2849 HRESULT ResetTimer
();
2851 HRESULT PauseTimer
();
2853 HRESULT ResumeTimer
();
2856 /*****************************************************************************
2857 * IFileSaveDialog interface
2861 uuid(84BCCD23
-5FDE
-4CDB
-AEA4
-AF64B83D78AB
),
2862 pointer_default(unique)
2864 interface IFileSaveDialog
: IFileDialog
2866 HRESULT SetSaveAsItem
(
2867 [in] IShellItem
*psi
);
2869 HRESULT SetProperties
(
2870 [in] IPropertyStore
*pStore
);
2872 HRESULT SetCollectedProperties
(
2873 [in] IPropertyDescriptionList
*pList
,
2874 [in] BOOL fAppendDefault
);
2876 HRESULT GetProperties
(
2877 [in] IPropertyStore
**ppStore
);
2879 HRESULT ApplyProperties
(
2880 [in] IShellItem
*psi
,
2881 [in] IPropertyStore
*pStore
,
2882 [in, unique] HWND hwnd
,
2883 [in, unique] IFileOperationProgressSink
*pSink
);
2887 /*****************************************************************************
2888 * IFileOpenDialog interface
2892 uuid(D57C7288
-D4AD
-4768-BE02
-9D969532D960
),
2893 pointer_default(unique)
2895 interface IFileOpenDialog
: IFileDialog
2898 [out] IShellItemArray
**ppenum
);
2900 HRESULT GetSelectedItems
(
2901 [out] IShellItemArray
**ppsai
);
2904 typedef [v1_enum] enum CDCONTROLSTATEF
2906 CDCS_INACTIVE
= 0x0,
2909 CDCS_ENABLEDVISIBLE
= 0x3
2911 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
2912 /*****************************************************************************
2913 * IFileDialogCustomize interface
2917 uuid(E6FDD21A
-163F
-4975-9C8C
-A69F1BA37034
),
2918 pointer_default(unique)
2920 interface IFileDialogCustomize
: IUnknown
2922 HRESULT EnableOpenDropDown
(
2923 [in] DWORD dwIDCtl
);
2927 [in, string] LPCWSTR pszLabel
);
2929 HRESULT AddPushButton
(
2931 [in, string] LPCWSTR pszLabel
);
2933 HRESULT AddComboBox
(
2934 [in] DWORD dwIDCtl
);
2936 HRESULT AddRadioButtonList
(
2937 [in] DWORD dwIDCtl
);
2939 HRESULT AddCheckButton
(
2941 [in, string] LPCWSTR pszLabel
,
2942 [in] BOOL bChecked
);
2946 [in, string] LPCWSTR pszText
);
2948 HRESULT AddSeparator
(
2949 [in] DWORD dwIDCtl
);
2953 [in, string] LPCWSTR pszText
);
2955 HRESULT SetControlLabel
(
2957 [in, string] LPCWSTR pszLabel
);
2959 HRESULT GetControlState
(
2961 [out] CDCONTROLSTATEF
*pdwState
);
2963 HRESULT SetControlState
(
2965 [in] CDCONTROLSTATEF dwState
);
2967 HRESULT GetEditBoxText
(
2969 [out, string] WCHAR
**ppszText
);
2971 HRESULT SetEditBoxText
(
2973 [in, string] LPCWSTR pszText
);
2975 HRESULT GetCheckButtonState
(
2977 [out] BOOL
*pbChecked
);
2979 HRESULT SetCheckButtonState
(
2981 [in] BOOL bChecked
);
2983 HRESULT AddControlItem
(
2985 [in] DWORD dwIDItem
,
2986 [in] LPCWSTR pszLabel
);
2988 HRESULT RemoveControlItem
(
2990 [in] DWORD dwIDItem
);
2992 HRESULT RemoveAllControlItems
(
2993 [in] DWORD dwIDCtl
);
2995 HRESULT GetControlItemState
(
2997 [in] DWORD dwIDItem
,
2998 [out] CDCONTROLSTATEF
*pdwState
);
3000 HRESULT SetControlItemState
(
3002 [in] DWORD dwIDItem
,
3003 [in] CDCONTROLSTATEF dwState
);
3005 HRESULT GetSelectedControlItem
(
3007 [out] DWORD
*pdwIDItem
);
3009 HRESULT SetSelectedControlItem
(
3011 [in] DWORD dwIDItem
);
3013 HRESULT StartVisualGroup
(
3015 [in, string] LPCWSTR pszLabel
);
3017 HRESULT EndVisualGroup
();
3019 HRESULT MakeProminent
(
3020 [in] DWORD dwIDCtl
);
3022 HRESULT SetControlItemText
(
3024 [in] DWORD dwIDItem
,
3025 [in, string] LPCWSTR pszLabel
);
3028 /*****************************************************************************
3029 * IFileDialogControlEvents interface
3033 uuid(36116642-D713
-4B97
-9B83
-7484A9D00433
),
3034 pointer_default(unique)
3036 interface IFileDialogControlEvents
: IUnknown
3038 HRESULT OnItemSelected
(
3039 [in] IFileDialogCustomize
*pfdc
,
3041 [in] DWORD dwIDItem
);
3043 HRESULT OnButtonClicked
(
3044 [in] IFileDialogCustomize
*pfdc
,
3045 [in] DWORD dwIDCtl
);
3047 HRESULT OnCheckButtonToggled
(
3048 [in] IFileDialogCustomize
*pfdc
,
3050 [in] BOOL bChecked
);
3052 HRESULT OnControlActivating
(
3053 [in] IFileDialogCustomize
*pfdc
,
3054 [in] DWORD dwIDCtl
);
3057 typedef [v1_enum] enum tagKF_CATEGORY
3059 KF_CATEGORY_VIRTUAL
= 0x00000001,
3060 KF_CATEGORY_FIXED
= 0x00000002,
3061 KF_CATEGORY_COMMON
= 0x00000003,
3062 KF_CATEGORY_PERUSER
= 0x00000004
3065 typedef [v1_enum] enum tagKF_REDIRECTION_CAPABILITIES
3067 KF_REDIRECTION_CAPABILITIES_ALLOW_ALL
= 0x000000ff,
3068 KF_REDIRECTION_CAPABILITIES_REDIRECTABLE
= 0x00000001,
3069 KF_REDIRECTION_CAPABILITIES_DENY_ALL
= 0x000fff00,
3070 KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED
= 0x00000100,
3071 KF_REDIRECTION_CAPABILITIES_DENY_POLICY
= 0x00000200,
3072 KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS
= 0x00000400
3073 } KF_REDIRECTION_CAPABILITIES
;
3075 typedef [v1_enum] enum tagKF_DEFINITION_FLAGS
3077 KFDF_LOCAL_REDIRECT_ONLY
= 0x00000002,
3078 KFDF_ROAMABLE
= 0x00000004,
3079 KFDF_PRECREATE
= 0x00000008,
3080 KFDF_STREAM
= 0x00000010,
3081 KFDF_PUBLISHEXPANDEDPATH
= 0x00000020
3082 } KF_DEFINITION_FLAGS
;
3084 typedef struct tagKNOWNFOLDER_DEFINITION
3086 KF_CATEGORY category
;
3088 LPWSTR pszDescription
;
3089 KNOWNFOLDERID fidParent
;
3090 LPWSTR pszRelativePath
;
3091 LPWSTR pszParsingName
;
3093 LPWSTR pszLocalizedName
;
3097 KF_DEFINITION_FLAGS kfdFlags
;
3098 FOLDERTYPEID ftidType
;
3099 } KNOWNFOLDER_DEFINITION
;
3103 uuid(3aa7af7e
-9b36
-420C
-a8e3
-f77d4674a488
),
3104 pointer_default(ref)
3106 interface IKnownFolder
: IUnknown
3109 [out] KNOWNFOLDERID
*pkfid
);
3111 HRESULT GetCategory
(
3112 [out] KF_CATEGORY
*pCategory
);
3114 HRESULT GetShellItem
(
3117 [out, iid_is(riid
)] void **ppv
);
3121 [out, string] LPWSTR
*ppszPath
);
3125 [in, string] LPCWSTR pszPath
);
3129 [out] PIDLIST_ABSOLUTE
*ppidl
);
3131 HRESULT GetFolderType
(
3132 [out] FOLDERTYPEID
*pftid
);
3134 HRESULT GetRedirectionCapabilities
(
3135 [out] KF_REDIRECTION_CAPABILITIES
*pCapabilities
);
3137 HRESULT GetFolderDefinition
(
3138 [out] KNOWNFOLDER_DEFINITION
*pKFD
);
3141 typedef [v1_enum] enum tagKF_REDIRECT_FLAGS
3143 KF_REDIRECT_USER_EXCLUSIVE
= 0x00000001,
3144 KF_REDIRECT_COPY_SOURCE_DACL
= 0x00000002,
3145 KF_REDIRECT_OWNER_USER
= 0x00000004,
3146 KF_REDIRECT_SET_OWNER_EXPLICIT
= 0x00000008,
3147 KF_REDIRECT_CHECK_ONLY
= 0x00000010,
3148 KF_REDIRECT_WITH_UI
= 0x00000020,
3149 KF_REDIRECT_UNPIN
= 0x00000040,
3150 KF_REDIRECT_PIN
= 0x00000080,
3151 KF_REDIRECT_COPY_CONTENTS
= 0x00000200,
3152 KF_REDIRECT_DEL_SOURCE_CONTENTS
= 0x00000400,
3153 KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS
= 0x00000800
3154 } KF_REDIRECT_FLAGS
;
3158 uuid(8BE2D872
-86AA
-4d47
-B776
-32CCA40C7018
),
3159 pointer_default(ref)
3161 interface IKnownFolderManager
: IUnknown
3163 typedef [v1_enum] enum tagFFFP_MODE
3166 FFFP_NEARESTPARENTMATCH
3169 HRESULT FolderIdFromCsidl
(
3171 [out] KNOWNFOLDERID
*pfid
);
3173 HRESULT FolderIdToCsidl
(
3174 [in] REFKNOWNFOLDERID rfid
,
3175 [out] int *pnCsidl
);
3177 HRESULT GetFolderIds
(
3178 [out, size_is(, *pCount
)] KNOWNFOLDERID
**ppKFId
,
3179 [in, out] UINT
*pCount
);
3182 [in] REFKNOWNFOLDERID rfid
,
3183 [out] IKnownFolder
**ppkf
);
3185 HRESULT GetFolderByName
(
3186 [in, string] LPCWSTR pszCanonicalName
,
3187 [out] IKnownFolder
**ppkf
);
3189 HRESULT RegisterFolder
(
3190 [in] REFKNOWNFOLDERID rfid
,
3191 [in] KNOWNFOLDER_DEFINITION
const *pKFD
);
3193 HRESULT UnregisterFolder
(
3194 [in] REFKNOWNFOLDERID rfid
);
3196 HRESULT FindFolderFromPath
(
3197 [in, string] LPCWSTR pszPath
,
3198 [in] FFFP_MODE mode
,
3199 [out] IKnownFolder
**ppkf
);
3201 HRESULT FindFolderFromIDList
(
3202 [in] PCIDLIST_ABSOLUTE pidl
,
3203 [out] IKnownFolder
**ppkf
);
3206 [in] REFKNOWNFOLDERID rfid
,
3207 [in, unique] HWND hwnd
,
3208 [in] KF_REDIRECT_FLAGS flags
,
3209 [in, unique, string] LPCWSTR pszTargetPath
,
3211 [in, size_is(cFolders
), unique] KNOWNFOLDERID
const *pExclusion
,
3212 [out, string] LPWSTR
*ppszError
);
3215 /* function for releasing structure returned from IKnownFolder::GetFolderDefinition */
3216 cpp_quote
("static inline void FreeKnownFolderDefinitionFields(KNOWNFOLDER_DEFINITION *pKFD)")
3218 cpp_quote
(" CoTaskMemFree(pKFD->pszName);")
3219 cpp_quote
(" CoTaskMemFree(pKFD->pszDescription);")
3220 cpp_quote
(" CoTaskMemFree(pKFD->pszRelativePath);")
3221 cpp_quote
(" CoTaskMemFree(pKFD->pszParsingName);")
3222 cpp_quote
(" CoTaskMemFree(pKFD->pszTooltip);")
3223 cpp_quote
(" CoTaskMemFree(pKFD->pszLocalizedName);")
3224 cpp_quote
(" CoTaskMemFree(pKFD->pszIcon);")
3225 cpp_quote
(" CoTaskMemFree(pKFD->pszSecurity);")
3228 typedef [v1_enum] enum ASSOCIATIONLEVEL
{
3234 typedef [v1_enum] enum ASSOCIATIONTYPE
{
3243 uuid(4e530b0a
-e611
-4c77
-a3ac
-9031d022281b
),
3244 pointer_default(unique)
3246 interface IApplicationAssociationRegistration
: IUnknown
3248 HRESULT QueryCurrentDefault
(
3249 [in, string] LPCWSTR pszQuery
,
3250 [in] ASSOCIATIONTYPE atQueryType
,
3251 [in] ASSOCIATIONLEVEL alQueryLevel
,
3252 [out, string] LPWSTR
*ppszAssociation
);
3254 HRESULT QueryAppIsDefault
(
3255 [in, string] LPCWSTR pszQuery
,
3256 [in] ASSOCIATIONTYPE atQueryType
,
3257 [in] ASSOCIATIONLEVEL alQueryLevel
,
3258 [in, string] LPCWSTR pszAppRegistryName
,
3259 [out] BOOL
*pfDefault
);
3261 HRESULT QueryAppIsDefaultAll
(
3262 [in] ASSOCIATIONLEVEL alQueryLevel
,
3263 [in, string] LPCWSTR pszAppRegistryName
,
3264 [out] BOOL
* pfDefault
);
3266 HRESULT SetAppAsDefault
(
3267 [in, string] LPCWSTR pszAppRegistryName
,
3268 [in, string] LPCWSTR pszSet
,
3269 [in] ASSOCIATIONTYPE atSetType
);
3271 HRESULT SetAppAsDefaultAll
(
3272 [in, string] LPCWSTR pszAppRegistryName
);
3274 HRESULT ClearUserAssociations
();
3278 uuid(6332debf
-87b5
-4670-90c0
-5e57b408a49e
),
3280 pointer_default(unique)
3282 interface ICustomDestinationList
: IUnknown
3284 typedef [v1_enum] enum KNOWNDESTCATEGORY
{
3287 } KNOWNDESTCATEGORY
;
3289 HRESULT SetAppID
([in, string] LPCWSTR pszAppID
);
3292 [out] UINT
*pcMinSlots
,
3294 [out, iid_is(riid
)] void **ppv
);
3296 HRESULT AppendCategory
(
3297 [in, string] LPCWSTR pszCategory
,
3298 [in] IObjectArray
*poa
);
3300 HRESULT AppendKnownCategory
([in] KNOWNDESTCATEGORY category
);
3301 HRESULT AddUserTasks
([in] IObjectArray
*poa
);
3302 HRESULT CommitList
();
3304 HRESULT GetRemovedDestinations
(
3306 [out, iid_is(riid
)] void **ppv
);
3308 HRESULT DeleteList
([in, unique, string] LPCWSTR pszAppID
);
3309 HRESULT AbortList
();
3313 uuid(ddefe873
-6997-4e68
-be26
-39b633adbe12
),
3315 pointer_default(unique)
3317 interface IQueryCancelAutoPlay
: IUnknown
3319 HRESULT AllowAutoPlay
([in, string] LPCWSTR path
,
3320 [in] DWORD content_type
,
3321 [in, string] LPCWSTR label
,
3322 [in] DWORD serial_number
);
3326 uuid(d594d0d8
-8da7
-457b
-b3b4
-ce5dbaac0b88
),
3327 pointer_default(unique)
3329 interface ITransferAdviseSink
: IUnknown
3331 [v1_enum] enum _TRANSFER_ADVISE_STATE
3336 TS_INDETERMINATE
= 4
3338 typedef DWORD TRANSFER_ADVISE_STATE
;
3340 HRESULT UpdateProgress
([in] ULONGLONG size_current
,
3341 [in] ULONGLONG size_total
,
3342 [in] INT files_current
,
3343 [in] INT files_total
,
3344 [in] INT folders_current
,
3345 [in] INT folders_total
);
3346 HRESULT UpdateTransferState
([in] TRANSFER_ADVISE_STATE state
);
3347 HRESULT ConfirmOverwrite
([in] IShellItem
*source,
3348 [in] IShellItem
*dest_parent
,
3349 [in, string] LPCWSTR name
);
3350 HRESULT ConfirmEncryptLoss
([in] IShellItem
*source);
3351 HRESULT FileFailure
([in] IShellItem
*item
,
3352 [in, unique, string] LPCWSTR itemname
,
3354 [in, out, unique, size_is(crename
)] LPWSTR rename
,
3355 [in] ULONG crename
);
3356 HRESULT SubStreamFailure
([in] IShellItem
*item
,
3357 [in, string] LPCWSTR stream
,
3359 HRESULT PropertyFailure
([in] IShellItem
*item
,
3360 [in, unique] const PROPERTYKEY
*key
,
3364 [v1_enum] enum _TRANSFER_SOURCE_FLAGS
3368 TSF_RENAME_EXIST
= 0x1,
3369 TSF_OVERWRITE_EXIST
= 0x2,
3370 TSF_ALLOW_DECRYPTION
= 0x4,
3371 TSF_NO_SECURITY
= 0x8,
3372 TSF_COPY_CREATION_TIME
= 0x10,
3373 TSF_COPY_WRITE_TIME
= 0x20,
3374 TSF_USE_FULL_ACCESS
= 0x40,
3375 TSF_DELETE_RECYCLE_IF_POSSIBLE
= 0x80,
3376 TSF_COPY_HARD_LINK
= 0x100,
3377 TSF_COPY_LOCALIZED_NAME
= 0x200,
3378 TSF_MOVE_AS_COPY_DELETE
= 0x400,
3379 TSF_SUSPEND_SHELLEVENTS
= 0x800
3381 typedef DWORD TRANSFER_SOURCE_FLAGS
;
3384 uuid(00adb003
-bde9
-45c6
-8e29
-d09f9353e108
),
3386 pointer_default(unique)
3388 interface ITransferSource
: IUnknown
3390 HRESULT Advise
([in] ITransferAdviseSink
*sink
, [out] DWORD
*cookie
);
3391 HRESULT Unadvise
([in] DWORD cookie
);
3392 HRESULT SetProperties
([in] IPropertyChangeArray
*array
);
3393 HRESULT OpenItem
([in] IShellItem
*item
,
3394 [in] TRANSFER_SOURCE_FLAGS flags
,
3396 [out, iid_is(riid
)] void **ppv
);
3397 HRESULT MoveItem
([in] IShellItem
*item
,
3398 [in] IShellItem
*parent_dest
,
3399 [in, string] LPCWSTR name_dest
,
3400 [in] TRANSFER_SOURCE_FLAGS flags
,
3401 [out] IShellItem
**newitem
);
3402 HRESULT RecycleItem
([in] IShellItem
*source,
3403 [in] IShellItem
*parent_dest
,
3404 [in] TRANSFER_SOURCE_FLAGS flags
,
3405 [out] IShellItem
**new_dest
);
3406 HRESULT RemoveItem
([in] IShellItem
*source, [in] TRANSFER_SOURCE_FLAGS flags
);
3407 HRESULT RenameItem
([in] IShellItem
*source,
3408 [in, string] LPCWSTR newname
,
3409 [in] TRANSFER_SOURCE_FLAGS flags
,
3410 [out] IShellItem
**new_dest
);
3411 HRESULT LinkItem
([in] IShellItem
*source,
3412 [in] IShellItem
*parent_dest
,
3413 [in, unique, string] LPCWSTR new_name
,
3414 [in] TRANSFER_SOURCE_FLAGS flags
,
3415 [out] IShellItem
**new_dest
);
3416 HRESULT ApplyPropertiesToItem
([in] IShellItem
*source, [out] IShellItem
**newitem
);
3417 HRESULT GetDefaultDestinationName
([in] IShellItem
*source,
3418 [in] IShellItem
*parent_dest
,
3419 [out, string] LPWSTR
*dest_name
);
3420 HRESULT EnterFolder
([in] IShellItem
*child_folder
);
3421 HRESULT LeaveFolder
([in] IShellItem
*child_folder
);
3425 uuid(48addd32
-3ca5
-4124-abe3
-b5a72531b207
),
3427 pointer_default(unique)
3429 interface ITransferDestination
: IUnknown
3431 HRESULT Advise
([in] ITransferAdviseSink
*sink
, [out] DWORD
*cookie
);
3432 HRESULT Unadvise
([in] DWORD cookie
);
3433 HRESULT CreateItem
([in, string] LPCWSTR name
,
3435 [in] ULONGLONG size
,
3436 [in] TRANSFER_SOURCE_FLAGS flags
,
3438 [out, iid_is(riid
)] void **ppv
,
3439 [in] REFIID resources
,
3440 [out, iid_is(riid
)] void **presources
);
3444 uuid(92218cab
-ecaa
-4335-8133-807fd234c2ee
),
3446 pointer_default(unique)
3448 interface IAssocHandlerInvoker
: IUnknown
3450 HRESULT SupportsSelection
();
3455 uuid(f04061ac
-1659-4a3f
-a954
-775aa57fc083
),
3457 pointer_default(unique)
3459 interface IAssocHandler
: IUnknown
3461 HRESULT GetName
([out, string] LPWSTR
*name
);
3462 HRESULT GetUIName
([out, string] LPWSTR
*uiname
);
3463 HRESULT GetIconLocation
([out, string] LPWSTR
*path
,
3465 HRESULT IsRecommended
();
3466 HRESULT MakeDefault
([in, string] LPCWSTR description
);
3467 HRESULT Invoke
([in] IDataObject
*object);
3468 HRESULT CreateInvoker
([in] IDataObject
*object,
3469 [out] IAssocHandlerInvoker
**invoker
);
3473 uuid(973810ae
-9599-4b88
-9e4d
-6ee98c9552da
),
3475 pointer_default(unique)
3477 interface IEnumAssocHandlers
: IUnknown
3479 HRESULT Next
([in] ULONG count
,
3480 [out, size_is(count
), length_is(*fetched
)] IAssocHandler
**handlers
,
3481 [out] ULONG
*fetched
);
3484 typedef enum ASSOC_FILTER
3486 ASSOC_FILTER_NONE
= 0,
3487 ASSOC_FILTER_RECOMMENDED
3489 cpp_quote
("HRESULT WINAPI SHAssocEnumHandlers(PCWSTR extra, ASSOC_FILTER filter, IEnumAssocHandlers **handlersenum);")
3491 /*****************************************************************************
3492 * ShellObjects typelibrary
3495 uuid(50A7E9B1
-70EF
-11D1
-B75A
-00A0C90564FE
),
3499 library ShellObjects
3502 uuid(71F96385
-DDD6
-48D3
-A0C1
-AE06E8B055FB
)
3504 coclass ExplorerBrowser
3506 interface IExplorerBrowser
;
3510 uuid(DC1C5A9C
-E88A
-4DDE
-A5A1
-60F82A20AEF7
)
3512 coclass FileOpenDialog
3514 interface IFileOpenDialog
;
3518 uuid(C0B4E2F3
-BA21
-4773-8DBA
-335EC946EB8B
)
3520 coclass FileSaveDialog
3522 interface IFileSaveDialog
;
3526 uuid(AE054212
-3535-4430-83ED
-D501AA6680E6
)
3528 coclass NamespaceTreeControl
3530 interface INameSpaceTreeControl2
;
3534 uuid(4df0c730
-df9d
-4ae3
-9153-aa6b82e9795a
)
3536 coclass KnownFolderManager
3538 interface IKnownFolderManager
;
3542 uuid(591209c7
-767b
-42b2
-9fba
-44ee4615f2c7
)
3544 coclass ApplicationAssociationRegistration
3546 interface IApplicationAssociationRegistration
;
3550 uuid(00021401-0000-0000-c000
-000000000046)
3554 interface IShellLinkW
;
3558 uuid(56fdf344
-fd6d
-11d0
-958a
-006097c9a090
)
3562 interface ITaskbarList4
;
3566 uuid(77f10cf0
-3db5
-4966-b520
-b7c54fd35ed6
)
3568 coclass DestinationList
{
3569 interface ICustomDestinationList
;
3573 uuid(2d3468c1
-36a7
-43b6
-ac24
-d3f02fd9607a
)
3575 coclass EnumerableObjectCollection
3577 interface IEnumObjects
;
3581 uuid(331f1768
-05a9
-4ddd
-b86e
-dae34ddc998a
)
3583 coclass QueryCancelAutoPlay
3585 interface IQueryCancelAutoPlay
;