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 EBO_NOBORDER
= 0x40,
2263 EBO_NOPERSISTVIEWSTATE
= 0x80,
2264 } EXPLORER_BROWSER_OPTIONS
;
2266 cpp_quote
("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
2268 /*****************************************************************************
2269 * IExplorerBrowser interface
2273 uuid(DFD3B6B5
-C10C
-4BE9
-85F6
-A66969F402F6
),
2274 pointer_default(unique)
2276 interface IExplorerBrowser
: IUnknown
2279 [local] HRESULT Initialize
(
2280 [in] HWND hwndParent
,
2281 [in] const RECT
*prc
,
2282 [in, unique] const FOLDERSETTINGS
*pfs
);
2286 [local] HRESULT SetRect
(
2287 [in,out,unique] HDWP
*phdwp
,
2288 [in] RECT rcBrowser
);
2290 HRESULT SetPropertyBag
(
2291 [in, string] LPCWSTR pszPropertyBag
);
2293 HRESULT SetEmptyText
(
2294 [in, string] LPCWSTR pszEmptyText
);
2296 HRESULT SetFolderSettings
(
2297 [in] const FOLDERSETTINGS
*pfs
);
2300 [in] IExplorerBrowserEvents
*psbe
,
2301 [out] DWORD
*pdwCookie
);
2304 [in] DWORD dwCookie
);
2307 [in] EXPLORER_BROWSER_OPTIONS dwFlag
);
2310 [out] EXPLORER_BROWSER_OPTIONS
*pdwFlag
);
2312 HRESULT BrowseToIDList
(
2313 [in] PCUIDLIST_RELATIVE pidl
,
2316 HRESULT BrowseToObject
(
2317 [in] IUnknown
*punk
,
2320 HRESULT FillFromObject
(
2321 [in] IUnknown
*punk
,
2322 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags
);
2324 HRESULT RemoveAll
();
2326 HRESULT GetCurrentView
(
2328 [out, iid_is(riid
)] void **ppv
);
2331 /*****************************************************************************
2332 * INameSpaceTreeControl interface
2336 uuid(028212A3
-B627
-47E9
-8856-C14265554E4F
)
2338 interface INameSpaceTreeControl
: IUnknown
2340 [v1_enum] enum _NSTCSTYLE
{
2341 NSTCS_HASEXPANDOS
= 0x00000001,
2342 NSTCS_HASLINES
= 0x00000002,
2343 NSTCS_SINGLECLICKEXPAND
= 0x00000004,
2344 NSTCS_FULLROWSELECT
= 0x00000008,
2345 NSTCS_SPRINGEXPAND
= 0x00000010,
2346 NSTCS_HORIZONTALSCROLL
= 0x00000020,
2347 NSTCS_ROOTHASEXPANDO
= 0x00000040,
2348 NSTCS_SHOWSELECTIONALWAYS
= 0x00000080,
2349 NSTCS_NOINFOTIP
= 0x00000200,
2350 NSTCS_EVENHEIGHT
= 0x00000400,
2351 NSTCS_NOREPLACEOPEN
= 0x00000800,
2352 NSTCS_DISABLEDRAGDROP
= 0x00001000,
2353 NSTCS_NOORDERSTREAM
= 0x00002000,
2354 NSTCS_RICHTOOLTIP
= 0x00004000,
2355 NSTCS_BORDER
= 0x00008000,
2356 NSTCS_NOEDITLABELS
= 0x00010000,
2357 NSTCS_TABSTOP
= 0x00020000,
2358 NSTCS_FAVORITESMODE
= 0x00080000,
2359 NSTCS_AUTOHSCROLL
= 0x00100000,
2360 NSTCS_FADEINOUTEXPANDOS
= 0x00200000,
2361 NSTCS_EMPTYTEXT
= 0x00400000,
2362 NSTCS_CHECKBOXES
= 0x00800000,
2363 NSTCS_PARTIALCHECKBOXES
= 0x01000000,
2364 NSTCS_EXCLUSIONCHECKBOXES
= 0x02000000,
2365 NSTCS_DIMMEDCHECKBOXES
= 0x04000000,
2366 NSTCS_NOINDENTCHECKS
= 0x08000000,
2367 NSTCS_ALLOWJUNCTIONS
= 0x10000000,
2368 NSTCS_SHOWTABSBUTTON
= 0x20000000,
2369 NSTCS_SHOWDELETEBUTTON
= 0x40000000,
2370 NSTCS_SHOWREFRESHBUTTON
= (int)0x80000000
2372 typedef DWORD NSTCSTYLE
;
2374 [v1_enum] enum _NSTCROOTSTYLE
{
2375 NSTCRS_VISIBLE
= 0x0000,
2376 NSTCRS_HIDDEN
= 0x0001,
2377 NSTCRS_EXPANDED
= 0x0002
2379 typedef DWORD NSTCROOTSTYLE
;
2381 [v1_enum] enum _NSTCITEMSTATE
{
2382 NSTCIS_NONE
= 0x0000,
2383 NSTCIS_SELECTED
= 0x0001,
2384 NSTCIS_EXPANDED
= 0x0002,
2385 NSTCIS_BOLD
= 0x0004,
2386 NSTCIS_DISABLED
= 0x0008,
2387 NSTCIS_SELECTEDNOEXPAND
= 0x0010
2389 typedef DWORD NSTCITEMSTATE
;
2391 typedef [v1_enum] enum NSTCGNI
{
2393 NSTCGNI_NEXTVISIBLE
= 1,
2395 NSTCGNI_PREVVISIBLE
= 3,
2398 NSTCGNI_FIRSTVISIBLE
= 6,
2399 NSTCGNI_LASTVISIBLE
= 7
2403 [in] HWND hwndParent
,
2404 [in, unique] RECT
*prc
,
2405 [in] NSTCSTYLE nstcsFlags
);
2408 [in] IUnknown
*punk
,
2409 [out] DWORD
*pdwCookie
);
2411 HRESULT TreeUnadvise
(
2412 [in] DWORD dwCookie
);
2415 [in] IShellItem
*psiRoot
,
2416 [in] SHCONTF grfEnumFlags
,
2417 [in] NSTCROOTSTYLE grfRootStyle
,
2418 [in, unique] IShellItemFilter
*pif
);
2422 [in] IShellItem
*psiRoot
,
2423 [in] SHCONTF grfEnumFlags
,
2424 [in] NSTCROOTSTYLE grfRootStyle
,
2425 [in, unique] IShellItemFilter
*pif
);
2428 [in] IShellItem
*psiRoot
);
2430 HRESULT RemoveAllRoots
();
2432 HRESULT GetRootItems
(
2433 [out] IShellItemArray
**ppsiaRootItems
);
2435 HRESULT SetItemState
(
2436 [in] IShellItem
*psi
,
2437 [in] NSTCITEMSTATE nstcisMask
,
2438 [in] NSTCITEMSTATE nstcisFlags
);
2440 HRESULT GetItemState
(
2441 [in] IShellItem
*psi
,
2442 [in] NSTCITEMSTATE nstcismask
,
2443 [out] NSTCITEMSTATE
*pnstcisFlags
);
2445 HRESULT GetSelectedItems
(
2446 [out] IShellItemArray
**psiaItems
);
2448 HRESULT GetItemCustomState
(
2449 [in] IShellItem
*psi
,
2450 [out] int *piStateNumber
);
2452 HRESULT SetItemCustomState
(
2453 [in] IShellItem
*psi
,
2454 [in] int iStateNumber
);
2456 HRESULT EnsureItemVisible
(
2457 [in] IShellItem
*psi
);
2460 [in, string] LPCWSTR pszTheme
);
2462 HRESULT GetNextItem
(
2463 [in, unique] IShellItem
*psi
,
2464 [in] NSTCGNI nstcgi
,
2465 [out] IShellItem
**ppsiNext
);
2469 [out] IShellItem
**ppsiOut
);
2471 HRESULT GetItemRect
(
2472 [in] IShellItem
*psi
,
2475 HRESULT CollapseAll
();
2478 /*****************************************************************************
2479 * INameSpaceTreeControl2 interface
2483 uuid(7CC7AED8
-290E-49BC
-8945-C1401CC9306C
)
2485 interface INameSpaceTreeControl2
: INameSpaceTreeControl
2487 typedef [v1_enum] enum NSTCSTYLE2
{
2488 NSTCS2_DEFAULT
= 0x00,
2489 NSTCS2_INTERRUPTNOTIFICATIONS
= 0x01,
2490 NSTCS2_SHOWNULLSPACEMENU
= 0x02,
2491 NSTCS2_DISPLAYPADDING
= 0x04,
2492 NSTCS2_DISPLAYPINNEDONLY
= 0x08,
2493 NTSCS2_NOSINGLETONAUTOEXPAND
= 0x10, /* The apparent typo here is */
2494 NTSCS2_NEVERINSERTNONENUMERATED
= 0x20 /* present also in the Win SDK */
2496 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(NSTCSTYLE2)")
2498 HRESULT SetControlStyle
(
2499 [in] NSTCSTYLE nstcsMask
,
2500 [in] NSTCSTYLE nstcsStyle
);
2502 HRESULT GetControlStyle
(
2503 [in] NSTCSTYLE nstcsMask
,
2504 [out] NSTCSTYLE
*pnstcsStyle
);
2506 HRESULT SetControlStyle2
(
2507 [in] NSTCSTYLE2 nstcsMask
,
2508 [in] NSTCSTYLE2 nstcsStyle
);
2510 HRESULT GetControlStyle2
(
2511 [in] NSTCSTYLE2 nstcsMask
,
2512 [out] NSTCSTYLE2
*pnstcsStyle
);
2515 /*****************************************************************************
2516 * INameSpaceTreeControlEvents interface
2521 uuid(93D77985
-B3D8
-4484-8318-672CDDA002CE
),
2524 interface INameSpaceTreeControlEvents
: IUnknown
2526 [v1_enum] enum _NSTCEHITTEST
{
2527 NSTCEHT_NOWHERE
= 0x0001,
2528 NSTCEHT_ONITEMICON
= 0x0002,
2529 NSTCEHT_ONITEMLABEL
= 0x0004,
2530 NSTCEHT_ONITEMIDENT
= 0x0008,
2531 NSTCEHT_ONITEMBUTTON
= 0x0010,
2532 NSTCEHT_ONITEMRIGHT
= 0x0020,
2533 NSTCEHT_ONITEMSTATEICON
= 0x0040,
2534 NSTCEHT_ONITEM
= 0x0046,
2535 NSTCEHT_ONITEMTABBUTTON
= 0x1000
2537 typedef DWORD NSTCEHITTEST
;
2539 [v1_enum] enum _NSTCECLICKTYPE
{
2540 NSTCECT_LBUTTON
= 0x1,
2541 NSTCECT_MBUTTON
= 0x2,
2542 NSTCECT_RBUTTON
= 0x3,
2543 NSTCECT_BUTTON
= 0x3,
2544 NSTCECT_DBLCLICK
= 0x4
2546 typedef DWORD NSTCECLICKTYPE
;
2548 HRESULT OnItemClick
(
2549 [in] IShellItem
*psi
,
2550 [in] NSTCEHITTEST nstceHitTest
,
2551 [in] NSTCECLICKTYPE nstceClickType
);
2553 HRESULT OnPropertyItemCommit
(
2554 [in] IShellItem
*psi
);
2556 HRESULT OnItemStateChanging
(
2557 [in] IShellItem
*psi
,
2558 [in] NSTCITEMSTATE nstcisMask
,
2559 [in] NSTCITEMSTATE nstcisState
);
2561 HRESULT OnItemStateChanged
(
2562 [in] IShellItem
*psi
,
2563 [in] NSTCITEMSTATE nstcisMask
,
2564 [in] NSTCITEMSTATE nstcisState
);
2566 HRESULT OnSelectionChanged
(
2567 [in] IShellItemArray
*psiaSelection
);
2569 HRESULT OnKeyboardInput
(
2572 [in] LPARAM lParam
);
2574 HRESULT OnBeforeExpand
(
2575 [in] IShellItem
*psi
);
2577 HRESULT OnAfterExpand
(
2578 [in] IShellItem
*psi
);
2580 HRESULT OnBeginLabelEdit
(
2581 [in] IShellItem
*psi
);
2583 HRESULT OnEndLabelEdit
(
2584 [in] IShellItem
*psi
);
2586 HRESULT OnGetToolTip
(
2587 [in] IShellItem
*psi
,
2588 [out, string, size_is(cchTip
)] LPWSTR pszTip
,
2591 HRESULT OnBeforeItemDelete
(
2592 [in] IShellItem
*psi
);
2594 HRESULT OnItemAdded
(
2595 [in] IShellItem
*psi
,
2598 HRESULT OnItemDeleted
(
2599 [in] IShellItem
*psi
,
2602 HRESULT OnBeforeContextMenu
(
2603 [in, unique] IShellItem
*psi
,
2605 [out, iid_is(riid
)] void **ppv
);
2607 HRESULT OnAfterContextMenu
(
2608 [in] IShellItem
*psi
,
2609 [in] IContextMenu
*pcmIn
,
2611 [out, iid_is(riid
)] void **ppv
);
2613 HRESULT OnBeforeStateImageChange
(
2614 [in] IShellItem
*psi
);
2616 HRESULT OnGetDefaultIconIndex
(
2617 [in] IShellItem
*psi
,
2618 [out] int *piDefaultIcon
,
2619 [out] int *piOpenIcon
);
2622 /*****************************************************************************
2623 * INameSpaceTreeControlCustomDraw interface
2627 uuid(2D3BA758
-33EE
-42D5
-BB7B
-5F3431D86C78
),
2631 interface INameSpaceTreeControlCustomDraw
: IUnknown
2633 typedef struct NSTCCUSTOMDRAW
2637 NSTCITEMSTATE nstcis
;
2648 [out] LRESULT
*plres
);
2654 HRESULT ItemPrePaint
(
2657 [in, out] COLORREF
*pclrText
,
2658 [in, out] COLORREF
*pclrTextBk
,
2659 [out] LRESULT
*plres
);
2661 HRESULT ItemPostPaint
(
2664 [in] NSTCCUSTOMDRAW
*pnstccdItem
);
2667 /*****************************************************************************
2668 * INameSpaceTreeControlDropHandler interface
2672 uuid(F9C665D6
-C2F2
-4C19
-BF33
-8322D7352F51
),
2675 interface INameSpaceTreeControlDropHandler
: IUnknown
2677 HRESULT OnDragEnter
(
2678 [in, unique] IShellItem
*psiOver
,
2679 [in] IShellItemArray
*psiaData
,
2680 [in] BOOL fOutsideSource
,
2681 [in] DWORD grfKeyState
,
2682 [in, out] DWORD
*pdwEffect
);
2685 [in, unique] IShellItem
*psiOver
,
2686 [in] IShellItemArray
*psiaData
,
2687 [in] DWORD grfKeyState
,
2688 [in, out] DWORD
*pdwEffect
);
2690 HRESULT OnDragPosition
(
2691 [in, unique] IShellItem
*psiOver
,
2692 [in] IShellItemArray
*psiaData
,
2693 [in] int iNewPosition
,
2694 [in] int iOldPosition
);
2697 [in, unique] IShellItem
*psiOver
,
2698 [in] IShellItemArray
*psiaData
,
2700 [in] DWORD grfKeyState
,
2701 [in, out] DWORD
*pdwEffect
);
2703 HRESULT OnDropPosition
(
2704 [in, unique] IShellItem
*psiOver
,
2705 [in] IShellItemArray
*psiaData
,
2706 [in] int iNewPosition
,
2707 [in] int iOldPosition
);
2709 HRESULT OnDragLeave
(
2710 [in, unique] IShellItem
*psiOver
);
2712 cpp_quote
("#define NSTCDHPOS_ONTOP -1")
2714 interface IFileDialog
;
2716 typedef [v1_enum] enum FDE_OVERWRITE_RESPONSE
2721 } FDE_OVERWRITE_RESPONSE
;
2723 typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
2728 } FDE_SHAREVIOLATION_RESPONSE
;
2730 /*****************************************************************************
2731 * IFileDialogEvents interface
2735 uuid(973510DB
-7D7F
-452B
-8975-74A85828D354
),
2736 pointer_default(unique)
2738 interface IFileDialogEvents
: IUnknown
2741 [in] IFileDialog
*pfd
);
2743 HRESULT OnFolderChanging
(
2744 [in] IFileDialog
*pfd
,
2745 [in] IShellItem
*psiFolder
);
2747 HRESULT OnFolderChange
(
2748 [in] IFileDialog
*pfd
);
2750 HRESULT OnSelectionChange
(
2751 [in] IFileDialog
*pfd
);
2753 HRESULT OnShareViolation
(
2754 [in] IFileDialog
*pfd
,
2755 [in] IShellItem
*psi
,
2756 [out] FDE_SHAREVIOLATION_RESPONSE
*pResponse
);
2758 HRESULT OnTypeChange
(
2759 [in] IFileDialog
*pfd
);
2761 HRESULT OnOverwrite
(
2762 [in] IFileDialog
*pfd
,
2763 [in] IShellItem
*psi
,
2764 [out] FDE_OVERWRITE_RESPONSE
*pResponse
);
2767 /*****************************************************************************
2768 * IModalWindow interface
2772 uuid(B4DB1657
-70D7
-485E-8E3E
-6FCB5A5C1802
),
2773 pointer_default(unique)
2775 interface IModalWindow
: IUnknown
2779 [in, unique, annotation
("__in_opt")] HWND hwndOwner
);
2783 [in, unique] HWND hwndOwner
);
2786 typedef [v1_enum] enum FDAP
2792 /*****************************************************************************
2793 * IFileDialog interface
2797 uuid(42F85136
-DB7E
-439C
-85F1
-E4075D135FC8
),
2798 pointer_default(unique)
2800 interface IFileDialog
: IModalWindow
2802 [v1_enum] enum _FILEOPENDIALOGOPTIONS
2804 FOS_OVERWRITEPROMPT
= 0x00000002,
2805 FOS_STRICTFILETYPES
= 0x00000004,
2806 FOS_NOCHANGEDIR
= 0x00000008,
2807 FOS_PICKFOLDERS
= 0x00000020,
2808 FOS_FORCEFILESYSTEM
= 0x00000040,
2809 FOS_ALLNONSTORAGEITEMS
= 0x00000080,
2810 FOS_NOVALIDATE
= 0x00000100,
2811 FOS_ALLOWMULTISELECT
= 0x00000200,
2812 FOS_PATHMUSTEXIST
= 0x00000800,
2813 FOS_FILEMUSTEXIST
= 0x00001000,
2814 FOS_CREATEPROMPT
= 0x00002000,
2815 FOS_SHAREAWARE
= 0x00004000,
2816 FOS_NOREADONLYRETURN
= 0x00008000,
2817 FOS_NOTESTFILECREATE
= 0x00010000,
2818 FOS_HIDEMRUPLACES
= 0x00020000,
2819 FOS_HIDEPINNEDPLACES
= 0x00040000,
2820 FOS_NODEREFERENCELINKS
= 0x00100000,
2821 FOS_DONTADDTORECENT
= 0x02000000,
2822 FOS_FORCESHOWHIDDEN
= 0x10000000,
2823 FOS_DEFAULTNOMINIMODE
= 0x20000000,
2824 FOS_FORCEPREVIEWPANEON
= 0x40000000
2826 typedef DWORD FILEOPENDIALOGOPTIONS
;
2828 HRESULT SetFileTypes
(
2829 [in] UINT cFileTypes
,
2830 [in, size_is(cFileTypes
)] const COMDLG_FILTERSPEC
*rgFilterSpec
);
2832 HRESULT SetFileTypeIndex
(
2833 [in] UINT iFileType
);
2835 HRESULT GetFileTypeIndex
(
2836 [out] UINT
*piFileType
);
2839 [in] IFileDialogEvents
*pfde
,
2840 [out] DWORD
*pdwCookie
);
2843 [in] DWORD dwCookie
);
2846 [in] FILEOPENDIALOGOPTIONS fos
);
2849 [in] FILEOPENDIALOGOPTIONS
*pfos
);
2851 HRESULT SetDefaultFolder
(
2852 [in] IShellItem
*psi
);
2855 [in] IShellItem
*psi
);
2858 [out] IShellItem
**ppsi
);
2860 HRESULT GetCurrentSelection
(
2861 [out] IShellItem
**ppsi
);
2863 HRESULT SetFileName
(
2864 [in, string] LPCWSTR pszName
);
2866 HRESULT GetFileName
(
2867 [out, string] LPWSTR
*pszName
);
2870 [in, string] LPCWSTR pszTitle
);
2872 HRESULT SetOkButtonLabel
(
2873 [in, string] LPCWSTR pszText
);
2875 HRESULT SetFileNameLabel
(
2876 [in, string] LPCWSTR pszLabel
);
2879 [out] IShellItem
**ppsi
);
2882 [in] IShellItem
*psi
,
2885 HRESULT SetDefaultExtension
(
2886 [in, string] LPCWSTR pszDefaultExtension
);
2891 HRESULT SetClientGuid
(
2894 HRESULT ClearClientData
();
2897 [in] IShellItemFilter
*pFilter
);
2900 /*****************************************************************************
2901 * IFileDialog2 interface
2905 uuid(61744FC7
-85B5
-4791-A9B0
-272276309B13
),
2906 pointer_default(unique)
2908 interface IFileDialog2
: IFileDialog
2910 HRESULT SetCancelButtonLabel
(
2911 [in] LPCWSTR pszLabel
);
2913 HRESULT SetNavigationRoot
(
2914 [in] IShellItem
*psi
);
2917 /*****************************************************************************
2918 * IFileOperationProgressSink interface
2922 uuid(04B0F1A7
-9490-44BC
-96E1
-4296A31252E2
),
2923 pointer_default(unique)
2925 interface IFileOperationProgressSink
: IUnknown
2927 HRESULT StartOperations
();
2929 HRESULT FinishOperations
(
2930 [in] HRESULT hrResult
);
2932 HRESULT PreRenameItem
(
2934 [in] IShellItem
*psiItem
,
2935 [in, unique, string] LPCWSTR pszNewName
);
2937 HRESULT PostRenameItem
(
2939 [in] IShellItem
*psiItem
,
2940 [in, string] LPCWSTR pszNewName
,
2941 [in] HRESULT hrRename
,
2942 [in] IShellItem
*psiNewlyCreated
);
2944 HRESULT PreMoveItem
(
2946 [in] IShellItem
*psiItem
,
2947 [in] IShellItem
*psiDestinationFolder
,
2948 [in, unique, string] LPCWSTR pszNewName
);
2950 HRESULT PostMoveItem
(
2952 [in] IShellItem
*psiItem
,
2953 [in] IShellItem
*psiDestinationFolder
,
2954 [in, unique, string] LPCWSTR pszNewName
,
2955 [in] HRESULT hrMove
,
2956 [in] IShellItem
*psiNewlyCreated
);
2958 HRESULT PreCopyItem
(
2960 [in] IShellItem
*psiItem
,
2961 [in] IShellItem
*psiDestinationFolder
,
2962 [in, unique, string] LPCWSTR pszNewName
);
2964 HRESULT PostCopyItem
(
2966 [in] IShellItem
*psiItem
,
2967 [in] IShellItem
*psiDestinationFolder
,
2968 [in, unique, string] LPCWSTR pszNewName
,
2969 [in] HRESULT hrCopy
,
2970 [in] IShellItem
*psiNewlyCreated
);
2972 HRESULT PreDeleteItem
(
2974 [in] IShellItem
*psiItem
);
2976 HRESULT PostDeleteItem
(
2978 [in] IShellItem
*psiItem
,
2979 [in] HRESULT hrDelete
,
2980 [in] IShellItem
*psiNewlyCreated
);
2984 [in] IShellItem
*psiDestinationFolder
,
2985 [in, unique, string] LPCWSTR pszNewName
);
2987 HRESULT PostNewItem
(
2989 [in] IShellItem
*psiDestinationFolder
,
2990 [in, unique, string] LPCWSTR pszNewName
,
2991 [in, unique, string] LPCWSTR pszTemplateName
,
2992 [in] DWORD dwFileAttributes
,
2994 [in] IShellItem
*psiNewItem
);
2996 HRESULT UpdateProgress
(
2997 [in] UINT iWorkTotal
,
2998 [in] UINT iWorkSoFar
);
3000 HRESULT ResetTimer
();
3002 HRESULT PauseTimer
();
3004 HRESULT ResumeTimer
();
3007 /*****************************************************************************
3008 * IFileSaveDialog interface
3012 uuid(84BCCD23
-5FDE
-4CDB
-AEA4
-AF64B83D78AB
),
3013 pointer_default(unique)
3015 interface IFileSaveDialog
: IFileDialog
3017 HRESULT SetSaveAsItem
(
3018 [in] IShellItem
*psi
);
3020 HRESULT SetProperties
(
3021 [in] IPropertyStore
*pStore
);
3023 HRESULT SetCollectedProperties
(
3024 [in] IPropertyDescriptionList
*pList
,
3025 [in] BOOL fAppendDefault
);
3027 HRESULT GetProperties
(
3028 [in] IPropertyStore
**ppStore
);
3030 HRESULT ApplyProperties
(
3031 [in] IShellItem
*psi
,
3032 [in] IPropertyStore
*pStore
,
3033 [in, unique] HWND hwnd
,
3034 [in, unique] IFileOperationProgressSink
*pSink
);
3038 /*****************************************************************************
3039 * IFileOpenDialog interface
3043 uuid(D57C7288
-D4AD
-4768-BE02
-9D969532D960
),
3044 pointer_default(unique)
3046 interface IFileOpenDialog
: IFileDialog
3049 [out] IShellItemArray
**ppenum
);
3051 HRESULT GetSelectedItems
(
3052 [out] IShellItemArray
**ppsai
);
3055 typedef [v1_enum] enum CDCONTROLSTATEF
3057 CDCS_INACTIVE
= 0x0,
3060 CDCS_ENABLEDVISIBLE
= 0x3
3062 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
3063 /*****************************************************************************
3064 * IFileDialogCustomize interface
3068 uuid(E6FDD21A
-163F
-4975-9C8C
-A69F1BA37034
),
3069 pointer_default(unique)
3071 interface IFileDialogCustomize
: IUnknown
3073 HRESULT EnableOpenDropDown
(
3074 [in] DWORD dwIDCtl
);
3078 [in, string] LPCWSTR pszLabel
);
3080 HRESULT AddPushButton
(
3082 [in, string] LPCWSTR pszLabel
);
3084 HRESULT AddComboBox
(
3085 [in] DWORD dwIDCtl
);
3087 HRESULT AddRadioButtonList
(
3088 [in] DWORD dwIDCtl
);
3090 HRESULT AddCheckButton
(
3092 [in, string] LPCWSTR pszLabel
,
3093 [in] BOOL bChecked
);
3097 [in, string] LPCWSTR pszText
);
3099 HRESULT AddSeparator
(
3100 [in] DWORD dwIDCtl
);
3104 [in, string] LPCWSTR pszText
);
3106 HRESULT SetControlLabel
(
3108 [in, string] LPCWSTR pszLabel
);
3110 HRESULT GetControlState
(
3112 [out] CDCONTROLSTATEF
*pdwState
);
3114 HRESULT SetControlState
(
3116 [in] CDCONTROLSTATEF dwState
);
3118 HRESULT GetEditBoxText
(
3120 [out, string] WCHAR
**ppszText
);
3122 HRESULT SetEditBoxText
(
3124 [in, string] LPCWSTR pszText
);
3126 HRESULT GetCheckButtonState
(
3128 [out] BOOL
*pbChecked
);
3130 HRESULT SetCheckButtonState
(
3132 [in] BOOL bChecked
);
3134 HRESULT AddControlItem
(
3136 [in] DWORD dwIDItem
,
3137 [in] LPCWSTR pszLabel
);
3139 HRESULT RemoveControlItem
(
3141 [in] DWORD dwIDItem
);
3143 HRESULT RemoveAllControlItems
(
3144 [in] DWORD dwIDCtl
);
3146 HRESULT GetControlItemState
(
3148 [in] DWORD dwIDItem
,
3149 [out] CDCONTROLSTATEF
*pdwState
);
3151 HRESULT SetControlItemState
(
3153 [in] DWORD dwIDItem
,
3154 [in] CDCONTROLSTATEF dwState
);
3156 HRESULT GetSelectedControlItem
(
3158 [out] DWORD
*pdwIDItem
);
3160 HRESULT SetSelectedControlItem
(
3162 [in] DWORD dwIDItem
);
3164 HRESULT StartVisualGroup
(
3166 [in, string] LPCWSTR pszLabel
);
3168 HRESULT EndVisualGroup
();
3170 HRESULT MakeProminent
(
3171 [in] DWORD dwIDCtl
);
3173 HRESULT SetControlItemText
(
3175 [in] DWORD dwIDItem
,
3176 [in, string] LPCWSTR pszLabel
);
3179 /*****************************************************************************
3180 * IFileDialogControlEvents interface
3184 uuid(36116642-D713
-4B97
-9B83
-7484A9D00433
),
3185 pointer_default(unique)
3187 interface IFileDialogControlEvents
: IUnknown
3189 HRESULT OnItemSelected
(
3190 [in] IFileDialogCustomize
*pfdc
,
3192 [in] DWORD dwIDItem
);
3194 HRESULT OnButtonClicked
(
3195 [in] IFileDialogCustomize
*pfdc
,
3196 [in] DWORD dwIDCtl
);
3198 HRESULT OnCheckButtonToggled
(
3199 [in] IFileDialogCustomize
*pfdc
,
3201 [in] BOOL bChecked
);
3203 HRESULT OnControlActivating
(
3204 [in] IFileDialogCustomize
*pfdc
,
3205 [in] DWORD dwIDCtl
);
3208 typedef [v1_enum] enum tagKF_CATEGORY
3210 KF_CATEGORY_VIRTUAL
= 0x00000001,
3211 KF_CATEGORY_FIXED
= 0x00000002,
3212 KF_CATEGORY_COMMON
= 0x00000003,
3213 KF_CATEGORY_PERUSER
= 0x00000004
3216 typedef [v1_enum] enum tagKF_REDIRECTION_CAPABILITIES
3218 KF_REDIRECTION_CAPABILITIES_ALLOW_ALL
= 0x000000ff,
3219 KF_REDIRECTION_CAPABILITIES_REDIRECTABLE
= 0x00000001,
3220 KF_REDIRECTION_CAPABILITIES_DENY_ALL
= 0x000fff00,
3221 KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED
= 0x00000100,
3222 KF_REDIRECTION_CAPABILITIES_DENY_POLICY
= 0x00000200,
3223 KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS
= 0x00000400
3224 } KF_REDIRECTION_CAPABILITIES
;
3226 typedef [v1_enum] enum tagKF_DEFINITION_FLAGS
3228 KFDF_LOCAL_REDIRECT_ONLY
= 0x00000002,
3229 KFDF_ROAMABLE
= 0x00000004,
3230 KFDF_PRECREATE
= 0x00000008,
3231 KFDF_STREAM
= 0x00000010,
3232 KFDF_PUBLISHEXPANDEDPATH
= 0x00000020
3233 } KF_DEFINITION_FLAGS
;
3235 typedef struct tagKNOWNFOLDER_DEFINITION
3237 KF_CATEGORY category
;
3239 LPWSTR pszDescription
;
3240 KNOWNFOLDERID fidParent
;
3241 LPWSTR pszRelativePath
;
3242 LPWSTR pszParsingName
;
3244 LPWSTR pszLocalizedName
;
3248 KF_DEFINITION_FLAGS kfdFlags
;
3249 FOLDERTYPEID ftidType
;
3250 } KNOWNFOLDER_DEFINITION
;
3254 uuid(3aa7af7e
-9b36
-420C
-a8e3
-f77d4674a488
),
3255 pointer_default(ref)
3257 interface IKnownFolder
: IUnknown
3260 [out] KNOWNFOLDERID
*pkfid
);
3262 HRESULT GetCategory
(
3263 [out] KF_CATEGORY
*pCategory
);
3265 HRESULT GetShellItem
(
3268 [out, iid_is(riid
)] void **ppv
);
3272 [out, string] LPWSTR
*ppszPath
);
3276 [in, string] LPCWSTR pszPath
);
3280 [out] PIDLIST_ABSOLUTE
*ppidl
);
3282 HRESULT GetFolderType
(
3283 [out] FOLDERTYPEID
*pftid
);
3285 HRESULT GetRedirectionCapabilities
(
3286 [out] KF_REDIRECTION_CAPABILITIES
*pCapabilities
);
3288 HRESULT GetFolderDefinition
(
3289 [out] KNOWNFOLDER_DEFINITION
*pKFD
);
3292 typedef [v1_enum] enum tagKF_REDIRECT_FLAGS
3294 KF_REDIRECT_USER_EXCLUSIVE
= 0x00000001,
3295 KF_REDIRECT_COPY_SOURCE_DACL
= 0x00000002,
3296 KF_REDIRECT_OWNER_USER
= 0x00000004,
3297 KF_REDIRECT_SET_OWNER_EXPLICIT
= 0x00000008,
3298 KF_REDIRECT_CHECK_ONLY
= 0x00000010,
3299 KF_REDIRECT_WITH_UI
= 0x00000020,
3300 KF_REDIRECT_UNPIN
= 0x00000040,
3301 KF_REDIRECT_PIN
= 0x00000080,
3302 KF_REDIRECT_COPY_CONTENTS
= 0x00000200,
3303 KF_REDIRECT_DEL_SOURCE_CONTENTS
= 0x00000400,
3304 KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS
= 0x00000800
3305 } KF_REDIRECT_FLAGS
;
3309 uuid(8BE2D872
-86AA
-4d47
-B776
-32CCA40C7018
),
3310 pointer_default(ref)
3312 interface IKnownFolderManager
: IUnknown
3314 typedef [v1_enum] enum tagFFFP_MODE
3317 FFFP_NEARESTPARENTMATCH
3320 HRESULT FolderIdFromCsidl
(
3322 [out] KNOWNFOLDERID
*pfid
);
3324 HRESULT FolderIdToCsidl
(
3325 [in] REFKNOWNFOLDERID rfid
,
3326 [out] int *pnCsidl
);
3328 HRESULT GetFolderIds
(
3329 [out, size_is(, *pCount
)] KNOWNFOLDERID
**ppKFId
,
3330 [in, out] UINT
*pCount
);
3333 [in] REFKNOWNFOLDERID rfid
,
3334 [out] IKnownFolder
**ppkf
);
3336 HRESULT GetFolderByName
(
3337 [in, string] LPCWSTR pszCanonicalName
,
3338 [out] IKnownFolder
**ppkf
);
3340 HRESULT RegisterFolder
(
3341 [in] REFKNOWNFOLDERID rfid
,
3342 [in] KNOWNFOLDER_DEFINITION
const *pKFD
);
3344 HRESULT UnregisterFolder
(
3345 [in] REFKNOWNFOLDERID rfid
);
3347 HRESULT FindFolderFromPath
(
3348 [in, string] LPCWSTR pszPath
,
3349 [in] FFFP_MODE mode
,
3350 [out] IKnownFolder
**ppkf
);
3352 HRESULT FindFolderFromIDList
(
3353 [in] PCIDLIST_ABSOLUTE pidl
,
3354 [out] IKnownFolder
**ppkf
);
3357 [in] REFKNOWNFOLDERID rfid
,
3358 [in, unique] HWND hwnd
,
3359 [in] KF_REDIRECT_FLAGS flags
,
3360 [in, unique, string] LPCWSTR pszTargetPath
,
3362 [in, size_is(cFolders
), unique] KNOWNFOLDERID
const *pExclusion
,
3363 [out, string] LPWSTR
*ppszError
);
3366 /* function for releasing structure returned from IKnownFolder::GetFolderDefinition */
3367 cpp_quote
("static inline void FreeKnownFolderDefinitionFields(KNOWNFOLDER_DEFINITION *pKFD)")
3369 cpp_quote
(" CoTaskMemFree(pKFD->pszName);")
3370 cpp_quote
(" CoTaskMemFree(pKFD->pszDescription);")
3371 cpp_quote
(" CoTaskMemFree(pKFD->pszRelativePath);")
3372 cpp_quote
(" CoTaskMemFree(pKFD->pszParsingName);")
3373 cpp_quote
(" CoTaskMemFree(pKFD->pszTooltip);")
3374 cpp_quote
(" CoTaskMemFree(pKFD->pszLocalizedName);")
3375 cpp_quote
(" CoTaskMemFree(pKFD->pszIcon);")
3376 cpp_quote
(" CoTaskMemFree(pKFD->pszSecurity);")
3379 typedef [v1_enum] enum ASSOCIATIONLEVEL
{
3385 typedef [v1_enum] enum ASSOCIATIONTYPE
{
3394 uuid(4e530b0a
-e611
-4c77
-a3ac
-9031d022281b
),
3395 pointer_default(unique)
3397 interface IApplicationAssociationRegistration
: IUnknown
3399 HRESULT QueryCurrentDefault
(
3400 [in, string] LPCWSTR pszQuery
,
3401 [in] ASSOCIATIONTYPE atQueryType
,
3402 [in] ASSOCIATIONLEVEL alQueryLevel
,
3403 [out, string] LPWSTR
*ppszAssociation
);
3405 HRESULT QueryAppIsDefault
(
3406 [in, string] LPCWSTR pszQuery
,
3407 [in] ASSOCIATIONTYPE atQueryType
,
3408 [in] ASSOCIATIONLEVEL alQueryLevel
,
3409 [in, string] LPCWSTR pszAppRegistryName
,
3410 [out] BOOL
*pfDefault
);
3412 HRESULT QueryAppIsDefaultAll
(
3413 [in] ASSOCIATIONLEVEL alQueryLevel
,
3414 [in, string] LPCWSTR pszAppRegistryName
,
3415 [out] BOOL
* pfDefault
);
3417 HRESULT SetAppAsDefault
(
3418 [in, string] LPCWSTR pszAppRegistryName
,
3419 [in, string] LPCWSTR pszSet
,
3420 [in] ASSOCIATIONTYPE atSetType
);
3422 HRESULT SetAppAsDefaultAll
(
3423 [in, string] LPCWSTR pszAppRegistryName
);
3425 HRESULT ClearUserAssociations
();
3429 uuid(6332debf
-87b5
-4670-90c0
-5e57b408a49e
),
3431 pointer_default(unique)
3433 interface ICustomDestinationList
: IUnknown
3435 typedef [v1_enum] enum KNOWNDESTCATEGORY
{
3438 } KNOWNDESTCATEGORY
;
3440 HRESULT SetAppID
([in, string] LPCWSTR pszAppID
);
3443 [out] UINT
*pcMinSlots
,
3445 [out, iid_is(riid
)] void **ppv
);
3447 HRESULT AppendCategory
(
3448 [in, string] LPCWSTR pszCategory
,
3449 [in] IObjectArray
*poa
);
3451 HRESULT AppendKnownCategory
([in] KNOWNDESTCATEGORY category
);
3452 HRESULT AddUserTasks
([in] IObjectArray
*poa
);
3453 HRESULT CommitList
();
3455 HRESULT GetRemovedDestinations
(
3457 [out, iid_is(riid
)] void **ppv
);
3459 HRESULT DeleteList
([in, unique, string] LPCWSTR pszAppID
);
3460 HRESULT AbortList
();
3464 uuid(ddefe873
-6997-4e68
-be26
-39b633adbe12
),
3466 pointer_default(unique)
3468 interface IQueryCancelAutoPlay
: IUnknown
3470 HRESULT AllowAutoPlay
([in, string] LPCWSTR path
,
3471 [in] DWORD content_type
,
3472 [in, string] LPCWSTR label
,
3473 [in] DWORD serial_number
);
3477 uuid(d594d0d8
-8da7
-457b
-b3b4
-ce5dbaac0b88
),
3478 pointer_default(unique)
3480 interface ITransferAdviseSink
: IUnknown
3482 [v1_enum] enum _TRANSFER_ADVISE_STATE
3487 TS_INDETERMINATE
= 4
3489 typedef DWORD TRANSFER_ADVISE_STATE
;
3491 HRESULT UpdateProgress
([in] ULONGLONG size_current
,
3492 [in] ULONGLONG size_total
,
3493 [in] INT files_current
,
3494 [in] INT files_total
,
3495 [in] INT folders_current
,
3496 [in] INT folders_total
);
3497 HRESULT UpdateTransferState
([in] TRANSFER_ADVISE_STATE state
);
3498 HRESULT ConfirmOverwrite
([in] IShellItem
*source,
3499 [in] IShellItem
*dest_parent
,
3500 [in, string] LPCWSTR name
);
3501 HRESULT ConfirmEncryptLoss
([in] IShellItem
*source);
3502 HRESULT FileFailure
([in] IShellItem
*item
,
3503 [in, unique, string] LPCWSTR itemname
,
3505 [in, out, unique, size_is(crename
)] LPWSTR rename
,
3506 [in] ULONG crename
);
3507 HRESULT SubStreamFailure
([in] IShellItem
*item
,
3508 [in, string] LPCWSTR stream
,
3510 HRESULT PropertyFailure
([in] IShellItem
*item
,
3511 [in, unique] const PROPERTYKEY
*key
,
3515 [v1_enum] enum _TRANSFER_SOURCE_FLAGS
3519 TSF_RENAME_EXIST
= 0x1,
3520 TSF_OVERWRITE_EXIST
= 0x2,
3521 TSF_ALLOW_DECRYPTION
= 0x4,
3522 TSF_NO_SECURITY
= 0x8,
3523 TSF_COPY_CREATION_TIME
= 0x10,
3524 TSF_COPY_WRITE_TIME
= 0x20,
3525 TSF_USE_FULL_ACCESS
= 0x40,
3526 TSF_DELETE_RECYCLE_IF_POSSIBLE
= 0x80,
3527 TSF_COPY_HARD_LINK
= 0x100,
3528 TSF_COPY_LOCALIZED_NAME
= 0x200,
3529 TSF_MOVE_AS_COPY_DELETE
= 0x400,
3530 TSF_SUSPEND_SHELLEVENTS
= 0x800
3532 typedef DWORD TRANSFER_SOURCE_FLAGS
;
3535 uuid(00adb003
-bde9
-45c6
-8e29
-d09f9353e108
),
3537 pointer_default(unique)
3539 interface ITransferSource
: IUnknown
3541 HRESULT Advise
([in] ITransferAdviseSink
*sink
, [out] DWORD
*cookie
);
3542 HRESULT Unadvise
([in] DWORD cookie
);
3543 HRESULT SetProperties
([in] IPropertyChangeArray
*array
);
3544 HRESULT OpenItem
([in] IShellItem
*item
,
3545 [in] TRANSFER_SOURCE_FLAGS flags
,
3547 [out, iid_is(riid
)] void **ppv
);
3548 HRESULT MoveItem
([in] IShellItem
*item
,
3549 [in] IShellItem
*parent_dest
,
3550 [in, string] LPCWSTR name_dest
,
3551 [in] TRANSFER_SOURCE_FLAGS flags
,
3552 [out] IShellItem
**newitem
);
3553 HRESULT RecycleItem
([in] IShellItem
*source,
3554 [in] IShellItem
*parent_dest
,
3555 [in] TRANSFER_SOURCE_FLAGS flags
,
3556 [out] IShellItem
**new_dest
);
3557 HRESULT RemoveItem
([in] IShellItem
*source, [in] TRANSFER_SOURCE_FLAGS flags
);
3558 HRESULT RenameItem
([in] IShellItem
*source,
3559 [in, string] LPCWSTR newname
,
3560 [in] TRANSFER_SOURCE_FLAGS flags
,
3561 [out] IShellItem
**new_dest
);
3562 HRESULT LinkItem
([in] IShellItem
*source,
3563 [in] IShellItem
*parent_dest
,
3564 [in, unique, string] LPCWSTR new_name
,
3565 [in] TRANSFER_SOURCE_FLAGS flags
,
3566 [out] IShellItem
**new_dest
);
3567 HRESULT ApplyPropertiesToItem
([in] IShellItem
*source, [out] IShellItem
**newitem
);
3568 HRESULT GetDefaultDestinationName
([in] IShellItem
*source,
3569 [in] IShellItem
*parent_dest
,
3570 [out, string] LPWSTR
*dest_name
);
3571 HRESULT EnterFolder
([in] IShellItem
*child_folder
);
3572 HRESULT LeaveFolder
([in] IShellItem
*child_folder
);
3576 uuid(48addd32
-3ca5
-4124-abe3
-b5a72531b207
),
3578 pointer_default(unique)
3580 interface ITransferDestination
: IUnknown
3582 HRESULT Advise
([in] ITransferAdviseSink
*sink
, [out] DWORD
*cookie
);
3583 HRESULT Unadvise
([in] DWORD cookie
);
3584 HRESULT CreateItem
([in, string] LPCWSTR name
,
3586 [in] ULONGLONG size
,
3587 [in] TRANSFER_SOURCE_FLAGS flags
,
3589 [out, iid_is(riid
)] void **ppv
,
3590 [in] REFIID resources
,
3591 [out, iid_is(riid
)] void **presources
);
3595 uuid(92218cab
-ecaa
-4335-8133-807fd234c2ee
),
3597 pointer_default(unique)
3599 interface IAssocHandlerInvoker
: IUnknown
3601 HRESULT SupportsSelection
();
3606 uuid(f04061ac
-1659-4a3f
-a954
-775aa57fc083
),
3608 pointer_default(unique)
3610 interface IAssocHandler
: IUnknown
3612 HRESULT GetName
([out, string] LPWSTR
*name
);
3613 HRESULT GetUIName
([out, string] LPWSTR
*uiname
);
3614 HRESULT GetIconLocation
([out, string] LPWSTR
*path
,
3616 HRESULT IsRecommended
();
3617 HRESULT MakeDefault
([in, string] LPCWSTR description
);
3618 HRESULT Invoke
([in] IDataObject
*object);
3619 HRESULT CreateInvoker
([in] IDataObject
*object,
3620 [out] IAssocHandlerInvoker
**invoker
);
3624 uuid(973810ae
-9599-4b88
-9e4d
-6ee98c9552da
),
3626 pointer_default(unique)
3628 interface IEnumAssocHandlers
: IUnknown
3630 HRESULT Next
([in] ULONG count
,
3631 [out, size_is(count
), length_is(*fetched
)] IAssocHandler
**handlers
,
3632 [out] ULONG
*fetched
);
3635 typedef enum ASSOC_FILTER
3637 ASSOC_FILTER_NONE
= 0,
3638 ASSOC_FILTER_RECOMMENDED
3640 cpp_quote
("HRESULT WINAPI SHAssocEnumHandlers(PCWSTR extra, ASSOC_FILTER filter, IEnumAssocHandlers **handlersenum);")
3642 /*****************************************************************************
3643 * ShellObjects typelibrary
3646 uuid(50A7E9B1
-70EF
-11D1
-B75A
-00A0C90564FE
),
3650 library ShellObjects
3653 uuid(71F96385
-DDD6
-48D3
-A0C1
-AE06E8B055FB
)
3655 coclass ExplorerBrowser
3657 interface IExplorerBrowser
;
3661 uuid(DC1C5A9C
-E88A
-4DDE
-A5A1
-60F82A20AEF7
)
3663 coclass FileOpenDialog
3665 interface IFileOpenDialog
;
3669 uuid(C0B4E2F3
-BA21
-4773-8DBA
-335EC946EB8B
)
3671 coclass FileSaveDialog
3673 interface IFileSaveDialog
;
3677 uuid(AE054212
-3535-4430-83ED
-D501AA6680E6
)
3679 coclass NamespaceTreeControl
3681 interface INameSpaceTreeControl2
;
3685 uuid(4df0c730
-df9d
-4ae3
-9153-aa6b82e9795a
)
3687 coclass KnownFolderManager
3689 interface IKnownFolderManager
;
3693 uuid(591209c7
-767b
-42b2
-9fba
-44ee4615f2c7
)
3695 coclass ApplicationAssociationRegistration
3697 interface IApplicationAssociationRegistration
;
3701 uuid(00021401-0000-0000-c000
-000000000046)
3705 interface IShellLinkW
;
3709 uuid(56fdf344
-fd6d
-11d0
-958a
-006097c9a090
)
3713 interface ITaskbarList4
;
3717 uuid(77f10cf0
-3db5
-4966-b520
-b7c54fd35ed6
)
3719 coclass DestinationList
{
3720 interface ICustomDestinationList
;
3724 uuid(2d3468c1
-36a7
-43b6
-ac24
-d3f02fd9607a
)
3726 coclass EnumerableObjectCollection
3728 interface IEnumObjects
;
3732 uuid(331f1768
-05a9
-4ddd
-b86e
-dae34ddc998a
)
3734 coclass QueryCancelAutoPlay
3736 interface IQueryCancelAutoPlay
;