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"; */
36 import
"shobjidl_core.idl";
38 cpp_quote
("/* FIXME: #include <sherrors.h> */")
40 cpp_quote
("#ifndef WINSHELLAPI")
41 cpp_quote
("#ifdef _SHELL32_")
42 cpp_quote
("# define WINSHELLAPI")
44 cpp_quote
("# define WINSHELLAPI DECLSPEC_IMPORT")
48 /*****************************************************************************
49 * IPersistFolder interface
53 uuid(000214ea
-0000-0000-c000
-000000000046),
54 pointer_default(unique)
56 interface IPersistFolder
: IPersist
58 typedef IPersistFolder
*LPPERSISTFOLDER
;
60 HRESULT Initialize
( [in] LPCITEMIDLIST pidl
);
64 /*****************************************************************************
65 * IPersistFolder2 interface
69 uuid(1ac3d9f0
-175c
-11d1
-95be
-00609797ea4f
),
70 pointer_default(unique)
72 interface IPersistFolder2
: IPersistFolder
74 typedef IPersistFolder2
*LPPERSISTFOLDER2
;
76 HRESULT GetCurFolder
( [out] LPITEMIDLIST
*ppidl
);
80 /*****************************************************************************
81 * IPersistIDList interface
85 uuid(1079acfc
-29bd
-11d3
-8e0d
-00c04f6837d5
),
86 pointer_default(unique)
88 interface IPersistIDList
: IPersist
90 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
91 HRESULT GetIDList
( [out] LPITEMIDLIST
*ppidl
);
95 /*****************************************************************************
96 * IEnumIDList interface
100 uuid(000214f2
-0000-0000-c000
-000000000046),
101 pointer_default(unique)
103 interface IEnumIDList
: IUnknown
105 typedef IEnumIDList
*LPENUMIDLIST
;
109 [out, size_is(celt
), length_is(*pceltFetched
)] LPITEMIDLIST
*rgelt
,
110 [out] ULONG
*pceltFetched
);
112 HRESULT Skip
( [in] ULONG celt
);
114 HRESULT Clone
( [out] IEnumIDList
**ppenum
);
117 /*****************************************************************************
118 * IShellPropSheetExt interface
121 typedef LPARAM LPFNSVADDPROPSHEETPAGE
;
123 cpp_quote
("#include <prsht.h>")
124 cpp_quote
("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
129 uuid(000214E9
-0000-0000-C000
-000000000046),
130 pointer_default(unique),
133 interface IShellPropSheetExt
: IUnknown
135 enum tagSHELLPROPSHEETEXTPAGEID
{
136 EXPPS_FILETYPES
= 0x1
142 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage
,
146 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith
,
149 typedef IShellPropSheetExt
*LPSHELLPROPSHEETEXT
;
151 /*****************************************************************************
152 * IShellFolder interface
156 uuid(000214e6
-0000-0000-c000
-000000000046),
157 pointer_default(unique)
159 interface IShellFolder
: IUnknown
161 typedef IShellFolder
* LPSHELLFOLDER
;
163 typedef enum tagSHGDN
167 SHGDN_FOREDITING
= 0x1000,
168 SHGDN_INCLUDE_NONFILESYS
= 0x2000,
169 SHGDN_FORADDRESSBAR
= 0x4000,
170 SHGDN_FORPARSING
= 0x8000
173 typedef DWORD SHGDNF
;
177 SHCONTF_CHECKING_FOR_CHILDREN
= 0x00000010,
178 SHCONTF_FOLDERS
= 0x00000020,
179 SHCONTF_NONFOLDERS
= 0x00000040,
180 SHCONTF_INCLUDEHIDDEN
= 0x00000080,
181 SHCONTF_INIT_ON_FIRST_NEXT
= 0x00000100,
182 SHCONTF_NETPRINTERSRCH
= 0x00000200,
183 SHCONTF_SHAREABLE
= 0x00000400,
184 SHCONTF_STORAGE
= 0x00000800,
185 SHCONTF_NAVIGATION_ENUM
= 0x00001000,
186 SHCONTF_FASTITEMS
= 0x00002000,
187 SHCONTF_FLATLIST
= 0x00004000,
188 SHCONTF_ENABLE_ASYNC
= 0x00008000,
189 SHCONTF_INCLUDESUPERHIDDEN
= 0x00010000
192 typedef DWORD SHCONTF
;
194 cpp_quote
("#define SFGAO_CANCOPY DROPEFFECT_COPY")
195 cpp_quote
("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
196 cpp_quote
("#define SFGAO_CANLINK DROPEFFECT_LINK")
197 cpp_quote
("#define SFGAO_STORAGE 0x00000008L")
198 cpp_quote
("#define SFGAO_CANRENAME 0x00000010L")
199 cpp_quote
("#define SFGAO_CANDELETE 0x00000020L")
200 cpp_quote
("#define SFGAO_HASPROPSHEET 0x00000040L")
201 cpp_quote
("#define SFGAO_DROPTARGET 0x00000100L")
202 cpp_quote
("#define SFGAO_CAPABILITYMASK 0x00000177L")
203 cpp_quote
("#define SFGAO_SYSTEM 0x00001000L")
204 cpp_quote
("#define SFGAO_ENCRYPTED 0x00002000L")
205 cpp_quote
("#define SFGAO_ISSLOW 0x00004000L")
206 cpp_quote
("#define SFGAO_GHOSTED 0x00008000L")
207 cpp_quote
("#define SFGAO_LINK 0x00010000L")
208 cpp_quote
("#define SFGAO_SHARE 0x00020000L")
209 cpp_quote
("#define SFGAO_READONLY 0x00040000L")
210 cpp_quote
("#define SFGAO_HIDDEN 0x00080000L")
211 cpp_quote
("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
212 cpp_quote
("#define SFGAO_FILESYSANCESTOR 0x10000000L")
213 cpp_quote
("#define SFGAO_FOLDER 0x20000000L")
214 cpp_quote
("#define SFGAO_FILESYSTEM 0x40000000L")
215 cpp_quote
("#define SFGAO_HASSUBFOLDER 0x80000000L")
216 cpp_quote
("#define SFGAO_CONTENTSMASK 0x80000000L")
217 cpp_quote
("#define SFGAO_VALIDATE 0x01000000L")
218 cpp_quote
("#define SFGAO_REMOVABLE 0x02000000L")
219 cpp_quote
("#define SFGAO_COMPRESSED 0x04000000L")
220 cpp_quote
("#define SFGAO_BROWSABLE 0x08000000L")
221 cpp_quote
("#define SFGAO_NONENUMERATED 0x00100000L")
222 cpp_quote
("#define SFGAO_NEWCONTENT 0x00200000L")
223 cpp_quote
("#define SFGAO_CANMONIKER 0x00400000L")
224 cpp_quote
("#define SFGAO_HASSTORAGE 0x00400000L")
225 cpp_quote
("#define SFGAO_STREAM 0x00400000L")
226 cpp_quote
("#define SFGAO_STORAGEANCESTOR 0x00800000L")
227 cpp_quote
("#define SFGAO_STORAGEGAPMASK 0x70C50008L")
228 cpp_quote
("#define SFGAO_PKEYSFGAOMASK 0x81044000L")
230 typedef ULONG SFGAOF
;
232 HRESULT ParseDisplayName
(
234 [in] LPBC pbcReserved
,
235 [in, string] LPOLESTR lpszDisplayName
,
236 [out] ULONG
*pchEaten
,
237 [out] LPITEMIDLIST
*ppidl
,
238 [in, out, unique] ULONG
*pdwAttributes
);
242 [in] SHCONTF grfFlags
,
243 [out] IEnumIDList
**ppenumIDList
);
245 HRESULT BindToObject
(
246 [in] LPCITEMIDLIST pidl
,
247 [in] LPBC pbcReserved
,
249 [out, iid_is(riid
)] void **ppvOut
);
251 HRESULT BindToStorage
(
252 [in] LPCITEMIDLIST pidl
,
253 [in] LPBC pbcReserved
,
255 [out, iid_is(riid
)] void **ppvObj
);
259 [in] LPCITEMIDLIST pidl1
,
260 [in] LPCITEMIDLIST pidl2
);
262 HRESULT CreateViewObject
(
265 [out, iid_is(riid
)] void **ppvOut
);
267 HRESULT GetAttributesOf
(
269 [in, size_is(cidl
)] LPCITEMIDLIST
*apidl
,
270 [in, out] SFGAOF
*rgfInOut
);
272 HRESULT GetUIObjectOf
(
275 [in, size_is(cidl
)] LPCITEMIDLIST
*apidl
,
277 [in, out, unique] UINT
*prgfInOut
,
278 [out, iid_is(riid
)] void **ppvOut
);
280 HRESULT GetDisplayNameOf
(
281 [in] LPCITEMIDLIST pidl
,
283 [out] STRRET
*lpName
);
287 [in] LPCITEMIDLIST pidl
,
288 [in, string] LPCOLESTR lpszName
,
290 [out] LPITEMIDLIST
*ppidlOut
);
294 /*****************************************************************************
295 * IEnumExtraSearch interface
299 uuid(0e700be1
-9db6
-11d1
-a1ce
-00c04fd75d13
),
300 pointer_default(unique)
302 interface IEnumExtraSearch
: IUnknown
304 typedef IEnumExtraSearch
*LPENUMEXTRASEARCH
;
309 WCHAR wszFriendlyName
[80];
311 *WCHAR wszMenuText[80];
312 *WCHAR wszHelpText[MAX_PATH];
316 *WCHAR wszIcon[MAX_PATH+10];
317 *WCHAR wszGreyIcon[MAX_PATH+10];
318 *WCHAR wszClrIcon[MAX_PATH+10];
320 } EXTRASEARCH
, *LPEXTRASEARCH
;
324 [out, size_is(celt
), length_is(*pceltFetched
)] EXTRASEARCH
*rgelt
,
325 [out] ULONG
*pceltFetched
);
327 HRESULT Skip
( [in] ULONG celt
);
329 HRESULT Clone
( [out] IEnumExtraSearch
**ppenum
);
333 /*****************************************************************************
334 * IShellFolder2 interface
338 uuid(93f2f68c
-1d1b
-11d3
-a30e
-00c04f79abd1
),
339 pointer_default(unique)
341 interface IShellFolder2
: IShellFolder
347 } SHCOLUMNID
, *LPSHCOLUMNID
;
348 typedef const SHCOLUMNID
*LPCSHCOLUMNID
;
350 HRESULT GetDefaultSearchGUID
( [out] GUID
*lpguid
);
351 HRESULT EnumSearches
( [out] IEnumExtraSearch
**ppenum
);
352 HRESULT GetDefaultColumn
( [in] DWORD dwReserved
, [out] ULONG
*pSort
, [out] ULONG
*pDisplay
);
353 HRESULT GetDefaultColumnState
( [in] UINT iColumn
, [out] SHCOLSTATEF
*pcsFlags
);
354 HRESULT GetDetailsEx
( [in] LPCITEMIDLIST pidl
, [in] const SHCOLUMNID
*pscid
, [out] VARIANT *pv
);
355 HRESULT GetDetailsOf
( [in] LPCITEMIDLIST pidl
, [in] UINT iColumn
, [out] SHELLDETAILS
*psd
);
356 HRESULT MapColumnToSCID
( [in] UINT iColumn
, [in] SHCOLUMNID
*pscid
);
359 /*****************************************************************************
360 * IShellItem interface
364 uuid(43826d1e
-e718
-42ee
-bc55
-a1e261c37bfe
),
365 pointer_default(unique)
367 interface IShellItem
: IUnknown
369 typedef [v1_enum] enum {
370 SIGDN_NORMALDISPLAY
= 0,
371 SIGDN_PARENTRELATIVEPARSING
= 0x80018001,
372 SIGDN_DESKTOPABSOLUTEPARSING
= 0x80028000,
373 SIGDN_PARENTRELATIVEEDITING
= 0x80031001,
374 SIGDN_DESKTOPABSOLUTEEDITING
= 0x8004c000,
375 SIGDN_FILESYSPATH
= 0x80058000,
376 SIGDN_URL
= 0x80068000,
377 SIGDN_PARENTRELATIVEFORADDRESSBAR
= 0x8007c001,
378 SIGDN_PARENTRELATIVE
= 0x80080001,
379 SIGDN_PARENTRELATIVEFORUI
= 0x80094001,
380 } SIGDN
; /* & 0xFFFF => SHGDN */
382 [v1_enum] enum _SICHINTF
384 SICHINT_DISPLAY
= 0x00000000,
385 SICHINT_CANONICAL
= 0x10000000,
386 SICHINT_TEST_FILESYSPATH_IF_NOT_EQUAL
= 0x20000000,
387 SICHINT_ALLFIELDS
= 0x80000000
389 typedef DWORD SICHINTF
;
391 HRESULT BindToHandler
(
392 [in, unique] IBindCtx
*pbc
,
395 [out, iid_is(riid
)] void **ppvOut
);
397 HRESULT GetParent
( [out] IShellItem
**ppsi
);
399 HRESULT GetDisplayName
(
400 [in] SIGDN sigdnName
,
401 [out] LPWSTR
*ppszName
);
403 HRESULT GetAttributes
(
404 [in] SFGAOF sfgaoMask
,
405 [out] SFGAOF
*psfgaoAttribs
);
408 [in] IShellItem
*psi
,
413 /*****************************************************************************
414 * IShellItem2 interface
418 uuid(7E9FB0D3
-919F
-4307-AB2E
-9B1860310C93
),
419 pointer_default(unique)
421 interface IShellItem2
: IShellItem
423 HRESULT GetPropertyStore
(
424 [in] GETPROPERTYSTOREFLAGS flags
,
426 [out, iid_is(riid
)] void **ppv
);
428 HRESULT GetPropertyStoreWithCreateObject
(
429 [in] GETPROPERTYSTOREFLAGS flags
,
430 [in] IUnknown
*punkCreateObject
,
432 [out, iid_is(riid
)] void **ppv
);
434 HRESULT GetPropertyStoreForKeys
(
435 [in, size_is(cKeys
)] const PROPERTYKEY
*rgKeys
,
437 [in] GETPROPERTYSTOREFLAGS flags
,
439 [out, iid_is(riid
)] void **ppv
);
441 HRESULT GetPropertyDescriptionList
(
442 [in] REFPROPERTYKEY keyType
,
444 [out, iid_is(riid
)] void **ppv
);
447 [in, unique] IBindCtx
*pbc
);
450 [in] REFPROPERTYKEY key
,
451 [out] PROPVARIANT
*ppropvar
);
454 [in] REFPROPERTYKEY key
,
455 [out] CLSID
*pclsid
);
457 HRESULT GetFileTime
(
458 [in] REFPROPERTYKEY key
,
459 [out] FILETIME
*pft
);
462 [in] REFPROPERTYKEY key
,
466 [in] REFPROPERTYKEY key
,
467 [out, string] LPWSTR
*ppsz
);
470 [in] REFPROPERTYKEY key
,
474 [in] REFPROPERTYKEY key
,
475 [out] ULONGLONG
*pull
);
478 [in] REFPROPERTYKEY key
,
482 /*****************************************************************************
483 * IShellItemImageFactory interface
487 uuid(bcc18b79
-ba16
-442f
-80c4
-8a59c30c463b
),
488 pointer_default(unique)
490 interface IShellItemImageFactory
: IUnknown
492 [v1_enum] enum _SIIGBF
{
493 SIIGBF_RESIZETOFIT
= 0x00000000,
494 SIIGBF_BIGGERSIZEOK
= 0x00000001,
495 SIIGBF_MEMORYONLY
= 0x00000002,
496 SIIGBF_ICONONLY
= 0x00000004,
497 SIIGBF_THUMBNAILONLY
= 0x00000008,
498 SIIGBF_INCACHEONLY
= 0x00000010,
499 SIIGBF_CROPTOSQUARE
= 0x00000020,
500 SIIGBF_WIDETHUMBNAILS
= 0x00000040,
501 SIIGBF_ICONBACKGROUND
= 0x00000080,
502 SIIGBF_SCALEUP
= 0x00000100,
509 [out] HBITMAP *phbm
);
514 uuid(b3a4b685
-b685
-4805-99d9
-5dead2873236
),
515 pointer_default(unique)
517 interface IParentAndItem
: IUnknown
519 HRESULT SetParentAndItem
(
520 [in, unique] PCIDLIST_ABSOLUTE parent
,
521 [in, unique] IShellFolder
*folder
,
522 [in] PCUITEMID_CHILD child
);
525 HRESULT GetParentAndItem
(
526 [out] PIDLIST_ABSOLUTE
*parent
,
527 [out] IShellFolder
**folder
,
528 [out] PITEMID_CHILD
*child
);
530 [call_as
(GetParentAndItem
)]
531 HRESULT RemoteGetParentAndItem
(
532 [out] PIDLIST_ABSOLUTE
*parent
,
533 [out] IShellFolder
**folder
,
534 [out] PITEMID_CHILD
*child
);
537 typedef [v1_enum] enum tagNWMF
{
538 NWMF_UNLOADING
= 0x00000001,
539 NWMF_USERINITED
= 0x00000002,
540 NWMF_FIRST
= 0x00000004,
541 NWMF_OVERRIDEKEY
= 0x00000008,
542 NWMF_SHOWHELP
= 0x00000010,
543 NWMF_HTMLDIALOG
= 0x00000020,
544 NWMF_FROMDIALOGCHILD
= 0x00000040,
545 NWMF_USERREQUESTED
= 0x00000080,
546 NWMF_USERALLOWED
= 0x00000100,
547 NWMF_FORCEWINDOW
= 0x00010000,
548 NWMF_FORCETAB
= 0x00020000,
549 NWMF_SUGGESTWINDOW
= 0x00040000,
550 NWMF_SUGGESTTAB
= 0x00080000,
551 NWMF_INACTIVETAB
= 0x00100000,
555 uuid(d2bc4c84
-3f72
-4a52
-a604
-7bcbf3982cbb
),
557 pointer_default(unique)
559 interface INewWindowManager
: IUnknown
561 HRESULT EvaluateNewWindow
(
562 [in, string] LPCWSTR pszUrl
,
563 [in, string] LPCWSTR pszName
,
564 [in, string] LPCWSTR pszUrlContext
,
565 [in, string] LPCWSTR pszFeatures
,
568 [in] DWORD dwUserActionTime
);
571 cpp_quote
("#define SID_SNewWindowManager IID_INewWindowManager")
573 /*****************************************************************************
574 * IEnumShellItems interface
578 uuid(70629033-E363
-4A28
-A567
-0DB78006E6D7
),
579 pointer_default(unique)
581 interface IEnumShellItems
: IUnknown
583 [local] HRESULT Next
(
585 [out, size_is(celt
), length_is(*pceltFetched
)] IShellItem
**rgelt
,
586 [out] ULONG
*pceltFetched
);
588 [call_as
(Next
)] HRESULT RemoteNext
(
590 [out, size_is(celt
), length_is(*pceltFetched
)] IShellItem
**rgelt
,
591 [out] ULONG
*pceltFetched
);
599 [out] IEnumShellItems
**ppenum
);
602 /*****************************************************************************
603 * IShellItemArray interface
607 uuid(B63EA76D
-1F85
-456F
-A19C
-48159EFA858B
),
608 pointer_default(unique)
610 interface IShellItemArray
: IUnknown
612 typedef [v1_enum] enum SIATTRIBFLAGS
{
613 SIATTRIBFLAGS_AND
= 0x0001,
614 SIATTRIBFLAGS_OR
= 0x0002,
615 SIATTRIBFLAGS_APPCOMPAT
= 0x0003,
616 SIATTRIBFLAGS_MASK
= 0x0003,
617 SIATTRIBFLAGS_ALLITEMS
= 0x4000
619 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(SIATTRIBFLAGS)")
621 HRESULT BindToHandler
(
622 [in, unique] IBindCtx
*pbc
,
625 [out, iid_is(riid
)] void **ppvOut
);
627 HRESULT GetPropertyStore
(
628 [in] GETPROPERTYSTOREFLAGS flags
,
630 [out, iid_is(riid
)] void **ppv
);
632 HRESULT GetPropertyDescriptionList
(
633 [in] REFPROPERTYKEY keyType
,
635 [out, iid_is(riid
)] void **ppv
);
637 HRESULT GetAttributes
(
638 [in] SIATTRIBFLAGS AttribFlags
,
639 [in] SFGAOF sfgaoMask
,
640 [out] SFGAOF
*psfgaoAttribs
);
643 [out] DWORD
*pdwNumItems
);
647 [out] IShellItem
**ppsi
);
650 [out] IEnumShellItems
**ppenumShellItems
);
654 typedef [v1_enum] enum DATAOBJ_GET_ITEM_FLAGS
657 DOGIF_TRAVERSE_LINK
= 0x1,
658 DOGIF_NO_HDROP
= 0x2,
660 DOGIF_ONLY_IF_ONE
= 0x8
661 } DATAOBJ_GET_ITEM_FLAGS
;
662 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(DATAOBJ_GET_ITEM_FLAGS)")
664 cpp_quote
("WINSHELLAPI HRESULT WINAPI SHGetNameFromIDList(PCIDLIST_ABSOLUTE pidl, SIGDN sigdnName, PWSTR *ppszName);")
665 cpp_quote
("WINSHELLAPI HRESULT WINAPI SHCreateItemFromParsingName(PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv);")
666 cpp_quote
("WINSHELLAPI HRESULT WINAPI SHCreateItemFromIDList(PCIDLIST_ABSOLUTE pidl, REFIID riid, void **ppv);")
667 cpp_quote
("WINSHELLAPI HRESULT WINAPI SHCreateItemFromRelativeName(IShellItem *parent, PCWSTR name, IBindCtx *pbc, REFIID riid, void **ppv);")
668 cpp_quote
("WINSHELLAPI HRESULT WINAPI SHGetItemFromDataObject(IDataObject *pdtobj, DATAOBJ_GET_ITEM_FLAGS dwFlags, REFIID riid, void **ppv);")
669 cpp_quote
("WINSHELLAPI HRESULT WINAPI SHGetIDListFromObject(IUnknown *punk, PIDLIST_ABSOLUTE *ppidl);")
670 cpp_quote
("WINSHELLAPI HRESULT WINAPI SHGetItemFromObject(IUnknown *punk, REFIID riid, void **ppv);")
671 cpp_quote
("WINSHELLAPI HRESULT WINAPI SHCreateShellItemArray(PCIDLIST_ABSOLUTE pidlParent, IShellFolder* psf, UINT cidl, PCUITEMID_CHILD_ARRAY ppidl, IShellItemArray **ppsiItemArray);")
672 cpp_quote
("WINSHELLAPI HRESULT WINAPI SHCreateShellItemArrayFromShellItem(IShellItem *psi, REFIID riid, void **ppv);")
673 cpp_quote
("WINSHELLAPI HRESULT WINAPI SHCreateShellItemArrayFromIDLists(UINT cidl, PCIDLIST_ABSOLUTE_ARRAY pidl_array, IShellItemArray **psia);")
674 cpp_quote
("WINSHELLAPI HRESULT WINAPI SHCreateItemInKnownFolder(REFKNOWNFOLDERID rfid, DWORD flags, PCWSTR filename, REFIID riid, void **ppv);")
675 cpp_quote
("WINSHELLAPI HRESULT WINAPI SHCreateShellItemArrayFromDataObject(IDataObject *pdo, REFIID riid, void **ppv);")
677 /*****************************************************************************
678 * IShellItemFilter interface
682 uuid(2659B475
-EEB8
-48B7
-8F07
-B378810F48CF
),
683 pointer_default(unique)
685 interface IShellItemFilter
: IUnknown
688 [in] IShellItem
*psi
);
690 HRESULT GetEnumFlagsForItem
(
691 [in] IShellItem
*psi
,
692 [out] SHCONTF
*pgrfFlags
);
695 /*****************************************************************************
698 typedef char *LPVIEWSETTINGS
;
700 typedef [v1_enum] enum FOLDERFLAGS
702 FWF_AUTOARRANGE
= 0x00000001,
703 FWF_ABBREVIATEDNAMES
= 0x00000002,
704 FWF_SNAPTOGRID
= 0x00000004,
705 FWF_OWNERDATA
= 0x00000008,
706 FWF_BESTFITWINDOW
= 0x00000010,
707 FWF_DESKTOP
= 0x00000020,
708 FWF_SINGLESEL
= 0x00000040,
709 FWF_NOSUBFOLDERS
= 0x00000080,
710 FWF_TRANSPARENT
= 0x00000100,
711 FWF_NOCLIENTEDGE
= 0x00000200,
712 FWF_NOSCROLL
= 0x00000400,
713 FWF_ALIGNLEFT
= 0x00000800,
714 FWF_NOICONS
= 0x00001000,
715 FWF_SHOWSELALWAYS
= 0x00002000,
716 FWF_NOVISIBLE
= 0x00004000,
717 FWF_SINGLECLICKACTIVATE
= 0x00008000,
718 FWF_NOWEBVIEW
= 0x00010000,
719 FWF_HIDEFILENAMES
= 0x00020000,
720 FWF_CHECKSELECT
= 0x00040000,
721 FWF_NOENUMREFRESH
= 0x00080000,
722 FWF_NOGROUPING
= 0x00100000,
723 FWF_FULLROWSELECT
= 0x00200000,
724 FWF_NOFILTERS
= 0x00400000,
725 FWF_NOCOLUMNHEADER
= 0x00800000,
726 FWF_NOHEADERINALLVIEWS
= 0x01000000,
727 FWF_EXTENDEDTILES
= 0x02000000,
728 FWF_TRICHECKSELECT
= 0x04000000,
729 FWF_AUTOCHECKSELECT
= 0x08000000,
730 FWF_NOBROWSERVIEWSTATE
= 0x10000000,
731 FWF_SUBSETGROUPS
= 0x20000000,
732 FWF_USESEARCHFOLDER
= 0x40000000,
733 FWF_ALLOWRTLREADING
= 0x80000000
736 typedef [v1_enum] enum FOLDERVIEWMODE
740 FVM_FIRST
= FVM_ICON
,
748 FVM_LAST
= FVM_CONTENT
755 } FOLDERSETTINGS
, *PFOLDERSETTINGS
, *LPFOLDERSETTINGS
;
756 typedef const FOLDERSETTINGS
*LPCFOLDERSETTINGS
;
758 /*****************************************************************************
759 * IShellIcon interface
762 uuid(000214e5
-0000-0000-c000
-000000000046),
764 pointer_default(unique)
766 interface IShellIcon
: IUnknown
769 [in] PCUITEMID_CHILD pidl
,
771 [out] int *pIconIndex
);
774 /*****************************************************************************
775 * IShellView interface
777 interface IShellBrowser
; /* forward declaration */
780 uuid(000214e3
-0000-0000-c000
-000000000046),
781 pointer_default(unique)
783 interface IShellView
: IOleWindow
785 typedef IShellView
*LPSHELLVIEW
;
787 typedef [v1_enum] enum _SVSIF
789 SVSI_DESELECT
= 0x00000000,
790 SVSI_SELECT
= 0x00000001,
791 SVSI_EDIT
= 0x00000003,
792 SVSI_DESELECTOTHERS
= 0x00000004,
793 SVSI_ENSUREVISIBLE
= 0x00000008,
794 SVSI_FOCUSED
= 0x00000010,
795 SVSI_TRANSLATEPT
= 0x00000020,
796 SVSI_SELECTIONMARK
= 0x00000040,
797 SVSI_POSITIONITEM
= 0x00000080,
798 SVSI_CHECK
= 0x00000100,
799 SVSI_CHECK2
= 0x00000200,
800 SVSI_KEYBOARDSELECT
= 0x00000401,
801 SVSI_NOTAKEFOCUS
= 0x40000000,
804 cpp_quote
("#define SVSI_NOSTATECHANGE 0x80000000")
808 typedef [v1_enum] enum _SVGIO
810 SVGIO_BACKGROUND
= 0x00000000,
811 SVGIO_SELECTION
= 0x00000001,
812 SVGIO_ALLVIEW
= 0x00000002,
813 SVGIO_CHECKED
= 0x00000003,
814 SVGIO_TYPE_MASK
= 0x0000000f,
815 SVGIO_FLAG_VIEWORDER
= 0x80000000,
820 typedef [v1_enum] enum SVUIA_STATUS
822 SVUIA_DEACTIVATE
= 0,
823 SVUIA_ACTIVATE_NOFOCUS
= 1,
824 SVUIA_ACTIVATE_FOCUS
= 2,
825 SVUIA_INPLACEACTIVATE
= 3
828 HRESULT TranslateAccelerator
( [in] MSG
*pmsg
);
829 HRESULT EnableModeless
( [in] BOOL fEnable
);
830 HRESULT UIActivate
( [in] UINT uState
);
832 HRESULT CreateViewWindow
(
833 [in] IShellView
*psvPrevious
,
834 [in] LPCFOLDERSETTINGS lpfs
,
835 [in] IShellBrowser
*psb
,
839 HRESULT DestroyViewWindow
();
840 HRESULT GetCurrentInfo
( [out] LPFOLDERSETTINGS lpfs
);
842 [local] HRESULT AddPropertySheetPages
(
843 [in] DWORD dwReserved
,
844 [in] LPFNSVADDPROPSHEETPAGE pfn
,
847 HRESULT SaveViewState
();
849 [in] LPCITEMIDLIST pidlItem
,
851 HRESULT GetItemObject
(
854 [out, iid_is(riid
)] void **ppv
);
859 uuid(88e39e80
-3578-11cf
-ae69
-08002b2e1262
),
860 pointer_default(unique)
862 interface IShellView2
: IShellView
864 typedef GUID SHELLVIEWID
;
865 cpp_quote
("#include <pshpack8.h>")
866 typedef struct _SV2CVW2_PARAMS
870 LPCFOLDERSETTINGS pfs
;
871 IShellBrowser
*psbOwner
;
873 SHELLVIEWID
const *pvid
;
875 } SV2CVW2_PARAMS
, *LPSV2CVW2_PARAMS
;
876 cpp_quote
("#include <poppack.h>")
879 [in, out] SHELLVIEWID
*view_guid
,
882 HRESULT CreateViewWindow2
(
883 [in] LPSV2CVW2_PARAMS view_params
885 HRESULT HandleRename
(
886 [in] LPCITEMIDLIST new_pidl
888 HRESULT SelectAndPositionItem
(
889 [in] LPCITEMIDLIST item
,
897 uuid(ec39fa88
-f8af
-41c5
-8421-38bed28f4673
),
898 pointer_default(unique)
900 interface IShellView3
: IShellView2
902 [v1_enum] enum _SV3CVW3_FLAGS
904 SV3CVW3_DEFAULT
= 0x00000000,
905 SV3CVW3_NONINTERACTIVE
= 0x00000001,
906 SV3CVW3_FORCEVIEWMODE
= 0x00000002,
907 SV3CVW3_FORCEFOLDERFLAGS
= 0x00000004
910 typedef DWORD SV3CVW3_FLAGS
;
912 HRESULT CreateViewWindow3
(
913 [in] IShellBrowser
*owner
,
914 [in, unique] IShellView
*prev_view
,
915 [in] SV3CVW3_FLAGS view_flags
,
916 [in] FOLDERFLAGS mask
,
917 [in] FOLDERFLAGS flags
,
918 [in] FOLDERVIEWMODE mode
,
919 [in, unique] const SHELLVIEWID
*view_id
,
920 [in] const RECT
*rect
,
924 /*****************************************************************************
925 * IFolderView interface
928 uuid(cde725b0
-ccc9
-4519-917e-325d72fab4ce
),
930 pointer_default(unique)
932 interface IFolderView
: IUnknown
934 HRESULT GetCurrentViewMode
( [out] UINT
*mode
);
935 HRESULT SetCurrentViewMode
( [in] UINT mode
);
936 HRESULT GetFolder
( [in] REFIID riid
, [out, iid_is(riid
)] void **ppv
);
939 [out] PITEMID_CHILD
*ppidl
948 [out, iid_is(riid
)] void **ppv
950 HRESULT GetSelectionMarkedItem
( [out] int *item
);
951 HRESULT GetFocusedItem
( [out] int *item
);
952 HRESULT GetItemPosition
(
953 [in] PCUITEMID_CHILD pidl
,
956 HRESULT GetSpacing
( [in, out, unique] POINT
* pt
);
957 HRESULT GetDefaultSpacing
( [out] POINT
* pt
);
958 HRESULT GetAutoArrange
();
963 HRESULT SelectAndPositionItems
(
965 [in, size_is(cidl
)] PCUITEMID_CHILD_ARRAY apidl
,
966 [in, unique, size_is(cidl
)] POINT
* apt
,
971 [v1_enum] enum tagSORTDIRECTION
973 SORT_DESCENDING
= -1,
976 typedef int SORTDIRECTION
;
978 typedef struct SORTCOLUMN
981 SORTDIRECTION direction
;
984 typedef [v1_enum] enum FVTEXTTYPE
990 uuid(1af3a467
-214f
-4298-908e-06b03e0b39f9
),
992 pointer_default(unique)
994 interface IFolderView2
: IFolderView
997 [in] REFPROPERTYKEY key
,
998 [in] BOOL ascending
);
1002 [out] PROPERTYKEY
*pkey
,
1003 [out] BOOL
*ascending
);
1005 [call_as
(GetGroupBy
)]
1006 HRESULT RemoteGetGroupBy
(
1007 [out] PROPERTYKEY
*pkey
,
1008 [out] BOOL
*ascending
);
1010 HRESULT SetViewProperty
(
1011 [in] PCUITEMID_CHILD pidl
,
1012 [in] REFPROPERTYKEY propkey
,
1013 [in] REFPROPVARIANT propvar
);
1015 HRESULT GetViewProperty
(
1016 [in] PCUITEMID_CHILD pidl
,
1017 [in] REFPROPERTYKEY propkey
,
1018 [out] PROPVARIANT
*propvar
);
1020 HRESULT SetTileViewProperties
(
1021 [in] PCUITEMID_CHILD pidl
,
1022 [in, string] LPCWSTR prop_list
);
1024 HRESULT SetExtendedTileViewProperties
(
1025 [in] PCUITEMID_CHILD pidl
,
1026 [in, string] LPCWSTR prop_list
);
1029 [in] FVTEXTTYPE type
,
1032 HRESULT SetCurrentFolderFlags
(
1036 HRESULT GetCurrentFolderFlags
([out] DWORD
*flags
);
1038 HRESULT GetSortColumnCount
([out] int *columns
);
1040 HRESULT SetSortColumns
(
1041 [in, size_is(count
)] const SORTCOLUMN
*columns
,
1044 HRESULT GetSortColumns
(
1045 [out, size_is(count
)] SORTCOLUMN
*columns
,
1051 [out, iid_is(riid
)] void **ppv
);
1053 HRESULT GetVisibleItem
(
1058 HRESULT GetSelectedItem
(
1062 HRESULT GetSelection
(
1063 [in] BOOL none_implies_folder
,
1064 [out] IShellItemArray
**array
);
1066 HRESULT GetSelectionState
(
1067 [in] PCUITEMID_CHILD pidl
,
1068 [out] DWORD
*flags
);
1070 HRESULT InvokeVerbOnSelection
([in, unique, string] LPCSTR verb
);
1072 HRESULT SetViewModeAndIconSize
(
1073 [in] FOLDERVIEWMODE mode
,
1076 HRESULT GetViewModeAndIconSize
(
1077 [out] FOLDERVIEWMODE
*mode
,
1080 HRESULT SetGroupSubsetCount
([in] UINT visible_rows
);
1082 HRESULT GetGroupSubsetCount
([out] UINT
*visible_rows
);
1084 HRESULT SetRedraw
([in] BOOL redraw
);
1086 HRESULT IsMoveInSameFolder
();
1091 /*****************************************************************************
1092 * IShellBrowser interface
1096 uuid(000214e2
-0000-0000-c000
-000000000046),
1097 pointer_default(unique)
1099 interface IShellBrowser
: IOleWindow
1101 typedef IShellBrowser
*LPSHELLBROWSER
;
1103 cpp_quote
("#define SBSP_DEFBROWSER 0x00000000")
1104 cpp_quote
("#define SBSP_SAMEBROWSER 0x00000001")
1105 cpp_quote
("#define SBSP_NEWBROWSER 0x00000002")
1106 cpp_quote
("#define SBSP_DEFMODE 0x00000000")
1107 cpp_quote
("#define SBSP_OPENMODE 0x00000010")
1108 cpp_quote
("#define SBSP_EXPLOREMODE 0x00000020")
1109 cpp_quote
("#define SBSP_HELPMODE 0x00000040")
1110 cpp_quote
("#define SBSP_NOTRANSFERHIST 0x00000080")
1111 cpp_quote
("#define SBSP_ABSOLUTE 0x00000000")
1112 cpp_quote
("#define SBSP_RELATIVE 0x00001000")
1113 cpp_quote
("#define SBSP_PARENT 0x00002000")
1114 cpp_quote
("#define SBSP_NAVIGATEBACK 0x00004000")
1115 cpp_quote
("#define SBSP_NAVIGATEFORWARD 0x00008000")
1116 cpp_quote
("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
1117 cpp_quote
("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
1118 cpp_quote
("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
1119 cpp_quote
("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
1120 cpp_quote
("#define SBSP_CREATENOHISTORY 0x00100000")
1121 cpp_quote
("#define SBSP_PLAYNOSOUND 0x00200000")
1122 cpp_quote
("#define SBSP_CALLERUNTURUSTED 0x00800000")
1123 cpp_quote
("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
1124 cpp_quote
("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
1125 cpp_quote
("#define SBSP_NOAUTOSELECT 0x04000000")
1126 cpp_quote
("#define SBSP_WRITENOHISTORY 0x08000000")
1127 cpp_quote
("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
1128 cpp_quote
("#define SBSP_FEEDNAVIGATION 0x20000000")
1129 cpp_quote
("#define SBSP_REDIRECT 0x40000000")
1130 cpp_quote
("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
1132 cpp_quote
("#define FCW_STATUS 0x0001")
1133 cpp_quote
("#define FCW_TOOLBAR 0x0002")
1134 cpp_quote
("#define FCW_TREE 0x0003")
1135 cpp_quote
("#define FCW_INTERNETBAR 0x0006")
1136 cpp_quote
("#define FCW_PROGRESS 0x0008")
1138 cpp_quote
("#define FCT_MERGE 0x0001")
1139 cpp_quote
("#define FCT_CONFIGABLE 0x0002")
1140 cpp_quote
("#define FCT_ADDTOEND 0x0004")
1143 typedef LPARAM LPTBBUTTONSB
;
1145 cpp_quote
("#include <commctrl.h>")
1146 cpp_quote
("typedef LPTBBUTTON LPTBBUTTONSB;")
1149 HRESULT InsertMenusSB
(
1150 [in] HMENU hmenuShared
,
1151 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths
);
1154 [in] HMENU hmenuShared
,
1155 [in] HOLEMENU holemenuReserved
,
1156 [in] HWND hwndActiveObject
);
1158 HRESULT RemoveMenusSB
( [in] HMENU hmenuShared
);
1159 HRESULT SetStatusTextSB
( [in, unique] LPCOLESTR pszStatusText
);
1160 HRESULT EnableModelessSB
( [in] BOOL fEnable
);
1161 HRESULT TranslateAcceleratorSB
( [in] MSG
*pmsg
, [in] WORD wID
);
1163 HRESULT BrowseObject
(
1164 [in] LPCITEMIDLIST pidl
,
1167 HRESULT GetViewStateStream
(
1169 [out] IStream
**ppStrm
);
1171 HRESULT GetControlWindow
(
1175 [local] HRESULT SendControlMsg
(
1180 [in] LRESULT
*pret
);
1182 HRESULT QueryActiveShellView
( [out] IShellView
**ppshv
);
1183 HRESULT OnViewWindowActive
( [in] IShellView
*pshv
);
1186 HRESULT SetToolbarItems
(
1187 [in] LPTBBUTTONSB lpButtons
,
1193 /*****************************************************************************
1194 * IShellLinkA interface
1198 uuid(000214ee
-0000-0000-c000
-000000000046),
1199 pointer_default(unique)
1201 interface IShellLinkA
: IUnknown
1203 typedef [v1_enum] enum SLR_FLAGS
1206 SLR_ANY_MATCH
= 0x0002,
1207 SLR_UPDATE
= 0x0004,
1208 SLR_NOUPDATE
= 0x0008,
1209 SLR_NOSEARCH
= 0x0010,
1210 SLR_NOTRACK
= 0x0020,
1211 SLR_NOLINKINFO
= 0x0040,
1212 SLR_INVOKE_MSI
= 0x0080,
1213 SLR_NO_UI_WITH_MSG_PUMP
= 0x0101,
1214 SLR_OFFER_DELETE_WITHOUT_FILE
= 0x0200,
1215 SLR_KNOWNFOLDER
= 0x0400,
1216 SLR_MACHINE_IN_LOCAL_TARGET
= 0x0800,
1217 SLR_UPDATE_MACHINE_AND_SID
= 0x1000,
1218 SLR_NO_OBJECT_ID
= 0x2000
1221 typedef [v1_enum] enum SLGP_FLAGS
1223 SLGP_SHORTPATH
= 0x0001,
1224 SLGP_UNCPRIORITY
= 0x0002,
1225 SLGP_RAWPATH
= 0x0004,
1226 SLGP_RELATIVEPRIORITY
= 0x0008
1230 [out, size_is(cch
)] LPSTR pszFile
,
1232 [in, out, unique] WIN32_FIND_DATAA
*pfd
,
1235 HRESULT GetIDList
( [out] LPITEMIDLIST
* ppidl
);
1237 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
1239 HRESULT GetDescription
(
1240 [out, size_is(cch
)] LPSTR pszName
,
1243 HRESULT SetDescription
( [in] LPCSTR pszName
);
1245 HRESULT GetWorkingDirectory
(
1246 [out, size_is(cch
)] LPSTR pszDir
,
1249 HRESULT SetWorkingDirectory
( [in] LPCSTR pszDir
);
1251 HRESULT GetArguments
(
1252 [out, size_is(cch
)] LPSTR pszArgs
,
1255 HRESULT SetArguments
( [in] LPCSTR pszArgs
);
1257 HRESULT GetHotkey
( [out] WORD
*pwHotkey
);
1259 HRESULT SetHotkey
( [in] WORD wHotkey
);
1261 HRESULT GetShowCmd
( [out] int *piShowCmd
);
1263 HRESULT SetShowCmd
( [in] int iShowCmd
);
1265 HRESULT GetIconLocation
(
1266 [out, size_is(cch
)] LPSTR pszIconPath
,
1270 HRESULT SetIconLocation
(
1271 [in] LPCSTR pszIconPath
,
1274 HRESULT SetRelativePath
(
1275 [in] LPCSTR pszPathRel
,
1276 [in] DWORD dwReserved
);
1282 HRESULT SetPath
( [in] LPCSTR pszFile
);
1286 /*****************************************************************************
1287 * IShellLinkW interface
1291 uuid(000214f9
-0000-0000-c000
-000000000046),
1292 pointer_default(unique)
1294 interface IShellLinkW
: IUnknown
1297 [out, size_is(cch
)] LPWSTR pszFile
,
1299 [in, out] WIN32_FIND_DATAW
*pfd
,
1302 HRESULT GetIDList
( [out] LPITEMIDLIST
* ppidl
);
1304 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
1306 HRESULT GetDescription
(
1307 [out, size_is(cch
)] LPWSTR pszName
,
1310 HRESULT SetDescription
( [in] LPCWSTR pszName
);
1312 HRESULT GetWorkingDirectory
(
1313 [out, size_is(cch
)] LPWSTR pszDir
,
1316 HRESULT SetWorkingDirectory
( [in] LPCWSTR pszDir
);
1318 HRESULT GetArguments
(
1319 [out, size_is(cch
)] LPWSTR pszArgs
,
1322 HRESULT SetArguments
( [in] LPCWSTR pszArgs
);
1324 HRESULT GetHotkey
( [out] WORD
*pwHotkey
);
1326 HRESULT SetHotkey
( [in] WORD wHotkey
);
1328 HRESULT GetShowCmd
( [out] int *piShowCmd
);
1330 HRESULT SetShowCmd
( [in] int iShowCmd
);
1332 HRESULT GetIconLocation
(
1333 [out, size_is(cch
)] LPWSTR pszIconPath
,
1337 HRESULT SetIconLocation
(
1338 [in] LPCWSTR pszIconPath
,
1341 HRESULT SetRelativePath
(
1342 [in] LPCWSTR pszPathRel
,
1343 [in] DWORD dwReserved
);
1349 HRESULT SetPath
( [in] LPCWSTR pszFile
);
1352 cpp_quote
("#define IShellLink WINELIB_NAME_AW(IShellLink)")
1355 /*****************************************************************************
1356 * IShellExtInit interface
1360 uuid(000214e8
-0000-0000-c000
-000000000046),
1361 pointer_default(unique),
1364 interface IShellExtInit
: IUnknown
1366 typedef IShellExtInit
*LPSHELLEXTINIT
;
1369 [in] LPCITEMIDLIST pidlFolder
,
1370 [in] IDataObject
*pdtobj
,
1371 [in] HKEY hkeyProgID
);
1375 /*******************************************************************************/
1376 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
1377 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
1378 /* them here anyway. */
1379 /*******************************************************************************/
1382 #define MAX_PATH
260
1386 /*****************************************************************************
1387 * IPersistFolder3 interface
1391 uuid(cef04fdf
-fe72
-11d2
-87a5
-00c04f6837cf
),
1392 pointer_default(unique)
1394 interface IPersistFolder3
: IPersistFolder2
1398 LPITEMIDLIST pidlTargetFolder
;
1399 WCHAR szTargetParsingName
[MAX_PATH
];
1400 WCHAR szNetworkProvider
[MAX_PATH
];
1403 } PERSIST_FOLDER_TARGET_INFO
;
1405 HRESULT InitializeEx
(
1406 [in, unique] IBindCtx
*pbc
,
1407 [in] LPCITEMIDLIST pidlRoot
,
1408 [in, unique] const PERSIST_FOLDER_TARGET_INFO
*ppfti
);
1410 HRESULT GetFolderTargetInfo
( [out] PERSIST_FOLDER_TARGET_INFO
*ppfti
);
1414 /*****************************************************************************
1415 * IExtractIconA interface
1419 uuid(000214eb
-0000-0000-c000
-000000000046),
1420 pointer_default(unique),
1423 interface IExtractIconA
: IUnknown
1425 cpp_quote
("#define GIL_OPENICON 0x0001")
1426 cpp_quote
("#define GIL_FORSHELL 0x0002")
1427 cpp_quote
("#define GIL_ASYNC 0x0020")
1428 cpp_quote
("#define GIL_DEFAULTICON 0x0040")
1429 cpp_quote
("#define GIL_FORSHORTCUT 0x0080")
1431 cpp_quote
("#define GIL_SIMULATEDOC 0x0001")
1432 cpp_quote
("#define GIL_PERINSTANCE 0x0002")
1433 cpp_quote
("#define GIL_PERCLASS 0x0004")
1434 cpp_quote
("#define GIL_NOTFILENAME 0x0008")
1435 cpp_quote
("#define GIL_DONTCACHE 0x0010")
1437 typedef IExtractIconA
*LPEXTRACTICONA
;
1439 HRESULT GetIconLocation
(
1441 [out, size_is(cchMax
)] LPSTR szIconFile
,
1444 [out] UINT
*pwFlags
);
1447 [in] LPCSTR pszFile
,
1448 [in] UINT nIconIndex
,
1449 [out] HICON
*phiconLarge
,
1450 [out] HICON
*phiconSmall
,
1451 [in] UINT nIconSize
);
1455 /*****************************************************************************
1456 * IExtractIconW interface
1460 uuid(000214fa
-0000-0000-c000
-000000000046),
1461 pointer_default(unique),
1464 interface IExtractIconW
: IUnknown
1466 typedef IExtractIconW
*LPEXTRACTICONW
;
1468 HRESULT GetIconLocation
(
1470 [out, size_is(cchMax
)] LPWSTR szIconFile
,
1473 [out] UINT
*pwFlags
);
1476 [in] LPCWSTR pszFile
,
1477 [in] UINT nIconIndex
,
1478 [out] HICON
*phiconLarge
,
1479 [out] HICON
*phiconSmall
,
1480 [in] UINT nIconSize
);
1483 cpp_quote
("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1484 cpp_quote
("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1487 /*****************************************************************************
1488 * ICommDlgBrowser interface
1492 uuid(000214f1
-0000-0000-c000
-000000000046),
1493 pointer_default(unique)
1495 interface ICommDlgBrowser
: IUnknown
1497 cpp_quote
("#define CDBOSC_SETFOCUS 0x00000000")
1498 cpp_quote
("#define CDBOSC_KILLFOCUS 0x00000001")
1499 cpp_quote
("#define CDBOSC_SELCHANGE 0x00000002")
1500 cpp_quote
("#define CDBOSC_RENAME 0x00000003")
1501 cpp_quote
("#define CDBOSC_STATECHANGE 0x00000004")
1503 typedef ICommDlgBrowser
*LPCOMMDLGBROWSER
;
1505 HRESULT OnDefaultCommand
( [in] IShellView
*shv
);
1506 HRESULT OnStateChange
( [in] IShellView
*shv
, [in] ULONG uChange
);
1507 HRESULT IncludeObject
( [in] IShellView
*shv
, [in] LPCITEMIDLIST pidl
);
1511 /*****************************************************************************
1512 * ICommDlgBrowser2 interface
1516 uuid(10339516-2894-11D2
-9039-00C04F8EEB3E
),
1517 pointer_default(unique)
1519 interface ICommDlgBrowser2
: ICommDlgBrowser
1523 [in] IShellView
*ppshv
,
1524 [in] DWORD dwNotifyType
);
1526 HRESULT GetDefaultMenuText
(
1527 [in] IShellView
*ppshv
,
1528 [out, string, size_is(cchMax
)] LPWSTR pszText
,
1531 HRESULT GetViewFlags
(
1532 [out] DWORD
*pdwFlags
);
1536 /*****************************************************************************
1537 * ICommDlgBrowser3 interface
1541 uuid(C8AD25A1
-3294-41EE
-8165-71174BD01C57
),
1542 pointer_default(unique)
1544 interface ICommDlgBrowser3
: ICommDlgBrowser2
1547 HRESULT OnColumnClicked
(
1548 [in] IShellView
*ppshv
,
1551 HRESULT GetCurrentFilter
(
1552 [out, string, size_is(cchFileSpec
)] LPWSTR pszFileSpec
,
1553 [in] int cchFileSpec
);
1555 HRESULT OnPreViewCreated
(
1556 [in] IShellView
*ppshv
);
1559 /*****************************************************************************
1560 * IDockingWindow interface
1564 uuid(012dd920
-7b26
-11d0
-8ca9
-00a0c92dbfe8
)
1566 interface IDockingWindow
: IOleWindow
1572 [in] DWORD dwReserved
);
1574 HRESULT ResizeBorderDW
(
1575 [in] LPCRECT prcBorder
,
1576 [in] IUnknown
*punkToolbarSite
,
1577 [in] BOOL fReserved
);
1581 /*****************************************************************************
1582 * IDockingWindowFrame interface
1586 uuid(47d2657a
-7b27
-11d0
-8ca9
-00a0c92dbfe8
),
1587 pointer_default(unique),
1590 interface IDockingWindowFrame
: IOleWindow
1592 cpp_quote
("#define DWFRF_NORMAL 0x0000")
1593 cpp_quote
("#define DWFRF_DELETECONFIGDATA 0x0001")
1594 cpp_quote
("#define DWFAF_HIDDEN 0x0001")
1597 [in] IUnknown
*punkSrc
,
1598 [in] LPCWSTR pwszItem
,
1599 [in] DWORD dwAddFlags
);
1601 HRESULT RemoveToolbar
(
1602 [in] IUnknown
*punkSrc
,
1603 [in] DWORD dwRemoveFlags
);
1605 HRESULT FindToolbar
(
1606 [in] LPCWSTR pwszItem
,
1608 [out] LPVOID
*ppvObj
);
1612 /*****************************************************************************
1613 * IDragSourceHelper interface
1617 uuid(de5bf786
-477a
-11d2
-839d
-00c04fd918d0
),
1618 pointer_default(unique),
1621 interface IDragSourceHelper
: IUnknown
1627 HBITMAP hbmpDragImage
;
1628 COLORREF crColorKey
;
1629 } SHDRAGIMAGE
, *LPSHDRAGIMAGE
;
1631 HRESULT InitializeFromBitmap
(
1632 [in] LPSHDRAGIMAGE pshdi
,
1633 [in] IDataObject
*pDataObject
);
1635 HRESULT InitializeFromWindow
(
1638 [in] IDataObject
*pDataObject
);
1642 /*****************************************************************************
1643 * IDragSourceHelper2 interface
1647 uuid(83e07d0d
-0c5f
-4163-bf1a
-60b274051e40
),
1648 pointer_default(unique),
1651 interface IDragSourceHelper2
: IDragSourceHelper
1653 HRESULT SetFlags
([in] DWORD dwFlags
);
1657 /*****************************************************************************
1658 * IDropTargetHelper interface
1662 uuid(4657278b
-411b
-11d2
-839a
-00c04fd918d0
),
1663 pointer_default(unique),
1666 interface IDropTargetHelper
: IUnknown
1669 [in] HWND hwndTarget
,
1670 [in] IDataObject
*pDataObject
,
1672 [in] DWORD dwEffect
);
1674 HRESULT DragLeave
();
1678 [in] DWORD dwEffect
);
1681 [in] IDataObject
*pDataObject
,
1683 [in] DWORD dwEffect
);
1685 HRESULT Show
( [in] BOOL fShow
);
1689 /*****************************************************************************
1690 * IContextMenu interface
1694 uuid(000214e4
-0000-0000-c000
-000000000046),
1695 pointer_default(unique),
1698 interface IContextMenu
: IUnknown
1700 cpp_quote
("#define CMF_NORMAL 0x00000000")
1701 cpp_quote
("#define CMF_DEFAULTONLY 0x00000001")
1702 cpp_quote
("#define CMF_VERBSONLY 0x00000002")
1703 cpp_quote
("#define CMF_EXPLORE 0x00000004")
1704 cpp_quote
("#define CMF_NOVERBS 0x00000008")
1705 cpp_quote
("#define CMF_CANRENAME 0x00000010")
1706 cpp_quote
("#define CMF_NODEFAULT 0x00000020")
1707 cpp_quote
("#define CMF_INCLUDESTATIC 0x00000040")
1708 cpp_quote
("#define CMF_ITEMMENU 0x00000080")
1709 cpp_quote
("#define CMF_EXTENDEDVERBS 0x00000100")
1710 cpp_quote
("#define CMF_DISABLEDVERBS 0x00000200")
1711 cpp_quote
("#define CMF_ASYNCVERBSTATE 0x00000400")
1712 cpp_quote
("#define CMF_OPTIMIZEFORINVOKE 0x00000800")
1713 cpp_quote
("#define CMF_SYNCCASCADEMENU 0x00001000")
1714 cpp_quote
("#define CMF_DONOTPICKDEFAULT 0x00002000")
1715 cpp_quote
("#define CMF_RESERVED 0xffff0000")
1717 cpp_quote
("#define GCS_VERBA 0x00000000")
1718 cpp_quote
("#define GCS_HELPTEXTA 0x00000001")
1719 cpp_quote
("#define GCS_VALIDATEA 0x00000002")
1720 cpp_quote
("#define GCS_VERBW 0x00000004")
1721 cpp_quote
("#define GCS_HELPTEXTW 0x00000005")
1722 cpp_quote
("#define GCS_VALIDATEW 0x00000006")
1723 cpp_quote
("#define GCS_UNICODE 0x00000004")
1724 cpp_quote
("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1725 cpp_quote
("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1726 cpp_quote
("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1728 cpp_quote
("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1729 cpp_quote
("#define CMDSTR_VIEWLISTA \"ViewList\"")
1730 cpp_quote
("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1731 cpp_quote
("#if defined(__GNUC__)")
1732 cpp_quote
("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1733 cpp_quote
("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1734 cpp_quote
("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1735 cpp_quote
("#elif defined(_MSC_VER)")
1736 cpp_quote
("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1737 cpp_quote
("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1738 cpp_quote
("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1740 cpp_quote
("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1741 cpp_quote
("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1742 cpp_quote
("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1744 cpp_quote
("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1745 cpp_quote
("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1746 cpp_quote
("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1748 cpp_quote
("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1749 cpp_quote
("#define CMIC_MASK_ICON SEE_MASK_ICON")
1750 cpp_quote
("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1751 cpp_quote
("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1752 cpp_quote
("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1753 cpp_quote
("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1754 cpp_quote
("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1755 cpp_quote
("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1756 cpp_quote
("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1757 cpp_quote
("#define CMIC_MASK_NOASYNC SEE_MASK_NOASYNC")
1758 cpp_quote
("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1759 cpp_quote
("#define CMIC_MASK_PTINVOKE 0x20000000")
1760 cpp_quote
("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1761 cpp_quote
("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1762 cpp_quote
("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1764 typedef IContextMenu
*LPCONTEXTMENU
;
1766 typedef struct tagCMINVOKECOMMANDINFO
1772 LPCSTR lpParameters
;
1777 } CMINVOKECOMMANDINFO
, *LPCMINVOKECOMMANDINFO
;
1779 typedef struct tagCMInvokeCommandInfoEx
1785 LPCSTR lpParameters
;
1792 LPCWSTR lpParametersW
;
1793 LPCWSTR lpDirectoryW
;
1796 } CMINVOKECOMMANDINFOEX
, *LPCMINVOKECOMMANDINFOEX
;
1798 HRESULT QueryContextMenu
(
1800 [in] UINT indexMenu
,
1801 [in] UINT idCmdFirst
,
1802 [in] UINT idCmdLast
,
1805 HRESULT InvokeCommand
( [in] LPCMINVOKECOMMANDINFO lpici
);
1807 HRESULT GetCommandString
(
1808 [in] UINT_PTR idCmd
,
1810 [out] UINT
*pwReserved
,
1811 [out, size_is(cchMax
)] LPSTR pszName
,
1816 /*****************************************************************************
1817 * IContextMenu2 interface
1821 uuid(000214f4
-0000-0000-c000
-000000000046),
1822 pointer_default(unique),
1825 interface IContextMenu2
: IContextMenu
1827 typedef IContextMenu2
*LPCONTEXTMENU2
;
1829 HRESULT HandleMenuMsg
(
1832 [in] LPARAM lParam
);
1836 /*****************************************************************************
1837 * IContextMenu3 interface
1841 uuid(bcfce0a0
-ec17
-11d0
-8d10
-00a0c90f2719
),
1842 pointer_default(unique),
1845 interface IContextMenu3
: IContextMenu2
1847 typedef IContextMenu3
*LPCONTEXTMENU3
;
1849 HRESULT HandleMenuMsg2
(
1853 [out] LRESULT
*plResult
);
1859 uuid(3409e930
-5a39
-11d1
-83fa
-00a0c90dc849
),
1860 pointer_default(unique),
1863 interface IContextMenuCB
: IUnknown
1866 [in] IShellFolder
*psf
,
1867 [in] HWND hwndOwner
,
1868 [in] IDataObject
*pdtobj
,
1871 [in] LPARAM lParam
);
1874 /*****************************************************************************
1875 * IShellExecuteHookA interface
1879 uuid(000214f5
-0000-0000-c000
-000000000046),
1880 pointer_default(unique),
1883 interface IShellExecuteHookA
: IUnknown
1885 cpp_quote
("struct _SHELLEXECUTEINFOA;")
1887 [in, out] struct _SHELLEXECUTEINFOA
* pei
);
1891 /*****************************************************************************
1892 * IShellExecuteHookW interface
1896 uuid(000214fb
-0000-0000-c000
-000000000046),
1897 pointer_default(unique),
1900 interface IShellExecuteHookW
: IUnknown
1902 cpp_quote
("struct _SHELLEXECUTEINFOW;")
1904 [in, out] struct _SHELLEXECUTEINFOW
* pei
);
1907 /*****************************************************************************
1908 * IShellLinkDataList interface
1912 uuid(45e2b4ae
-b1c3
-11d0
-b92f
-00a0c90312e1
),
1913 pointer_default(unique)
1915 interface IShellLinkDataList
: IUnknown
1917 [local] HRESULT AddDataBlock
(
1918 [in] void *pDataBlock
);
1919 [local] HRESULT CopyDataBlock
(
1921 [out] void **ppDataBlock
);
1922 HRESULT RemoveDataBlock
(
1925 [out] DWORD
*pdwFlags
);
1927 [in] DWORD dwFlags
);
1931 /*****************************************************************************
1932 * IResolveShellLink interface
1936 uuid(5cd52983
-9449-11d2
-963a
-00c04f79adf0
),
1937 pointer_default(unique)
1939 interface IResolveShellLink
: IUnknown
1941 HRESULT ResolveShellLink
(
1942 [in] IUnknown
*punk
,
1948 /*****************************************************************************
1949 * IURLSearchHook interface
1953 uuid(ac60f6a0
-0fd9
-11d0
-99cb
-00c04fd64497
),
1954 pointer_default(unique),
1957 interface IURLSearchHook
: IUnknown
1960 [in, out] LPWSTR lpwszSearchURL
,
1961 [in] DWORD cchBufferSize
);
1965 /*****************************************************************************
1966 * ISearchContext interface
1970 uuid(09f656a2
-41af
-480c
-88f7
-16cc0d164615
),
1971 pointer_default(unique),
1974 interface ISearchContext
: IUnknown
1976 HRESULT GetSearchUrl
(
1977 [in] BSTR *pbstrSearchUrl
);
1978 HRESULT GetSearchText
(
1979 [in] BSTR *pbstrSearchText
);
1980 HRESULT GetSearchStyle
(
1981 [in] DWORD
*pdwSearchStyle
);
1985 /*****************************************************************************
1986 * IURLSearchHook2 interface
1990 uuid(5ee44da4
-6d32
-46e3
-86bc
-07540dedd0e0
),
1991 pointer_default(unique),
1994 interface IURLSearchHook2
: IURLSearchHook
1996 HRESULT TranslateWithSearchContext
(
1997 [in, out] LPWSTR lpwszSearchURL
,
1998 [in] DWORD cchBufferSize
,
1999 [in] ISearchContext
*pSearchContext
);
2003 cpp_quote
("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
2005 /*****************************************************************************
2006 * INewShortcutHookA interface
2010 uuid(000214e1
-0000-0000-c000
-000000000046),
2011 pointer_default(unique),
2014 interface INewShortcutHookA
: IUnknown
2016 HRESULT SetReferent
(
2017 [in] LPCSTR pcszReferent
,
2019 HRESULT GetReferent
(
2020 [out] LPSTR pcszReferent
,
2021 [in] int cchReferent
);
2023 [in] LPCSTR pcszReferent
);
2025 [out] LPSTR pcszReferent
,
2026 [in] int cchFolder
);
2028 [out] LPSTR pszName
,
2030 HRESULT GetExtension
(
2031 [out] LPSTR pszExtension
,
2032 [in] int cchExtension
);
2036 /*****************************************************************************
2037 * INewShortcutHookW interface
2041 uuid(000214f7
-0000-0000-c000
-000000000046),
2042 pointer_default(unique),
2045 interface INewShortcutHookW
: IUnknown
2047 HRESULT SetReferent
(
2048 [in] LPCWSTR pcszReferent
,
2050 HRESULT GetReferent
(
2051 [out] LPWSTR pcszReferent
,
2052 [in] int cchReferent
);
2054 [in] LPCWSTR pcszReferent
);
2056 [out] LPWSTR pcszReferent
,
2057 [in] int cchFolder
);
2059 [out] LPWSTR pszName
,
2061 HRESULT GetExtension
(
2062 [out] LPWSTR pszExtension
,
2063 [in] int cchExtension
);
2066 /*****************************************************************************
2067 * IRunnableTask interface
2071 uuid(85788d00
-6807-11d0
-b810
-00c04fd706ec
),
2072 pointer_default(unique),
2075 interface IRunnableTask
: IUnknown
2078 HRESULT Kill
([in] BOOL fWait
);
2084 /*****************************************************************************
2085 * IShellChangeNotify interface
2089 uuid(d82be2b1
-5764-11d0
-a96e
-00c04fd705a2
),
2090 pointer_default(unique),
2093 interface IShellChangeNotify
: IUnknown
2097 [in] LPCITEMIDLIST pidl1
,
2098 [in] LPCITEMIDLIST pidl2
);
2101 /*****************************************************************************
2102 * IFileSystemBindData interface
2106 uuid(01e18d10
-4d8b
-11d2
-855d
-006008059367),
2107 pointer_default(unique),
2110 interface IFileSystemBindData
: IUnknown
2112 HRESULT SetFindData
(
2113 [in] const WIN32_FIND_DATAW
*pfd
);
2114 HRESULT GetFindData
(
2115 [out] WIN32_FIND_DATAW
*pfd
);
2118 /*****************************************************************************
2119 * ITaskbarList interface
2123 uuid(56FDF342
-FD6D
-11d0
-958A
-006097C9A090
),
2124 pointer_default(unique)
2126 interface ITaskbarList
: IUnknown
2136 HRESULT ActivateTab
(
2139 HRESULT SetActiveAlt
(
2143 /*****************************************************************************
2144 * ITaskbarList2 interface
2148 uuid(602D4995
-B13A
-429B
-A66E
-1935E44F4317
),
2149 pointer_default(unique)
2151 interface ITaskbarList2
: ITaskbarList
2153 HRESULT MarkFullscreenWindow
(
2155 [in] BOOL fullscreen
);
2158 cpp_quote
("#ifdef MIDL_PASS")
2159 typedef IUnknown
* HIMAGELIST
;
2162 typedef [v1_enum] enum THUMBBUTTONFLAGS
{
2163 THBF_ENABLED
= 0x0000,
2164 THBF_DISABLED
= 0x0001,
2165 THBF_DISMISSONCLICK
= 0x0002,
2166 THBF_NOBACKGROUND
= 0x0004,
2167 THBF_HIDDEN
= 0x0008,
2168 THBF_NONINTERACTIVE
= 0x0010
2171 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONFLAGS)")
2173 typedef [v1_enum] enum THUMBBUTTONMASK
{
2174 THB_BITMAP
= 0x0001,
2176 THB_TOOLTIP
= 0x0004,
2180 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONMASK)")
2182 cpp_quote
("#include <pshpack8.h>")
2183 typedef struct THUMBBUTTON
{
2184 THUMBBUTTONMASK dwMask
;
2189 THUMBBUTTONFLAGS dwFlags
;
2190 } THUMBBUTTON
, *LPTHUMBBUTTON
;
2191 cpp_quote
("#include <poppack.h>")
2194 uuid(ea1afb91
-9e28
-4b86
-90e9
-9e9f8a5eefaf
),
2197 interface ITaskbarList3
: ITaskbarList2
2199 typedef [v1_enum] enum TBPFLAG
{
2200 TBPF_NOPROGRESS
= 0x0000,
2201 TBPF_INDETERMINATE
= 0x0001,
2202 TBPF_NORMAL
= 0x0002,
2203 TBPF_ERROR
= 0x0004,
2204 TBPF_PAUSED
= 0x0008
2207 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(TBPFLAG)")
2209 HRESULT SetProgressValue
(
2211 [in] ULONGLONG ullCompleted
,
2212 [in] ULONGLONG ullTotal
);
2214 HRESULT SetProgressState
(
2216 [in] TBPFLAG tbpFlags
);
2218 HRESULT RegisterTab
(
2222 HRESULT UnregisterTab
([in] HWND hwndTab
);
2224 HRESULT SetTabOrder
(
2226 [in] HWND hwndInsertBefore
);
2228 HRESULT SetTabActive
(
2231 [in] DWORD dwReserved
);
2233 HRESULT ThumbBarAddButtons
(
2236 [in, size_is(cButtons
)] LPTHUMBBUTTON pButton
);
2238 HRESULT ThumbBarUpdateButtons
(
2241 [in, size_is(cButtons
)] LPTHUMBBUTTON pButton
);
2243 HRESULT ThumbBarSetImageList
(
2245 [in] HIMAGELIST himl
);
2247 HRESULT SetOverlayIcon
(
2250 [in, unique, string] LPCWSTR pszDescription
);
2252 HRESULT SetThumbnailTooltip
(
2254 [in, unique, string] LPCWSTR pszTip
);
2256 HRESULT SetThumbnailClip
(
2258 [in] RECT
*prcClip
);
2262 uuid(c43dc798
-95d1
-4bea
-9030-bb99e2983a1a
),
2265 interface ITaskbarList4
: ITaskbarList3
2267 typedef [v1_enum] enum STPFLAG
{
2269 STPF_USEAPPTHUMBNAILALWAYS
= 0x0001,
2270 STPF_USEAPPTHUMBNAILWHENACTIVE
= 0x0002,
2271 STPF_USEAPPPEEKALWAYS
= 0x0004,
2272 STPF_USEAPPPEEKWHENACTIVE
= 0x0008
2275 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(STPFLAG)")
2277 HRESULT SetTabProperties
(
2279 [in] STPFLAG stpFlags
);
2282 /*****************************************************************************
2283 * IAutoCompleteDropDown interface
2287 uuid(3CD141F4
-3C6A
-11d2
-BCAA
-00C04FD929DB
),
2288 pointer_default(unique)
2290 interface IAutoCompleteDropDown
: IUnknown
2292 cpp_quote
("#define ACDD_VISIBLE 0x0001")
2294 HRESULT GetDropDownStatus
(
2295 [out] DWORD
*pdwFlags
,
2296 [out, string] LPWSTR
*ppwszString
);
2298 HRESULT ResetEnumerator
();
2303 uuid(cb728b20
-f786
-11ce
-92ad
-00aa00a74cd0
),
2304 pointer_default(unique)
2306 interface IProfferService
: IUnknown
2308 HRESULT ProfferService
(
2309 [in] REFGUID service
,
2310 [in] IServiceProvider
*pService
,
2311 [out] DWORD
*pCookie
);
2313 HRESULT RevokeService
([in] DWORD cookie
);
2316 /*****************************************************************************
2317 * IExplorerBrowserEvents interface
2321 uuid(361BBDC7
-E6EE
-4E13
-BE58
-58E2240C810F
)
2323 interface IExplorerBrowserEvents
: IUnknown
2325 HRESULT OnNavigationPending
(
2326 [in] PCIDLIST_ABSOLUTE pidlFolder
);
2328 HRESULT OnViewCreated
(
2329 [in] IShellView
*psv
);
2331 HRESULT OnNavigationComplete
(
2332 [in] PCIDLIST_ABSOLUTE pidlFolder
);
2334 HRESULT OnNavigationFailed
(
2335 [in] PCIDLIST_ABSOLUTE pidlFolder
);
2338 typedef GUID EXPLORERPANE
;
2339 typedef EXPLORERPANE
*REFEXPLORERPANE
;
2341 cpp_quote
("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
2343 /*****************************************************************************
2344 * IExplorerPaneVisibility interface
2348 uuid(E07010EC
-BC17
-44C0
-97B0
-46C7C95B9EDC
)
2350 interface IExplorerPaneVisibility
: IUnknown
2352 [v1_enum] enum _EXPLORERPANESTATE
{
2354 EPS_DEFAULT_ON
= 0x1,
2355 EPS_DEFAULT_OFF
= 0x2,
2356 EPS_STATE_MASK
= 0xffff,
2357 EPS_INITIALSTATE
= 0x10000,
2360 typedef DWORD EXPLORERPANESTATE
;
2362 HRESULT GetPaneState
(
2363 [in] REFEXPLORERPANE ep
,
2364 [out] EXPLORERPANESTATE
*peps
);
2367 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS
{
2369 EBF_SELECTFROMDATAOBJECT
= 0x100,
2370 EBF_NODROPTARGET
= 0x200
2371 } EXPLORER_BROWSER_FILL_FLAGS
;
2373 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS
{
2375 EBO_NAVIGATEONCE
= 0x01,
2376 EBO_SHOWFRAMES
= 0x02,
2377 EBO_ALWAYSNAVIGATE
= 0x04,
2378 EBO_NOTRAVELLOG
= 0x08,
2379 EBO_NOWRAPPERWINDOW
= 0x10,
2380 EBO_HTMLSHAREPOINTVIEW
= 0x20,
2381 EBO_NOBORDER
= 0x40,
2382 EBO_NOPERSISTVIEWSTATE
= 0x80,
2383 } EXPLORER_BROWSER_OPTIONS
;
2385 cpp_quote
("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
2387 /*****************************************************************************
2388 * IExplorerBrowser interface
2392 uuid(DFD3B6B5
-C10C
-4BE9
-85F6
-A66969F402F6
),
2393 pointer_default(unique)
2395 interface IExplorerBrowser
: IUnknown
2398 [local] HRESULT Initialize
(
2399 [in] HWND hwndParent
,
2400 [in] const RECT
*prc
,
2401 [in, unique] const FOLDERSETTINGS
*pfs
);
2405 [local] HRESULT SetRect
(
2406 [in,out,unique] HDWP
*phdwp
,
2407 [in] RECT rcBrowser
);
2409 HRESULT SetPropertyBag
(
2410 [in, string] LPCWSTR pszPropertyBag
);
2412 HRESULT SetEmptyText
(
2413 [in, string] LPCWSTR pszEmptyText
);
2415 HRESULT SetFolderSettings
(
2416 [in] const FOLDERSETTINGS
*pfs
);
2419 [in] IExplorerBrowserEvents
*psbe
,
2420 [out] DWORD
*pdwCookie
);
2423 [in] DWORD dwCookie
);
2426 [in] EXPLORER_BROWSER_OPTIONS dwFlag
);
2429 [out] EXPLORER_BROWSER_OPTIONS
*pdwFlag
);
2431 HRESULT BrowseToIDList
(
2432 [in] PCUIDLIST_RELATIVE pidl
,
2435 HRESULT BrowseToObject
(
2436 [in] IUnknown
*punk
,
2439 HRESULT FillFromObject
(
2440 [in] IUnknown
*punk
,
2441 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags
);
2443 HRESULT RemoveAll
();
2445 HRESULT GetCurrentView
(
2447 [out, iid_is(riid
)] void **ppv
);
2450 /*****************************************************************************
2451 * INameSpaceTreeControl interface
2455 uuid(028212A3
-B627
-47E9
-8856-C14265554E4F
)
2457 interface INameSpaceTreeControl
: IUnknown
2459 [v1_enum] enum _NSTCSTYLE
{
2460 NSTCS_HASEXPANDOS
= 0x00000001,
2461 NSTCS_HASLINES
= 0x00000002,
2462 NSTCS_SINGLECLICKEXPAND
= 0x00000004,
2463 NSTCS_FULLROWSELECT
= 0x00000008,
2464 NSTCS_SPRINGEXPAND
= 0x00000010,
2465 NSTCS_HORIZONTALSCROLL
= 0x00000020,
2466 NSTCS_ROOTHASEXPANDO
= 0x00000040,
2467 NSTCS_SHOWSELECTIONALWAYS
= 0x00000080,
2468 NSTCS_NOINFOTIP
= 0x00000200,
2469 NSTCS_EVENHEIGHT
= 0x00000400,
2470 NSTCS_NOREPLACEOPEN
= 0x00000800,
2471 NSTCS_DISABLEDRAGDROP
= 0x00001000,
2472 NSTCS_NOORDERSTREAM
= 0x00002000,
2473 NSTCS_RICHTOOLTIP
= 0x00004000,
2474 NSTCS_BORDER
= 0x00008000,
2475 NSTCS_NOEDITLABELS
= 0x00010000,
2476 NSTCS_TABSTOP
= 0x00020000,
2477 NSTCS_FAVORITESMODE
= 0x00080000,
2478 NSTCS_AUTOHSCROLL
= 0x00100000,
2479 NSTCS_FADEINOUTEXPANDOS
= 0x00200000,
2480 NSTCS_EMPTYTEXT
= 0x00400000,
2481 NSTCS_CHECKBOXES
= 0x00800000,
2482 NSTCS_PARTIALCHECKBOXES
= 0x01000000,
2483 NSTCS_EXCLUSIONCHECKBOXES
= 0x02000000,
2484 NSTCS_DIMMEDCHECKBOXES
= 0x04000000,
2485 NSTCS_NOINDENTCHECKS
= 0x08000000,
2486 NSTCS_ALLOWJUNCTIONS
= 0x10000000,
2487 NSTCS_SHOWTABSBUTTON
= 0x20000000,
2488 NSTCS_SHOWDELETEBUTTON
= 0x40000000,
2489 NSTCS_SHOWREFRESHBUTTON
= (int)0x80000000
2491 typedef DWORD NSTCSTYLE
;
2493 [v1_enum] enum _NSTCROOTSTYLE
{
2494 NSTCRS_VISIBLE
= 0x0000,
2495 NSTCRS_HIDDEN
= 0x0001,
2496 NSTCRS_EXPANDED
= 0x0002
2498 typedef DWORD NSTCROOTSTYLE
;
2500 [v1_enum] enum _NSTCITEMSTATE
{
2501 NSTCIS_NONE
= 0x0000,
2502 NSTCIS_SELECTED
= 0x0001,
2503 NSTCIS_EXPANDED
= 0x0002,
2504 NSTCIS_BOLD
= 0x0004,
2505 NSTCIS_DISABLED
= 0x0008,
2506 NSTCIS_SELECTEDNOEXPAND
= 0x0010
2508 typedef DWORD NSTCITEMSTATE
;
2510 typedef [v1_enum] enum NSTCGNI
{
2512 NSTCGNI_NEXTVISIBLE
= 1,
2514 NSTCGNI_PREVVISIBLE
= 3,
2517 NSTCGNI_FIRSTVISIBLE
= 6,
2518 NSTCGNI_LASTVISIBLE
= 7
2522 [in] HWND hwndParent
,
2523 [in, unique] RECT
*prc
,
2524 [in] NSTCSTYLE nstcsFlags
);
2527 [in] IUnknown
*punk
,
2528 [out] DWORD
*pdwCookie
);
2530 HRESULT TreeUnadvise
(
2531 [in] DWORD dwCookie
);
2534 [in] IShellItem
*psiRoot
,
2535 [in] SHCONTF grfEnumFlags
,
2536 [in] NSTCROOTSTYLE grfRootStyle
,
2537 [in, unique] IShellItemFilter
*pif
);
2541 [in] IShellItem
*psiRoot
,
2542 [in] SHCONTF grfEnumFlags
,
2543 [in] NSTCROOTSTYLE grfRootStyle
,
2544 [in, unique] IShellItemFilter
*pif
);
2547 [in] IShellItem
*psiRoot
);
2549 HRESULT RemoveAllRoots
();
2551 HRESULT GetRootItems
(
2552 [out] IShellItemArray
**ppsiaRootItems
);
2554 HRESULT SetItemState
(
2555 [in] IShellItem
*psi
,
2556 [in] NSTCITEMSTATE nstcisMask
,
2557 [in] NSTCITEMSTATE nstcisFlags
);
2559 HRESULT GetItemState
(
2560 [in] IShellItem
*psi
,
2561 [in] NSTCITEMSTATE nstcismask
,
2562 [out] NSTCITEMSTATE
*pnstcisFlags
);
2564 HRESULT GetSelectedItems
(
2565 [out] IShellItemArray
**psiaItems
);
2567 HRESULT GetItemCustomState
(
2568 [in] IShellItem
*psi
,
2569 [out] int *piStateNumber
);
2571 HRESULT SetItemCustomState
(
2572 [in] IShellItem
*psi
,
2573 [in] int iStateNumber
);
2575 HRESULT EnsureItemVisible
(
2576 [in] IShellItem
*psi
);
2579 [in, string] LPCWSTR pszTheme
);
2581 HRESULT GetNextItem
(
2582 [in, unique] IShellItem
*psi
,
2583 [in] NSTCGNI nstcgi
,
2584 [out] IShellItem
**ppsiNext
);
2588 [out] IShellItem
**ppsiOut
);
2590 HRESULT GetItemRect
(
2591 [in] IShellItem
*psi
,
2594 HRESULT CollapseAll
();
2597 /*****************************************************************************
2598 * INameSpaceTreeControl2 interface
2602 uuid(7CC7AED8
-290E-49BC
-8945-C1401CC9306C
)
2604 interface INameSpaceTreeControl2
: INameSpaceTreeControl
2606 typedef [v1_enum] enum NSTCSTYLE2
{
2607 NSTCS2_DEFAULT
= 0x00,
2608 NSTCS2_INTERRUPTNOTIFICATIONS
= 0x01,
2609 NSTCS2_SHOWNULLSPACEMENU
= 0x02,
2610 NSTCS2_DISPLAYPADDING
= 0x04,
2611 NSTCS2_DISPLAYPINNEDONLY
= 0x08,
2612 NTSCS2_NOSINGLETONAUTOEXPAND
= 0x10, /* The apparent typo here is */
2613 NTSCS2_NEVERINSERTNONENUMERATED
= 0x20 /* present also in the Win SDK */
2615 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(NSTCSTYLE2)")
2617 HRESULT SetControlStyle
(
2618 [in] NSTCSTYLE nstcsMask
,
2619 [in] NSTCSTYLE nstcsStyle
);
2621 HRESULT GetControlStyle
(
2622 [in] NSTCSTYLE nstcsMask
,
2623 [out] NSTCSTYLE
*pnstcsStyle
);
2625 HRESULT SetControlStyle2
(
2626 [in] NSTCSTYLE2 nstcsMask
,
2627 [in] NSTCSTYLE2 nstcsStyle
);
2629 HRESULT GetControlStyle2
(
2630 [in] NSTCSTYLE2 nstcsMask
,
2631 [out] NSTCSTYLE2
*pnstcsStyle
);
2634 /*****************************************************************************
2635 * INameSpaceTreeControlEvents interface
2640 uuid(93D77985
-B3D8
-4484-8318-672CDDA002CE
),
2643 interface INameSpaceTreeControlEvents
: IUnknown
2645 [v1_enum] enum _NSTCEHITTEST
{
2646 NSTCEHT_NOWHERE
= 0x0001,
2647 NSTCEHT_ONITEMICON
= 0x0002,
2648 NSTCEHT_ONITEMLABEL
= 0x0004,
2649 NSTCEHT_ONITEMIDENT
= 0x0008,
2650 NSTCEHT_ONITEMBUTTON
= 0x0010,
2651 NSTCEHT_ONITEMRIGHT
= 0x0020,
2652 NSTCEHT_ONITEMSTATEICON
= 0x0040,
2653 NSTCEHT_ONITEM
= 0x0046,
2654 NSTCEHT_ONITEMTABBUTTON
= 0x1000
2656 typedef DWORD NSTCEHITTEST
;
2658 [v1_enum] enum _NSTCECLICKTYPE
{
2659 NSTCECT_LBUTTON
= 0x1,
2660 NSTCECT_MBUTTON
= 0x2,
2661 NSTCECT_RBUTTON
= 0x3,
2662 NSTCECT_BUTTON
= 0x3,
2663 NSTCECT_DBLCLICK
= 0x4
2665 typedef DWORD NSTCECLICKTYPE
;
2667 HRESULT OnItemClick
(
2668 [in] IShellItem
*psi
,
2669 [in] NSTCEHITTEST nstceHitTest
,
2670 [in] NSTCECLICKTYPE nstceClickType
);
2672 HRESULT OnPropertyItemCommit
(
2673 [in] IShellItem
*psi
);
2675 HRESULT OnItemStateChanging
(
2676 [in] IShellItem
*psi
,
2677 [in] NSTCITEMSTATE nstcisMask
,
2678 [in] NSTCITEMSTATE nstcisState
);
2680 HRESULT OnItemStateChanged
(
2681 [in] IShellItem
*psi
,
2682 [in] NSTCITEMSTATE nstcisMask
,
2683 [in] NSTCITEMSTATE nstcisState
);
2685 HRESULT OnSelectionChanged
(
2686 [in] IShellItemArray
*psiaSelection
);
2688 HRESULT OnKeyboardInput
(
2691 [in] LPARAM lParam
);
2693 HRESULT OnBeforeExpand
(
2694 [in] IShellItem
*psi
);
2696 HRESULT OnAfterExpand
(
2697 [in] IShellItem
*psi
);
2699 HRESULT OnBeginLabelEdit
(
2700 [in] IShellItem
*psi
);
2702 HRESULT OnEndLabelEdit
(
2703 [in] IShellItem
*psi
);
2705 HRESULT OnGetToolTip
(
2706 [in] IShellItem
*psi
,
2707 [out, string, size_is(cchTip
)] LPWSTR pszTip
,
2710 HRESULT OnBeforeItemDelete
(
2711 [in] IShellItem
*psi
);
2713 HRESULT OnItemAdded
(
2714 [in] IShellItem
*psi
,
2717 HRESULT OnItemDeleted
(
2718 [in] IShellItem
*psi
,
2721 HRESULT OnBeforeContextMenu
(
2722 [in, unique] IShellItem
*psi
,
2724 [out, iid_is(riid
)] void **ppv
);
2726 HRESULT OnAfterContextMenu
(
2727 [in] IShellItem
*psi
,
2728 [in] IContextMenu
*pcmIn
,
2730 [out, iid_is(riid
)] void **ppv
);
2732 HRESULT OnBeforeStateImageChange
(
2733 [in] IShellItem
*psi
);
2735 HRESULT OnGetDefaultIconIndex
(
2736 [in] IShellItem
*psi
,
2737 [out] int *piDefaultIcon
,
2738 [out] int *piOpenIcon
);
2741 /*****************************************************************************
2742 * INameSpaceTreeControlCustomDraw interface
2746 uuid(2D3BA758
-33EE
-42D5
-BB7B
-5F3431D86C78
),
2750 interface INameSpaceTreeControlCustomDraw
: IUnknown
2752 typedef struct NSTCCUSTOMDRAW
2756 NSTCITEMSTATE nstcis
;
2767 [out] LRESULT
*plres
);
2773 HRESULT ItemPrePaint
(
2776 [in] NSTCCUSTOMDRAW
*pnstccdItem
,
2777 [in, out] COLORREF
*pclrText
,
2778 [in, out] COLORREF
*pclrTextBk
,
2779 [out] LRESULT
*plres
);
2781 HRESULT ItemPostPaint
(
2784 [in] NSTCCUSTOMDRAW
*pnstccdItem
);
2787 /*****************************************************************************
2788 * INameSpaceTreeControlDropHandler interface
2792 uuid(F9C665D6
-C2F2
-4C19
-BF33
-8322D7352F51
),
2795 interface INameSpaceTreeControlDropHandler
: IUnknown
2797 HRESULT OnDragEnter
(
2798 [in, unique] IShellItem
*psiOver
,
2799 [in] IShellItemArray
*psiaData
,
2800 [in] BOOL fOutsideSource
,
2801 [in] DWORD grfKeyState
,
2802 [in, out] DWORD
*pdwEffect
);
2805 [in, unique] IShellItem
*psiOver
,
2806 [in] IShellItemArray
*psiaData
,
2807 [in] DWORD grfKeyState
,
2808 [in, out] DWORD
*pdwEffect
);
2810 HRESULT OnDragPosition
(
2811 [in, unique] IShellItem
*psiOver
,
2812 [in] IShellItemArray
*psiaData
,
2813 [in] int iNewPosition
,
2814 [in] int iOldPosition
);
2817 [in, unique] IShellItem
*psiOver
,
2818 [in] IShellItemArray
*psiaData
,
2820 [in] DWORD grfKeyState
,
2821 [in, out] DWORD
*pdwEffect
);
2823 HRESULT OnDropPosition
(
2824 [in, unique] IShellItem
*psiOver
,
2825 [in] IShellItemArray
*psiaData
,
2826 [in] int iNewPosition
,
2827 [in] int iOldPosition
);
2829 HRESULT OnDragLeave
(
2830 [in, unique] IShellItem
*psiOver
);
2832 cpp_quote
("#define NSTCDHPOS_ONTOP -1")
2834 interface IFileDialog
;
2836 typedef [v1_enum] enum FDE_OVERWRITE_RESPONSE
2841 } FDE_OVERWRITE_RESPONSE
;
2843 typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
2848 } FDE_SHAREVIOLATION_RESPONSE
;
2850 /*****************************************************************************
2851 * IFileDialogEvents interface
2855 uuid(973510DB
-7D7F
-452B
-8975-74A85828D354
),
2856 pointer_default(unique)
2858 interface IFileDialogEvents
: IUnknown
2861 [in] IFileDialog
*pfd
);
2863 HRESULT OnFolderChanging
(
2864 [in] IFileDialog
*pfd
,
2865 [in] IShellItem
*psiFolder
);
2867 HRESULT OnFolderChange
(
2868 [in] IFileDialog
*pfd
);
2870 HRESULT OnSelectionChange
(
2871 [in] IFileDialog
*pfd
);
2873 HRESULT OnShareViolation
(
2874 [in] IFileDialog
*pfd
,
2875 [in] IShellItem
*psi
,
2876 [out] FDE_SHAREVIOLATION_RESPONSE
*pResponse
);
2878 HRESULT OnTypeChange
(
2879 [in] IFileDialog
*pfd
);
2881 HRESULT OnOverwrite
(
2882 [in] IFileDialog
*pfd
,
2883 [in] IShellItem
*psi
,
2884 [out] FDE_OVERWRITE_RESPONSE
*pResponse
);
2887 /*****************************************************************************
2888 * IModalWindow interface
2892 uuid(B4DB1657
-70D7
-485E-8E3E
-6FCB5A5C1802
),
2893 pointer_default(unique)
2895 interface IModalWindow
: IUnknown
2899 [in, unique, annotation
("__in_opt")] HWND hwndOwner
);
2903 [in, unique] HWND hwndOwner
);
2906 typedef [v1_enum] enum FDAP
2912 /*****************************************************************************
2913 * IFileDialog interface
2917 uuid(42F85136
-DB7E
-439C
-85F1
-E4075D135FC8
),
2918 pointer_default(unique)
2920 interface IFileDialog
: IModalWindow
2922 [v1_enum] enum _FILEOPENDIALOGOPTIONS
2924 FOS_OVERWRITEPROMPT
= 0x00000002,
2925 FOS_STRICTFILETYPES
= 0x00000004,
2926 FOS_NOCHANGEDIR
= 0x00000008,
2927 FOS_PICKFOLDERS
= 0x00000020,
2928 FOS_FORCEFILESYSTEM
= 0x00000040,
2929 FOS_ALLNONSTORAGEITEMS
= 0x00000080,
2930 FOS_NOVALIDATE
= 0x00000100,
2931 FOS_ALLOWMULTISELECT
= 0x00000200,
2932 FOS_PATHMUSTEXIST
= 0x00000800,
2933 FOS_FILEMUSTEXIST
= 0x00001000,
2934 FOS_CREATEPROMPT
= 0x00002000,
2935 FOS_SHAREAWARE
= 0x00004000,
2936 FOS_NOREADONLYRETURN
= 0x00008000,
2937 FOS_NOTESTFILECREATE
= 0x00010000,
2938 FOS_HIDEMRUPLACES
= 0x00020000,
2939 FOS_HIDEPINNEDPLACES
= 0x00040000,
2940 FOS_NODEREFERENCELINKS
= 0x00100000,
2941 FOS_DONTADDTORECENT
= 0x02000000,
2942 FOS_FORCESHOWHIDDEN
= 0x10000000,
2943 FOS_DEFAULTNOMINIMODE
= 0x20000000,
2944 FOS_FORCEPREVIEWPANEON
= 0x40000000,
2945 FOS_SUPPORTSTREAMABLEITEMS
= 0x80000000
2947 typedef DWORD FILEOPENDIALOGOPTIONS
;
2949 HRESULT SetFileTypes
(
2950 [in] UINT cFileTypes
,
2951 [in, size_is(cFileTypes
)] const COMDLG_FILTERSPEC
*rgFilterSpec
);
2953 HRESULT SetFileTypeIndex
(
2954 [in] UINT iFileType
);
2956 HRESULT GetFileTypeIndex
(
2957 [out] UINT
*piFileType
);
2960 [in] IFileDialogEvents
*pfde
,
2961 [out] DWORD
*pdwCookie
);
2964 [in] DWORD dwCookie
);
2967 [in] FILEOPENDIALOGOPTIONS fos
);
2970 [out] FILEOPENDIALOGOPTIONS
*pfos
);
2972 HRESULT SetDefaultFolder
(
2973 [in] IShellItem
*psi
);
2976 [in] IShellItem
*psi
);
2979 [out] IShellItem
**ppsi
);
2981 HRESULT GetCurrentSelection
(
2982 [out] IShellItem
**ppsi
);
2984 HRESULT SetFileName
(
2985 [in, string] LPCWSTR pszName
);
2987 HRESULT GetFileName
(
2988 [out, string] LPWSTR
*pszName
);
2991 [in, string] LPCWSTR pszTitle
);
2993 HRESULT SetOkButtonLabel
(
2994 [in, string] LPCWSTR pszText
);
2996 HRESULT SetFileNameLabel
(
2997 [in, string] LPCWSTR pszLabel
);
3000 [out] IShellItem
**ppsi
);
3003 [in] IShellItem
*psi
,
3006 HRESULT SetDefaultExtension
(
3007 [in, string] LPCWSTR pszDefaultExtension
);
3012 HRESULT SetClientGuid
(
3015 HRESULT ClearClientData
();
3018 [in] IShellItemFilter
*pFilter
);
3021 /*****************************************************************************
3022 * IFileDialog2 interface
3026 uuid(61744FC7
-85B5
-4791-A9B0
-272276309B13
),
3027 pointer_default(unique)
3029 interface IFileDialog2
: IFileDialog
3031 HRESULT SetCancelButtonLabel
(
3032 [in] LPCWSTR pszLabel
);
3034 HRESULT SetNavigationRoot
(
3035 [in] IShellItem
*psi
);
3038 /*****************************************************************************
3039 * IFileOperationProgressSink interface
3043 uuid(04B0F1A7
-9490-44BC
-96E1
-4296A31252E2
),
3044 pointer_default(unique)
3046 interface IFileOperationProgressSink
: IUnknown
3048 HRESULT StartOperations
();
3050 HRESULT FinishOperations
(
3051 [in] HRESULT hrResult
);
3053 HRESULT PreRenameItem
(
3055 [in] IShellItem
*psiItem
,
3056 [in, unique, string] LPCWSTR pszNewName
);
3058 HRESULT PostRenameItem
(
3060 [in] IShellItem
*psiItem
,
3061 [in, string] LPCWSTR pszNewName
,
3062 [in] HRESULT hrRename
,
3063 [in] IShellItem
*psiNewlyCreated
);
3065 HRESULT PreMoveItem
(
3067 [in] IShellItem
*psiItem
,
3068 [in] IShellItem
*psiDestinationFolder
,
3069 [in, unique, string] LPCWSTR pszNewName
);
3071 HRESULT PostMoveItem
(
3073 [in] IShellItem
*psiItem
,
3074 [in] IShellItem
*psiDestinationFolder
,
3075 [in, unique, string] LPCWSTR pszNewName
,
3076 [in] HRESULT hrMove
,
3077 [in] IShellItem
*psiNewlyCreated
);
3079 HRESULT PreCopyItem
(
3081 [in] IShellItem
*psiItem
,
3082 [in] IShellItem
*psiDestinationFolder
,
3083 [in, unique, string] LPCWSTR pszNewName
);
3085 HRESULT PostCopyItem
(
3087 [in] IShellItem
*psiItem
,
3088 [in] IShellItem
*psiDestinationFolder
,
3089 [in, unique, string] LPCWSTR pszNewName
,
3090 [in] HRESULT hrCopy
,
3091 [in] IShellItem
*psiNewlyCreated
);
3093 HRESULT PreDeleteItem
(
3095 [in] IShellItem
*psiItem
);
3097 HRESULT PostDeleteItem
(
3099 [in] IShellItem
*psiItem
,
3100 [in] HRESULT hrDelete
,
3101 [in] IShellItem
*psiNewlyCreated
);
3105 [in] IShellItem
*psiDestinationFolder
,
3106 [in, unique, string] LPCWSTR pszNewName
);
3108 HRESULT PostNewItem
(
3110 [in] IShellItem
*psiDestinationFolder
,
3111 [in, unique, string] LPCWSTR pszNewName
,
3112 [in, unique, string] LPCWSTR pszTemplateName
,
3113 [in] DWORD dwFileAttributes
,
3115 [in] IShellItem
*psiNewItem
);
3117 HRESULT UpdateProgress
(
3118 [in] UINT iWorkTotal
,
3119 [in] UINT iWorkSoFar
);
3121 HRESULT ResetTimer
();
3123 HRESULT PauseTimer
();
3125 HRESULT ResumeTimer
();
3128 /*****************************************************************************
3129 * IFileSaveDialog interface
3133 uuid(84BCCD23
-5FDE
-4CDB
-AEA4
-AF64B83D78AB
),
3134 pointer_default(unique)
3136 interface IFileSaveDialog
: IFileDialog
3138 HRESULT SetSaveAsItem
(
3139 [in] IShellItem
*psi
);
3141 HRESULT SetProperties
(
3142 [in] IPropertyStore
*pStore
);
3144 HRESULT SetCollectedProperties
(
3145 [in] IPropertyDescriptionList
*pList
,
3146 [in] BOOL fAppendDefault
);
3148 HRESULT GetProperties
(
3149 [in] IPropertyStore
**ppStore
);
3151 HRESULT ApplyProperties
(
3152 [in] IShellItem
*psi
,
3153 [in] IPropertyStore
*pStore
,
3154 [in, unique] HWND hwnd
,
3155 [in, unique] IFileOperationProgressSink
*pSink
);
3159 /*****************************************************************************
3160 * IFileOpenDialog interface
3164 uuid(D57C7288
-D4AD
-4768-BE02
-9D969532D960
),
3165 pointer_default(unique)
3167 interface IFileOpenDialog
: IFileDialog
3170 [out] IShellItemArray
**ppenum
);
3172 HRESULT GetSelectedItems
(
3173 [out] IShellItemArray
**ppsai
);
3176 typedef [v1_enum] enum CDCONTROLSTATEF
3178 CDCS_INACTIVE
= 0x0,
3181 CDCS_ENABLEDVISIBLE
= 0x3
3183 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
3184 /*****************************************************************************
3185 * IFileDialogCustomize interface
3189 uuid(E6FDD21A
-163F
-4975-9C8C
-A69F1BA37034
),
3190 pointer_default(unique)
3192 interface IFileDialogCustomize
: IUnknown
3194 HRESULT EnableOpenDropDown
(
3195 [in] DWORD dwIDCtl
);
3199 [in, string] LPCWSTR pszLabel
);
3201 HRESULT AddPushButton
(
3203 [in, string] LPCWSTR pszLabel
);
3205 HRESULT AddComboBox
(
3206 [in] DWORD dwIDCtl
);
3208 HRESULT AddRadioButtonList
(
3209 [in] DWORD dwIDCtl
);
3211 HRESULT AddCheckButton
(
3213 [in, string] LPCWSTR pszLabel
,
3214 [in] BOOL bChecked
);
3218 [in, string] LPCWSTR pszText
);
3220 HRESULT AddSeparator
(
3221 [in] DWORD dwIDCtl
);
3225 [in, string] LPCWSTR pszText
);
3227 HRESULT SetControlLabel
(
3229 [in, string] LPCWSTR pszLabel
);
3231 HRESULT GetControlState
(
3233 [out] CDCONTROLSTATEF
*pdwState
);
3235 HRESULT SetControlState
(
3237 [in] CDCONTROLSTATEF dwState
);
3239 HRESULT GetEditBoxText
(
3241 [out, string] WCHAR
**ppszText
);
3243 HRESULT SetEditBoxText
(
3245 [in, string] LPCWSTR pszText
);
3247 HRESULT GetCheckButtonState
(
3249 [out] BOOL
*pbChecked
);
3251 HRESULT SetCheckButtonState
(
3253 [in] BOOL bChecked
);
3255 HRESULT AddControlItem
(
3257 [in] DWORD dwIDItem
,
3258 [in] LPCWSTR pszLabel
);
3260 HRESULT RemoveControlItem
(
3262 [in] DWORD dwIDItem
);
3264 HRESULT RemoveAllControlItems
(
3265 [in] DWORD dwIDCtl
);
3267 HRESULT GetControlItemState
(
3269 [in] DWORD dwIDItem
,
3270 [out] CDCONTROLSTATEF
*pdwState
);
3272 HRESULT SetControlItemState
(
3274 [in] DWORD dwIDItem
,
3275 [in] CDCONTROLSTATEF dwState
);
3277 HRESULT GetSelectedControlItem
(
3279 [out] DWORD
*pdwIDItem
);
3281 HRESULT SetSelectedControlItem
(
3283 [in] DWORD dwIDItem
);
3285 HRESULT StartVisualGroup
(
3287 [in, string] LPCWSTR pszLabel
);
3289 HRESULT EndVisualGroup
();
3291 HRESULT MakeProminent
(
3292 [in] DWORD dwIDCtl
);
3294 HRESULT SetControlItemText
(
3296 [in] DWORD dwIDItem
,
3297 [in, string] LPCWSTR pszLabel
);
3300 /*****************************************************************************
3301 * IFileDialogControlEvents interface
3305 uuid(36116642-D713
-4B97
-9B83
-7484A9D00433
),
3306 pointer_default(unique)
3308 interface IFileDialogControlEvents
: IUnknown
3310 HRESULT OnItemSelected
(
3311 [in] IFileDialogCustomize
*pfdc
,
3313 [in] DWORD dwIDItem
);
3315 HRESULT OnButtonClicked
(
3316 [in] IFileDialogCustomize
*pfdc
,
3317 [in] DWORD dwIDCtl
);
3319 HRESULT OnCheckButtonToggled
(
3320 [in] IFileDialogCustomize
*pfdc
,
3322 [in] BOOL bChecked
);
3324 HRESULT OnControlActivating
(
3325 [in] IFileDialogCustomize
*pfdc
,
3326 [in] DWORD dwIDCtl
);
3329 typedef [v1_enum] enum tagKF_CATEGORY
3331 KF_CATEGORY_VIRTUAL
= 0x00000001,
3332 KF_CATEGORY_FIXED
= 0x00000002,
3333 KF_CATEGORY_COMMON
= 0x00000003,
3334 KF_CATEGORY_PERUSER
= 0x00000004
3337 typedef [v1_enum] enum tagKF_REDIRECTION_CAPABILITIES
3339 KF_REDIRECTION_CAPABILITIES_ALLOW_ALL
= 0x000000ff,
3340 KF_REDIRECTION_CAPABILITIES_REDIRECTABLE
= 0x00000001,
3341 KF_REDIRECTION_CAPABILITIES_DENY_ALL
= 0x000fff00,
3342 KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED
= 0x00000100,
3343 KF_REDIRECTION_CAPABILITIES_DENY_POLICY
= 0x00000200,
3344 KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS
= 0x00000400
3345 } KF_REDIRECTION_CAPABILITIES
;
3347 typedef [v1_enum] enum tagKF_DEFINITION_FLAGS
3349 KFDF_LOCAL_REDIRECT_ONLY
= 0x00000002,
3350 KFDF_ROAMABLE
= 0x00000004,
3351 KFDF_PRECREATE
= 0x00000008,
3352 KFDF_STREAM
= 0x00000010,
3353 KFDF_PUBLISHEXPANDEDPATH
= 0x00000020,
3354 KFDF_NO_REDIRECT_UI
= 0x00000040
3355 } KF_DEFINITION_FLAGS
;
3357 typedef struct tagKNOWNFOLDER_DEFINITION
3359 KF_CATEGORY category
;
3361 LPWSTR pszDescription
;
3362 KNOWNFOLDERID fidParent
;
3363 LPWSTR pszRelativePath
;
3364 LPWSTR pszParsingName
;
3366 LPWSTR pszLocalizedName
;
3370 KF_DEFINITION_FLAGS kfdFlags
;
3371 FOLDERTYPEID ftidType
;
3372 } KNOWNFOLDER_DEFINITION
;
3376 uuid(3aa7af7e
-9b36
-420C
-a8e3
-f77d4674a488
),
3377 pointer_default(ref)
3379 interface IKnownFolder
: IUnknown
3382 [out] KNOWNFOLDERID
*pkfid
);
3384 HRESULT GetCategory
(
3385 [out] KF_CATEGORY
*pCategory
);
3387 HRESULT GetShellItem
(
3390 [out, iid_is(riid
)] void **ppv
);
3394 [out, string] LPWSTR
*ppszPath
);
3398 [in, string] LPCWSTR pszPath
);
3402 [out] PIDLIST_ABSOLUTE
*ppidl
);
3404 HRESULT GetFolderType
(
3405 [out] FOLDERTYPEID
*pftid
);
3407 HRESULT GetRedirectionCapabilities
(
3408 [out] KF_REDIRECTION_CAPABILITIES
*pCapabilities
);
3410 HRESULT GetFolderDefinition
(
3411 [out] KNOWNFOLDER_DEFINITION
*pKFD
);
3414 typedef [v1_enum] enum tagKF_REDIRECT_FLAGS
3416 KF_REDIRECT_USER_EXCLUSIVE
= 0x00000001,
3417 KF_REDIRECT_COPY_SOURCE_DACL
= 0x00000002,
3418 KF_REDIRECT_OWNER_USER
= 0x00000004,
3419 KF_REDIRECT_SET_OWNER_EXPLICIT
= 0x00000008,
3420 KF_REDIRECT_CHECK_ONLY
= 0x00000010,
3421 KF_REDIRECT_WITH_UI
= 0x00000020,
3422 KF_REDIRECT_UNPIN
= 0x00000040,
3423 KF_REDIRECT_PIN
= 0x00000080,
3424 KF_REDIRECT_COPY_CONTENTS
= 0x00000200,
3425 KF_REDIRECT_DEL_SOURCE_CONTENTS
= 0x00000400,
3426 KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS
= 0x00000800
3427 } KF_REDIRECT_FLAGS
;
3431 uuid(8BE2D872
-86AA
-4d47
-B776
-32CCA40C7018
),
3432 pointer_default(ref)
3434 interface IKnownFolderManager
: IUnknown
3436 typedef [v1_enum] enum tagFFFP_MODE
3439 FFFP_NEARESTPARENTMATCH
3442 HRESULT FolderIdFromCsidl
(
3444 [out] KNOWNFOLDERID
*pfid
);
3446 HRESULT FolderIdToCsidl
(
3447 [in] REFKNOWNFOLDERID rfid
,
3448 [out] int *pnCsidl
);
3450 HRESULT GetFolderIds
(
3451 [out, size_is(, *pCount
)] KNOWNFOLDERID
**ppKFId
,
3452 [in, out] UINT
*pCount
);
3455 [in] REFKNOWNFOLDERID rfid
,
3456 [out] IKnownFolder
**ppkf
);
3458 HRESULT GetFolderByName
(
3459 [in, string] LPCWSTR pszCanonicalName
,
3460 [out] IKnownFolder
**ppkf
);
3462 HRESULT RegisterFolder
(
3463 [in] REFKNOWNFOLDERID rfid
,
3464 [in] KNOWNFOLDER_DEFINITION
const *pKFD
);
3466 HRESULT UnregisterFolder
(
3467 [in] REFKNOWNFOLDERID rfid
);
3469 HRESULT FindFolderFromPath
(
3470 [in, string] LPCWSTR pszPath
,
3471 [in] FFFP_MODE mode
,
3472 [out] IKnownFolder
**ppkf
);
3474 HRESULT FindFolderFromIDList
(
3475 [in] PCIDLIST_ABSOLUTE pidl
,
3476 [out] IKnownFolder
**ppkf
);
3479 [in] REFKNOWNFOLDERID rfid
,
3480 [in, unique] HWND hwnd
,
3481 [in] KF_REDIRECT_FLAGS flags
,
3482 [in, unique, string] LPCWSTR pszTargetPath
,
3484 [in, size_is(cFolders
), unique] KNOWNFOLDERID
const *pExclusion
,
3485 [out, string] LPWSTR
*ppszError
);
3488 /* function for releasing structure returned from IKnownFolder::GetFolderDefinition */
3489 cpp_quote
("static inline void FreeKnownFolderDefinitionFields(KNOWNFOLDER_DEFINITION *pKFD)")
3491 cpp_quote
(" CoTaskMemFree(pKFD->pszName);")
3492 cpp_quote
(" CoTaskMemFree(pKFD->pszDescription);")
3493 cpp_quote
(" CoTaskMemFree(pKFD->pszRelativePath);")
3494 cpp_quote
(" CoTaskMemFree(pKFD->pszParsingName);")
3495 cpp_quote
(" CoTaskMemFree(pKFD->pszTooltip);")
3496 cpp_quote
(" CoTaskMemFree(pKFD->pszLocalizedName);")
3497 cpp_quote
(" CoTaskMemFree(pKFD->pszIcon);")
3498 cpp_quote
(" CoTaskMemFree(pKFD->pszSecurity);")
3501 typedef [v1_enum] enum ASSOCIATIONLEVEL
{
3507 typedef [v1_enum] enum ASSOCIATIONTYPE
{
3516 uuid(4e530b0a
-e611
-4c77
-a3ac
-9031d022281b
),
3517 pointer_default(unique)
3519 interface IApplicationAssociationRegistration
: IUnknown
3521 HRESULT QueryCurrentDefault
(
3522 [in, string] LPCWSTR pszQuery
,
3523 [in] ASSOCIATIONTYPE atQueryType
,
3524 [in] ASSOCIATIONLEVEL alQueryLevel
,
3525 [out, string] LPWSTR
*ppszAssociation
);
3527 HRESULT QueryAppIsDefault
(
3528 [in, string] LPCWSTR pszQuery
,
3529 [in] ASSOCIATIONTYPE atQueryType
,
3530 [in] ASSOCIATIONLEVEL alQueryLevel
,
3531 [in, string] LPCWSTR pszAppRegistryName
,
3532 [out] BOOL
*pfDefault
);
3534 HRESULT QueryAppIsDefaultAll
(
3535 [in] ASSOCIATIONLEVEL alQueryLevel
,
3536 [in, string] LPCWSTR pszAppRegistryName
,
3537 [out] BOOL
* pfDefault
);
3539 HRESULT SetAppAsDefault
(
3540 [in, string] LPCWSTR pszAppRegistryName
,
3541 [in, string] LPCWSTR pszSet
,
3542 [in] ASSOCIATIONTYPE atSetType
);
3544 HRESULT SetAppAsDefaultAll
(
3545 [in, string] LPCWSTR pszAppRegistryName
);
3547 HRESULT ClearUserAssociations
();
3552 uuid(12337d35
-94c6
-48a0
-bce7
-6a9c69d4d600
),
3553 pointer_default(unique)
3555 interface IApplicationDestinations
: IUnknown
3558 [in] LPCWSTR pszAppID
);
3560 HRESULT RemoveDestination
(
3561 [in] IUnknown
*punk
);
3563 HRESULT RemoveAllDestinations
();
3568 uuid(3c594f9f
-9f30
-47a1
-979a
-c9e83d3d0a06
),
3569 pointer_default(unique)
3571 interface IApplicationDocumentLists
: IUnknown
3573 typedef [v1_enum] enum APPDOCLISTTYPE
3580 [in] LPCWSTR pszAppID
);
3583 [in] APPDOCLISTTYPE list_type
,
3584 [in] UINT item_count
,
3586 [out, iid_is(riid
)] void **ppv
);
3590 uuid(6332debf
-87b5
-4670-90c0
-5e57b408a49e
),
3592 pointer_default(unique)
3594 interface ICustomDestinationList
: IUnknown
3596 typedef [v1_enum] enum KNOWNDESTCATEGORY
{
3599 } KNOWNDESTCATEGORY
;
3601 HRESULT SetAppID
([in, string] LPCWSTR pszAppID
);
3604 [out] UINT
*pcMinSlots
,
3606 [out, iid_is(riid
)] void **ppv
);
3608 HRESULT AppendCategory
(
3609 [in, string] LPCWSTR pszCategory
,
3610 [in] IObjectArray
*poa
);
3612 HRESULT AppendKnownCategory
([in] KNOWNDESTCATEGORY category
);
3613 HRESULT AddUserTasks
([in] IObjectArray
*poa
);
3614 HRESULT CommitList
();
3616 HRESULT GetRemovedDestinations
(
3618 [out, iid_is(riid
)] void **ppv
);
3620 HRESULT DeleteList
([in, unique, string] LPCWSTR pszAppID
);
3621 HRESULT AbortList
();
3625 uuid(ddefe873
-6997-4e68
-be26
-39b633adbe12
),
3627 pointer_default(unique)
3629 interface IQueryCancelAutoPlay
: IUnknown
3631 HRESULT AllowAutoPlay
([in, string] LPCWSTR path
,
3632 [in] DWORD content_type
,
3633 [in, string] LPCWSTR label
,
3634 [in] DWORD serial_number
);
3638 uuid(d594d0d8
-8da7
-457b
-b3b4
-ce5dbaac0b88
),
3639 pointer_default(unique)
3641 interface ITransferAdviseSink
: IUnknown
3643 [v1_enum] enum _TRANSFER_ADVISE_STATE
3648 TS_INDETERMINATE
= 4
3650 typedef DWORD TRANSFER_ADVISE_STATE
;
3652 HRESULT UpdateProgress
([in] ULONGLONG size_current
,
3653 [in] ULONGLONG size_total
,
3654 [in] INT files_current
,
3655 [in] INT files_total
,
3656 [in] INT folders_current
,
3657 [in] INT folders_total
);
3658 HRESULT UpdateTransferState
([in] TRANSFER_ADVISE_STATE state
);
3659 HRESULT ConfirmOverwrite
([in] IShellItem
*source,
3660 [in] IShellItem
*dest_parent
,
3661 [in, string] LPCWSTR name
);
3662 HRESULT ConfirmEncryptionLoss
([in] IShellItem
*source);
3663 HRESULT FileFailure
([in] IShellItem
*item
,
3664 [in, unique, string] LPCWSTR itemname
,
3666 [in, out, unique, size_is(crename
)] LPWSTR rename
,
3667 [in] ULONG crename
);
3668 HRESULT SubStreamFailure
([in] IShellItem
*item
,
3669 [in, string] LPCWSTR stream
,
3671 HRESULT PropertyFailure
([in] IShellItem
*item
,
3672 [in, unique] const PROPERTYKEY
*key
,
3676 [v1_enum] enum _TRANSFER_SOURCE_FLAGS
3680 TSF_RENAME_EXIST
= 0x1,
3681 TSF_OVERWRITE_EXIST
= 0x2,
3682 TSF_ALLOW_DECRYPTION
= 0x4,
3683 TSF_NO_SECURITY
= 0x8,
3684 TSF_COPY_CREATION_TIME
= 0x10,
3685 TSF_COPY_WRITE_TIME
= 0x20,
3686 TSF_USE_FULL_ACCESS
= 0x40,
3687 TSF_DELETE_RECYCLE_IF_POSSIBLE
= 0x80,
3688 TSF_COPY_HARD_LINK
= 0x100,
3689 TSF_COPY_LOCALIZED_NAME
= 0x200,
3690 TSF_MOVE_AS_COPY_DELETE
= 0x400,
3691 TSF_SUSPEND_SHELLEVENTS
= 0x800
3693 typedef DWORD TRANSFER_SOURCE_FLAGS
;
3696 uuid(00adb003
-bde9
-45c6
-8e29
-d09f9353e108
),
3698 pointer_default(unique)
3700 interface ITransferSource
: IUnknown
3702 HRESULT Advise
([in] ITransferAdviseSink
*sink
, [out] DWORD
*cookie
);
3703 HRESULT Unadvise
([in] DWORD cookie
);
3704 HRESULT SetProperties
([in] IPropertyChangeArray
*array
);
3705 HRESULT OpenItem
([in] IShellItem
*item
,
3706 [in] TRANSFER_SOURCE_FLAGS flags
,
3708 [out, iid_is(riid
)] void **ppv
);
3709 HRESULT MoveItem
([in] IShellItem
*item
,
3710 [in] IShellItem
*parent_dest
,
3711 [in, string] LPCWSTR name_dest
,
3712 [in] TRANSFER_SOURCE_FLAGS flags
,
3713 [out] IShellItem
**newitem
);
3714 HRESULT RecycleItem
([in] IShellItem
*source,
3715 [in] IShellItem
*parent_dest
,
3716 [in] TRANSFER_SOURCE_FLAGS flags
,
3717 [out] IShellItem
**new_dest
);
3718 HRESULT RemoveItem
([in] IShellItem
*source, [in] TRANSFER_SOURCE_FLAGS flags
);
3719 HRESULT RenameItem
([in] IShellItem
*source,
3720 [in, string] LPCWSTR newname
,
3721 [in] TRANSFER_SOURCE_FLAGS flags
,
3722 [out] IShellItem
**new_dest
);
3723 HRESULT LinkItem
([in] IShellItem
*source,
3724 [in] IShellItem
*parent_dest
,
3725 [in, unique, string] LPCWSTR new_name
,
3726 [in] TRANSFER_SOURCE_FLAGS flags
,
3727 [out] IShellItem
**new_dest
);
3728 HRESULT ApplyPropertiesToItem
([in] IShellItem
*source, [out] IShellItem
**newitem
);
3729 HRESULT GetDefaultDestinationName
([in] IShellItem
*source,
3730 [in] IShellItem
*parent_dest
,
3731 [out, string] LPWSTR
*dest_name
);
3732 HRESULT EnterFolder
([in] IShellItem
*child_folder
);
3733 HRESULT LeaveFolder
([in] IShellItem
*child_folder
);
3737 uuid(48addd32
-3ca5
-4124-abe3
-b5a72531b207
),
3739 pointer_default(unique)
3741 interface ITransferDestination
: IUnknown
3743 HRESULT Advise
([in] ITransferAdviseSink
*sink
, [out] DWORD
*cookie
);
3744 HRESULT Unadvise
([in] DWORD cookie
);
3745 HRESULT CreateItem
([in, string] LPCWSTR name
,
3747 [in] ULONGLONG size
,
3748 [in] TRANSFER_SOURCE_FLAGS flags
,
3750 [out, iid_is(riid
)] void **ppv
,
3751 [in] REFIID resources
,
3752 [out, iid_is(riid
)] void **presources
);
3756 uuid(92218cab
-ecaa
-4335-8133-807fd234c2ee
),
3758 pointer_default(unique)
3760 interface IAssocHandlerInvoker
: IUnknown
3762 HRESULT SupportsSelection
();
3767 uuid(f04061ac
-1659-4a3f
-a954
-775aa57fc083
),
3769 pointer_default(unique)
3771 interface IAssocHandler
: IUnknown
3773 HRESULT GetName
([out, string] LPWSTR
*name
);
3774 HRESULT GetUIName
([out, string] LPWSTR
*uiname
);
3775 HRESULT GetIconLocation
([out, string] LPWSTR
*path
,
3777 HRESULT IsRecommended
();
3778 HRESULT MakeDefault
([in, string] LPCWSTR description
);
3779 HRESULT Invoke
([in] IDataObject
*object);
3780 HRESULT CreateInvoker
([in] IDataObject
*object,
3781 [out] IAssocHandlerInvoker
**invoker
);
3785 uuid(973810ae
-9599-4b88
-9e4d
-6ee98c9552da
),
3787 pointer_default(unique)
3789 interface IEnumAssocHandlers
: IUnknown
3791 HRESULT Next
([in] ULONG count
,
3792 [out, size_is(count
), length_is(*fetched
)] IAssocHandler
**handlers
,
3793 [out] ULONG
*fetched
);
3796 typedef enum ASSOC_FILTER
3798 ASSOC_FILTER_NONE
= 0,
3799 ASSOC_FILTER_RECOMMENDED
3801 cpp_quote
("WINSHELLAPI HRESULT WINAPI SHAssocEnumHandlers(PCWSTR extra, ASSOC_FILTER filter, IEnumAssocHandlers **handlersenum);")
3804 uuid(1df0d7f1
-b267
-4d28
-8b10
-12e23202a5c4
),
3806 interface IItemNameLimits
: IUnknown
3808 HRESULT GetValidCharacters
(
3809 [out, string] LPWSTR
*validchars
,
3810 [out, string] LPWSTR
*invalidchars
);
3812 HRESULT GetMaxLength
(
3813 [in, string] LPCWSTR name
,
3814 [out] int *max_length
);
3817 typedef [v1_enum] enum ACTIVATEOPTIONS
3819 AO_NONE
= 0x00000000,
3820 AO_DESIGNMODE
= 0x00000001,
3821 AO_NOERRORUI
= 0x00000002,
3822 AO_NOSPLASHSCREEN
= 0x00000004,
3823 AO_PRELAUNCH
= 0x02000000
3827 uuid(2e941141
-7f97
-4756-ba1d
-9decde894a3d
),
3829 pointer_default(unique)
3831 interface IApplicationActivationManager
: IUnknown
3833 HRESULT ActivateApplication
([in] LPCWSTR appusermodelid
,
3834 [in, unique] LPCWSTR arguments
,
3835 [in] ACTIVATEOPTIONS options
,
3836 [out] DWORD
*processid
);
3837 HRESULT ActivateForFile
([in] LPCWSTR appusermodelid
,
3838 [in] IShellItemArray
*itemarray
,
3839 [in, unique] LPCWSTR verb
,
3840 [out] DWORD
*processid
);
3841 HRESULT ActivateForProtocol
([in] LPCWSTR appusermodelid
,
3842 [in] IShellItemArray
*itemarray
,
3843 [out] DWORD
*processid
);
3848 uuid(fec87aaf
-35f9
-447a
-adb7
-20234491401a
),
3849 pointer_default(unique)
3851 interface IPreviewHandlerFrame
: IUnknown
3853 typedef struct PREVIEWHANDLERFRAMEINFO
3857 } PREVIEWHANDLERFRAMEINFO
;
3859 HRESULT GetWindowContext
([out] PREVIEWHANDLERFRAMEINFO
*info
);
3860 HRESULT TranslateAccelerator
([in] MSG
*msg
);
3863 /*****************************************************************************
3864 * ShellObjects typelibrary
3867 uuid(50A7E9B1
-70EF
-11D1
-B75A
-00A0C90564FE
),
3871 library ShellObjects
3874 uuid(71F96385
-DDD6
-48D3
-A0C1
-AE06E8B055FB
)
3876 coclass ExplorerBrowser
3878 interface IExplorerBrowser
;
3882 uuid(DC1C5A9C
-E88A
-4DDE
-A5A1
-60F82A20AEF7
)
3884 coclass FileOpenDialog
3886 interface IFileOpenDialog
;
3890 uuid(C0B4E2F3
-BA21
-4773-8DBA
-335EC946EB8B
)
3892 coclass FileSaveDialog
3894 interface IFileSaveDialog
;
3898 uuid(AE054212
-3535-4430-83ED
-D501AA6680E6
)
3900 coclass NamespaceTreeControl
3902 interface INameSpaceTreeControl2
;
3906 uuid(4df0c730
-df9d
-4ae3
-9153-aa6b82e9795a
)
3908 coclass KnownFolderManager
3910 interface IKnownFolderManager
;
3914 uuid(591209c7
-767b
-42b2
-9fba
-44ee4615f2c7
)
3916 coclass ApplicationAssociationRegistration
3918 interface IApplicationAssociationRegistration
;
3922 uuid(86c14003
-4d6b
-4ef3
-a7b4
-0506663b2e68
)
3924 coclass ApplicationDestinations
3926 interface IApplicationDestinations
;
3930 uuid(86bec222
-30f2
-47e0
-9f25
-60d11cd75c28
)
3932 coclass ApplicationDocumentLists
3934 interface IApplicationDocumentLists
;
3938 uuid(00021401-0000-0000-c000
-000000000046)
3942 interface IShellLinkW
;
3946 uuid(56fdf344
-fd6d
-11d0
-958a
-006097c9a090
)
3950 interface ITaskbarList4
;
3954 uuid(77f10cf0
-3db5
-4966-b520
-b7c54fd35ed6
)
3956 coclass DestinationList
{
3957 interface ICustomDestinationList
;
3961 uuid(2d3468c1
-36a7
-43b6
-ac24
-d3f02fd9607a
)
3963 coclass EnumerableObjectCollection
3965 interface IEnumObjects
;
3969 uuid(331f1768
-05a9
-4ddd
-b86e
-dae34ddc998a
)
3971 coclass QueryCancelAutoPlay
3973 interface IQueryCancelAutoPlay
;
3977 uuid(45ba127d
-10a8
-46ea
-8ab7
-56ea9078943c
)
3979 coclass ApplicationActivationManager
3981 interface IApplicationActivationManager
;
3985 uuid(3ad05575
-8857-4850-9277-11b85bdb8e09
)
3987 coclass FileOperation
3989 interface IFileOperation
;
3993 [v1_enum] enum _OPPROGDLGF
3995 OPPROGDLG_DEFAULT
= 0x00000000,
3996 OPPROGDLG_ENABLEPAUSE
= 0x00000080,
3997 OPPROGDLG_ALLOWUNDO
= 0x00000100,
3998 OPPROGDLG_DONTDISPLAYSOURCEPATH
= 0x00000200,
3999 OPPROGDLG_DONTDISPLAYDESTPATH
= 0x00000400,
4000 OPPROGDLG_NOMULTIDAYESTIMATES
= 0x00000800,
4001 OPPROGDLG_DONTDISPLAYLOCATIONS
= 0x00001000,
4003 typedef DWORD OPPROGDLGF
;
4005 typedef [v1_enum] enum _SPACTION
{
4010 SPACTION_APPLYINGATTRIBS
,
4011 SPACTION_DOWNLOADING
,
4012 SPACTION_SEARCHING_INTERNET
,
4013 SPACTION_CALCULATING
,
4015 SPACTION_SEARCHING_FILES
,
4018 SPACTION_FORMATTING
,
4019 SPACTION_COPY_MOVING
,
4024 uuid(0c9fb851
-e5c9
-43eb
-a370
-f0677b13874c
),
4025 pointer_default(unique)
4027 interface IOperationsProgressDialog
: IUnknown
4029 [v1_enum] enum _PDMODE
4031 PDM_DEFAULT
= 0x00000000,
4032 PDM_RUN
= 0x00000001,
4033 PDM_PREFLIGHT
= 0x00000002,
4034 PDM_UNDOING
= 0x00000004,
4035 PDM_ERRORSBLOCKING
= 0x00000008,
4036 PDM_INDETERMINATE
= 0x00000010,
4038 typedef DWORD PDMODE
;
4040 typedef [v1_enum] enum PDOPSTATUS
4049 HRESULT StartProgressDialog
([in, unique] HWND owner
, [in] OPPROGDLGF flags
);
4050 HRESULT StopProgressDialog
();
4051 HRESULT SetOperation
([in] SPACTION action
);
4052 HRESULT SetMode
([in] PDMODE mode
);
4053 HRESULT UpdateProgress
([in] ULONGLONG current_points
, [in] ULONGLONG total_points
,
4054 [in] ULONGLONG current_size
, [in] ULONGLONG total_size
,
4055 [in] ULONGLONG current_item
, [in] ULONGLONG total_item
);
4056 HRESULT UpdateLocations
([in, unique] IShellItem
*source, [in, unique] IShellItem
*target
,
4057 [in, unique] IShellItem
*item
);
4058 HRESULT ResetTimer
();
4059 HRESULT PauseTimer
();
4060 HRESULT ResumeTimer
();
4061 HRESULT GetMilliseconds
([out] ULONGLONG
*elapsed
, [out] ULONGLONG
*remaining
);
4062 HRESULT GetOperationStatus
([out] PDOPSTATUS
*status
);
4067 uuid(947aab5f
-0a5c
-4c13
-b4d6
-4bf7836fc9f8
),
4068 pointer_default(unique)
4070 interface IFileOperation
: IUnknown
4072 HRESULT Advise
([in] IFileOperationProgressSink
*sink
, [out] DWORD
*cookie
);
4073 HRESULT Unadvise
([in] DWORD cookie
);
4074 HRESULT SetOperationFlags
([in] DWORD flags
);
4075 HRESULT SetProgressMessage
([in, string] LPCWSTR
message);
4076 HRESULT SetProgressDialog
([in] IOperationsProgressDialog
*dialog
);
4077 HRESULT SetProperties
([in] IPropertyChangeArray
*array
);
4078 HRESULT SetOwnerWindow
([in] HWND owner
);
4079 HRESULT ApplyPropertiesToItem
([in] IShellItem
*item
);
4080 HRESULT ApplyPropertiesToItems
([in] IUnknown
*items
);
4081 HRESULT RenameItem
([in] IShellItem
*item
, [in, string] LPCWSTR name
,
4082 [in, unique] IFileOperationProgressSink
*sink
);
4083 HRESULT RenameItems
([in] IUnknown
*items
, [in, string] LPCWSTR name
);
4084 HRESULT MoveItem
([in] IShellItem
*item
, [in] IShellItem
*folder
,
4085 [in, unique, string] LPCWSTR name
,
4086 [in, unique] IFileOperationProgressSink
*sink
);
4087 HRESULT MoveItems
([in] IUnknown
*items
, [in] IShellItem
*folder
);
4088 HRESULT CopyItem
([in] IShellItem
*item
, [in] IShellItem
*folder
,
4089 [in, unique, string] LPCWSTR name
,
4090 [in, unique] IFileOperationProgressSink
*sink
);
4091 HRESULT CopyItems
([in] IUnknown
*items
, [in] IShellItem
*folder
);
4092 HRESULT DeleteItem
([in] IShellItem
*item
,
4093 [in, unique] IFileOperationProgressSink
*sink
);
4094 HRESULT DeleteItems
([in] IUnknown
*items
);
4095 HRESULT NewItem
([in] IShellItem
*folder
, [in] DWORD attributes
,
4096 [in, unique, string] LPCWSTR name
, [in, unique, string] LPCWSTR template_name
,
4097 [in, unique] IFileOperationProgressSink
*sink
);
4098 HRESULT PerformOperations
();
4099 HRESULT GetAnyOperationsAborted
([out] BOOL
*aborted
);