2 * COM interfaces for shell objects
4 * Copyright (C) 1999 Juergen Schmied
5 * Copyright (C) 2003 Alexandre Julliard
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
27 import
"servprov.idl";
30 /* FIXME: import "prsht.idl";*/
34 import
"objectarray.idl";
35 /* FIXME: import "structuredquery.idl"; */
37 cpp_quote
("/* FIXME: #include <sherrors.h> */")
40 /*****************************************************************************
41 * IPersistFolder interface
45 uuid(000214ea
-0000-0000-c000
-000000000046),
46 pointer_default(unique)
48 interface IPersistFolder
: IPersist
50 typedef IPersistFolder
*LPPERSISTFOLDER
;
52 HRESULT Initialize
( [in] LPCITEMIDLIST pidl
);
56 /*****************************************************************************
57 * IPersistFolder2 interface
61 uuid(1ac3d9f0
-175c
-11d1
-95be
-00609797ea4f
),
62 pointer_default(unique)
64 interface IPersistFolder2
: IPersistFolder
66 typedef IPersistFolder2
*LPPERSISTFOLDER2
;
68 HRESULT GetCurFolder
( [out] LPITEMIDLIST
*ppidl
);
72 /*****************************************************************************
73 * IPersistIDList interface
77 uuid(1079acfc
-29bd
-11d3
-8e0d
-00c04f6837d5
),
78 pointer_default(unique)
80 interface IPersistIDList
: IPersist
82 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
83 HRESULT GetIDList
( [out] LPITEMIDLIST
*ppidl
);
87 /*****************************************************************************
88 * IEnumIDList interface
92 uuid(000214f2
-0000-0000-c000
-000000000046),
93 pointer_default(unique)
95 interface IEnumIDList
: IUnknown
97 typedef IEnumIDList
*LPENUMIDLIST
;
101 [out, size_is(celt
), length_is(*pceltFetched
)] LPITEMIDLIST
*rgelt
,
102 [out] ULONG
*pceltFetched
);
104 HRESULT Skip
( [in] ULONG celt
);
106 HRESULT Clone
( [out] IEnumIDList
**ppenum
);
109 /*****************************************************************************
110 * IShellPropSheetExt interface
113 typedef LPARAM LPFNSVADDPROPSHEETPAGE
;
115 cpp_quote
("#include <prsht.h>")
116 cpp_quote
("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
121 uuid(000214E9
-0000-0000-C000
-000000000046),
122 pointer_default(unique),
125 interface IShellPropSheetExt
: IUnknown
127 enum tagSHELLPROPSHEETEXTPAGEID
{
128 EXPPS_FILETYPES
= 0x1
134 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage
,
138 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith
,
141 typedef IShellPropSheetExt
*LPSHELLPROPSHEETEXT
;
143 /*****************************************************************************
144 * IShellFolder interface
148 uuid(000214e6
-0000-0000-c000
-000000000046),
149 pointer_default(unique)
151 interface IShellFolder
: IUnknown
153 typedef IShellFolder
* LPSHELLFOLDER
;
155 typedef enum tagSHGDN
159 SHGDN_FOREDITING
= 0x1000,
160 SHGDN_INCLUDE_NONFILESYS
= 0x2000,
161 SHGDN_FORADDRESSBAR
= 0x4000,
162 SHGDN_FORPARSING
= 0x8000
165 typedef DWORD SHGDNF
;
169 SHCONTF_FOLDERS
= 32,
170 SHCONTF_NONFOLDERS
= 64,
171 SHCONTF_INCLUDEHIDDEN
= 128,
172 SHCONTF_INIT_ON_FIRST_NEXT
= 256,
173 SHCONTF_NETPRINTERSRCH
= 512,
174 SHCONTF_SHAREABLE
= 1024,
175 SHCONTF_STORAGE
= 2048
178 typedef DWORD SHCONTF
;
180 cpp_quote
("#define SFGAO_CANCOPY DROPEFFECT_COPY")
181 cpp_quote
("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
182 cpp_quote
("#define SFGAO_CANLINK DROPEFFECT_LINK")
183 cpp_quote
("#define SFGAO_STORAGE 0x00000008L")
184 cpp_quote
("#define SFGAO_CANRENAME 0x00000010L")
185 cpp_quote
("#define SFGAO_CANDELETE 0x00000020L")
186 cpp_quote
("#define SFGAO_HASPROPSHEET 0x00000040L")
187 cpp_quote
("#define SFGAO_DROPTARGET 0x00000100L")
188 cpp_quote
("#define SFGAO_CAPABILITYMASK 0x00000177L")
189 cpp_quote
("#define SFGAO_ENCRYPTED 0x00002000L")
190 cpp_quote
("#define SFGAO_ISSLOW 0x00004000L")
191 cpp_quote
("#define SFGAO_GHOSTED 0x00008000L")
192 cpp_quote
("#define SFGAO_LINK 0x00010000L")
193 cpp_quote
("#define SFGAO_SHARE 0x00020000L")
194 cpp_quote
("#define SFGAO_READONLY 0x00040000L")
195 cpp_quote
("#define SFGAO_HIDDEN 0x00080000L")
196 cpp_quote
("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
197 cpp_quote
("#define SFGAO_FILESYSANCESTOR 0x10000000L")
198 cpp_quote
("#define SFGAO_FOLDER 0x20000000L")
199 cpp_quote
("#define SFGAO_FILESYSTEM 0x40000000L")
200 cpp_quote
("#define SFGAO_HASSUBFOLDER 0x80000000L")
201 cpp_quote
("#define SFGAO_CONTENTSMASK 0x80000000L")
202 cpp_quote
("#define SFGAO_VALIDATE 0x01000000L")
203 cpp_quote
("#define SFGAO_REMOVABLE 0x02000000L")
204 cpp_quote
("#define SFGAO_COMPRESSED 0x04000000L")
205 cpp_quote
("#define SFGAO_BROWSABLE 0x08000000L")
206 cpp_quote
("#define SFGAO_NONENUMERATED 0x00100000L")
207 cpp_quote
("#define SFGAO_NEWCONTENT 0x00200000L")
208 cpp_quote
("#define SFGAO_STREAM 0x00400000L")
209 cpp_quote
("#define SFGAO_STORAGEANCESTOR 0x00800000L")
211 typedef ULONG SFGAOF
;
213 HRESULT ParseDisplayName
(
215 [in] LPBC pbcReserved
,
216 [in, string] LPOLESTR lpszDisplayName
,
217 [out] ULONG
*pchEaten
,
218 [out] LPITEMIDLIST
*ppidl
,
219 [in, out, unique] ULONG
*pdwAttributes
);
223 [in] SHCONTF grfFlags
,
224 [out] IEnumIDList
**ppenumIDList
);
226 HRESULT BindToObject
(
227 [in] LPCITEMIDLIST pidl
,
228 [in] LPBC pbcReserved
,
230 [out, iid_is(riid
)] void **ppvOut
);
232 HRESULT BindToStorage
(
233 [in] LPCITEMIDLIST pidl
,
234 [in] LPBC pbcReserved
,
236 [out, iid_is(riid
)] void **ppvObj
);
240 [in] LPCITEMIDLIST pidl1
,
241 [in] LPCITEMIDLIST pidl2
);
243 HRESULT CreateViewObject
(
246 [out, iid_is(riid
)] void **ppvOut
);
248 HRESULT GetAttributesOf
(
250 [in, size_is(cidl
)] LPCITEMIDLIST
*apidl
,
251 [in, out] SFGAOF
*rgfInOut
);
253 HRESULT GetUIObjectOf
(
256 [in, size_is(cidl
)] LPCITEMIDLIST
*apidl
,
258 [in, out, unique] UINT
*prgfInOut
,
259 [out, iid_is(riid
)] void **ppvOut
);
261 HRESULT GetDisplayNameOf
(
262 [in] LPCITEMIDLIST pidl
,
264 [out] STRRET
*lpName
);
268 [in] LPCITEMIDLIST pidl
,
269 [in, string] LPCOLESTR lpszName
,
271 [out] LPITEMIDLIST
*ppidlOut
);
275 /*****************************************************************************
276 * IEnumExtraSearch interface
280 uuid(0e700be1
-9db6
-11d1
-a1ce
-00c04fd75d13
),
281 pointer_default(unique)
283 interface IEnumExtraSearch
: IUnknown
285 typedef IEnumExtraSearch
*LPENUMEXTRASEARCH
;
290 WCHAR wszFriendlyName
[80];
292 *WCHAR wszMenuText[80];
293 *WCHAR wszHelpText[MAX_PATH];
297 *WCHAR wszIcon[MAX_PATH+10];
298 *WCHAR wszGreyIcon[MAX_PATH+10];
299 *WCHAR wszClrIcon[MAX_PATH+10];
301 } EXTRASEARCH
, *LPEXTRASEARCH
;
305 [out, size_is(celt
), length_is(*pceltFetched
)] EXTRASEARCH
*rgelt
,
306 [out] ULONG
*pceltFetched
);
308 HRESULT Skip
( [in] ULONG celt
);
310 HRESULT Clone
( [out] IEnumExtraSearch
**ppenum
);
314 /*****************************************************************************
315 * IShellFolder2 interface
319 uuid(93f2f68c
-1d1b
-11d3
-a30e
-00c04f79abd1
),
320 pointer_default(unique)
322 interface IShellFolder2
: IShellFolder
328 } SHCOLUMNID
, *LPSHCOLUMNID
;
329 typedef const SHCOLUMNID
*LPCSHCOLUMNID
;
331 HRESULT GetDefaultSearchGUID
( [out] GUID
*lpguid
);
332 HRESULT EnumSearches
( [out] IEnumExtraSearch
**ppenum
);
333 HRESULT GetDefaultColumn
( [in] DWORD dwReserved
, [out] ULONG
*pSort
, [out] ULONG
*pDisplay
);
334 HRESULT GetDefaultColumnState
( [in] UINT iColumn
, [out] SHCOLSTATEF
*pcsFlags
);
335 HRESULT GetDetailsEx
( [in] LPCITEMIDLIST pidl
, [in] const SHCOLUMNID
*pscid
, [out] VARIANT *pv
);
336 HRESULT GetDetailsOf
( [in] LPCITEMIDLIST pidl
, [in] UINT iColumn
, [out] SHELLDETAILS
*psd
);
337 HRESULT MapColumnToSCID
( [in] UINT iColumn
, [in] SHCOLUMNID
*pscid
);
340 /*****************************************************************************
341 * IShellItem interface
345 uuid(43826d1e
-e718
-42ee
-bc55
-a1e261c37bfe
),
346 pointer_default(unique)
348 interface IShellItem
: IUnknown
350 typedef [v1_enum] enum {
351 SIGDN_NORMALDISPLAY
= 0,
352 SIGDN_PARENTRELATIVEPARSING
= 0x80018001,
353 SIGDN_DESKTOPABSOLUTEPARSING
= 0x80028000,
354 SIGDN_PARENTRELATIVEEDITING
= 0x80031001,
355 SIGDN_DESKTOPABSOLUTEEDITING
= 0x8004c000,
356 SIGDN_FILESYSPATH
= 0x80058000,
357 SIGDN_URL
= 0x80068000,
358 SIGDN_PARENTRELATIVEFORADDRESSBAR
= 0x8007c001,
359 SIGDN_PARENTRELATIVE
= 0x80080001
360 } SIGDN
; /* & 0xFFFF => SHGDN */
362 [v1_enum] enum _SICHINTF
364 SICHINT_DISPLAY
= 0x00000000,
365 SICHINT_CANONICAL
= 0x10000000,
366 SICHINT_TEST_FILESYSPATH_IF_NOT_EQUAL
= 0x20000000,
367 SICHINT_ALLFIELDS
= 0x80000000
369 typedef DWORD SICHINTF
;
371 HRESULT BindToHandler
(
375 [out, iid_is(riid
)] void **ppvOut
);
377 HRESULT GetParent
( [out] IShellItem
**ppsi
);
379 HRESULT GetDisplayName
(
380 [in] SIGDN sigdnName
,
381 [out] LPWSTR
*ppszName
);
383 HRESULT GetAttributes
(
384 [in] SFGAOF sfgaoMask
,
385 [out] SFGAOF
*psfgaoAttribs
);
388 [in] IShellItem
*psi
,
393 /*****************************************************************************
394 * IShellItem2 interface
398 uuid(7E9FB0D3
-919F
-4307-AB2E
-9B1860310C93
),
399 pointer_default(unique)
401 interface IShellItem2
: IShellItem
403 HRESULT GetPropertyStore
(
404 [in] GETPROPERTYSTOREFLAGS flags
,
406 [out, iid_is(riid
)] void **ppv
);
408 HRESULT GetPropertyStoreWithCreateObject
(
409 [in] GETPROPERTYSTOREFLAGS flags
,
410 [in] IUnknown
*punkCreateObject
,
412 [out, iid_is(riid
)] void **ppv
);
414 HRESULT GetPropertyStoreForKeys
(
415 [in, size_is(cKeys
)] const PROPERTYKEY
*rgKeys
,
417 [in] GETPROPERTYSTOREFLAGS flags
,
419 [out, iid_is(riid
)] void **ppv
);
421 HRESULT GetPropertyDescriptionList
(
422 [in] REFPROPERTYKEY keyType
,
424 [out, iid_is(riid
)] void **ppv
);
427 [in, unique] IBindCtx
*pbc
);
430 [in] REFPROPERTYKEY key
,
431 [out] PROPVARIANT
*ppropvar
);
434 [in] REFPROPERTYKEY key
,
435 [out] CLSID
*pclsid
);
437 HRESULT GetFileTime
(
438 [in] REFPROPERTYKEY key
,
439 [out] FILETIME
*pft
);
442 [in] REFPROPERTYKEY key
,
446 [in] REFPROPERTYKEY key
,
447 [out, string] LPWSTR
*ppsz
);
450 [in] REFPROPERTYKEY key
,
454 [in] REFPROPERTYKEY key
,
455 [out] ULONGLONG
*pull
);
458 [in] REFPROPERTYKEY key
,
462 typedef enum tagNWMF
{
463 NWMF_UNLOADING
= 0x0001,
464 NWMF_USERINITED
= 0x0002,
466 NWMF_OVERRIDEKEY
= 0x0008,
467 NWMF_SHOWHELP
= 0x0010,
468 NWMF_HTMLDIALOG
= 0x0020,
469 NWMF_FROMDIALOGCHILD
= 0x0040,
470 NWMF_USERREQUESTED
= 0x0080,
471 NWMF_USERALLOWED
= 0x0100
475 uuid(d2bc4c84
-3f72
-4a52
-a604
-7bcbf3982cbb
),
477 pointer_default(unique)
479 interface INewWindowManager
: IUnknown
481 HRESULT EvaluateNewWindow
(
482 [in, string] LPCWSTR pszUrl
,
483 [in, string] LPCWSTR pszName
,
484 [in, string] LPCWSTR pszUrlContext
,
485 [in, string] LPCWSTR pszFeatures
,
488 [in] DWORD dwUserActionTime
);
491 cpp_quote
("#define SID_SNewWindowManager IID_INewWindowManager")
493 /*****************************************************************************
494 * IEnumShellItems interface
498 uuid(70629033-E363
-4A28
-A567
-0DB78006E6D7
),
499 pointer_default(unique)
501 interface IEnumShellItems
: IUnknown
503 [local] HRESULT Next
(
505 [out, size_is(celt
), length_is(*pceltFetched
)] IShellItem
**rgelt
,
506 [out] ULONG
*pceltFetched
);
508 [call_as
(Next
)] HRESULT RemoteNext
(
510 [out, size_is(celt
), length_is(*pceltFetched
)] IShellItem
**rgelt
,
511 [out] ULONG
*pceltFetched
);
519 [out] IEnumShellItems
**ppenum
);
522 /*****************************************************************************
523 * IShellItemArray interface
527 uuid(B63EA76D
-1F85
-456F
-A19C
-48159EFA858B
),
528 pointer_default(unique)
530 interface IShellItemArray
: IUnknown
532 typedef [v1_enum] enum SIATTRIBFLAGS
{
533 SIATTRIBFLAGS_AND
= 0x0001,
534 SIATTRIBFLAGS_OR
= 0x0002,
535 SIATTRIBFLAGS_APPCOMPAT
= 0x0003,
536 SIATTRIBFLAGS_MASK
= 0x0003,
537 SIATTRIBFLAGS_ALLITEMS
= 0x4000
539 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(SIATTRIBFLAGS)")
541 HRESULT BindToHandler
(
542 [in, unique] IBindCtx
*pbc
,
545 [out, iid_is(riid
)] void **ppvOut
);
547 HRESULT GetPropertyStore
(
548 [in] GETPROPERTYSTOREFLAGS flags
,
550 [out, iid_is(riid
)] void **ppv
);
552 HRESULT GetPropertyDescriptionList
(
553 [in] REFPROPERTYKEY keyType
,
555 [out, iid_is(riid
)] void **ppv
);
557 HRESULT GetAttributes
(
558 [in] SIATTRIBFLAGS AttribFlags
,
559 [in] SFGAOF sfgaoMask
,
560 [out] SFGAOF
*psfgaoAttribs
);
563 [out] DWORD
*pdwNumItems
);
567 [out] IShellItem
**ppsi
);
570 [out] IEnumShellItems
**ppenumShellItems
);
574 typedef [v1_enum] enum DATAOBJ_GET_ITEM_FLAGS
577 DOGIF_TRAVERSE_LINK
= 0x1,
578 DOGIF_NO_HDROP
= 0x2,
580 DOGIF_ONLY_IF_ONE
= 0x8
581 } DATAOBJ_GET_ITEM_FLAGS
;
582 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(DATAOBJ_GET_ITEM_FLAGS)")
584 cpp_quote
("HRESULT WINAPI SHGetNameFromIDList(PCIDLIST_ABSOLUTE pidl, SIGDN sigdnName, PWSTR *ppszName);")
585 cpp_quote
("HRESULT WINAPI SHCreateItemFromParsingName(PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv);")
586 cpp_quote
("HRESULT WINAPI SHCreateItemFromIDList(PCIDLIST_ABSOLUTE pidl, REFIID riid, void **ppv);")
587 cpp_quote
("HRESULT WINAPI SHGetItemFromDataObject(IDataObject *pdtobj, DATAOBJ_GET_ITEM_FLAGS dwFlags, REFIID riid, void **ppv);")
588 cpp_quote
("HRESULT WINAPI SHGetIDListFromObject(IUnknown *punk, PIDLIST_ABSOLUTE *ppidl);")
589 cpp_quote
("HRESULT WINAPI SHGetItemFromObject(IUnknown *punk, REFIID riid, void **ppv);")
590 cpp_quote
("HRESULT WINAPI SHCreateShellItemArray(PCIDLIST_ABSOLUTE pidlParent, IShellFolder* psf, UINT cidl, PCUITEMID_CHILD_ARRAY ppidl, IShellItemArray **ppsiItemArray);")
591 cpp_quote
("HRESULT WINAPI SHCreateShellItemArrayFromShellItem(IShellItem *psi, REFIID riid, void **ppv);")
592 cpp_quote
("HRESULT WINAPI SHCreateShellItemArrayFromDataObject(IDataObject *pdo, REFIID riid, void **ppv);")
594 /*****************************************************************************
595 * IShellItemFilter interface
599 uuid(2659B475
-EEB8
-48B7
-8F07
-B378810F48CF
),
600 pointer_default(unique)
602 interface IShellItemFilter
: IUnknown
605 [in] IShellItem
*psi
);
607 HRESULT GetEnumFlagsForItem
(
608 [in] IShellItem
*psi
,
609 [out] SHCONTF
*pgrfFlags
);
612 /*****************************************************************************
615 typedef char *LPVIEWSETTINGS
;
619 FWF_AUTOARRANGE
= 0x00000001,
620 FWF_ABBREVIATEDNAMES
= 0x00000002,
621 FWF_SNAPTOGRID
= 0x00000004,
622 FWF_OWNERDATA
= 0x00000008,
623 FWF_BESTFITWINDOW
= 0x00000010,
624 FWF_DESKTOP
= 0x00000020,
625 FWF_SINGLESEL
= 0x00000040,
626 FWF_NOSUBFOLDERS
= 0x00000080,
627 FWF_TRANSPARENT
= 0x00000100,
628 FWF_NOCLIENTEDGE
= 0x00000200,
629 FWF_NOSCROLL
= 0x00000400,
630 FWF_ALIGNLEFT
= 0x00000800,
631 FWF_NOICONS
= 0x00001000,
632 FWF_SHOWSELALWAYS
= 0x00002000,
633 FWF_NOVISIBLE
= 0x00004000,
634 FWF_SINGLECLICKACTIVATE
= 0x00008000,
635 FWF_NOWEBVIEW
= 0x00010000,
636 FWF_HIDEFILENAMES
= 0x00020000,
637 FWF_CHECKSELECT
= 0x00040000,
638 FWF_NOENUMREFRESH
= 0x00080000,
639 FWF_NOGROUPING
= 0x00100000,
640 FWF_FULLROWSELECT
= 0x00200000,
641 FWF_NOFILTERS
= 0x00400000,
642 FWF_NOCOLUMNHEADER
= 0x00800000,
643 FWF_NOHEADERINALLVIEWS
= 0x01000000,
644 FWF_EXTENDEDTILES
= 0x02000000,
645 FWF_TRICHECKSELECT
= 0x04000000,
646 FWF_AUTOCHECKSELECT
= 0x08000000,
647 FWF_NOBROWSERVIEWSTATE
= 0x10000000,
648 FWF_SUBSETGROUPS
= 0x20000000,
649 FWF_USESEARCHFOLDER
= 0x40000000,
650 FWF_ALLOWRTLREADING
= 0x80000000
657 FVM_FIRST
= FVM_ICON
,
665 FVM_LAST
= FVM_CONTENT
672 } FOLDERSETTINGS
, *PFOLDERSETTINGS
, *LPFOLDERSETTINGS
;
673 typedef const FOLDERSETTINGS
*LPCFOLDERSETTINGS
;
675 /*****************************************************************************
676 * IShellIcon interface
679 uuid(000214e5
-0000-0000-c000
-000000000046),
681 pointer_default(unique)
683 interface IShellIcon
: IUnknown
686 [in] PCUITEMID_CHILD pidl
,
688 [out] int *pIconIndex
);
691 /*****************************************************************************
692 * IShellView interface
694 interface IShellBrowser
; /* forward declaration */
697 uuid(000214e3
-0000-0000-c000
-000000000046),
698 pointer_default(unique)
700 interface IShellView
: IOleWindow
702 typedef IShellView
*LPSHELLVIEW
;
704 cpp_quote
("#define SVSI_DESELECT 0x00000000")
705 cpp_quote
("#define SVSI_SELECT 0x00000001")
706 cpp_quote
("#define SVSI_EDIT 0x00000003")
707 cpp_quote
("#define SVSI_DESELECTOTHERS 0x00000004")
708 cpp_quote
("#define SVSI_ENSUREVISIBLE 0x00000008")
709 cpp_quote
("#define SVSI_FOCUSED 0x00000010")
710 cpp_quote
("#define SVSI_TRANSLATEPT 0x00000020")
711 cpp_quote
("#define SVSI_SELECTIONMARK 0x00000040")
712 cpp_quote
("#define SVSI_POSITIONITEM 0x00000080")
713 cpp_quote
("#define SVSI_CHECK 0x00000100")
714 cpp_quote
("#define SVSI_NOSTATECHANGE 0x80000000")
720 SVGIO_BACKGROUND
= 0x00000000,
721 SVGIO_SELECTION
= 0x00000001,
722 SVGIO_ALLVIEW
= 0x00000002,
723 SVGIO_CHECKED
= 0x00000003,
724 SVGIO_TYPE_MASK
= 0x0000000f,
725 SVGIO_FLAG_VIEWORDER
= 0x80000000,
730 SVUIA_DEACTIVATE
= 0,
731 SVUIA_ACTIVATE_NOFOCUS
= 1,
732 SVUIA_ACTIVATE_FOCUS
= 2,
733 SVUIA_INPLACEACTIVATE
= 3
736 HRESULT TranslateAccelerator
( [in] MSG
*pmsg
);
737 HRESULT EnableModeless
( [in] BOOL fEnable
);
738 HRESULT UIActivate
( [in] UINT uState
);
740 HRESULT CreateViewWindow
(
741 [in] IShellView
*psvPrevious
,
742 [in] LPCFOLDERSETTINGS lpfs
,
743 [in] IShellBrowser
*psb
,
747 HRESULT DestroyViewWindow
();
748 HRESULT GetCurrentInfo
( [out] LPFOLDERSETTINGS lpfs
);
750 [local] HRESULT AddPropertySheetPages
(
751 [in] DWORD dwReserved
,
752 [in] LPFNSVADDPROPSHEETPAGE pfn
,
755 HRESULT SaveViewState
();
757 [in] LPCITEMIDLIST pidlItem
,
759 HRESULT GetItemObject
(
762 [out, iid_is(riid
)] void **ppv
);
767 uuid(88e39e80
-3578-11cf
-ae69
-08002b2e1262
),
768 pointer_default(unique)
770 interface IShellView2
: IShellView
772 typedef GUID SHELLVIEWID
;
773 cpp_quote
("#include <pshpack8.h>")
774 typedef struct _SV2CVW2_PARAMS
778 LPCFOLDERSETTINGS pfs
;
779 IShellBrowser
*psbOwner
;
781 SHELLVIEWID
const *pvid
;
783 } SV2CVW2_PARAMS
, *LPSV2CVW2_PARAMS
;
784 cpp_quote
("#include <poppack.h>")
787 [in, out] SHELLVIEWID
*view_guid
,
790 HRESULT CreateViewWindow2
(
791 [in] LPSV2CVW2_PARAMS view_params
793 HRESULT HandleRename
(
794 [in] LPCITEMIDLIST new_pidl
796 HRESULT SelectAndPositionItem
(
797 [in] LPCITEMIDLIST item
,
803 /*****************************************************************************
804 * IFolderView interface
807 uuid(cde725b0
-ccc9
-4519-917e-325d72fab4ce
),
809 pointer_default(unique)
811 interface IFolderView
: IUnknown
813 HRESULT GetCurrentViewMode
( [out] UINT
*mode
);
814 HRESULT SetCurrentViewMode
( [in] UINT mode
);
815 HRESULT GetFolder
( [in] REFIID riid
, [out, iid_is(riid
)] void **ppv
);
818 [out] PITEMID_CHILD
*ppidl
827 [out, iid_is(riid
)] void **ppv
829 HRESULT GetSelectionMarkedItem
( [out] int *item
);
830 HRESULT GetFocusedItem
( [out] int *item
);
831 HRESULT GetItemPosition
(
832 [in] PCUITEMID_CHILD pidl
,
835 HRESULT GetSpacing
( [in, out, unique] POINT
* pt
);
836 HRESULT GetDefaultSpacing
( [out] POINT
* pt
);
837 HRESULT GetAutoArrange
();
842 HRESULT SelectAndPositionItems
(
844 [in, size_is(cidl
)] PCUITEMID_CHILD_ARRAY apidl
,
845 [in, unique, size_is(cidl
)] POINT
* apt
,
850 /*****************************************************************************
851 * IShellBrowser interface
855 uuid(000214e2
-0000-0000-c000
-000000000046),
856 pointer_default(unique)
858 interface IShellBrowser
: IOleWindow
860 typedef IShellBrowser
*LPSHELLBROWSER
;
862 cpp_quote
("#define SBSP_DEFBROWSER 0x00000000")
863 cpp_quote
("#define SBSP_SAMEBROWSER 0x00000001")
864 cpp_quote
("#define SBSP_NEWBROWSER 0x00000002")
865 cpp_quote
("#define SBSP_DEFMODE 0x00000000")
866 cpp_quote
("#define SBSP_OPENMODE 0x00000010")
867 cpp_quote
("#define SBSP_EXPLOREMODE 0x00000020")
868 cpp_quote
("#define SBSP_HELPMODE 0x00000040")
869 cpp_quote
("#define SBSP_NOTRANSFERHIST 0x00000080")
870 cpp_quote
("#define SBSP_ABSOLUTE 0x00000000")
871 cpp_quote
("#define SBSP_RELATIVE 0x00001000")
872 cpp_quote
("#define SBSP_PARENT 0x00002000")
873 cpp_quote
("#define SBSP_NAVIGATEBACK 0x00004000")
874 cpp_quote
("#define SBSP_NAVIGATEFORWARD 0x00008000")
875 cpp_quote
("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
876 cpp_quote
("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
877 cpp_quote
("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
878 cpp_quote
("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
879 cpp_quote
("#define SBSP_CREATENOHISTORY 0x00100000")
880 cpp_quote
("#define SBSP_PLAYNOSOUND 0x00200000")
881 cpp_quote
("#define SBSP_CALLERUNTURUSTED 0x00800000")
882 cpp_quote
("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
883 cpp_quote
("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
884 cpp_quote
("#define SBSP_NOAUTOSELECT 0x04000000")
885 cpp_quote
("#define SBSP_WRITENOHISTORY 0x08000000")
886 cpp_quote
("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
887 cpp_quote
("#define SBSP_FEEDNAVIGATION 0x20000000")
888 cpp_quote
("#define SBSP_REDIRECT 0x40000000")
889 cpp_quote
("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
891 cpp_quote
("#define FCW_STATUS 0x0001")
892 cpp_quote
("#define FCW_TOOLBAR 0x0002")
893 cpp_quote
("#define FCW_TREE 0x0003")
894 cpp_quote
("#define FCW_INTERNETBAR 0x0006")
895 cpp_quote
("#define FCW_PROGRESS 0x0008")
897 cpp_quote
("#define FCT_MERGE 0x0001")
898 cpp_quote
("#define FCT_CONFIGABLE 0x0002")
899 cpp_quote
("#define FCT_ADDTOEND 0x0004")
902 typedef LPARAM LPTBBUTTONSB
;
904 cpp_quote
("#include <commctrl.h>")
905 cpp_quote
("typedef LPTBBUTTON LPTBBUTTONSB;")
908 HRESULT InsertMenusSB
(
909 [in] HMENU hmenuShared
,
910 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths
);
913 [in] HMENU hmenuShared
,
914 [in] HOLEMENU holemenuReserved
,
915 [in] HWND hwndActiveObject
);
917 HRESULT RemoveMenusSB
( [in] HMENU hmenuShared
);
918 HRESULT SetStatusTextSB
( [in, unique] LPCOLESTR pszStatusText
);
919 HRESULT EnableModelessSB
( [in] BOOL fEnable
);
920 HRESULT TranslateAcceleratorSB
( [in] MSG
*pmsg
, [in] WORD wID
);
922 HRESULT BrowseObject
(
923 [in] LPCITEMIDLIST pidl
,
926 HRESULT GetViewStateStream
(
928 [out] IStream
**ppStrm
);
930 HRESULT GetControlWindow
(
934 [local] HRESULT SendControlMsg
(
941 HRESULT QueryActiveShellView
( [out] IShellView
**ppshv
);
942 HRESULT OnViewWindowActive
( [in] IShellView
*pshv
);
945 HRESULT SetToolbarItems
(
946 [in] LPTBBUTTONSB lpButtons
,
952 /*****************************************************************************
953 * IShellLinkA interface
957 uuid(000214ee
-0000-0000-c000
-000000000046),
958 pointer_default(unique)
960 interface IShellLinkA
: IUnknown
965 SLR_ANY_MATCH
= 0x0002,
967 SLR_NOUPDATE
= 0x0008,
968 SLR_NOSEARCH
= 0x0010,
969 SLR_NOTRACK
= 0x0020,
970 SLR_NOLINKINFO
= 0x0040,
971 SLR_INVOKE_MSI
= 0x0080,
972 SLR_NO_UI_WITH_MSG_PUMP
= 0x0101,
977 SLGP_SHORTPATH
= 0x0001,
978 SLGP_UNCPRIORITY
= 0x0002,
979 SLGP_RAWPATH
= 0x0004,
983 [out, size_is(cch
)] LPSTR pszFile
,
985 [in, out, unique] WIN32_FIND_DATAA
*pfd
,
988 HRESULT GetIDList
( [out] LPITEMIDLIST
* ppidl
);
990 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
992 HRESULT GetDescription
(
993 [out, size_is(cch
)] LPSTR pszName
,
996 HRESULT SetDescription
( [in] LPCSTR pszName
);
998 HRESULT GetWorkingDirectory
(
999 [out, size_is(cch
)] LPSTR pszDir
,
1002 HRESULT SetWorkingDirectory
( [in] LPCSTR pszDir
);
1004 HRESULT GetArguments
(
1005 [out, size_is(cch
)] LPSTR pszArgs
,
1008 HRESULT SetArguments
( [in] LPCSTR pszArgs
);
1010 HRESULT GetHotkey
( [out] WORD
*pwHotkey
);
1012 HRESULT SetHotkey
( [in] WORD wHotkey
);
1014 HRESULT GetShowCmd
( [out] int *piShowCmd
);
1016 HRESULT SetShowCmd
( [in] int iShowCmd
);
1018 HRESULT GetIconLocation
(
1019 [out, size_is(cch
)] LPSTR pszIconPath
,
1023 HRESULT SetIconLocation
(
1024 [in] LPCSTR pszIconPath
,
1027 HRESULT SetRelativePath
(
1028 [in] LPCSTR pszPathRel
,
1029 [in] DWORD dwReserved
);
1035 HRESULT SetPath
( [in] LPCSTR pszFile
);
1039 /*****************************************************************************
1040 * IShellLinkW interface
1044 uuid(000214f9
-0000-0000-c000
-000000000046),
1045 pointer_default(unique)
1047 interface IShellLinkW
: IUnknown
1050 [out, size_is(cch
)] LPWSTR pszFile
,
1052 [in, out] WIN32_FIND_DATAW
*pfd
,
1055 HRESULT GetIDList
( [out] LPITEMIDLIST
* ppidl
);
1057 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
1059 HRESULT GetDescription
(
1060 [out, size_is(cch
)] LPWSTR pszName
,
1063 HRESULT SetDescription
( [in] LPCWSTR pszName
);
1065 HRESULT GetWorkingDirectory
(
1066 [out, size_is(cch
)] LPWSTR pszDir
,
1069 HRESULT SetWorkingDirectory
( [in] LPCWSTR pszDir
);
1071 HRESULT GetArguments
(
1072 [out, size_is(cch
)] LPWSTR pszArgs
,
1075 HRESULT SetArguments
( [in] LPCWSTR pszArgs
);
1077 HRESULT GetHotkey
( [out] WORD
*pwHotkey
);
1079 HRESULT SetHotkey
( [in] WORD wHotkey
);
1081 HRESULT GetShowCmd
( [out] int *piShowCmd
);
1083 HRESULT SetShowCmd
( [in] int iShowCmd
);
1085 HRESULT GetIconLocation
(
1086 [out, size_is(cch
)] LPWSTR pszIconPath
,
1090 HRESULT SetIconLocation
(
1091 [in] LPCWSTR pszIconPath
,
1094 HRESULT SetRelativePath
(
1095 [in] LPCWSTR pszPathRel
,
1096 [in] DWORD dwReserved
);
1102 HRESULT SetPath
( [in] LPCWSTR pszFile
);
1105 cpp_quote
("#define IShellLink WINELIB_NAME_AW(IShellLink)")
1108 /*****************************************************************************
1109 * IShellExtInit interface
1113 uuid(000214e8
-0000-0000-c000
-000000000046),
1114 pointer_default(unique),
1117 interface IShellExtInit
: IUnknown
1119 typedef IShellExtInit
*LPSHELLEXTINIT
;
1122 [in] LPCITEMIDLIST pidlFolder
,
1123 [in] IDataObject
*pdtobj
,
1124 [in] HKEY hkeyProgID
);
1128 /*******************************************************************************/
1129 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
1130 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
1131 /* them here anyway. */
1132 /*******************************************************************************/
1135 #define MAX_PATH
260
1139 /*****************************************************************************
1140 * IPersistFolder3 interface
1144 uuid(cef04fdf
-fe72
-11d2
-87a5
-00c04f6837cf
),
1145 pointer_default(unique)
1147 interface IPersistFolder3
: IPersistFolder2
1151 LPITEMIDLIST pidlTargetFolder
;
1152 WCHAR szTargetParsingName
[MAX_PATH
];
1153 WCHAR szNetworkProvider
[MAX_PATH
];
1156 } PERSIST_FOLDER_TARGET_INFO
;
1158 HRESULT InitializeEx
(
1160 [in] LPCITEMIDLIST pidlRoot
,
1161 [in] const PERSIST_FOLDER_TARGET_INFO
*ppfti
);
1163 HRESULT GetFolderTargetInfo
( [out] PERSIST_FOLDER_TARGET_INFO
*ppfti
);
1167 /*****************************************************************************
1168 * IExtractIconA interface
1172 uuid(000214eb
-0000-0000-c000
-000000000046),
1173 pointer_default(unique),
1176 interface IExtractIconA
: IUnknown
1178 cpp_quote
("#define GIL_OPENICON 0x0001")
1179 cpp_quote
("#define GIL_FORSHELL 0x0002")
1180 cpp_quote
("#define GIL_ASYNC 0x0020")
1181 cpp_quote
("#define GIL_DEFAULTICON 0x0040")
1182 cpp_quote
("#define GIL_FORSHORTCUT 0x0080")
1184 cpp_quote
("#define GIL_SIMULATEDOC 0x0001")
1185 cpp_quote
("#define GIL_PERINSTANCE 0x0002")
1186 cpp_quote
("#define GIL_PERCLASS 0x0004")
1187 cpp_quote
("#define GIL_NOTFILENAME 0x0008")
1188 cpp_quote
("#define GIL_DONTCACHE 0x0010")
1190 typedef IExtractIconA
*LPEXTRACTICONA
;
1192 HRESULT GetIconLocation
(
1194 [out, size_is(cchMax
)] LPSTR szIconFile
,
1197 [out] UINT
*pwFlags
);
1200 [in] LPCSTR pszFile
,
1201 [in] UINT nIconIndex
,
1202 [out] HICON
*phiconLarge
,
1203 [out] HICON
*phiconSmall
,
1204 [in] UINT nIconSize
);
1208 /*****************************************************************************
1209 * IExtractIconW interface
1213 uuid(000214fa
-0000-0000-c000
-000000000046),
1214 pointer_default(unique),
1217 interface IExtractIconW
: IUnknown
1219 typedef IExtractIconW
*LPEXTRACTICONW
;
1221 HRESULT GetIconLocation
(
1223 [out, size_is(cchMax
)] LPWSTR szIconFile
,
1226 [out] UINT
*pwFlags
);
1229 [in] LPCWSTR pszFile
,
1230 [in] UINT nIconIndex
,
1231 [out] HICON
*phiconLarge
,
1232 [out] HICON
*phiconSmall
,
1233 [in] UINT nIconSize
);
1236 cpp_quote
("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1237 cpp_quote
("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1240 /*****************************************************************************
1241 * ICommDlgBrowser interface
1245 uuid(000214f1
-0000-0000-c000
-000000000046),
1246 pointer_default(unique)
1248 interface ICommDlgBrowser
: IUnknown
1250 cpp_quote
("#define CDBOSC_SETFOCUS 0x00000000")
1251 cpp_quote
("#define CDBOSC_KILLFOCUS 0x00000001")
1252 cpp_quote
("#define CDBOSC_SELCHANGE 0x00000002")
1253 cpp_quote
("#define CDBOSC_RENAME 0x00000003")
1254 cpp_quote
("#define CDBOSC_STATECHANGE 0x00000004")
1256 typedef ICommDlgBrowser
*LPCOMMDLGBROWSER
;
1258 HRESULT OnDefaultCommand
( [in] IShellView
*shv
);
1259 HRESULT OnStateChange
( [in] IShellView
*shv
, [in] ULONG uChange
);
1260 HRESULT IncludeObject
( [in] IShellView
*shv
, [in] LPCITEMIDLIST pidl
);
1264 /*****************************************************************************
1265 * ICommDlgBrowser2 interface
1269 uuid(10339516-2894-11D2
-9039-00C04F8EEB3E
),
1270 pointer_default(unique)
1272 interface ICommDlgBrowser2
: ICommDlgBrowser
1276 [in] IShellView
*ppshv
,
1277 [in] DWORD dwNotifyType
);
1279 HRESULT GetDefaultMenuText
(
1280 [in] IShellView
*ppshv
,
1281 [out, string, size_is(cchMax
)] LPWSTR pszText
,
1284 HRESULT GetViewFlags
(
1285 [out] DWORD
*pdwFlags
);
1289 /*****************************************************************************
1290 * ICommDlgBrowser3 interface
1294 uuid(C8AD25A1
-3294-41EE
-8165-71174BD01C57
),
1295 pointer_default(unique)
1297 interface ICommDlgBrowser3
: ICommDlgBrowser2
1300 HRESULT OnColumnClicked
(
1301 [in] IShellView
*ppshv
,
1304 HRESULT GetCurrentFilter
(
1305 [out, string, size_is(cchFileSpec
)] LPWSTR pszFileSpec
,
1306 [in] int cchFileSpec
);
1308 HRESULT OnPreviewCreated
(
1309 [in] IShellView
*ppshv
);
1312 /*****************************************************************************
1313 * IDockingWindow interface
1317 uuid(012dd920
-7b26
-11d0
-8ca9
-00a0c92dbfe8
)
1319 interface IDockingWindow
: IOleWindow
1325 [in] DWORD dwReserved
);
1327 HRESULT ResizeBorderDW
(
1328 [in] LPCRECT prcBorder
,
1329 [in] IUnknown
*punkToolbarSite
,
1330 [in] BOOL fReserved
);
1334 /*****************************************************************************
1335 * IDockingWindowFrame interface
1339 uuid(47d2657a
-7b27
-11d0
-8ca9
-00a0c92dbfe8
),
1340 pointer_default(unique),
1343 interface IDockingWindowFrame
: IOleWindow
1345 cpp_quote
("#define DWFRF_NORMAL 0x0000")
1346 cpp_quote
("#define DWFRF_DELETECONFIGDATA 0x0001")
1347 cpp_quote
("#define DWFAF_HIDDEN 0x0001")
1350 [in] IUnknown
*punkSrc
,
1351 [in] LPCWSTR pwszItem
,
1352 [in] DWORD dwAddFlags
);
1354 HRESULT RemoveToolbar
(
1355 [in] IUnknown
*punkSrc
,
1356 [in] DWORD dwRemoveFlags
);
1358 HRESULT FindToolbar
(
1359 [in] LPCWSTR pwszItem
,
1361 [out] LPVOID
*ppvObj
);
1365 /*****************************************************************************
1366 * IDragSourceHelper interface
1370 uuid(de5bf786
-477a
-11d2
-839d
-00c04fd918d0
),
1371 pointer_default(unique),
1374 interface IDragSourceHelper
: IUnknown
1380 HBITMAP hbmpDragImage
;
1381 COLORREF crColorKey
;
1382 } SHDRAGIMAGE
, *LPSHDRAGIMAGE
;
1384 HRESULT InitializeFromBitmap
(
1385 [in] LPSHDRAGIMAGE pshdi
,
1386 [in] IDataObject
*pDataObject
);
1388 HRESULT InitializeFromWindow
(
1391 [in] IDataObject
*pDataObject
);
1395 /*****************************************************************************
1396 * IDropTargetHelper interface
1400 uuid(4657278b
-411b
-11d2
-839a
-00c04fd918d0
),
1401 pointer_default(unique),
1404 interface IDropTargetHelper
: IUnknown
1407 [in] HWND hwndTarget
,
1408 [in] IDataObject
*pDataObject
,
1410 [in] DWORD dwEffect
);
1412 HRESULT DragLeave
();
1416 [in] DWORD dwEffect
);
1419 [in] IDataObject
*pDataObject
,
1421 [in] DWORD dwEffect
);
1423 HRESULT Show
( [in] BOOL fShow
);
1427 /*****************************************************************************
1428 * IContextMenu interface
1432 uuid(000214e4
-0000-0000-c000
-000000000046),
1433 pointer_default(unique),
1436 interface IContextMenu
: IUnknown
1438 cpp_quote
("#define CMF_NORMAL 0x00000000")
1439 cpp_quote
("#define CMF_DEFAULTONLY 0x00000001")
1440 cpp_quote
("#define CMF_VERBSONLY 0x00000002")
1441 cpp_quote
("#define CMF_EXPLORE 0x00000004")
1442 cpp_quote
("#define CMF_NOVERBS 0x00000008")
1443 cpp_quote
("#define CMF_CANRENAME 0x00000010")
1444 cpp_quote
("#define CMF_NODEFAULT 0x00000020")
1445 cpp_quote
("#define CMF_INCLUDESTATIC 0x00000040")
1446 cpp_quote
("#define CMF_EXTENDEDVERBS 0x00000100")
1447 cpp_quote
("#define CMF_RESERVED 0xffff0000")
1449 cpp_quote
("#define GCS_VERBA 0x00000000")
1450 cpp_quote
("#define GCS_HELPTEXTA 0x00000001")
1451 cpp_quote
("#define GCS_VALIDATEA 0x00000002")
1452 cpp_quote
("#define GCS_VERBW 0x00000004")
1453 cpp_quote
("#define GCS_HELPTEXTW 0x00000005")
1454 cpp_quote
("#define GCS_VALIDATEW 0x00000006")
1455 cpp_quote
("#define GCS_UNICODE 0x00000004")
1456 cpp_quote
("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1457 cpp_quote
("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1458 cpp_quote
("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1460 cpp_quote
("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1461 cpp_quote
("#define CMDSTR_VIEWLISTA \"ViewList\"")
1462 cpp_quote
("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1463 cpp_quote
("#if defined(__GNUC__)")
1464 cpp_quote
("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1465 cpp_quote
("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1466 cpp_quote
("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1467 cpp_quote
("#elif defined(_MSC_VER)")
1468 cpp_quote
("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1469 cpp_quote
("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1470 cpp_quote
("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1472 cpp_quote
("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1473 cpp_quote
("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1474 cpp_quote
("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1476 cpp_quote
("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1477 cpp_quote
("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1478 cpp_quote
("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1480 cpp_quote
("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1481 cpp_quote
("#define CMIC_MASK_ICON SEE_MASK_ICON")
1482 cpp_quote
("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1483 cpp_quote
("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1484 cpp_quote
("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1485 cpp_quote
("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1486 cpp_quote
("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1487 cpp_quote
("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1488 cpp_quote
("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1489 cpp_quote
("#define CMIC_MASK_NOASYNC SEE_MASK_NOASYNC")
1490 cpp_quote
("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1491 cpp_quote
("#define CMIC_MASK_PTINVOKE 0x20000000")
1492 cpp_quote
("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1493 cpp_quote
("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1494 cpp_quote
("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1496 typedef IContextMenu
*LPCONTEXTMENU
;
1498 typedef struct tagCMINVOKECOMMANDINFO
1504 LPCSTR lpParameters
;
1509 } CMINVOKECOMMANDINFO
, *LPCMINVOKECOMMANDINFO
;
1511 typedef struct tagCMInvokeCommandInfoEx
1517 LPCSTR lpParameters
;
1524 LPCWSTR lpParametersW
;
1525 LPCWSTR lpDirectoryW
;
1528 } CMINVOKECOMMANDINFOEX
, *LPCMINVOKECOMMANDINFOEX
;
1530 HRESULT QueryContextMenu
(
1532 [in] UINT indexMenu
,
1533 [in] UINT idCmdFirst
,
1534 [in] UINT idCmdLast
,
1537 HRESULT InvokeCommand
( [in] LPCMINVOKECOMMANDINFO lpici
);
1539 HRESULT GetCommandString
(
1540 [in] UINT_PTR idCmd
,
1542 [out] UINT
*pwReserved
,
1543 [out, size_is(cchMax
)] LPSTR pszName
,
1548 /*****************************************************************************
1549 * IContextMenu2 interface
1553 uuid(000214f4
-0000-0000-c000
-000000000046),
1554 pointer_default(unique),
1557 interface IContextMenu2
: IContextMenu
1559 typedef IContextMenu2
*LPCONTEXTMENU2
;
1561 HRESULT HandleMenuMsg
(
1564 [in] LPARAM lParam
);
1568 /*****************************************************************************
1569 * IContextMenu3 interface
1573 uuid(bcfce0a0
-ec17
-11d0
-8d10
-00a0c90f2719
),
1574 pointer_default(unique),
1577 interface IContextMenu3
: IContextMenu2
1579 typedef IContextMenu3
*LPCONTEXTMENU3
;
1581 HRESULT HandleMenuMsg2
(
1585 [out] LRESULT
*plResult
);
1589 /*****************************************************************************
1590 * IShellExecuteHookA interface
1594 uuid(000214f5
-0000-0000-c000
-000000000046),
1595 pointer_default(unique),
1598 interface IShellExecuteHookA
: IUnknown
1600 cpp_quote
("struct _SHELLEXECUTEINFOA;")
1602 [in, out] struct _SHELLEXECUTEINFOA
* pei
);
1606 /*****************************************************************************
1607 * IShellExecuteHookW interface
1611 uuid(000214fb
-0000-0000-c000
-000000000046),
1612 pointer_default(unique),
1615 interface IShellExecuteHookW
: IUnknown
1617 cpp_quote
("struct _SHELLEXECUTEINFOW;")
1619 [in, out] struct _SHELLEXECUTEINFOW
* pei
);
1622 /*****************************************************************************
1623 * IShellLinkDataList interface
1627 uuid(45e2b4ae
-b1c3
-11d0
-b92f
-00a0c90312e1
),
1628 pointer_default(unique)
1630 interface IShellLinkDataList
: IUnknown
1632 [local] HRESULT AddDataBlock
(
1633 [in] void *pDataBlock
);
1634 [local] HRESULT CopyDataBlock
(
1636 [out] void **ppDataBlock
);
1637 HRESULT RemoveDataBlock
(
1640 [out] DWORD
*pdwFlags
);
1642 [in] DWORD dwFlags
);
1646 /*****************************************************************************
1647 * IResolveShellLink interface
1651 uuid(5cd52983
-9449-11d2
-963a
-00c04f79adf0
),
1652 pointer_default(unique)
1654 interface IResolveShellLink
: IUnknown
1656 HRESULT ResolveShellLink
(
1657 [in] IUnknown
*punk
,
1663 /*****************************************************************************
1664 * IURLSearchHook interface
1668 uuid(ac60f6a0
-0fd9
-11d0
-99cb
-00c04fd64497
),
1669 pointer_default(unique),
1672 interface IURLSearchHook
: IUnknown
1675 [in, out] LPWSTR lpwszSearchURL
,
1676 [in] DWORD cchBufferSize
);
1680 /*****************************************************************************
1681 * ISearchContext interface
1685 uuid(09f656a2
-41af
-480c
-88f7
-16cc0d164615
),
1686 pointer_default(unique),
1689 interface ISearchContext
: IUnknown
1691 HRESULT GetSearchUrl
(
1692 [in] BSTR *pbstrSearchUrl
);
1693 HRESULT GetSearchText
(
1694 [in] BSTR *pbstrSearchText
);
1695 HRESULT GetSearchStyle
(
1696 [in] BSTR *pdwSearchStyle
);
1700 /*****************************************************************************
1701 * IURLSearchHook2 interface
1705 uuid(5ee44da4
-6d32
-46e3
-86bc
-07540dedd0e0
),
1706 pointer_default(unique),
1709 interface IURLSearchHook2
: IURLSearchHook
1711 HRESULT TranslateWithSearchContext
(
1712 [in, out] LPWSTR lpwszSearchURL
,
1713 [in] DWORD cchBufferSize
,
1714 [in] ISearchContext
*pSearchContext
);
1718 cpp_quote
("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1720 /*****************************************************************************
1721 * INewShortcutHookA interface
1725 uuid(000214e1
-0000-0000-c000
-000000000046),
1726 pointer_default(unique),
1729 interface INewShortcutHookA
: IUnknown
1731 HRESULT SetReferent
(
1732 [in] LPCSTR pcszReferent
,
1734 HRESULT GetReferent
(
1735 [out] LPSTR pcszReferent
,
1736 [in] int cchReferent
);
1738 [in] LPCSTR pcszReferent
);
1740 [out] LPSTR pcszReferent
,
1741 [in] int cchFolder
);
1743 [out] LPSTR pszName
,
1745 HRESULT GetExtension
(
1746 [out] LPSTR pszExtension
,
1747 [in] int cchExtension
);
1751 /*****************************************************************************
1752 * INewShortcutHookW interface
1756 uuid(000214f7
-0000-0000-c000
-000000000046),
1757 pointer_default(unique),
1760 interface INewShortcutHookW
: IUnknown
1762 HRESULT SetReferent
(
1763 [in] LPCWSTR pcszReferent
,
1765 HRESULT GetReferent
(
1766 [out] LPWSTR pcszReferent
,
1767 [in] int cchReferent
);
1769 [in] LPCWSTR pcszReferent
);
1771 [out] LPWSTR pcszReferent
,
1772 [in] int cchFolder
);
1774 [out] LPWSTR pszName
,
1776 HRESULT GetExtension
(
1777 [out] LPWSTR pszExtension
,
1778 [in] int cchExtension
);
1781 /*****************************************************************************
1782 * IRunnableTask interface
1786 uuid(85788d00
-6807-11d0
-b810
-00c04fd706ec
),
1787 pointer_default(unique),
1790 interface IRunnableTask
: IUnknown
1793 HRESULT Kill
([in] BOOL fWait
);
1799 /*****************************************************************************
1800 * IShellChangeNotify interface
1804 uuid(d82be2b1
-5764-11d0
-a96e
-00c04fd705a2
),
1805 pointer_default(unique),
1808 interface IShellChangeNotify
: IUnknown
1812 [in] LPCITEMIDLIST pidl1
,
1813 [in] LPCITEMIDLIST pidl2
);
1816 /*****************************************************************************
1817 * IFileSystemBindData interface
1821 uuid(01e18d10
-4d8b
-11d2
-855d
-006008059367),
1822 pointer_default(unique),
1825 interface IFileSystemBindData
: IUnknown
1827 HRESULT SetFindData
(
1828 [in] const WIN32_FIND_DATAW
*pfd
);
1829 HRESULT GetFindData
(
1830 [out] WIN32_FIND_DATAW
*pfd
);
1833 /*****************************************************************************
1834 * ITaskbarList interface
1838 uuid(56FDF342
-FD6D
-11d0
-958A
-006097C9A090
),
1839 pointer_default(unique)
1841 interface ITaskbarList
: IUnknown
1851 HRESULT ActivateTab
(
1854 HRESULT SetActiveAlt
(
1858 /*****************************************************************************
1859 * ITaskbarList2 interface
1863 uuid(602D4995
-B13A
-429B
-A66E
-1935E44F4317
),
1864 pointer_default(unique)
1866 interface ITaskbarList2
: ITaskbarList
1868 HRESULT MarkFullscreenWindow
(
1870 [in] BOOL fullscreen
);
1873 cpp_quote
("#ifdef MIDL_PASS")
1874 typedef IUnknown
* HIMAGELIST
;
1877 typedef [v1_enum] enum THUMBBUTTONFLAGS
{
1878 THBF_ENABLED
= 0x0000,
1879 THBF_DISABLED
= 0x0001,
1880 THBF_DISMISSONCLICK
= 0x0002,
1881 THBF_NOBACKGROUND
= 0x0004,
1882 THBF_HIDDEN
= 0x0008,
1883 THBF_NONINTERACTIVE
= 0x0010
1886 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONFLAGS)")
1888 typedef [v1_enum] enum THUMBBUTTONMASK
{
1889 THB_BITMAP
= 0x0001,
1891 THB_TOOLTIP
= 0x0004,
1895 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONMASK)")
1897 cpp_quote
("#include <pshpack8.h>")
1898 typedef struct THUMBBUTTON
{
1899 THUMBBUTTONMASK dwMask
;
1904 THUMBBUTTONFLAGS dwFlags
;
1905 } THUMBBUTTON
, *LPTHUMBBUTTON
;
1906 cpp_quote
("#include <poppack.h>")
1909 uuid(ea1afb91
-9e28
-4b86
-90e9
-9e9f8a5eefaf
),
1912 interface ITaskbarList3
: ITaskbarList2
1914 typedef [v1_enum] enum TBPFLAG
{
1915 TBPF_NOPROGRESS
= 0x0000,
1916 TBPF_INDETERMINATE
= 0x0001,
1917 TBPF_NORMAL
= 0x0002,
1918 TBPF_ERROR
= 0x0004,
1919 TBPF_PAUSED
= 0x0008
1922 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(TBPFLAG)")
1924 HRESULT SetProgressValue
(
1926 [in] ULONGLONG ullCompleted
,
1927 [in] ULONGLONG ullTotal
);
1929 HRESULT SetProgressState
(
1931 [in] TBPFLAG tbpFlags
);
1933 HRESULT RegisterTab
(
1937 HRESULT UnregisterTab
([in] HWND hwndTab
);
1939 HRESULT SetTabOrder
(
1941 [in] HWND hwndInsertBefore
);
1943 HRESULT SetTabActive
(
1946 [in] DWORD dwReserved
);
1948 HRESULT ThumbBarAddButtons
(
1951 [in, size_is(cButtons
)] LPTHUMBBUTTON pButton
);
1953 HRESULT ThumbBarUpdateButtons
(
1956 [in, size_is(cButtons
)] LPTHUMBBUTTON pButton
);
1958 HRESULT ThumbBarSetImageList
(
1960 [in] HIMAGELIST himl
);
1962 HRESULT SetOverlayIcon
(
1965 [in, unique, string] LPCWSTR pszDescription
);
1967 HRESULT SetThumbnailTooltip
(
1969 [in, unique, string] LPCWSTR pszTip
);
1971 HRESULT SetThumbnailClip
(
1973 [in] RECT
*prcClip
);
1977 uuid(c43dc798
-95d1
-4bea
-9030-bb99e2983a1a
),
1980 interface ITaskbarList4
: ITaskbarList3
1982 typedef [v1_enum] enum STPFLAG
{
1984 STPF_USEAPPTHUMBNAILALWAYS
= 0x0001,
1985 STPF_USEAPPTHUMBNAILWHENACTIVE
= 0x0002,
1986 STPF_USEAPPPEEKALWAYS
= 0x0004,
1987 STPF_USEAPPPEEKWHENACTIVE
= 0x0008
1990 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(STPFLAG)")
1992 HRESULT SetTabProperties
(
1994 [in] STPFLAG stpFlags
);
1997 /*****************************************************************************
1998 * IAutoCompleteDropDown interface
2002 uuid(3CD141F4
-3C6A
-11d2
-BCAA
-00C04FD929DB
),
2003 pointer_default(unique)
2005 interface IAutoCompleteDropDown
: IUnknown
2007 cpp_quote
("#define ACDD_VISIBLE 0x0001")
2009 HRESULT GetDropDownStatus
(
2010 [out] DWORD
*pdwFlags
,
2011 [out, string] LPWSTR
*ppwszString
);
2013 HRESULT ResetEnumerator
();
2018 uuid(cb728b20
-f786
-11ce
-92ad
-00aa00a74cd0
),
2019 pointer_default(unique)
2021 interface IProfferService
: IUnknown
2023 HRESULT ProfferService
(
2024 [in] REFGUID service
,
2025 [in] IServiceProvider
*pService
,
2026 [out] DWORD
*pCookie
);
2028 HRESULT RevokeService
([in] DWORD cookie
);
2031 /*****************************************************************************
2032 * IExplorerBrowserEvents interface
2036 uuid(361BBDC7
-E6EE
-4E13
-BE58
-58E2240C810F
)
2038 interface IExplorerBrowserEvents
: IUnknown
2040 HRESULT OnNavigationPending
(
2041 [in] PCIDLIST_ABSOLUTE pidlFolder
);
2043 HRESULT OnViewCreated
(
2044 [in] IShellView
*psv
);
2046 HRESULT OnNavigationComplete
(
2047 [in] PCIDLIST_ABSOLUTE pidlFolder
);
2049 HRESULT OnNavigationFailed
(
2050 [in] PCIDLIST_ABSOLUTE pidlFolder
);
2053 typedef GUID EXPLORERPANE
;
2054 typedef EXPLORERPANE
*REFEXPLORERPANE
;
2056 cpp_quote
("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
2058 /*****************************************************************************
2059 * IExplorerPaneVisibility interface
2063 uuid(E07010EC
-BC17
-44C0
-97B0
-46C7C95B9EDC
)
2065 interface IExplorerPaneVisibility
: IUnknown
2067 typedef enum tagEXPLORERPANESTATE
{
2069 EPS_DEFAULT_ON
= 0x1,
2070 EPS_DEFAULT_OFF
= 0x2,
2071 EPS_STATE_MASK
= 0xffff,
2072 EPS_INITIALSTATE
= 0x10000,
2074 } EXPLORERPANESTATE
;
2076 HRESULT GetPaneState
(
2077 [in] REFEXPLORERPANE ep
,
2078 [out] EXPLORERPANESTATE
*peps
);
2081 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS
{
2083 EBF_SELECTFROMDATAOBJECT
= 0x100,
2084 EBF_NODROPTARGET
= 0x200
2085 } EXPLORER_BROWSER_FILL_FLAGS
;
2087 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS
{
2089 EBO_NAVIGATEONCE
= 0x01,
2090 EBO_SHOWFRAMES
= 0x02,
2091 EBO_ALWAYSNAVIGATE
= 0x04,
2092 EBO_NOTRAVELLOG
= 0x08,
2093 EBO_NOWRAPPERWINDOW
= 0x10,
2094 EBO_HTMLSHAREPOINTVIEW
= 0x20
2095 } EXPLORER_BROWSER_OPTIONS
;
2097 cpp_quote
("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
2099 /*****************************************************************************
2100 * IExplorerBrowser interface
2104 uuid(DFD3B6B5
-C10C
-4BE9
-85F6
-A66969F402F6
),
2105 pointer_default(unique)
2107 interface IExplorerBrowser
: IUnknown
2110 [local] HRESULT Initialize
(
2111 [in] HWND hwndParent
,
2112 [in] const RECT
*prc
,
2113 [in, unique] const FOLDERSETTINGS
*pfs
);
2117 [local] HRESULT SetRect
(
2118 [in,out,unique] HDWP
*phdwp
,
2119 [in] RECT rcBrowser
);
2121 HRESULT SetPropertyBag
(
2122 [in, string] LPCWSTR pszPropertyBag
);
2124 HRESULT SetEmptyText
(
2125 [in, string] LPCWSTR pszEmptyText
);
2127 HRESULT SetFolderSettings
(
2128 [in] const FOLDERSETTINGS
*pfs
);
2131 [in] IExplorerBrowserEvents
*psbe
,
2132 [out] DWORD
*pdwCookie
);
2135 [in] DWORD dwCookie
);
2138 [in] EXPLORER_BROWSER_OPTIONS dwFlag
);
2141 [out] EXPLORER_BROWSER_OPTIONS
*pdwFlag
);
2143 HRESULT BrowseToIDList
(
2144 [in] PCUIDLIST_RELATIVE pidl
,
2147 HRESULT BrowseToObject
(
2148 [in] IUnknown
*punk
,
2151 HRESULT FillFromObject
(
2152 [in] IUnknown
*punk
,
2153 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags
);
2155 HRESULT RemoveAll
();
2157 HRESULT GetCurrentView
(
2159 [out, iid_is(riid
)] void **ppv
);
2162 /*****************************************************************************
2163 * INameSpaceTreeControl interface
2167 uuid(028212A3
-B627
-47E9
-8856-C14265554E4F
)
2169 interface INameSpaceTreeControl
: IUnknown
2171 [v1_enum] enum _NSTCSTYLE
{
2172 NSTCS_HASEXPANDOS
= 0x00000001,
2173 NSTCS_HASLINES
= 0x00000002,
2174 NSTCS_SINGLECLICKEXPAND
= 0x00000004,
2175 NSTCS_FULLROWSELECT
= 0x00000008,
2176 NSTCS_SPRINGEXPAND
= 0x00000010,
2177 NSTCS_HORIZONTALSCROLL
= 0x00000020,
2178 NSTCS_ROOTHASEXPANDO
= 0x00000040,
2179 NSTCS_SHOWSELECTIONALWAYS
= 0x00000080,
2180 NSTCS_NOINFOTIP
= 0x00000200,
2181 NSTCS_EVENHEIGHT
= 0x00000400,
2182 NSTCS_NOREPLACEOPEN
= 0x00000800,
2183 NSTCS_DISABLEDRAGDROP
= 0x00001000,
2184 NSTCS_NOORDERSTREAM
= 0x00002000,
2185 NSTCS_RICHTOOLTIP
= 0x00004000,
2186 NSTCS_BORDER
= 0x00008000,
2187 NSTCS_NOEDITLABELS
= 0x00010000,
2188 NSTCS_TABSTOP
= 0x00020000,
2189 NSTCS_FAVORITESMODE
= 0x00080000,
2190 NSTCS_AUTOHSCROLL
= 0x00100000,
2191 NSTCS_FADEINOUTEXPANDOS
= 0x00200000,
2192 NSTCS_EMPTYTEXT
= 0x00400000,
2193 NSTCS_CHECKBOXES
= 0x00800000,
2194 NSTCS_PARTIALCHECKBOXES
= 0x01000000,
2195 NSTCS_EXCLUSIONCHECKBOXES
= 0x02000000,
2196 NSTCS_DIMMEDCHECKBOXES
= 0x04000000,
2197 NSTCS_NOINDENTCHECKS
= 0x08000000,
2198 NSTCS_ALLOWJUNCTIONS
= 0x10000000,
2199 NSTCS_SHOWTABSBUTTON
= 0x20000000,
2200 NSTCS_SHOWDELETEBUTTON
= 0x40000000,
2201 NSTCS_SHOWREFRESHBUTTON
= (int)0x80000000
2203 typedef DWORD NSTCSTYLE
;
2205 [v1_enum] enum _NSTCROOTSTYLE
{
2206 NSTCRS_VISIBLE
= 0x0000,
2207 NSTCRS_HIDDEN
= 0x0001,
2208 NSTCRS_EXPANDED
= 0x0002
2210 typedef DWORD NSTCROOTSTYLE
;
2212 [v1_enum] enum _NSTCITEMSTATE
{
2213 NSTCIS_NONE
= 0x0000,
2214 NSTCIS_SELECTED
= 0x0001,
2215 NSTCIS_EXPANDED
= 0x0002,
2216 NSTCIS_BOLD
= 0x0004,
2217 NSTCIS_DISABLED
= 0x0008,
2218 NSTCIS_SELECTEDNOEXPAND
= 0x0010
2220 typedef DWORD NSTCITEMSTATE
;
2222 typedef [v1_enum] enum NSTCGNI
{
2224 NSTCGNI_NEXTVISIBLE
= 1,
2226 NSTCGNI_PREVVISIBLE
= 3,
2229 NSTCGNI_FIRSTVISIBLE
= 6,
2230 NSTCGNI_LASTVISIBLE
= 7
2234 [in] HWND hwndParent
,
2235 [in, unique] RECT
*prc
,
2236 [in] NSTCSTYLE nstcsFlags
);
2239 [in] IUnknown
*punk
,
2240 [out] DWORD
*pdwCookie
);
2242 HRESULT TreeUnadvise
(
2243 [in] DWORD dwCookie
);
2246 [in] IShellItem
*psiRoot
,
2247 [in] SHCONTF grfEnumFlags
,
2248 [in] NSTCROOTSTYLE grfRootStyle
,
2249 [in, unique] IShellItemFilter
*pif
);
2253 [in] IShellItem
*psiRoot
,
2254 [in] SHCONTF grfEnumFlags
,
2255 [in] NSTCROOTSTYLE grfRootStyle
,
2256 [in, unique] IShellItemFilter
*pif
);
2259 [in] IShellItem
*psiRoot
);
2261 HRESULT RemoveAllRoots
();
2263 HRESULT GetRootItems
(
2264 [out] IShellItemArray
**ppsiaRootItems
);
2266 HRESULT SetItemState
(
2267 [in] IShellItem
*psi
,
2268 [in] NSTCITEMSTATE nstcisMask
,
2269 [in] NSTCITEMSTATE nstcisFlags
);
2271 HRESULT GetItemState
(
2272 [in] IShellItem
*psi
,
2273 [in] NSTCITEMSTATE nstcismask
,
2274 [out] NSTCITEMSTATE
*pnstcisFlags
);
2276 HRESULT GetSelectedItems
(
2277 [out] IShellItemArray
**psiaItems
);
2279 HRESULT GetItemCustomState
(
2280 [in] IShellItem
*psi
,
2281 [out] int *piStateNumber
);
2283 HRESULT SetItemCustomState
(
2284 [in] IShellItem
*psi
,
2285 [in] int iStateNumber
);
2287 HRESULT EnsureItemVisible
(
2288 [in] IShellItem
*psi
);
2291 [in, string] LPCWSTR pszTheme
);
2293 HRESULT GetNextItem
(
2294 [in, unique] IShellItem
*psi
,
2295 [in] NSTCGNI nstcgi
,
2296 [out] IShellItem
**ppsiNext
);
2300 [out] IShellItem
**ppsiOut
);
2302 HRESULT GetItemRect
(
2303 [in] IShellItem
*psi
,
2306 HRESULT CollapseAll
();
2309 /*****************************************************************************
2310 * INameSpaceTreeControl2 interface
2314 uuid(7CC7AED8
-290E-49BC
-8945-C1401CC9306C
)
2316 interface INameSpaceTreeControl2
: INameSpaceTreeControl
2318 typedef [v1_enum] enum NSTCSTYLE2
{
2319 NSTCS2_DEFAULT
= 0x00,
2320 NSTCS2_INTERRUPTNOTIFICATIONS
= 0x01,
2321 NSTCS2_SHOWNULLSPACEMENU
= 0x02,
2322 NSTCS2_DISPLAYPADDING
= 0x04,
2323 NSTCS2_DISPLAYPINNEDONLY
= 0x08,
2324 NTSCS2_NOSINGLETONAUTOEXPAND
= 0x10, /* The apparent typo here is */
2325 NTSCS2_NEVERINSERTNONENUMERATED
= 0x20 /* present also in the Win SDK */
2327 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(NSTCSTYLE2)")
2329 HRESULT SetControlStyle
(
2330 [in] NSTCSTYLE nstcsMask
,
2331 [in] NSTCSTYLE nstcsStyle
);
2333 HRESULT GetControlStyle
(
2334 [in] NSTCSTYLE nstcsMask
,
2335 [out] NSTCSTYLE
*pnstcsStyle
);
2337 HRESULT SetControlStyle2
(
2338 [in] NSTCSTYLE2 nstcsMask
,
2339 [in] NSTCSTYLE2 nstcsStyle
);
2341 HRESULT GetControlStyle2
(
2342 [in] NSTCSTYLE2 nstcsMask
,
2343 [out] NSTCSTYLE2
*pnstcsStyle
);
2346 /*****************************************************************************
2347 * INameSpaceTreeControlEvents interface
2352 uuid(93D77985
-B3D8
-4484-8318-672CDDA002CE
),
2355 interface INameSpaceTreeControlEvents
: IUnknown
2357 [v1_enum] enum _NSTCEHITTEST
{
2358 NSTCEHT_NOWHERE
= 0x0001,
2359 NSTCEHT_ONITEMICON
= 0x0002,
2360 NSTCEHT_ONITEMLABEL
= 0x0004,
2361 NSTCEHT_ONITEMIDENT
= 0x0008,
2362 NSTCEHT_ONITEMBUTTON
= 0x0010,
2363 NSTCEHT_ONITEMRIGHT
= 0x0020,
2364 NSTCEHT_ONITEMSTATEICON
= 0x0040,
2365 NSTCEHT_ONITEM
= 0x0046,
2366 NSTCEHT_ONITEMTABBUTTON
= 0x1000
2368 typedef DWORD NSTCEHITTEST
;
2370 [v1_enum] enum _NSTCECLICKTYPE
{
2371 NSTCECT_LBUTTON
= 0x1,
2372 NSTCECT_MBUTTON
= 0x2,
2373 NSTCECT_RBUTTON
= 0x3,
2374 NSTCECT_BUTTON
= 0x3,
2375 NSTCECT_DBLCLICK
= 0x4
2377 typedef DWORD NSTCECLICKTYPE
;
2379 HRESULT OnItemClick
(
2380 [in] IShellItem
*psi
,
2381 [in] NSTCEHITTEST nstceHitTest
,
2382 [in] NSTCECLICKTYPE nstceClickType
);
2384 HRESULT OnPropertyItemCommit
(
2385 [in] IShellItem
*psi
);
2387 HRESULT OnItemStateChanging
(
2388 [in] IShellItem
*psi
,
2389 [in] NSTCITEMSTATE nstcisMask
,
2390 [in] NSTCITEMSTATE nstcisState
);
2392 HRESULT OnItemStateChanged
(
2393 [in] IShellItem
*psi
,
2394 [in] NSTCITEMSTATE nstcisMask
,
2395 [in] NSTCITEMSTATE nstcisState
);
2397 HRESULT OnSelectionChanged
(
2398 [in] IShellItemArray
*psiaSelection
);
2400 HRESULT OnKeyboardInput
(
2403 [in] LPARAM lParam
);
2405 HRESULT OnBeforeExpand
(
2406 [in] IShellItem
*psi
);
2408 HRESULT OnAfterExpand
(
2409 [in] IShellItem
*psi
);
2411 HRESULT OnBeginLabelEdit
(
2412 [in] IShellItem
*psi
);
2414 HRESULT OnEndLabelEdit
(
2415 [in] IShellItem
*psi
);
2417 HRESULT OnGetToolTip
(
2418 [in] IShellItem
*psi
,
2419 [out, string, size_is(cchTip
)] LPWSTR pszTip
,
2422 HRESULT OnBeforeItemDelete
(
2423 [in] IShellItem
*psi
);
2425 HRESULT OnItemAdded
(
2426 [in] IShellItem
*psi
,
2429 HRESULT OnItemDeleted
(
2430 [in] IShellItem
*psi
,
2433 HRESULT OnBeforeContextMenu
(
2434 [in, unique] IShellItem
*psi
,
2436 [out, iid_is(riid
)] void **ppv
);
2438 HRESULT OnAfterContextMenu
(
2439 [in] IShellItem
*psi
,
2440 [in] IContextMenu
*pcmIn
,
2442 [out, iid_is(riid
)] void **ppv
);
2444 HRESULT OnBeforeStateImageChange
(
2445 [in] IShellItem
*psi
);
2447 HRESULT OnGetDefaultIconIndex
(
2448 [in] IShellItem
*psi
,
2449 [out] int *piDefaultIcon
,
2450 [out] int *piOpenIcon
);
2453 /*****************************************************************************
2454 * INameSpaceTreeControlCustomDraw interface
2458 uuid(2D3BA758
-33EE
-42D5
-BB7B
-5F3431D86C78
),
2462 interface INameSpaceTreeControlCustomDraw
: IUnknown
2464 typedef struct NSTCCUSTOMDRAW
2468 NSTCITEMSTATE nstcis
;
2479 [out] LRESULT
*plres
);
2485 HRESULT ItemPrePaint
(
2488 [in, out] COLORREF
*pclrText
,
2489 [in, out] COLORREF
*pclrTextBk
,
2490 [out] LRESULT
*plres
);
2492 HRESULT ItemPostPaint
(
2495 [in] NSTCCUSTOMDRAW
*pnstccdItem
);
2498 /*****************************************************************************
2499 * INameSpaceTreeControlDropHandler interface
2503 uuid(F9C665D6
-C2F2
-4C19
-BF33
-8322D7352F51
),
2506 interface INameSpaceTreeControlDropHandler
: IUnknown
2508 HRESULT OnDragEnter
(
2509 [in, unique] IShellItem
*psiOver
,
2510 [in] IShellItemArray
*psiaData
,
2511 [in] BOOL fOutsideSource
,
2512 [in] DWORD grfKeyState
,
2513 [in, out] DWORD
*pdwEffect
);
2516 [in, unique] IShellItem
*psiOver
,
2517 [in] IShellItemArray
*psiaData
,
2518 [in] DWORD grfKeyState
,
2519 [in, out] DWORD
*pdwEffect
);
2521 HRESULT OnDragPosition
(
2522 [in, unique] IShellItem
*psiOver
,
2523 [in] IShellItemArray
*psiaData
,
2524 [in] int iNewPosition
,
2525 [in] int iOldPosition
);
2528 [in, unique] IShellItem
*psiOver
,
2529 [in] IShellItemArray
*psiaData
,
2531 [in] DWORD grfKeyState
,
2532 [in, out] DWORD
*pdwEffect
);
2534 HRESULT OnDropPosition
(
2535 [in, unique] IShellItem
*psiOver
,
2536 [in] IShellItemArray
*psiaData
,
2537 [in] int iNewPosition
,
2538 [in] int iOldPosition
);
2540 HRESULT OnDragLeave
(
2541 [in, unique] IShellItem
*psiOver
);
2543 cpp_quote
("#define NSTCDHPOS_ONTOP -1")
2545 interface IFileDialog
;
2547 typedef [v1_enum] enum FDE_OVERWRITE_RESPONSE
2552 } FDE_OVERWRITE_RESPONSE
;
2554 typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
2559 } FDE_SHAREVIOLATION_RESPONSE
;
2561 /*****************************************************************************
2562 * IFileDialogEvents interface
2566 uuid(973510DB
-7D7F
-452B
-8975-74A85828D354
),
2567 pointer_default(unique)
2569 interface IFileDialogEvents
: IUnknown
2572 [in] IFileDialog
*pfd
);
2574 HRESULT OnFolderChanging
(
2575 [in] IFileDialog
*pfd
,
2576 [in] IShellItem
*psiFolder
);
2578 HRESULT OnFolderChange
(
2579 [in] IFileDialog
*pfd
);
2581 HRESULT OnSelectionChange
(
2582 [in] IFileDialog
*pfd
);
2584 HRESULT OnShareViolation
(
2585 [in] IFileDialog
*pfd
,
2586 [in] IShellItem
*psi
,
2587 [out] FDE_SHAREVIOLATION_RESPONSE
*pResponse
);
2589 HRESULT OnTypeChange
(
2590 [in] IFileDialog
*pfd
);
2592 HRESULT OnOverwrite
(
2593 [in] IFileDialog
*pfd
,
2594 [in] IShellItem
*psi
,
2595 [out] FDE_OVERWRITE_RESPONSE
*pResponse
);
2598 /*****************************************************************************
2599 * IModalWindow interface
2603 uuid(B4DB1657
-70D7
-485E-8E3E
-6FCB5A5C1802
),
2604 pointer_default(unique)
2606 interface IModalWindow
: IUnknown
2610 [in, unique, annotation
("__in_opt")] HWND hwndOwner
);
2614 [in, unique] HWND hwndOwner
);
2617 typedef [v1_enum] enum FDAP
2623 /*****************************************************************************
2624 * IFileDialog interface
2628 uuid(42F85136
-DB7E
-439C
-85F1
-E4075D135FC8
),
2629 pointer_default(unique)
2631 interface IFileDialog
: IModalWindow
2633 [v1_enum] enum _FILEOPENDIALOGOPTIONS
2635 FOS_OVERWRITEPROMPT
= 0x00000002,
2636 FOS_STRICTFILETYPES
= 0x00000004,
2637 FOS_NOCHANGEDIR
= 0x00000008,
2638 FOS_PICKFOLDERS
= 0x00000020,
2639 FOS_FORCEFILESYSTEM
= 0x00000040,
2640 FOS_ALLNONSTORAGEITEMS
= 0x00000080,
2641 FOS_NOVALIDATE
= 0x00000100,
2642 FOS_ALLOWMULTISELECT
= 0x00000200,
2643 FOS_PATHMUSTEXIST
= 0x00000800,
2644 FOS_FILEMUSTEXIST
= 0x00001000,
2645 FOS_CREATEPROMPT
= 0x00002000,
2646 FOS_SHAREAWARE
= 0x00004000,
2647 FOS_NOREADONLYRETURN
= 0x00008000,
2648 FOS_NOTESTFILECREATE
= 0x00010000,
2649 FOS_HIDEMRUPLACES
= 0x00020000,
2650 FOS_HIDEPINNEDPLACES
= 0x00040000,
2651 FOS_NODEREFERENCELINKS
= 0x00100000,
2652 FOS_DONTADDTORECENT
= 0x02000000,
2653 FOS_FORCESHOWHIDDEN
= 0x10000000,
2654 FOS_DEFAULTNOMINIMODE
= 0x20000000,
2655 FOS_FORCEPREVIEWPANEON
= 0x40000000
2657 typedef DWORD FILEOPENDIALOGOPTIONS
;
2659 HRESULT SetFileTypes
(
2660 [in] UINT cFileTypes
,
2661 [in, size_is(cFileTypes
)] const COMDLG_FILTERSPEC
*rgFilterSpec
);
2663 HRESULT SetFileTypeIndex
(
2664 [in] UINT iFileType
);
2666 HRESULT GetFileTypeIndex
(
2667 [out] UINT
*piFileType
);
2670 [in] IFileDialogEvents
*pfde
,
2671 [out] DWORD
*pdwCookie
);
2674 [in] DWORD dwCookie
);
2677 [in] FILEOPENDIALOGOPTIONS fos
);
2680 [in] FILEOPENDIALOGOPTIONS
*pfos
);
2682 HRESULT SetDefaultFolder
(
2683 [in] IShellItem
*psi
);
2686 [in] IShellItem
*psi
);
2689 [out] IShellItem
**ppsi
);
2691 HRESULT GetCurrentSelection
(
2692 [out] IShellItem
**ppsi
);
2694 HRESULT SetFileName
(
2695 [in, string] LPCWSTR pszName
);
2697 HRESULT GetFileName
(
2698 [out, string] LPWSTR
*pszName
);
2701 [in, string] LPCWSTR pszTitle
);
2703 HRESULT SetOkButtonLabel
(
2704 [in, string] LPCWSTR pszText
);
2706 HRESULT SetFileNameLabel
(
2707 [in, string] LPCWSTR pszLabel
);
2710 [out] IShellItem
**ppsi
);
2713 [in] IShellItem
*psi
,
2716 HRESULT SetDefaultExtension
(
2717 [in, string] LPCWSTR pszDefaultExtension
);
2722 HRESULT SetClientGuid
(
2725 HRESULT ClearClientData
();
2728 [in] IShellItemFilter
*pFilter
);
2731 /*****************************************************************************
2732 * IFileDialog2 interface
2736 uuid(61744FC7
-85B5
-4791-A9B0
-272276309B13
),
2737 pointer_default(unique)
2739 interface IFileDialog2
: IFileDialog
2741 HRESULT SetCancelButtonLabel
(
2742 [in] LPCWSTR pszLabel
);
2744 HRESULT SetNavigationRoot
(
2745 [in] IShellItem
*psi
);
2748 /*****************************************************************************
2749 * IFileOperationProgressSink interface
2753 uuid(04B0F1A7
-9490-44BC
-96E1
-4296A31252E2
),
2754 pointer_default(unique)
2756 interface IFileOperationProgressSink
: IUnknown
2758 HRESULT StartOperations
();
2760 HRESULT FinishOperations
(
2761 [in] HRESULT hrResult
);
2763 HRESULT PreRenameItem
(
2765 [in] IShellItem
*psiItem
,
2766 [in, unique, string] LPCWSTR pszNewName
);
2768 HRESULT PostRenameItem
(
2770 [in] IShellItem
*psiItem
,
2771 [in, string] LPCWSTR pszNewName
,
2772 [in] HRESULT hrRename
,
2773 [in] IShellItem
*psiNewlyCreated
);
2775 HRESULT PreMoveItem
(
2777 [in] IShellItem
*psiItem
,
2778 [in] IShellItem
*psiDestinationFolder
,
2779 [in, unique, string] LPCWSTR pszNewName
);
2781 HRESULT PostMoveItem
(
2783 [in] IShellItem
*psiItem
,
2784 [in] IShellItem
*psiDestinationFolder
,
2785 [in, unique, string] LPCWSTR pszNewName
,
2786 [in] HRESULT hrMove
,
2787 [in] IShellItem
*psiNewlyCreated
);
2789 HRESULT PreCopyItem
(
2791 [in] IShellItem
*psiItem
,
2792 [in] IShellItem
*psiDestinationFolder
,
2793 [in, unique, string] LPCWSTR pszNewName
);
2795 HRESULT PostCopyItem
(
2797 [in] IShellItem
*psiItem
,
2798 [in] IShellItem
*psiDestinationFolder
,
2799 [in, unique, string] LPCWSTR pszNewName
,
2800 [in] HRESULT hrCopy
,
2801 [in] IShellItem
*psiNewlyCreated
);
2803 HRESULT PreDeleteItem
(
2805 [in] IShellItem
*psiItem
);
2807 HRESULT PostDeleteItem
(
2809 [in] IShellItem
*psiItem
,
2810 [in] HRESULT hrDelete
,
2811 [in] IShellItem
*psiNewlyCreated
);
2815 [in] IShellItem
*psiDestinationFolder
,
2816 [in, unique, string] LPCWSTR pszNewName
);
2818 HRESULT PostNewItem
(
2820 [in] IShellItem
*psiDestinationFolder
,
2821 [in, unique, string] LPCWSTR pszNewName
,
2822 [in, unique, string] LPCWSTR pszTemplateName
,
2823 [in] DWORD dwFileAttributes
,
2825 [in] IShellItem
*psiNewItem
);
2827 HRESULT UpdateProgress
(
2828 [in] UINT iWorkTotal
,
2829 [in] UINT iWorkSoFar
);
2831 HRESULT ResetTimer
();
2833 HRESULT PauseTimer
();
2835 HRESULT ResumeTimer
();
2838 /*****************************************************************************
2839 * IFileSaveDialog interface
2843 uuid(84BCCD23
-5FDE
-4CDB
-AEA4
-AF64B83D78AB
),
2844 pointer_default(unique)
2846 interface IFileSaveDialog
: IFileDialog
2848 HRESULT SetSaveAsItem
(
2849 [in] IShellItem
*psi
);
2851 HRESULT SetProperties
(
2852 [in] IPropertyStore
*pStore
);
2854 HRESULT SetCollectedProperties
(
2855 [in] IPropertyDescriptionList
*pList
,
2856 [in] BOOL fAppendDefault
);
2858 HRESULT GetProperties
(
2859 [in] IPropertyStore
**ppStore
);
2861 HRESULT ApplyProperties
(
2862 [in] IShellItem
*psi
,
2863 [in] IPropertyStore
*pStore
,
2864 [in, unique] HWND hwnd
,
2865 [in, unique] IFileOperationProgressSink
*pSink
);
2869 /*****************************************************************************
2870 * IFileOpenDialog interface
2874 uuid(D57C7288
-D4AD
-4768-BE02
-9D969532D960
),
2875 pointer_default(unique)
2877 interface IFileOpenDialog
: IFileDialog
2880 [out] IShellItemArray
**ppenum
);
2882 HRESULT GetSelectedItems
(
2883 [out] IShellItemArray
**ppsai
);
2886 typedef [v1_enum] enum CDCONTROLSTATEF
2888 CDCS_INACTIVE
= 0x0,
2891 CDCS_ENABLEDVISIBLE
= 0x3
2893 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
2894 /*****************************************************************************
2895 * IFileDialogCustomize interface
2899 uuid(E6FDD21A
-163F
-4975-9C8C
-A69F1BA37034
),
2900 pointer_default(unique)
2902 interface IFileDialogCustomize
: IUnknown
2904 HRESULT EnableOpenDropDown
(
2905 [in] DWORD dwIDCtl
);
2909 [in, string] LPCWSTR pszLabel
);
2911 HRESULT AddPushButton
(
2913 [in, string] LPCWSTR pszLabel
);
2915 HRESULT AddComboBox
(
2916 [in] DWORD dwIDCtl
);
2918 HRESULT AddRadioButtonList
(
2919 [in] DWORD dwIDCtl
);
2921 HRESULT AddCheckButton
(
2923 [in, string] LPCWSTR pszLabel
,
2924 [in] BOOL bChecked
);
2928 [in, string] LPCWSTR pszText
);
2930 HRESULT AddSeparator
(
2931 [in] DWORD dwIDCtl
);
2935 [in, string] LPCWSTR pszText
);
2937 HRESULT SetControlLabel
(
2939 [in, string] LPCWSTR pszLabel
);
2941 HRESULT GetControlState
(
2943 [out] CDCONTROLSTATEF
*pdwState
);
2945 HRESULT SetControlState
(
2947 [in] CDCONTROLSTATEF dwState
);
2949 HRESULT GetEditBoxText
(
2951 [out, string] WCHAR
**ppszText
);
2953 HRESULT SetEditBoxText
(
2955 [in, string] LPCWSTR pszText
);
2957 HRESULT GetCheckButtonState
(
2959 [out] BOOL
*pbChecked
);
2961 HRESULT SetCheckButtonState
(
2963 [in] BOOL bChecked
);
2965 HRESULT AddControlItem
(
2967 [in] DWORD dwIDItem
,
2968 [in] LPCWSTR pszLabel
);
2970 HRESULT RemoveControlItem
(
2972 [in] DWORD dwIDItem
);
2974 HRESULT RemoveAllControlItems
(
2975 [in] DWORD dwIDCtl
);
2977 HRESULT GetControlItemState
(
2979 [in] DWORD dwIDItem
,
2980 [out] CDCONTROLSTATEF
*pdwState
);
2982 HRESULT SetControlItemState
(
2984 [in] DWORD dwIDItem
,
2985 [in] CDCONTROLSTATEF dwState
);
2987 HRESULT GetSelectedControlItem
(
2989 [out] DWORD
*pdwIDItem
);
2991 HRESULT SetSelectedControlItem
(
2993 [in] DWORD dwIDItem
);
2995 HRESULT StartVisualGroup
(
2997 [in, string] LPCWSTR pszLabel
);
2999 HRESULT EndVisualGroup
();
3001 HRESULT MakeProminent
(
3002 [in] DWORD dwIDCtl
);
3004 HRESULT SetControlItemText
(
3006 [in] DWORD dwIDItem
,
3007 [in, string] LPCWSTR pszLabel
);
3010 /*****************************************************************************
3011 * IFileDialogControlEvents interface
3015 uuid(36116642-D713
-4B97
-9B83
-7484A9D00433
),
3016 pointer_default(unique)
3018 interface IFileDialogControlEvents
: IUnknown
3020 HRESULT OnItemSelected
(
3021 [in] IFileDialogCustomize
*pfdc
,
3023 [in] DWORD dwIDItem
);
3025 HRESULT OnButtonClicked
(
3026 [in] IFileDialogCustomize
*pfdc
,
3027 [in] DWORD dwIDCtl
);
3029 HRESULT OnCheckButtonToggled
(
3030 [in] IFileDialogCustomize
*pfdc
,
3032 [in] BOOL bChecked
);
3034 HRESULT OnControlActivating
(
3035 [in] IFileDialogCustomize
*pfdc
,
3036 [in] DWORD dwIDCtl
);
3039 typedef [v1_enum] enum tagKF_CATEGORY
3041 KF_CATEGORY_VIRTUAL
= 0x00000001,
3042 KF_CATEGORY_FIXED
= 0x00000002,
3043 KF_CATEGORY_COMMON
= 0x00000003,
3044 KF_CATEGORY_PERUSER
= 0x00000004
3047 typedef [v1_enum] enum tagKF_REDIRECTION_CAPABILITIES
3049 KF_REDIRECTION_CAPABILITIES_ALLOW_ALL
= 0x000000ff,
3050 KF_REDIRECTION_CAPABILITIES_REDIRECTABLE
= 0x00000001,
3051 KF_REDIRECTION_CAPABILITIES_DENY_ALL
= 0x000fff00,
3052 KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED
= 0x00000100,
3053 KF_REDIRECTION_CAPABILITIES_DENY_POLICY
= 0x00000200,
3054 KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS
= 0x00000400
3055 } KF_REDIRECTION_CAPABILITIES
;
3057 typedef [v1_enum] enum tagKF_DEFINITION_FLAGS
3059 KFDF_LOCAL_REDIRECT_ONLY
= 0x00000002,
3060 KFDF_ROAMABLE
= 0x00000004,
3061 KFDF_PRECREATE
= 0x00000008,
3062 KFDF_STREAM
= 0x00000010,
3063 KFDF_PUBLISHEXPANDEDPATH
= 0x00000020
3064 } KF_DEFINITION_FLAGS
;
3066 typedef struct tagKNOWNFOLDER_DEFINITION
3068 KF_CATEGORY category
;
3070 LPWSTR pszDescription
;
3071 KNOWNFOLDERID fidParent
;
3072 LPWSTR pszRelativePath
;
3073 LPWSTR pszParsingName
;
3075 LPWSTR pszLocalizedName
;
3079 KF_DEFINITION_FLAGS kfdFlags
;
3080 FOLDERTYPEID ftidType
;
3081 } KNOWNFOLDER_DEFINITION
;
3085 uuid(3aa7af7e
-9b36
-420C
-a8e3
-f77d4674a488
),
3086 pointer_default(ref)
3088 interface IKnownFolder
: IUnknown
3091 [out] KNOWNFOLDERID
*pkfid
);
3093 HRESULT GetCategory
(
3094 [out] KF_CATEGORY
*pCategory
);
3096 HRESULT GetShellItem
(
3099 [out, iid_is(riid
)] void **ppv
);
3103 [out, string] LPWSTR
*ppszPath
);
3107 [in, string] LPCWSTR pszPath
);
3111 [out] PIDLIST_ABSOLUTE
*ppidl
);
3113 HRESULT GetFolderType
(
3114 [out] FOLDERTYPEID
*pftid
);
3116 HRESULT GetRedirectionCapabilities
(
3117 [out] KF_REDIRECTION_CAPABILITIES
*pCapabilities
);
3119 HRESULT GetFolderDefinition
(
3120 [out] KNOWNFOLDER_DEFINITION
*pKFD
);
3123 typedef [v1_enum] enum tagKF_REDIRECT_FLAGS
3125 KF_REDIRECT_USER_EXCLUSIVE
= 0x00000001,
3126 KF_REDIRECT_COPY_SOURCE_DACL
= 0x00000002,
3127 KF_REDIRECT_OWNER_USER
= 0x00000004,
3128 KF_REDIRECT_SET_OWNER_EXPLICIT
= 0x00000008,
3129 KF_REDIRECT_CHECK_ONLY
= 0x00000010,
3130 KF_REDIRECT_WITH_UI
= 0x00000020,
3131 KF_REDIRECT_UNPIN
= 0x00000040,
3132 KF_REDIRECT_PIN
= 0x00000080,
3133 KF_REDIRECT_COPY_CONTENTS
= 0x00000200,
3134 KF_REDIRECT_DEL_SOURCE_CONTENTS
= 0x00000400,
3135 KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS
= 0x00000800
3136 } KF_REDIRECT_FLAGS
;
3140 uuid(8BE2D872
-86AA
-4d47
-B776
-32CCA40C7018
),
3141 pointer_default(ref)
3143 interface IKnownFolderManager
: IUnknown
3145 typedef [v1_enum] enum tagFFFP_MODE
3148 FFFP_NEARESTPARENTMATCH
3151 HRESULT FolderIdFromCsidl
(
3153 [out] KNOWNFOLDERID
*pfid
);
3155 HRESULT FolderIdToCsidl
(
3156 [in] REFKNOWNFOLDERID rfid
,
3157 [out] int *pnCsidl
);
3159 HRESULT GetFolderIds
(
3160 [out, size_is(, *pCount
)] KNOWNFOLDERID
**ppKFId
,
3161 [in, out] UINT
*pCount
);
3164 [in] REFKNOWNFOLDERID rfid
,
3165 [out] IKnownFolder
**ppkf
);
3167 HRESULT GetFolderByName
(
3168 [in, string] LPCWSTR pszCanonicalName
,
3169 [out] IKnownFolder
**ppkf
);
3171 HRESULT RegisterFolder
(
3172 [in] REFKNOWNFOLDERID rfid
,
3173 [in] KNOWNFOLDER_DEFINITION
const *pKFD
);
3175 HRESULT UnregisterFolder
(
3176 [in] REFKNOWNFOLDERID rfid
);
3178 HRESULT FindFolderFromPath
(
3179 [in, string] LPCWSTR pszPath
,
3180 [in] FFFP_MODE mode
,
3181 [out] IKnownFolder
**ppkf
);
3183 HRESULT FindFolderFromIDList
(
3184 [in] PCIDLIST_ABSOLUTE pidl
,
3185 [out] IKnownFolder
**ppkf
);
3188 [in] REFKNOWNFOLDERID rfid
,
3189 [in, unique] HWND hwnd
,
3190 [in] KF_REDIRECT_FLAGS flags
,
3191 [in, unique, string] LPCWSTR pszTargetPath
,
3193 [in, size_is(cFolders
), unique] KNOWNFOLDERID
const *pExclusion
,
3194 [out, string] LPWSTR
*ppszError
);
3197 /* function for releasing structure returned from IKnownFolder::GetFolderDefinition */
3198 cpp_quote
("static inline void FreeKnownFolderDefinitionFields(KNOWNFOLDER_DEFINITION *pKFD)")
3200 cpp_quote
(" CoTaskMemFree(pKFD->pszName);")
3201 cpp_quote
(" CoTaskMemFree(pKFD->pszDescription);")
3202 cpp_quote
(" CoTaskMemFree(pKFD->pszRelativePath);")
3203 cpp_quote
(" CoTaskMemFree(pKFD->pszParsingName);")
3204 cpp_quote
(" CoTaskMemFree(pKFD->pszTooltip);")
3205 cpp_quote
(" CoTaskMemFree(pKFD->pszLocalizedName);")
3206 cpp_quote
(" CoTaskMemFree(pKFD->pszIcon);")
3207 cpp_quote
(" CoTaskMemFree(pKFD->pszSecurity);")
3210 typedef [v1_enum] enum ASSOCIATIONLEVEL
{
3216 typedef [v1_enum] enum ASSOCIATIONTYPE
{
3225 uuid(4e530b0a
-e611
-4c77
-a3ac
-9031d022281b
),
3226 pointer_default(unique)
3228 interface IApplicationAssociationRegistration
: IUnknown
3230 HRESULT QueryCurrentDefault
(
3231 [in, string] LPCWSTR pszQuery
,
3232 [in] ASSOCIATIONTYPE atQueryType
,
3233 [in] ASSOCIATIONLEVEL alQueryLevel
,
3234 [out, string] LPWSTR
*ppszAssociation
);
3236 HRESULT QueryAppIsDefault
(
3237 [in, string] LPCWSTR pszQuery
,
3238 [in] ASSOCIATIONTYPE atQueryType
,
3239 [in] ASSOCIATIONLEVEL alQueryLevel
,
3240 [in, string] LPCWSTR pszAppRegistryName
,
3241 [out] BOOL
*pfDefault
);
3243 HRESULT QueryAppIsDefaultAll
(
3244 [in] ASSOCIATIONLEVEL alQueryLevel
,
3245 [in, string] LPCWSTR pszAppRegistryName
,
3246 [out] BOOL
* pfDefault
);
3248 HRESULT SetAppAsDefault
(
3249 [in, string] LPCWSTR pszAppRegistryName
,
3250 [in, string] LPCWSTR pszSet
,
3251 [in] ASSOCIATIONTYPE atSetType
);
3253 HRESULT SetAppAsDefaultAll
(
3254 [in, string] LPCWSTR pszAppRegistryName
);
3256 HRESULT ClearUserAssociations
();
3260 uuid(6332debf
-87b5
-4670-90c0
-5e57b408a49e
),
3262 pointer_default(unique)
3264 interface ICustomDestinationList
: IUnknown
3266 typedef [v1_enum] enum KNOWNDESTCATEGORY
{
3269 } KNOWNDESTCATEGORY
;
3271 HRESULT SetAppID
([in, string] LPCWSTR pszAppID
);
3274 [out] UINT
*pcMinSlots
,
3276 [out, iid_is(riid
)] void **ppv
);
3278 HRESULT AppendCategory
(
3279 [in, string] LPCWSTR pszCategory
,
3280 [in] IObjectArray
*poa
);
3282 HRESULT AppendKnownCategory
([in] KNOWNDESTCATEGORY category
);
3283 HRESULT AddUserTasks
([in] IObjectArray
*poa
);
3284 HRESULT CommitList
();
3286 HRESULT GetRemovedDestinations
(
3288 [out, iid_is(riid
)] void **ppv
);
3290 HRESULT DeleteList
([in, unique, string] LPCWSTR pszAppID
);
3291 HRESULT AbortList
();
3294 /*****************************************************************************
3295 * ShellObjects typelibrary
3298 uuid(50A7E9B1
-70EF
-11D1
-B75A
-00A0C90564FE
),
3302 library ShellObjects
3305 uuid(71F96385
-DDD6
-48D3
-A0C1
-AE06E8B055FB
)
3307 coclass ExplorerBrowser
3309 interface IExplorerBrowser
;
3313 uuid(DC1C5A9C
-E88A
-4DDE
-A5A1
-60F82A20AEF7
)
3315 coclass FileOpenDialog
3317 interface IFileOpenDialog
;
3321 uuid(C0B4E2F3
-BA21
-4773-8DBA
-335EC946EB8B
)
3323 coclass FileSaveDialog
3325 interface IFileSaveDialog
;
3329 uuid(AE054212
-3535-4430-83ED
-D501AA6680E6
)
3331 coclass NamespaceTreeControl
3333 interface INameSpaceTreeControl2
;
3337 uuid(4df0c730
-df9d
-4ae3
-9153-aa6b82e9795a
)
3339 coclass KnownFolderManager
3341 interface IKnownFolderManager
;
3345 uuid(591209c7
-767b
-42b2
-9fba
-44ee4615f2c7
)
3347 coclass ApplicationAssociationRegistration
3349 interface IApplicationAssociationRegistration
;
3353 uuid(00021401-0000-0000-c000
-000000000046)
3357 interface IShellLinkW
;
3361 uuid(56fdf344
-fd6d
-11d0
-958a
-006097c9a090
)
3365 interface ITaskbarList4
;
3369 uuid(77f10cf0
-3db5
-4966-b520
-b7c54fd35ed6
)
3371 coclass DestinationList
{
3372 interface ICustomDestinationList
;
3376 uuid(2d3468c1
-36a7
-43b6
-ac24
-d3f02fd9607a
)
3378 coclass EnumerableObjectCollection
3380 interface IEnumObjects
;