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 /* FIXME: import "structuredquery.idl"; */
36 cpp_quote
("/* FIXME: #include <sherrors.h> */")
39 /*****************************************************************************
40 * IPersistFolder interface
44 uuid(000214ea
-0000-0000-c000
-000000000046),
45 pointer_default(unique)
47 interface IPersistFolder
: IPersist
49 typedef IPersistFolder
*LPPERSISTFOLDER
;
51 HRESULT Initialize
( [in] LPCITEMIDLIST pidl
);
55 /*****************************************************************************
56 * IPersistFolder2 interface
60 uuid(1ac3d9f0
-175c
-11d1
-95be
-00609797ea4f
),
61 pointer_default(unique)
63 interface IPersistFolder2
: IPersistFolder
65 typedef IPersistFolder2
*LPPERSISTFOLDER2
;
67 HRESULT GetCurFolder
( [out] LPITEMIDLIST
*ppidl
);
71 /*****************************************************************************
72 * IPersistIDList interface
76 uuid(1079acfc
-29bd
-11d3
-8e0d
-00c04f6837d5
),
77 pointer_default(unique)
79 interface IPersistIDList
: IPersist
81 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
82 HRESULT GetIDList
( [out] LPITEMIDLIST
*ppidl
);
86 /*****************************************************************************
87 * IEnumIDList interface
91 uuid(000214f2
-0000-0000-c000
-000000000046),
92 pointer_default(unique)
94 interface IEnumIDList
: IUnknown
96 typedef IEnumIDList
*LPENUMIDLIST
;
100 [out, size_is(celt
), length_is(*pceltFetched
)] LPITEMIDLIST
*rgelt
,
101 [out] ULONG
*pceltFetched
);
103 HRESULT Skip
( [in] ULONG celt
);
105 HRESULT Clone
( [out] IEnumIDList
**ppenum
);
108 /*****************************************************************************
109 * IShellPropSheetExt interface
112 typedef LPARAM LPFNSVADDPROPSHEETPAGE
;
114 cpp_quote
("#include <prsht.h>")
115 cpp_quote
("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
120 uuid(000214E9
-0000-0000-C000
-000000000046),
121 pointer_default(unique),
124 interface IShellPropSheetExt
: IUnknown
126 enum tagSHELLPROPSHEETEXTPAGEID
{
127 EXPPS_FILETYPES
= 0x1
133 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage
,
137 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith
,
140 typedef IShellPropSheetExt
*LPSHELLPROPSHEETEXT
;
142 /*****************************************************************************
143 * IShellFolder interface
147 uuid(000214e6
-0000-0000-c000
-000000000046),
148 pointer_default(unique)
150 interface IShellFolder
: IUnknown
152 typedef IShellFolder
* LPSHELLFOLDER
;
154 typedef enum tagSHGDN
158 SHGDN_FOREDITING
= 0x1000,
159 SHGDN_INCLUDE_NONFILESYS
= 0x2000,
160 SHGDN_FORADDRESSBAR
= 0x4000,
161 SHGDN_FORPARSING
= 0x8000
164 typedef DWORD SHGDNF
;
168 SHCONTF_FOLDERS
= 32,
169 SHCONTF_NONFOLDERS
= 64,
170 SHCONTF_INCLUDEHIDDEN
= 128,
171 SHCONTF_INIT_ON_FIRST_NEXT
= 256,
172 SHCONTF_NETPRINTERSRCH
= 512,
173 SHCONTF_SHAREABLE
= 1024,
174 SHCONTF_STORAGE
= 2048
177 typedef DWORD SHCONTF
;
179 cpp_quote
("#define SFGAO_CANCOPY DROPEFFECT_COPY")
180 cpp_quote
("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
181 cpp_quote
("#define SFGAO_CANLINK DROPEFFECT_LINK")
182 cpp_quote
("#define SFGAO_STORAGE 0x00000008L")
183 cpp_quote
("#define SFGAO_CANRENAME 0x00000010L")
184 cpp_quote
("#define SFGAO_CANDELETE 0x00000020L")
185 cpp_quote
("#define SFGAO_HASPROPSHEET 0x00000040L")
186 cpp_quote
("#define SFGAO_DROPTARGET 0x00000100L")
187 cpp_quote
("#define SFGAO_CAPABILITYMASK 0x00000177L")
188 cpp_quote
("#define SFGAO_ENCRYPTED 0x00002000L")
189 cpp_quote
("#define SFGAO_ISSLOW 0x00004000L")
190 cpp_quote
("#define SFGAO_GHOSTED 0x00008000L")
191 cpp_quote
("#define SFGAO_LINK 0x00010000L")
192 cpp_quote
("#define SFGAO_SHARE 0x00020000L")
193 cpp_quote
("#define SFGAO_READONLY 0x00040000L")
194 cpp_quote
("#define SFGAO_HIDDEN 0x00080000L")
195 cpp_quote
("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
196 cpp_quote
("#define SFGAO_FILESYSANCESTOR 0x10000000L")
197 cpp_quote
("#define SFGAO_FOLDER 0x20000000L")
198 cpp_quote
("#define SFGAO_FILESYSTEM 0x40000000L")
199 cpp_quote
("#define SFGAO_HASSUBFOLDER 0x80000000L")
200 cpp_quote
("#define SFGAO_CONTENTSMASK 0x80000000L")
201 cpp_quote
("#define SFGAO_VALIDATE 0x01000000L")
202 cpp_quote
("#define SFGAO_REMOVABLE 0x02000000L")
203 cpp_quote
("#define SFGAO_COMPRESSED 0x04000000L")
204 cpp_quote
("#define SFGAO_BROWSABLE 0x08000000L")
205 cpp_quote
("#define SFGAO_NONENUMERATED 0x00100000L")
206 cpp_quote
("#define SFGAO_NEWCONTENT 0x00200000L")
207 cpp_quote
("#define SFGAO_STREAM 0x00400000L")
208 cpp_quote
("#define SFGAO_STORAGEANCESTOR 0x00800000L")
210 typedef ULONG SFGAOF
;
212 HRESULT ParseDisplayName
(
214 [in] LPBC pbcReserved
,
215 [in, string] LPOLESTR lpszDisplayName
,
216 [out] ULONG
*pchEaten
,
217 [out] LPITEMIDLIST
*ppidl
,
218 [in, out, unique] ULONG
*pdwAttributes
);
222 [in] SHCONTF grfFlags
,
223 [out] IEnumIDList
**ppenumIDList
);
225 HRESULT BindToObject
(
226 [in] LPCITEMIDLIST pidl
,
227 [in] LPBC pbcReserved
,
229 [out, iid_is(riid
)] void **ppvOut
);
231 HRESULT BindToStorage
(
232 [in] LPCITEMIDLIST pidl
,
233 [in] LPBC pbcReserved
,
235 [out, iid_is(riid
)] void **ppvObj
);
239 [in] LPCITEMIDLIST pidl1
,
240 [in] LPCITEMIDLIST pidl2
);
242 HRESULT CreateViewObject
(
245 [out, iid_is(riid
)] void **ppvOut
);
247 HRESULT GetAttributesOf
(
249 [in, size_is(cidl
)] LPCITEMIDLIST
*apidl
,
250 [in, out] SFGAOF
*rgfInOut
);
252 HRESULT GetUIObjectOf
(
255 [in, size_is(cidl
)] LPCITEMIDLIST
*apidl
,
257 [in, out, unique] UINT
*prgfInOut
,
258 [out, iid_is(riid
)] void **ppvOut
);
260 HRESULT GetDisplayNameOf
(
261 [in] LPCITEMIDLIST pidl
,
263 [out] STRRET
*lpName
);
267 [in] LPCITEMIDLIST pidl
,
268 [in, string] LPCOLESTR lpszName
,
270 [out] LPITEMIDLIST
*ppidlOut
);
274 /*****************************************************************************
275 * IEnumExtraSearch interface
279 uuid(0e700be1
-9db6
-11d1
-a1ce
-00c04fd75d13
),
280 pointer_default(unique)
282 interface IEnumExtraSearch
: IUnknown
284 typedef IEnumExtraSearch
*LPENUMEXTRASEARCH
;
289 WCHAR wszFriendlyName
[80];
291 *WCHAR wszMenuText[80];
292 *WCHAR wszHelpText[MAX_PATH];
296 *WCHAR wszIcon[MAX_PATH+10];
297 *WCHAR wszGreyIcon[MAX_PATH+10];
298 *WCHAR wszClrIcon[MAX_PATH+10];
300 } EXTRASEARCH
, *LPEXTRASEARCH
;
304 [out, size_is(celt
), length_is(*pceltFetched
)] EXTRASEARCH
*rgelt
,
305 [out] ULONG
*pceltFetched
);
307 HRESULT Skip
( [in] ULONG celt
);
309 HRESULT Clone
( [out] IEnumExtraSearch
**ppenum
);
313 /*****************************************************************************
314 * IShellFolder2 interface
318 uuid(93f2f68c
-1d1b
-11d3
-a30e
-00c04f79abd1
),
319 pointer_default(unique)
321 interface IShellFolder2
: IShellFolder
327 } SHCOLUMNID
, *LPSHCOLUMNID
;
328 typedef const SHCOLUMNID
*LPCSHCOLUMNID
;
330 HRESULT GetDefaultSearchGUID
( [out] GUID
*lpguid
);
331 HRESULT EnumSearches
( [out] IEnumExtraSearch
**ppenum
);
332 HRESULT GetDefaultColumn
( [in] DWORD dwReserved
, [out] ULONG
*pSort
, [out] ULONG
*pDisplay
);
333 HRESULT GetDefaultColumnState
( [in] UINT iColumn
, [out] SHCOLSTATEF
*pcsFlags
);
334 HRESULT GetDetailsEx
( [in] LPCITEMIDLIST pidl
, [in] const SHCOLUMNID
*pscid
, [out] VARIANT *pv
);
335 HRESULT GetDetailsOf
( [in] LPCITEMIDLIST pidl
, [in] UINT iColumn
, [out] SHELLDETAILS
*psd
);
336 HRESULT MapColumnToSCID
( [in] UINT iColumn
, [in] SHCOLUMNID
*pscid
);
339 /*****************************************************************************
340 * IShellItem interface
344 uuid(43826d1e
-e718
-42ee
-bc55
-a1e261c37bfe
),
345 pointer_default(unique)
347 interface IShellItem
: IUnknown
349 typedef [v1_enum] enum {
350 SIGDN_NORMALDISPLAY
= 0,
351 SIGDN_PARENTRELATIVEPARSING
= 0x80018001,
352 SIGDN_DESKTOPABSOLUTEPARSING
= 0x80028000,
353 SIGDN_PARENTRELATIVEEDITING
= 0x80031001,
354 SIGDN_DESKTOPABSOLUTEEDITING
= 0x8004c000,
355 SIGDN_FILESYSPATH
= 0x80058000,
356 SIGDN_URL
= 0x80068000,
357 SIGDN_PARENTRELATIVEFORADDRESSBAR
= 0x8007c001,
358 SIGDN_PARENTRELATIVE
= 0x80080001
359 } SIGDN
; /* & 0xFFFF => SHGDN */
361 [v1_enum] enum _SICHINTF
363 SICHINT_DISPLAY
= 0x00000000,
364 SICHINT_CANONICAL
= 0x10000000,
365 SICHINT_TEST_FILESYSPATH_IF_NOT_EQUAL
= 0x20000000,
366 SICHINT_ALLFIELDS
= 0x80000000
368 typedef DWORD SICHINTF
;
370 HRESULT BindToHandler
(
374 [out, iid_is(riid
)] void **ppvOut
);
376 HRESULT GetParent
( [out] IShellItem
**ppsi
);
378 HRESULT GetDisplayName
(
379 [in] SIGDN sigdnName
,
380 [out] LPWSTR
*ppszName
);
382 HRESULT GetAttributes
(
383 [in] SFGAOF sfgaoMask
,
384 [out] SFGAOF
*psfgaoAttribs
);
387 [in] IShellItem
*psi
,
392 /*****************************************************************************
393 * IShellItem2 interface
397 uuid(7E9FB0D3
-919F
-4307-AB2E
-9B1860310C93
),
398 pointer_default(unique)
400 interface IShellItem2
: IShellItem
402 HRESULT GetPropertyStore
(
403 [in] GETPROPERTYSTOREFLAGS flags
,
405 [out, iid_is(riid
)] void **ppv
);
407 HRESULT GetPropertyStoreWithCreateObject
(
408 [in] GETPROPERTYSTOREFLAGS flags
,
409 [in] IUnknown
*punkCreateObject
,
411 [out, iid_is(riid
)] void **ppv
);
413 HRESULT GetPropertyStoreForKeys
(
414 [in, size_is(cKeys
)] const PROPERTYKEY
*rgKeys
,
416 [in] GETPROPERTYSTOREFLAGS flags
,
418 [out, iid_is(riid
)] void **ppv
);
420 HRESULT GetPropertyDescriptionList
(
421 [in] REFPROPERTYKEY keyType
,
423 [out, iid_is(riid
)] void **ppv
);
426 [in, unique] IBindCtx
*pbc
);
429 [in] REFPROPERTYKEY key
,
430 [out] PROPVARIANT
*ppropvar
);
433 [in] REFPROPERTYKEY key
,
434 [out] CLSID
*pclsid
);
436 HRESULT GetFileTime
(
437 [in] REFPROPERTYKEY key
,
438 [out] FILETIME
*pft
);
441 [in] REFPROPERTYKEY key
,
445 [in] REFPROPERTYKEY key
,
446 [out, string] LPWSTR
*ppsz
);
449 [in] REFPROPERTYKEY key
,
453 [in] REFPROPERTYKEY key
,
454 [out] ULONGLONG
*pull
);
457 [in] REFPROPERTYKEY key
,
461 typedef enum tagNWMF
{
462 NWMF_UNLOADING
= 0x0001,
463 NWMF_USERINITED
= 0x0002,
465 NWMF_OVERRIDEKEY
= 0x0008,
466 NWMF_SHOWHELP
= 0x0010,
467 NWMF_HTMLDIALOG
= 0x0020,
468 NWMF_FROMDIALOGCHILD
= 0x0040,
469 NWMF_USERREQUESTED
= 0x0080,
470 NWMF_USERALLOWED
= 0x0100
474 uuid(d2bc4c84
-3f72
-4a52
-a604
-7bcbf3982cbb
),
476 pointer_default(unique)
478 interface INewWindowManager
: IUnknown
480 HRESULT EvaluateNewWindow
(
481 [in, string] LPCWSTR pszUrl
,
482 [in, string] LPCWSTR pszName
,
483 [in, string] LPCWSTR pszUrlContext
,
484 [in, string] LPCWSTR pszFeatures
,
487 [in] DWORD dwUserActionTime
);
490 cpp_quote
("#define SID_SNewWindowManager IID_INewWindowManager")
492 /*****************************************************************************
493 * IEnumShellItems interface
497 uuid(70629033-E363
-4A28
-A567
-0DB78006E6D7
),
498 pointer_default(unique)
500 interface IEnumShellItems
: IUnknown
502 [local] HRESULT Next
(
504 [out, size_is(celt
), length_is(*pceltFetched
)] IShellItem
**rgelt
,
505 [out] ULONG
*pceltFetched
);
507 [call_as
(Next
)] HRESULT RemoteNext
(
509 [out, size_is(celt
), length_is(*pceltFetched
)] IShellItem
**rgelt
,
510 [out] ULONG
*pceltFetched
);
518 [out] IEnumShellItems
**ppenum
);
521 /*****************************************************************************
522 * IShellItemArray interface
526 uuid(B63EA76D
-1F85
-456F
-A19C
-48159EFA858B
),
527 pointer_default(unique)
529 interface IShellItemArray
: IUnknown
531 typedef [v1_enum] enum SIATTRIBFLAGS
{
532 SIATTRIBFLAGS_AND
= 0x0001,
533 SIATTRIBFLAGS_OR
= 0x0002,
534 SIATTRIBFLAGS_APPCOMPAT
= 0x0003,
535 SIATTRIBFLAGS_MASK
= 0x0003,
536 SIATTRIBFLAGS_ALLITEMS
= 0x4000
538 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(SIATTRIBFLAGS)")
540 HRESULT BindToHandler
(
541 [in, unique] IBindCtx
*pbc
,
544 [out, iid_is(riid
)] void **ppvOut
);
546 HRESULT GetPropertyStore
(
547 [in] GETPROPERTYSTOREFLAGS flags
,
549 [out, iid_is(riid
)] void **ppv
);
551 HRESULT GetPropertyDescriptionList
(
552 [in] REFPROPERTYKEY keyType
,
554 [out, iid_is(riid
)] void **ppv
);
556 HRESULT GetAttributes
(
557 [in] SIATTRIBFLAGS AttribFlags
,
558 [in] SFGAOF sfgaoMask
,
559 [out] SFGAOF
*psfgaoAttribs
);
562 [out] DWORD
*pdwNumItems
);
566 [out] IShellItem
**ppsi
);
569 [out] IEnumShellItems
**ppenumShellItems
);
573 typedef [v1_enum] enum DATAOBJ_GET_ITEM_FLAGS
576 DOGIF_TRAVERSE_LINK
= 0x1,
577 DOGIF_NO_HDROP
= 0x2,
579 DOGIF_ONLY_IF_ONE
= 0x8
580 } DATAOBJ_GET_ITEM_FLAGS
;
581 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(DATAOBJ_GET_ITEM_FLAGS)")
583 cpp_quote
("HRESULT WINAPI SHGetNameFromIDList(PCIDLIST_ABSOLUTE pidl, SIGDN sigdnName, PWSTR *ppszName);")
584 cpp_quote
("HRESULT WINAPI SHCreateItemFromParsingName(PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv);")
585 cpp_quote
("HRESULT WINAPI SHCreateItemFromIDList(PCIDLIST_ABSOLUTE pidl, REFIID riid, void **ppv);")
586 cpp_quote
("HRESULT WINAPI SHGetItemFromDataObject(IDataObject *pdtobj, DATAOBJ_GET_ITEM_FLAGS dwFlags, REFIID riid, void **ppv);")
587 cpp_quote
("HRESULT WINAPI SHGetIDListFromObject(IUnknown *punk, PIDLIST_ABSOLUTE *ppidl);")
588 cpp_quote
("HRESULT WINAPI SHGetItemFromObject(IUnknown *punk, REFIID riid, void **ppv);")
589 cpp_quote
("HRESULT WINAPI SHCreateShellItemArray(PCIDLIST_ABSOLUTE pidlParent, IShellFolder* psf, UINT cidl, PCUITEMID_CHILD_ARRAY ppidl, IShellItemArray **ppsiItemArray);")
590 cpp_quote
("HRESULT WINAPI SHCreateShellItemArrayFromShellItem(IShellItem *psi, REFIID riid, void **ppv);")
591 cpp_quote
("HRESULT WINAPI SHCreateShellItemArrayFromDataObject(IDataObject *pdo, REFIID riid, void **ppv);")
593 /*****************************************************************************
594 * IShellItemFilter interface
598 uuid(2659B475
-EEB8
-48B7
-8F07
-B378810F48CF
),
599 pointer_default(unique)
601 interface IShellItemFilter
: IUnknown
604 [in] IShellItem
*psi
);
606 HRESULT GetEnumFlagsForItem
(
607 [in] IShellItem
*psi
,
608 [out] SHCONTF
*pgrfFlags
);
611 /*****************************************************************************
614 typedef char *LPVIEWSETTINGS
;
618 FWF_AUTOARRANGE
= 0x00000001,
619 FWF_ABBREVIATEDNAMES
= 0x00000002,
620 FWF_SNAPTOGRID
= 0x00000004,
621 FWF_OWNERDATA
= 0x00000008,
622 FWF_BESTFITWINDOW
= 0x00000010,
623 FWF_DESKTOP
= 0x00000020,
624 FWF_SINGLESEL
= 0x00000040,
625 FWF_NOSUBFOLDERS
= 0x00000080,
626 FWF_TRANSPARENT
= 0x00000100,
627 FWF_NOCLIENTEDGE
= 0x00000200,
628 FWF_NOSCROLL
= 0x00000400,
629 FWF_ALIGNLEFT
= 0x00000800,
630 FWF_NOICONS
= 0x00001000,
631 FWF_SHOWSELALWAYS
= 0x00002000,
632 FWF_NOVISIBLE
= 0x00004000,
633 FWF_SINGLECLICKACTIVATE
= 0x00008000,
634 FWF_NOWEBVIEW
= 0x00010000,
635 FWF_HIDEFILENAMES
= 0x00020000,
636 FWF_CHECKSELECT
= 0x00040000,
637 FWF_NOENUMREFRESH
= 0x00080000,
638 FWF_NOGROUPING
= 0x00100000,
639 FWF_FULLROWSELECT
= 0x00200000,
640 FWF_NOFILTERS
= 0x00400000,
641 FWF_NOCOLUMNHEADER
= 0x00800000,
642 FWF_NOHEADERINALLVIEWS
= 0x01000000,
643 FWF_EXTENDEDTILES
= 0x02000000,
644 FWF_TRICHECKSELECT
= 0x04000000,
645 FWF_AUTOCHECKSELECT
= 0x08000000,
646 FWF_NOBROWSERVIEWSTATE
= 0x10000000,
647 FWF_SUBSETGROUPS
= 0x20000000,
648 FWF_USESEARCHFOLDER
= 0x40000000,
649 FWF_ALLOWRTLREADING
= 0x80000000
656 FVM_FIRST
= FVM_ICON
,
664 FVM_LAST
= FVM_CONTENT
671 } FOLDERSETTINGS
, *PFOLDERSETTINGS
, *LPFOLDERSETTINGS
;
672 typedef const FOLDERSETTINGS
*LPCFOLDERSETTINGS
;
674 /*****************************************************************************
675 * IShellIcon interface
678 uuid(000214e5
-0000-0000-c000
-000000000046),
680 pointer_default(unique)
682 interface IShellIcon
: IUnknown
685 [in] PCUITEMID_CHILD pidl
,
687 [out] int *pIconIndex
);
690 /*****************************************************************************
691 * IShellView interface
693 interface IShellBrowser
; /* forward declaration */
696 uuid(000214e3
-0000-0000-c000
-000000000046),
697 pointer_default(unique)
699 interface IShellView
: IOleWindow
701 typedef IShellView
*LPSHELLVIEW
;
703 cpp_quote
("#define SVSI_DESELECT 0x00000000")
704 cpp_quote
("#define SVSI_SELECT 0x00000001")
705 cpp_quote
("#define SVSI_EDIT 0x00000003")
706 cpp_quote
("#define SVSI_DESELECTOTHERS 0x00000004")
707 cpp_quote
("#define SVSI_ENSUREVISIBLE 0x00000008")
708 cpp_quote
("#define SVSI_FOCUSED 0x00000010")
709 cpp_quote
("#define SVSI_TRANSLATEPT 0x00000020")
710 cpp_quote
("#define SVSI_SELECTIONMARK 0x00000040")
711 cpp_quote
("#define SVSI_POSITIONITEM 0x00000080")
712 cpp_quote
("#define SVSI_CHECK 0x00000100")
713 cpp_quote
("#define SVSI_NOSTATECHANGE 0x80000000")
719 SVGIO_BACKGROUND
= 0x00000000,
720 SVGIO_SELECTION
= 0x00000001,
721 SVGIO_ALLVIEW
= 0x00000002,
722 SVGIO_CHECKED
= 0x00000003,
723 SVGIO_TYPE_MASK
= 0x0000000f,
724 SVGIO_FLAG_VIEWORDER
= 0x80000000,
729 SVUIA_DEACTIVATE
= 0,
730 SVUIA_ACTIVATE_NOFOCUS
= 1,
731 SVUIA_ACTIVATE_FOCUS
= 2,
732 SVUIA_INPLACEACTIVATE
= 3
735 HRESULT TranslateAccelerator
( [in] MSG
*pmsg
);
736 HRESULT EnableModeless
( [in] BOOL fEnable
);
737 HRESULT UIActivate
( [in] UINT uState
);
739 HRESULT CreateViewWindow
(
740 [in] IShellView
*psvPrevious
,
741 [in] LPCFOLDERSETTINGS lpfs
,
742 [in] IShellBrowser
*psb
,
746 HRESULT DestroyViewWindow
();
747 HRESULT GetCurrentInfo
( [out] LPFOLDERSETTINGS lpfs
);
749 [local] HRESULT AddPropertySheetPages
(
750 [in] DWORD dwReserved
,
751 [in] LPFNSVADDPROPSHEETPAGE pfn
,
754 HRESULT SaveViewState
();
756 [in] LPCITEMIDLIST pidlItem
,
758 HRESULT GetItemObject
(
761 [out, iid_is(riid
)] void **ppv
);
766 uuid(88e39e80
-3578-11cf
-ae69
-08002b2e1262
),
767 pointer_default(unique)
769 interface IShellView2
: IShellView
771 typedef GUID SHELLVIEWID
;
772 cpp_quote
("#include <pshpack8.h>")
773 typedef struct _SV2CVW2_PARAMS
777 LPCFOLDERSETTINGS pfs
;
778 IShellBrowser
*psbOwner
;
780 SHELLVIEWID
const *pvid
;
782 } SV2CVW2_PARAMS
, *LPSV2CVW2_PARAMS
;
783 cpp_quote
("#include <poppack.h>")
786 [in, out] SHELLVIEWID
*view_guid
,
789 HRESULT CreateViewWindow2
(
790 [in] LPSV2CVW2_PARAMS view_params
792 HRESULT HandleRename
(
793 [in] LPCITEMIDLIST new_pidl
795 HRESULT SelectAndPositionItem
(
796 [in] LPCITEMIDLIST item
,
802 /*****************************************************************************
803 * IFolderView interface
806 uuid(cde725b0
-ccc9
-4519-917e-325d72fab4ce
),
808 pointer_default(unique)
810 interface IFolderView
: IUnknown
812 HRESULT GetCurrentViewMode
( [out] UINT
*mode
);
813 HRESULT SetCurrentViewMode
( [in] UINT mode
);
814 HRESULT GetFolder
( [in] REFIID riid
, [out, iid_is(riid
)] void **ppv
);
817 [out] PITEMID_CHILD
*ppidl
826 [out, iid_is(riid
)] void **ppv
828 HRESULT GetSelectionMarkedItem
( [out] int *item
);
829 HRESULT GetFocusedItem
( [out] int *item
);
830 HRESULT GetItemPosition
(
831 [in] PCUITEMID_CHILD pidl
,
834 HRESULT GetSpacing
( [in, out, unique] POINT
* pt
);
835 HRESULT GetDefaultSpacing
( [out] POINT
* pt
);
836 HRESULT GetAutoArrange
();
841 HRESULT SelectAndPositionItems
(
843 [in, size_is(cidl
)] PCUITEMID_CHILD_ARRAY apidl
,
844 [in, unique, size_is(cidl
)] POINT
* apt
,
849 /*****************************************************************************
850 * IShellBrowser interface
854 uuid(000214e2
-0000-0000-c000
-000000000046),
855 pointer_default(unique)
857 interface IShellBrowser
: IOleWindow
859 typedef IShellBrowser
*LPSHELLBROWSER
;
861 cpp_quote
("#define SBSP_DEFBROWSER 0x00000000")
862 cpp_quote
("#define SBSP_SAMEBROWSER 0x00000001")
863 cpp_quote
("#define SBSP_NEWBROWSER 0x00000002")
864 cpp_quote
("#define SBSP_DEFMODE 0x00000000")
865 cpp_quote
("#define SBSP_OPENMODE 0x00000010")
866 cpp_quote
("#define SBSP_EXPLOREMODE 0x00000020")
867 cpp_quote
("#define SBSP_HELPMODE 0x00000040")
868 cpp_quote
("#define SBSP_NOTRANSFERHIST 0x00000080")
869 cpp_quote
("#define SBSP_ABSOLUTE 0x00000000")
870 cpp_quote
("#define SBSP_RELATIVE 0x00001000")
871 cpp_quote
("#define SBSP_PARENT 0x00002000")
872 cpp_quote
("#define SBSP_NAVIGATEBACK 0x00004000")
873 cpp_quote
("#define SBSP_NAVIGATEFORWARD 0x00008000")
874 cpp_quote
("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
875 cpp_quote
("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
876 cpp_quote
("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
877 cpp_quote
("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
878 cpp_quote
("#define SBSP_CREATENOHISTORY 0x00100000")
879 cpp_quote
("#define SBSP_PLAYNOSOUND 0x00200000")
880 cpp_quote
("#define SBSP_CALLERUNTURUSTED 0x00800000")
881 cpp_quote
("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
882 cpp_quote
("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
883 cpp_quote
("#define SBSP_NOAUTOSELECT 0x04000000")
884 cpp_quote
("#define SBSP_WRITENOHISTORY 0x08000000")
885 cpp_quote
("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
886 cpp_quote
("#define SBSP_FEEDNAVIGATION 0x20000000")
887 cpp_quote
("#define SBSP_REDIRECT 0x40000000")
888 cpp_quote
("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
890 cpp_quote
("#define FCW_STATUS 0x0001")
891 cpp_quote
("#define FCW_TOOLBAR 0x0002")
892 cpp_quote
("#define FCW_TREE 0x0003")
893 cpp_quote
("#define FCW_INTERNETBAR 0x0006")
894 cpp_quote
("#define FCW_PROGRESS 0x0008")
896 cpp_quote
("#define FCT_MERGE 0x0001")
897 cpp_quote
("#define FCT_CONFIGABLE 0x0002")
898 cpp_quote
("#define FCT_ADDTOEND 0x0004")
901 typedef LPARAM LPTBBUTTONSB
;
903 cpp_quote
("#include <commctrl.h>")
904 cpp_quote
("typedef LPTBBUTTON LPTBBUTTONSB;")
907 HRESULT InsertMenusSB
(
908 [in] HMENU hmenuShared
,
909 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths
);
912 [in] HMENU hmenuShared
,
913 [in] HOLEMENU holemenuReserved
,
914 [in] HWND hwndActiveObject
);
916 HRESULT RemoveMenusSB
( [in] HMENU hmenuShared
);
917 HRESULT SetStatusTextSB
( [in, unique] LPCOLESTR pszStatusText
);
918 HRESULT EnableModelessSB
( [in] BOOL fEnable
);
919 HRESULT TranslateAcceleratorSB
( [in] MSG
*pmsg
, [in] WORD wID
);
921 HRESULT BrowseObject
(
922 [in] LPCITEMIDLIST pidl
,
925 HRESULT GetViewStateStream
(
927 [out] IStream
**ppStrm
);
929 HRESULT GetControlWindow
(
933 [local] HRESULT SendControlMsg
(
940 HRESULT QueryActiveShellView
( [out] IShellView
**ppshv
);
941 HRESULT OnViewWindowActive
( [in] IShellView
*pshv
);
944 HRESULT SetToolbarItems
(
945 [in] LPTBBUTTONSB lpButtons
,
951 /*****************************************************************************
952 * IShellLinkA interface
956 uuid(000214ee
-0000-0000-c000
-000000000046),
957 pointer_default(unique)
959 interface IShellLinkA
: IUnknown
964 SLR_ANY_MATCH
= 0x0002,
966 SLR_NOUPDATE
= 0x0008,
967 SLR_NOSEARCH
= 0x0010,
968 SLR_NOTRACK
= 0x0020,
969 SLR_NOLINKINFO
= 0x0040,
970 SLR_INVOKE_MSI
= 0x0080,
971 SLR_NO_UI_WITH_MSG_PUMP
= 0x0101,
976 SLGP_SHORTPATH
= 0x0001,
977 SLGP_UNCPRIORITY
= 0x0002,
978 SLGP_RAWPATH
= 0x0004,
982 [out, size_is(cch
)] LPSTR pszFile
,
984 [in, out, unique] WIN32_FIND_DATAA
*pfd
,
987 HRESULT GetIDList
( [out] LPITEMIDLIST
* ppidl
);
989 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
991 HRESULT GetDescription
(
992 [out, size_is(cch
)] LPSTR pszName
,
995 HRESULT SetDescription
( [in] LPCSTR pszName
);
997 HRESULT GetWorkingDirectory
(
998 [out, size_is(cch
)] LPSTR pszDir
,
1001 HRESULT SetWorkingDirectory
( [in] LPCSTR pszDir
);
1003 HRESULT GetArguments
(
1004 [out, size_is(cch
)] LPSTR pszArgs
,
1007 HRESULT SetArguments
( [in] LPCSTR pszArgs
);
1009 HRESULT GetHotkey
( [out] WORD
*pwHotkey
);
1011 HRESULT SetHotkey
( [in] WORD wHotkey
);
1013 HRESULT GetShowCmd
( [out] int *piShowCmd
);
1015 HRESULT SetShowCmd
( [in] int iShowCmd
);
1017 HRESULT GetIconLocation
(
1018 [out, size_is(cch
)] LPSTR pszIconPath
,
1022 HRESULT SetIconLocation
(
1023 [in] LPCSTR pszIconPath
,
1026 HRESULT SetRelativePath
(
1027 [in] LPCSTR pszPathRel
,
1028 [in] DWORD dwReserved
);
1034 HRESULT SetPath
( [in] LPCSTR pszFile
);
1038 /*****************************************************************************
1039 * IShellLinkW interface
1043 uuid(000214f9
-0000-0000-c000
-000000000046),
1044 pointer_default(unique)
1046 interface IShellLinkW
: IUnknown
1049 [out, size_is(cch
)] LPWSTR pszFile
,
1051 [in, out] WIN32_FIND_DATAW
*pfd
,
1054 HRESULT GetIDList
( [out] LPITEMIDLIST
* ppidl
);
1056 HRESULT SetIDList
( [in] LPCITEMIDLIST pidl
);
1058 HRESULT GetDescription
(
1059 [out, size_is(cch
)] LPWSTR pszName
,
1062 HRESULT SetDescription
( [in] LPCWSTR pszName
);
1064 HRESULT GetWorkingDirectory
(
1065 [out, size_is(cch
)] LPWSTR pszDir
,
1068 HRESULT SetWorkingDirectory
( [in] LPCWSTR pszDir
);
1070 HRESULT GetArguments
(
1071 [out, size_is(cch
)] LPWSTR pszArgs
,
1074 HRESULT SetArguments
( [in] LPCWSTR pszArgs
);
1076 HRESULT GetHotkey
( [out] WORD
*pwHotkey
);
1078 HRESULT SetHotkey
( [in] WORD wHotkey
);
1080 HRESULT GetShowCmd
( [out] int *piShowCmd
);
1082 HRESULT SetShowCmd
( [in] int iShowCmd
);
1084 HRESULT GetIconLocation
(
1085 [out, size_is(cch
)] LPWSTR pszIconPath
,
1089 HRESULT SetIconLocation
(
1090 [in] LPCWSTR pszIconPath
,
1093 HRESULT SetRelativePath
(
1094 [in] LPCWSTR pszPathRel
,
1095 [in] DWORD dwReserved
);
1101 HRESULT SetPath
( [in] LPCWSTR pszFile
);
1104 cpp_quote
("#define IShellLink WINELIB_NAME_AW(IShellLink)")
1107 /*****************************************************************************
1108 * IShellExtInit interface
1112 uuid(000214e8
-0000-0000-c000
-000000000046),
1113 pointer_default(unique),
1116 interface IShellExtInit
: IUnknown
1118 typedef IShellExtInit
*LPSHELLEXTINIT
;
1121 [in] LPCITEMIDLIST pidlFolder
,
1122 [in] IDataObject
*pdtobj
,
1123 [in] HKEY hkeyProgID
);
1127 /*******************************************************************************/
1128 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
1129 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
1130 /* them here anyway. */
1131 /*******************************************************************************/
1134 #define MAX_PATH
260
1138 /*****************************************************************************
1139 * IPersistFolder3 interface
1143 uuid(cef04fdf
-fe72
-11d2
-87a5
-00c04f6837cf
),
1144 pointer_default(unique)
1146 interface IPersistFolder3
: IPersistFolder2
1150 LPITEMIDLIST pidlTargetFolder
;
1151 WCHAR szTargetParsingName
[MAX_PATH
];
1152 WCHAR szNetworkProvider
[MAX_PATH
];
1155 } PERSIST_FOLDER_TARGET_INFO
;
1157 HRESULT InitializeEx
(
1159 [in] LPCITEMIDLIST pidlRoot
,
1160 [in] const PERSIST_FOLDER_TARGET_INFO
*ppfti
);
1162 HRESULT GetFolderTargetInfo
( [out] PERSIST_FOLDER_TARGET_INFO
*ppfti
);
1166 /*****************************************************************************
1167 * IExtractIconA interface
1171 uuid(000214eb
-0000-0000-c000
-000000000046),
1172 pointer_default(unique),
1175 interface IExtractIconA
: IUnknown
1177 cpp_quote
("#define GIL_OPENICON 0x0001")
1178 cpp_quote
("#define GIL_FORSHELL 0x0002")
1179 cpp_quote
("#define GIL_ASYNC 0x0020")
1180 cpp_quote
("#define GIL_DEFAULTICON 0x0040")
1181 cpp_quote
("#define GIL_FORSHORTCUT 0x0080")
1183 cpp_quote
("#define GIL_SIMULATEDOC 0x0001")
1184 cpp_quote
("#define GIL_PERINSTANCE 0x0002")
1185 cpp_quote
("#define GIL_PERCLASS 0x0004")
1186 cpp_quote
("#define GIL_NOTFILENAME 0x0008")
1187 cpp_quote
("#define GIL_DONTCACHE 0x0010")
1189 typedef IExtractIconA
*LPEXTRACTICONA
;
1191 HRESULT GetIconLocation
(
1193 [out, size_is(cchMax
)] LPSTR szIconFile
,
1196 [out] UINT
*pwFlags
);
1199 [in] LPCSTR pszFile
,
1200 [in] UINT nIconIndex
,
1201 [out] HICON
*phiconLarge
,
1202 [out] HICON
*phiconSmall
,
1203 [in] UINT nIconSize
);
1207 /*****************************************************************************
1208 * IExtractIconW interface
1212 uuid(000214fa
-0000-0000-c000
-000000000046),
1213 pointer_default(unique),
1216 interface IExtractIconW
: IUnknown
1218 typedef IExtractIconW
*LPEXTRACTICONW
;
1220 HRESULT GetIconLocation
(
1222 [out, size_is(cchMax
)] LPWSTR szIconFile
,
1225 [out] UINT
*pwFlags
);
1228 [in] LPCWSTR pszFile
,
1229 [in] UINT nIconIndex
,
1230 [out] HICON
*phiconLarge
,
1231 [out] HICON
*phiconSmall
,
1232 [in] UINT nIconSize
);
1235 cpp_quote
("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1236 cpp_quote
("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1239 /*****************************************************************************
1240 * ICommDlgBrowser interface
1244 uuid(000214f1
-0000-0000-c000
-000000000046),
1245 pointer_default(unique)
1247 interface ICommDlgBrowser
: IUnknown
1249 cpp_quote
("#define CDBOSC_SETFOCUS 0x00000000")
1250 cpp_quote
("#define CDBOSC_KILLFOCUS 0x00000001")
1251 cpp_quote
("#define CDBOSC_SELCHANGE 0x00000002")
1252 cpp_quote
("#define CDBOSC_RENAME 0x00000003")
1253 cpp_quote
("#define CDBOSC_STATECHANGE 0x00000004")
1255 typedef ICommDlgBrowser
*LPCOMMDLGBROWSER
;
1257 HRESULT OnDefaultCommand
( [in] IShellView
*shv
);
1258 HRESULT OnStateChange
( [in] IShellView
*shv
, [in] ULONG uChange
);
1259 HRESULT IncludeObject
( [in] IShellView
*shv
, [in] LPCITEMIDLIST pidl
);
1263 /*****************************************************************************
1264 * ICommDlgBrowser2 interface
1268 uuid(10339516-2894-11D2
-9039-00C04F8EEB3E
),
1269 pointer_default(unique)
1271 interface ICommDlgBrowser2
: ICommDlgBrowser
1275 [in] IShellView
*ppshv
,
1276 [in] DWORD dwNotifyType
);
1278 HRESULT GetDefaultMenuText
(
1279 [in] IShellView
*ppshv
,
1280 [out, string, size_is(cchMax
)] LPWSTR pszText
,
1283 HRESULT GetViewFlags
(
1284 [out] DWORD
*pdwFlags
);
1288 /*****************************************************************************
1289 * ICommDlgBrowser3 interface
1293 uuid(C8AD25A1
-3294-41EE
-8165-71174BD01C57
),
1294 pointer_default(unique)
1296 interface ICommDlgBrowser3
: ICommDlgBrowser2
1299 HRESULT OnColumnClicked
(
1300 [in] IShellView
*ppshv
,
1303 HRESULT GetCurrentFilter
(
1304 [out, string, size_is(cchFileSpec
)] LPWSTR pszFileSpec
,
1305 [in] int cchFileSpec
);
1307 HRESULT OnPreviewCreated
(
1308 [in] IShellView
*ppshv
);
1311 /*****************************************************************************
1312 * IDockingWindow interface
1316 uuid(012dd920
-7b26
-11d0
-8ca9
-00a0c92dbfe8
)
1318 interface IDockingWindow
: IOleWindow
1324 [in] DWORD dwReserved
);
1326 HRESULT ResizeBorderDW
(
1327 [in] LPCRECT prcBorder
,
1328 [in] IUnknown
*punkToolbarSite
,
1329 [in] BOOL fReserved
);
1333 /*****************************************************************************
1334 * IDockingWindowFrame interface
1338 uuid(47d2657a
-7b27
-11d0
-8ca9
-00a0c92dbfe8
),
1339 pointer_default(unique),
1342 interface IDockingWindowFrame
: IOleWindow
1344 cpp_quote
("#define DWFRF_NORMAL 0x0000")
1345 cpp_quote
("#define DWFRF_DELETECONFIGDATA 0x0001")
1346 cpp_quote
("#define DWFAF_HIDDEN 0x0001")
1349 [in] IUnknown
*punkSrc
,
1350 [in] LPCWSTR pwszItem
,
1351 [in] DWORD dwAddFlags
);
1353 HRESULT RemoveToolbar
(
1354 [in] IUnknown
*punkSrc
,
1355 [in] DWORD dwRemoveFlags
);
1357 HRESULT FindToolbar
(
1358 [in] LPCWSTR pwszItem
,
1360 [out] LPVOID
*ppvObj
);
1364 /*****************************************************************************
1365 * IDragSourceHelper interface
1369 uuid(de5bf786
-477a
-11d2
-839d
-00c04fd918d0
),
1370 pointer_default(unique),
1373 interface IDragSourceHelper
: IUnknown
1379 HBITMAP hbmpDragImage
;
1380 COLORREF crColorKey
;
1381 } SHDRAGIMAGE
, *LPSHDRAGIMAGE
;
1383 HRESULT InitializeFromBitmap
(
1384 [in] LPSHDRAGIMAGE pshdi
,
1385 [in] IDataObject
*pDataObject
);
1387 HRESULT InitializeFromWindow
(
1390 [in] IDataObject
*pDataObject
);
1394 /*****************************************************************************
1395 * IDropTargetHelper interface
1399 uuid(4657278b
-411b
-11d2
-839a
-00c04fd918d0
),
1400 pointer_default(unique),
1403 interface IDropTargetHelper
: IUnknown
1406 [in] HWND hwndTarget
,
1407 [in] IDataObject
*pDataObject
,
1409 [in] DWORD dwEffect
);
1411 HRESULT DragLeave
();
1415 [in] DWORD dwEffect
);
1418 [in] IDataObject
*pDataObject
,
1420 [in] DWORD dwEffect
);
1422 HRESULT Show
( [in] BOOL fShow
);
1426 /*****************************************************************************
1427 * IContextMenu interface
1431 uuid(000214e4
-0000-0000-c000
-000000000046),
1432 pointer_default(unique),
1435 interface IContextMenu
: IUnknown
1437 cpp_quote
("#define CMF_NORMAL 0x00000000")
1438 cpp_quote
("#define CMF_DEFAULTONLY 0x00000001")
1439 cpp_quote
("#define CMF_VERBSONLY 0x00000002")
1440 cpp_quote
("#define CMF_EXPLORE 0x00000004")
1441 cpp_quote
("#define CMF_NOVERBS 0x00000008")
1442 cpp_quote
("#define CMF_CANRENAME 0x00000010")
1443 cpp_quote
("#define CMF_NODEFAULT 0x00000020")
1444 cpp_quote
("#define CMF_INCLUDESTATIC 0x00000040")
1445 cpp_quote
("#define CMF_EXTENDEDVERBS 0x00000100")
1446 cpp_quote
("#define CMF_RESERVED 0xffff0000")
1448 cpp_quote
("#define GCS_VERBA 0x00000000")
1449 cpp_quote
("#define GCS_HELPTEXTA 0x00000001")
1450 cpp_quote
("#define GCS_VALIDATEA 0x00000002")
1451 cpp_quote
("#define GCS_VERBW 0x00000004")
1452 cpp_quote
("#define GCS_HELPTEXTW 0x00000005")
1453 cpp_quote
("#define GCS_VALIDATEW 0x00000006")
1454 cpp_quote
("#define GCS_UNICODE 0x00000004")
1455 cpp_quote
("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1456 cpp_quote
("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1457 cpp_quote
("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1459 cpp_quote
("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1460 cpp_quote
("#define CMDSTR_VIEWLISTA \"ViewList\"")
1461 cpp_quote
("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1462 cpp_quote
("#if defined(__GNUC__)")
1463 cpp_quote
("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1464 cpp_quote
("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1465 cpp_quote
("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1466 cpp_quote
("#elif defined(_MSC_VER)")
1467 cpp_quote
("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1468 cpp_quote
("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1469 cpp_quote
("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1471 cpp_quote
("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1472 cpp_quote
("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1473 cpp_quote
("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1475 cpp_quote
("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1476 cpp_quote
("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1477 cpp_quote
("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1479 cpp_quote
("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1480 cpp_quote
("#define CMIC_MASK_ICON SEE_MASK_ICON")
1481 cpp_quote
("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1482 cpp_quote
("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1483 cpp_quote
("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1484 cpp_quote
("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1485 cpp_quote
("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1486 cpp_quote
("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1487 cpp_quote
("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1488 cpp_quote
("#define CMIC_MASK_NOASYNC SEE_MASK_NOASYNC")
1489 cpp_quote
("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1490 cpp_quote
("#define CMIC_MASK_PTINVOKE 0x20000000")
1491 cpp_quote
("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1492 cpp_quote
("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1493 cpp_quote
("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1495 typedef IContextMenu
*LPCONTEXTMENU
;
1497 typedef struct tagCMINVOKECOMMANDINFO
1503 LPCSTR lpParameters
;
1508 } CMINVOKECOMMANDINFO
, *LPCMINVOKECOMMANDINFO
;
1510 typedef struct tagCMInvokeCommandInfoEx
1516 LPCSTR lpParameters
;
1523 LPCWSTR lpParametersW
;
1524 LPCWSTR lpDirectoryW
;
1527 } CMINVOKECOMMANDINFOEX
, *LPCMINVOKECOMMANDINFOEX
;
1529 HRESULT QueryContextMenu
(
1531 [in] UINT indexMenu
,
1532 [in] UINT idCmdFirst
,
1533 [in] UINT idCmdLast
,
1536 HRESULT InvokeCommand
( [in] LPCMINVOKECOMMANDINFO lpici
);
1538 HRESULT GetCommandString
(
1539 [in] UINT_PTR idCmd
,
1541 [out] UINT
*pwReserved
,
1542 [out, size_is(cchMax
)] LPSTR pszName
,
1547 /*****************************************************************************
1548 * IContextMenu2 interface
1552 uuid(000214f4
-0000-0000-c000
-000000000046),
1553 pointer_default(unique),
1556 interface IContextMenu2
: IContextMenu
1558 typedef IContextMenu2
*LPCONTEXTMENU2
;
1560 HRESULT HandleMenuMsg
(
1563 [in] LPARAM lParam
);
1567 /*****************************************************************************
1568 * IContextMenu3 interface
1572 uuid(bcfce0a0
-ec17
-11d0
-8d10
-00a0c90f2719
),
1573 pointer_default(unique),
1576 interface IContextMenu3
: IContextMenu2
1578 typedef IContextMenu3
*LPCONTEXTMENU3
;
1580 HRESULT HandleMenuMsg2
(
1584 [out] LRESULT
*plResult
);
1588 /*****************************************************************************
1589 * IShellExecuteHookA interface
1593 uuid(000214f5
-0000-0000-c000
-000000000046),
1594 pointer_default(unique),
1597 interface IShellExecuteHookA
: IUnknown
1599 cpp_quote
("struct _SHELLEXECUTEINFOA;")
1601 [in, out] struct _SHELLEXECUTEINFOA
* pei
);
1605 /*****************************************************************************
1606 * IShellExecuteHookW interface
1610 uuid(000214fb
-0000-0000-c000
-000000000046),
1611 pointer_default(unique),
1614 interface IShellExecuteHookW
: IUnknown
1616 cpp_quote
("struct _SHELLEXECUTEINFOW;")
1618 [in, out] struct _SHELLEXECUTEINFOW
* pei
);
1621 /*****************************************************************************
1622 * IShellLinkDataList interface
1626 uuid(45e2b4ae
-b1c3
-11d0
-b92f
-00a0c90312e1
),
1627 pointer_default(unique)
1629 interface IShellLinkDataList
: IUnknown
1631 [local] HRESULT AddDataBlock
(
1632 [in] void *pDataBlock
);
1633 [local] HRESULT CopyDataBlock
(
1635 [out] void **ppDataBlock
);
1636 HRESULT RemoveDataBlock
(
1639 [out] DWORD
*pdwFlags
);
1641 [in] DWORD dwFlags
);
1645 /*****************************************************************************
1646 * IResolveShellLink interface
1650 uuid(5cd52983
-9449-11d2
-963a
-00c04f79adf0
),
1651 pointer_default(unique)
1653 interface IResolveShellLink
: IUnknown
1655 HRESULT ResolveShellLink
(
1656 [in] IUnknown
*punk
,
1662 /*****************************************************************************
1663 * IURLSearchHook interface
1667 uuid(ac60f6a0
-0fd9
-11d0
-99cb
-00c04fd64497
),
1668 pointer_default(unique),
1671 interface IURLSearchHook
: IUnknown
1674 [in, out] LPWSTR lpwszSearchURL
,
1675 [in] DWORD cchBufferSize
);
1679 /*****************************************************************************
1680 * ISearchContext interface
1684 uuid(09f656a2
-41af
-480c
-88f7
-16cc0d164615
),
1685 pointer_default(unique),
1688 interface ISearchContext
: IUnknown
1690 HRESULT GetSearchUrl
(
1691 [in] BSTR *pbstrSearchUrl
);
1692 HRESULT GetSearchText
(
1693 [in] BSTR *pbstrSearchText
);
1694 HRESULT GetSearchStyle
(
1695 [in] BSTR *pdwSearchStyle
);
1699 /*****************************************************************************
1700 * IURLSearchHook2 interface
1704 uuid(5ee44da4
-6d32
-46e3
-86bc
-07540dedd0e0
),
1705 pointer_default(unique),
1708 interface IURLSearchHook2
: IURLSearchHook
1710 HRESULT TranslateWithSearchContext
(
1711 [in, out] LPWSTR lpwszSearchURL
,
1712 [in] DWORD cchBufferSize
,
1713 [in] ISearchContext
*pSearchContext
);
1717 cpp_quote
("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1719 /*****************************************************************************
1720 * INewShortcutHookA interface
1724 uuid(000214e1
-0000-0000-c000
-000000000046),
1725 pointer_default(unique),
1728 interface INewShortcutHookA
: IUnknown
1730 HRESULT SetReferent
(
1731 [in] LPCSTR pcszReferent
,
1733 HRESULT GetReferent
(
1734 [out] LPSTR pcszReferent
,
1735 [in] int cchReferent
);
1737 [in] LPCSTR pcszReferent
);
1739 [out] LPSTR pcszReferent
,
1740 [in] int cchFolder
);
1742 [out] LPSTR pszName
,
1744 HRESULT GetExtension
(
1745 [out] LPSTR pszExtension
,
1746 [in] int cchExtension
);
1750 /*****************************************************************************
1751 * INewShortcutHookW interface
1755 uuid(000214f7
-0000-0000-c000
-000000000046),
1756 pointer_default(unique),
1759 interface INewShortcutHookW
: IUnknown
1761 HRESULT SetReferent
(
1762 [in] LPCWSTR pcszReferent
,
1764 HRESULT GetReferent
(
1765 [out] LPWSTR pcszReferent
,
1766 [in] int cchReferent
);
1768 [in] LPCWSTR pcszReferent
);
1770 [out] LPWSTR pcszReferent
,
1771 [in] int cchFolder
);
1773 [out] LPWSTR pszName
,
1775 HRESULT GetExtension
(
1776 [out] LPWSTR pszExtension
,
1777 [in] int cchExtension
);
1780 /*****************************************************************************
1781 * IRunnableTask interface
1785 uuid(85788d00
-6807-11d0
-b810
-00c04fd706ec
),
1786 pointer_default(unique),
1789 interface IRunnableTask
: IUnknown
1792 HRESULT Kill
([in] BOOL fWait
);
1798 /*****************************************************************************
1799 * IShellChangeNotify interface
1803 uuid(d82be2b1
-5764-11d0
-a96e
-00c04fd705a2
),
1804 pointer_default(unique),
1807 interface IShellChangeNotify
: IUnknown
1811 [in] LPCITEMIDLIST pidl1
,
1812 [in] LPCITEMIDLIST pidl2
);
1815 /*****************************************************************************
1816 * IFileSystemBindData interface
1820 uuid(01e18d10
-4d8b
-11d2
-855d
-006008059367),
1821 pointer_default(unique),
1824 interface IFileSystemBindData
: IUnknown
1826 HRESULT SetFindData
(
1827 [in] const WIN32_FIND_DATAW
*pfd
);
1828 HRESULT GetFindData
(
1829 [out] WIN32_FIND_DATAW
*pfd
);
1832 /*****************************************************************************
1833 * ITaskbarList interface
1837 uuid(56FDF342
-FD6D
-11d0
-958A
-006097C9A090
),
1838 pointer_default(unique)
1840 interface ITaskbarList
: IUnknown
1850 HRESULT ActivateTab
(
1853 HRESULT SetActiveAlt
(
1857 cpp_quote
("EXTERN_C const CLSID CLSID_TaskbarList;")
1859 /*****************************************************************************
1860 * ITaskbarList2 interface
1864 uuid(602D4995
-B13A
-429B
-A66E
-1935E44F4317
),
1865 pointer_default(unique)
1867 interface ITaskbarList2
: ITaskbarList
1869 HRESULT MarkFullscreenWindow
(
1871 [in] BOOL fullscreen
);
1874 /*****************************************************************************
1875 * IAutoCompleteDropDown interface
1879 uuid(3CD141F4
-3C6A
-11d2
-BCAA
-00C04FD929DB
),
1880 pointer_default(unique)
1882 interface IAutoCompleteDropDown
: IUnknown
1884 cpp_quote
("#define ACDD_VISIBLE 0x0001")
1886 HRESULT GetDropDownStatus
(
1887 [out] DWORD
*pdwFlags
,
1888 [out, string] LPWSTR
*ppwszString
);
1890 HRESULT ResetEnumerator
();
1895 uuid(cb728b20
-f786
-11ce
-92ad
-00aa00a74cd0
),
1896 pointer_default(unique)
1898 interface IProfferService
: IUnknown
1900 HRESULT ProfferService
(
1901 [in] REFGUID service
,
1902 [in] IServiceProvider
*pService
,
1903 [out] DWORD
*pCookie
);
1905 HRESULT RevokeService
([in] DWORD cookie
);
1908 /*****************************************************************************
1909 * IExplorerBrowserEvents interface
1913 uuid(361BBDC7
-E6EE
-4E13
-BE58
-58E2240C810F
)
1915 interface IExplorerBrowserEvents
: IUnknown
1917 HRESULT OnNavigationPending
(
1918 [in] PCIDLIST_ABSOLUTE pidlFolder
);
1920 HRESULT OnViewCreated
(
1921 [in] IShellView
*psv
);
1923 HRESULT OnNavigationComplete
(
1924 [in] PCIDLIST_ABSOLUTE pidlFolder
);
1926 HRESULT OnNavigationFailed
(
1927 [in] PCIDLIST_ABSOLUTE pidlFolder
);
1930 typedef GUID EXPLORERPANE
;
1931 typedef EXPLORERPANE
*REFEXPLORERPANE
;
1933 cpp_quote
("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
1935 /*****************************************************************************
1936 * IExplorerPaneVisibility interface
1940 uuid(E07010EC
-BC17
-44C0
-97B0
-46C7C95B9EDC
)
1942 interface IExplorerPaneVisibility
: IUnknown
1944 typedef enum tagEXPLORERPANESTATE
{
1946 EPS_DEFAULT_ON
= 0x1,
1947 EPS_DEFAULT_OFF
= 0x2,
1948 EPS_STATE_MASK
= 0xffff,
1949 EPS_INITIALSTATE
= 0x10000,
1951 } EXPLORERPANESTATE
;
1953 HRESULT GetPaneState
(
1954 [in] REFEXPLORERPANE ep
,
1955 [out] EXPLORERPANESTATE
*peps
);
1958 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS
{
1960 EBF_SELECTFROMDATAOBJECT
= 0x100,
1961 EBF_NODROPTARGET
= 0x200
1962 } EXPLORER_BROWSER_FILL_FLAGS
;
1964 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS
{
1966 EBO_NAVIGATEONCE
= 0x01,
1967 EBO_SHOWFRAMES
= 0x02,
1968 EBO_ALWAYSNAVIGATE
= 0x04,
1969 EBO_NOTRAVELLOG
= 0x08,
1970 EBO_NOWRAPPERWINDOW
= 0x10,
1971 EBO_HTMLSHAREPOINTVIEW
= 0x20
1972 } EXPLORER_BROWSER_OPTIONS
;
1974 cpp_quote
("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
1976 /*****************************************************************************
1977 * IExplorerBrowser interface
1981 uuid(DFD3B6B5
-C10C
-4BE9
-85F6
-A66969F402F6
),
1982 pointer_default(unique)
1984 interface IExplorerBrowser
: IUnknown
1987 [local] HRESULT Initialize
(
1988 [in] HWND hwndParent
,
1989 [in] const RECT
*prc
,
1990 [in, unique] const FOLDERSETTINGS
*pfs
);
1994 [local] HRESULT SetRect
(
1995 [in,out,unique] HDWP
*phdwp
,
1996 [in] RECT rcBrowser
);
1998 HRESULT SetPropertyBag
(
1999 [in, string] LPCWSTR pszPropertyBag
);
2001 HRESULT SetEmptyText
(
2002 [in, string] LPCWSTR pszEmptyText
);
2004 HRESULT SetFolderSettings
(
2005 [in] const FOLDERSETTINGS
*pfs
);
2008 [in] IExplorerBrowserEvents
*psbe
,
2009 [out] DWORD
*pdwCookie
);
2012 [in] DWORD dwCookie
);
2015 [in] EXPLORER_BROWSER_OPTIONS dwFlag
);
2018 [out] EXPLORER_BROWSER_OPTIONS
*pdwFlag
);
2020 HRESULT BrowseToIDList
(
2021 [in] PCUIDLIST_RELATIVE pidl
,
2024 HRESULT BrowseToObject
(
2025 [in] IUnknown
*punk
,
2028 HRESULT FillFromObject
(
2029 [in] IUnknown
*punk
,
2030 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags
);
2032 HRESULT RemoveAll
();
2034 HRESULT GetCurrentView
(
2036 [out, iid_is(riid
)] void **ppv
);
2039 /*****************************************************************************
2040 * INameSpaceTreeControl interface
2044 uuid(028212A3
-B627
-47E9
-8856-C14265554E4F
)
2046 interface INameSpaceTreeControl
: IUnknown
2048 [v1_enum] enum _NSTCSTYLE
{
2049 NSTCS_HASEXPANDOS
= 0x00000001,
2050 NSTCS_HASLINES
= 0x00000002,
2051 NSTCS_SINGLECLICKEXPAND
= 0x00000004,
2052 NSTCS_FULLROWSELECT
= 0x00000008,
2053 NSTCS_SPRINGEXPAND
= 0x00000010,
2054 NSTCS_HORIZONTALSCROLL
= 0x00000020,
2055 NSTCS_ROOTHASEXPANDO
= 0x00000040,
2056 NSTCS_SHOWSELECTIONALWAYS
= 0x00000080,
2057 NSTCS_NOINFOTIP
= 0x00000200,
2058 NSTCS_EVENHEIGHT
= 0x00000400,
2059 NSTCS_NOREPLACEOPEN
= 0x00000800,
2060 NSTCS_DISABLEDRAGDROP
= 0x00001000,
2061 NSTCS_NOORDERSTREAM
= 0x00002000,
2062 NSTCS_RICHTOOLTIP
= 0x00004000,
2063 NSTCS_BORDER
= 0x00008000,
2064 NSTCS_NOEDITLABELS
= 0x00010000,
2065 NSTCS_TABSTOP
= 0x00020000,
2066 NSTCS_FAVORITESMODE
= 0x00080000,
2067 NSTCS_AUTOHSCROLL
= 0x00100000,
2068 NSTCS_FADEINOUTEXPANDOS
= 0x00200000,
2069 NSTCS_EMPTYTEXT
= 0x00400000,
2070 NSTCS_CHECKBOXES
= 0x00800000,
2071 NSTCS_PARTIALCHECKBOXES
= 0x01000000,
2072 NSTCS_EXCLUSIONCHECKBOXES
= 0x02000000,
2073 NSTCS_DIMMEDCHECKBOXES
= 0x04000000,
2074 NSTCS_NOINDENTCHECKS
= 0x08000000,
2075 NSTCS_ALLOWJUNCTIONS
= 0x10000000,
2076 NSTCS_SHOWTABSBUTTON
= 0x20000000,
2077 NSTCS_SHOWDELETEBUTTON
= 0x40000000,
2078 NSTCS_SHOWREFRESHBUTTON
= (int)0x80000000
2080 typedef DWORD NSTCSTYLE
;
2082 [v1_enum] enum _NSTCROOTSTYLE
{
2083 NSTCRS_VISIBLE
= 0x0000,
2084 NSTCRS_HIDDEN
= 0x0001,
2085 NSTCRS_EXPANDED
= 0x0002
2087 typedef DWORD NSTCROOTSTYLE
;
2089 [v1_enum] enum _NSTCITEMSTATE
{
2090 NSTCIS_NONE
= 0x0000,
2091 NSTCIS_SELECTED
= 0x0001,
2092 NSTCIS_EXPANDED
= 0x0002,
2093 NSTCIS_BOLD
= 0x0004,
2094 NSTCIS_DISABLED
= 0x0008,
2095 NSTCIS_SELECTEDNOEXPAND
= 0x0010
2097 typedef DWORD NSTCITEMSTATE
;
2099 typedef [v1_enum] enum NSTCGNI
{
2101 NSTCGNI_NEXTVISIBLE
= 1,
2103 NSTCGNI_PREVVISIBLE
= 3,
2106 NSTCGNI_FIRSTVISIBLE
= 6,
2107 NSTCGNI_LASTVISIBLE
= 7
2111 [in] HWND hwndParent
,
2112 [in, unique] RECT
*prc
,
2113 [in] NSTCSTYLE nstcsFlags
);
2116 [in] IUnknown
*punk
,
2117 [out] DWORD
*pdwCookie
);
2119 HRESULT TreeUnadvise
(
2120 [in] DWORD dwCookie
);
2123 [in] IShellItem
*psiRoot
,
2124 [in] SHCONTF grfEnumFlags
,
2125 [in] NSTCROOTSTYLE grfRootStyle
,
2126 [in, unique] IShellItemFilter
*pif
);
2130 [in] IShellItem
*psiRoot
,
2131 [in] SHCONTF grfEnumFlags
,
2132 [in] NSTCROOTSTYLE grfRootStyle
,
2133 [in, unique] IShellItemFilter
*pif
);
2136 [in] IShellItem
*psiRoot
);
2138 HRESULT RemoveAllRoots
();
2140 HRESULT GetRootItems
(
2141 [out] IShellItemArray
**ppsiaRootItems
);
2143 HRESULT SetItemState
(
2144 [in] IShellItem
*psi
,
2145 [in] NSTCITEMSTATE nstcisMask
,
2146 [in] NSTCITEMSTATE nstcisFlags
);
2148 HRESULT GetItemState
(
2149 [in] IShellItem
*psi
,
2150 [in] NSTCITEMSTATE nstcismask
,
2151 [out] NSTCITEMSTATE
*pnstcisFlags
);
2153 HRESULT GetSelectedItems
(
2154 [out] IShellItemArray
**psiaItems
);
2156 HRESULT GetItemCustomState
(
2157 [in] IShellItem
*psi
,
2158 [out] int *piStateNumber
);
2160 HRESULT SetItemCustomState
(
2161 [in] IShellItem
*psi
,
2162 [in] int iStateNumber
);
2164 HRESULT EnsureItemVisible
(
2165 [in] IShellItem
*psi
);
2168 [in, string] LPCWSTR pszTheme
);
2170 HRESULT GetNextItem
(
2171 [in, unique] IShellItem
*psi
,
2172 [in] NSTCGNI nstcgi
,
2173 [out] IShellItem
**ppsiNext
);
2177 [out] IShellItem
**ppsiOut
);
2179 HRESULT GetItemRect
(
2180 [in] IShellItem
*psi
,
2183 HRESULT CollapseAll
();
2186 /*****************************************************************************
2187 * INameSpaceTreeControl2 interface
2191 uuid(7CC7AED8
-290E-49BC
-8945-C1401CC9306C
)
2193 interface INameSpaceTreeControl2
: INameSpaceTreeControl
2195 typedef [v1_enum] enum NSTCSTYLE2
{
2196 NSTCS2_DEFAULT
= 0x00,
2197 NSTCS2_INTERRUPTNOTIFICATIONS
= 0x01,
2198 NSTCS2_SHOWNULLSPACEMENU
= 0x02,
2199 NSTCS2_DISPLAYPADDING
= 0x04,
2200 NSTCS2_DISPLAYPINNEDONLY
= 0x08,
2201 NTSCS2_NOSINGLETONAUTOEXPAND
= 0x10, /* The apparent typo here is */
2202 NTSCS2_NEVERINSERTNONENUMERATED
= 0x20 /* present also in the Win SDK */
2204 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(NSTCSTYLE2)")
2206 HRESULT SetControlStyle
(
2207 [in] NSTCSTYLE nstcsMask
,
2208 [in] NSTCSTYLE nstcsStyle
);
2210 HRESULT GetControlStyle
(
2211 [in] NSTCSTYLE nstcsMask
,
2212 [out] NSTCSTYLE
*pnstcsStyle
);
2214 HRESULT SetControlStyle2
(
2215 [in] NSTCSTYLE2 nstcsMask
,
2216 [in] NSTCSTYLE2 nstcsStyle
);
2218 HRESULT GetControlStyle2
(
2219 [in] NSTCSTYLE2 nstcsMask
,
2220 [out] NSTCSTYLE2
*pnstcsStyle
);
2223 /*****************************************************************************
2224 * INameSpaceTreeControlEvents interface
2229 uuid(93D77985
-B3D8
-4484-8318-672CDDA002CE
),
2232 interface INameSpaceTreeControlEvents
: IUnknown
2234 [v1_enum] enum _NSTCEHITTEST
{
2235 NSTCEHT_NOWHERE
= 0x0001,
2236 NSTCEHT_ONITEMICON
= 0x0002,
2237 NSTCEHT_ONITEMLABEL
= 0x0004,
2238 NSTCEHT_ONITEMIDENT
= 0x0008,
2239 NSTCEHT_ONITEMBUTTON
= 0x0010,
2240 NSTCEHT_ONITEMRIGHT
= 0x0020,
2241 NSTCEHT_ONITEMSTATEICON
= 0x0040,
2242 NSTCEHT_ONITEM
= 0x0046,
2243 NSTCEHT_ONITEMTABBUTTON
= 0x1000
2245 typedef DWORD NSTCEHITTEST
;
2247 [v1_enum] enum _NSTCECLICKTYPE
{
2248 NSTCECT_LBUTTON
= 0x1,
2249 NSTCECT_MBUTTON
= 0x2,
2250 NSTCECT_RBUTTON
= 0x3,
2251 NSTCECT_BUTTON
= 0x3,
2252 NSTCECT_DBLCLICK
= 0x4
2254 typedef DWORD NSTCECLICKTYPE
;
2256 HRESULT OnItemClick
(
2257 [in] IShellItem
*psi
,
2258 [in] NSTCEHITTEST nstceHitTest
,
2259 [in] NSTCECLICKTYPE nstceClickType
);
2261 HRESULT OnPropertyItemCommit
(
2262 [in] IShellItem
*psi
);
2264 HRESULT OnItemStateChanging
(
2265 [in] IShellItem
*psi
,
2266 [in] NSTCITEMSTATE nstcisMask
,
2267 [in] NSTCITEMSTATE nstcisState
);
2269 HRESULT OnItemStateChanged
(
2270 [in] IShellItem
*psi
,
2271 [in] NSTCITEMSTATE nstcisMask
,
2272 [in] NSTCITEMSTATE nstcisState
);
2274 HRESULT OnSelectionChanged
(
2275 [in] IShellItemArray
*psiaSelection
);
2277 HRESULT OnKeyboardInput
(
2280 [in] LPARAM lParam
);
2282 HRESULT OnBeforeExpand
(
2283 [in] IShellItem
*psi
);
2285 HRESULT OnAfterExpand
(
2286 [in] IShellItem
*psi
);
2288 HRESULT OnBeginLabelEdit
(
2289 [in] IShellItem
*psi
);
2291 HRESULT OnEndLabelEdit
(
2292 [in] IShellItem
*psi
);
2294 HRESULT OnGetToolTip
(
2295 [in] IShellItem
*psi
,
2296 [out, string, size_is(cchTip
)] LPWSTR pszTip
,
2299 HRESULT OnBeforeItemDelete
(
2300 [in] IShellItem
*psi
);
2302 HRESULT OnItemAdded
(
2303 [in] IShellItem
*psi
,
2306 HRESULT OnItemDeleted
(
2307 [in] IShellItem
*psi
,
2310 HRESULT OnBeforeContextMenu
(
2311 [in, unique] IShellItem
*psi
,
2313 [out, iid_is(riid
)] void **ppv
);
2315 HRESULT OnAfterContextMenu
(
2316 [in] IShellItem
*psi
,
2317 [in] IContextMenu
*pcmIn
,
2319 [out, iid_is(riid
)] void **ppv
);
2321 HRESULT OnBeforeStateImageChange
(
2322 [in] IShellItem
*psi
);
2324 HRESULT OnGetDefaultIconIndex
(
2325 [in] IShellItem
*psi
,
2326 [out] int *piDefaultIcon
,
2327 [out] int *piOpenIcon
);
2330 cpp_quote
("#ifdef MIDL_PASS")
2331 typedef IUnknown
*HIMAGELIST
;
2334 /*****************************************************************************
2335 * INameSpaceTreeControlCustomDraw interface
2339 uuid(2D3BA758
-33EE
-42D5
-BB7B
-5F3431D86C78
),
2343 interface INameSpaceTreeControlCustomDraw
: IUnknown
2345 typedef struct NSTCCUSTOMDRAW
2349 NSTCITEMSTATE nstcis
;
2360 [out] LRESULT
*plres
);
2366 HRESULT ItemPrePaint
(
2369 [in, out] COLORREF
*pclrText
,
2370 [in, out] COLORREF
*pclrTextBk
,
2371 [out] LRESULT
*plres
);
2373 HRESULT ItemPostPaint
(
2376 [in] NSTCCUSTOMDRAW
*pnstccdItem
);
2379 /*****************************************************************************
2380 * INameSpaceTreeControlDropHandler interface
2384 uuid(F9C665D6
-C2F2
-4C19
-BF33
-8322D7352F51
),
2387 interface INameSpaceTreeControlDropHandler
: IUnknown
2389 HRESULT OnDragEnter
(
2390 [in, unique] IShellItem
*psiOver
,
2391 [in] IShellItemArray
*psiaData
,
2392 [in] BOOL fOutsideSource
,
2393 [in] DWORD grfKeyState
,
2394 [in, out] DWORD
*pdwEffect
);
2397 [in, unique] IShellItem
*psiOver
,
2398 [in] IShellItemArray
*psiaData
,
2399 [in] DWORD grfKeyState
,
2400 [in, out] DWORD
*pdwEffect
);
2402 HRESULT OnDragPosition
(
2403 [in, unique] IShellItem
*psiOver
,
2404 [in] IShellItemArray
*psiaData
,
2405 [in] int iNewPosition
,
2406 [in] int iOldPosition
);
2409 [in, unique] IShellItem
*psiOver
,
2410 [in] IShellItemArray
*psiaData
,
2412 [in] DWORD grfKeyState
,
2413 [in, out] DWORD
*pdwEffect
);
2415 HRESULT OnDropPosition
(
2416 [in, unique] IShellItem
*psiOver
,
2417 [in] IShellItemArray
*psiaData
,
2418 [in] int iNewPosition
,
2419 [in] int iOldPosition
);
2421 HRESULT OnDragLeave
(
2422 [in, unique] IShellItem
*psiOver
);
2424 cpp_quote
("#define NSTCDHPOS_ONTOP -1")
2426 interface IFileDialog
;
2428 typedef [v1_enum] enum FDE_OVERWRITE_RESPONSE
2433 } FDE_OVERWRITE_RESPONSE
;
2435 typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
2440 } FDE_SHAREVIOLATION_RESPONSE
;
2442 /*****************************************************************************
2443 * IFileDialogEvents interface
2447 uuid(973510DB
-7D7F
-452B
-8975-74A85828D354
),
2448 pointer_default(unique)
2450 interface IFileDialogEvents
: IUnknown
2453 [in] IFileDialog
*pfd
);
2455 HRESULT OnFolderChanging
(
2456 [in] IFileDialog
*pfd
,
2457 [in] IShellItem
*psiFolder
);
2459 HRESULT OnFolderChange
(
2460 [in] IFileDialog
*pfd
);
2462 HRESULT OnSelectionChange
(
2463 [in] IFileDialog
*pfd
);
2465 HRESULT OnShareViolation
(
2466 [in] IFileDialog
*pfd
,
2467 [in] IShellItem
*psi
,
2468 [out] FDE_SHAREVIOLATION_RESPONSE
*pResponse
);
2470 HRESULT OnTypeChange
(
2471 [in] IFileDialog
*pfd
);
2473 HRESULT OnOverwrite
(
2474 [in] IFileDialog
*pfd
,
2475 [in] IShellItem
*psi
,
2476 [out] FDE_OVERWRITE_RESPONSE
*pResponse
);
2479 /*****************************************************************************
2480 * IModalWindow interface
2484 uuid(B4DB1657
-70D7
-485E-8E3E
-6FCB5A5C1802
),
2485 pointer_default(unique)
2487 interface IModalWindow
: IUnknown
2491 [in, unique, annotation
("__in_opt")] HWND hwndOwner
);
2495 [in, unique] HWND hwndOwner
);
2498 typedef [v1_enum] enum FDAP
2504 /*****************************************************************************
2505 * IFileDialog interface
2509 uuid(42F85136
-DB7E
-439C
-85F1
-E4075D135FC8
),
2510 pointer_default(unique)
2512 interface IFileDialog
: IModalWindow
2514 [v1_enum] enum _FILEOPENDIALOGOPTIONS
2516 FOS_OVERWRITEPROMPT
= 0x00000002,
2517 FOS_STRICTFILETYPES
= 0x00000004,
2518 FOS_NOCHANGEDIR
= 0x00000008,
2519 FOS_PICKFOLDERS
= 0x00000020,
2520 FOS_FORCEFILESYSTEM
= 0x00000040,
2521 FOS_ALLNONSTORAGEITEMS
= 0x00000080,
2522 FOS_NOVALIDATE
= 0x00000100,
2523 FOS_ALLOWMULTISELECT
= 0x00000200,
2524 FOS_PATHMUSTEXIST
= 0x00000800,
2525 FOS_FILEMUSTEXIST
= 0x00001000,
2526 FOS_CREATEPROMPT
= 0x00002000,
2527 FOS_SHAREAWARE
= 0x00004000,
2528 FOS_NOREADONLYRETURN
= 0x00008000,
2529 FOS_NOTESTFILECREATE
= 0x00010000,
2530 FOS_HIDEMRUPLACES
= 0x00020000,
2531 FOS_HIDEPINNEDPLACES
= 0x00040000,
2532 FOS_NODEREFERENCELINKS
= 0x00100000,
2533 FOS_DONTADDTORECENT
= 0x02000000,
2534 FOS_FORCESHOWHIDDEN
= 0x10000000,
2535 FOS_DEFAULTNOMINIMODE
= 0x20000000,
2536 FOS_FORCEPREVIEWPANEON
= 0x40000000
2538 typedef DWORD FILEOPENDIALOGOPTIONS
;
2540 HRESULT SetFileTypes
(
2541 [in] UINT cFileTypes
,
2542 [in, size_is(cFileTypes
)] const COMDLG_FILTERSPEC
*rgFilterSpec
);
2544 HRESULT SetFileTypeIndex
(
2545 [in] UINT iFileType
);
2547 HRESULT GetFileTypeIndex
(
2548 [out] UINT
*piFileType
);
2551 [in] IFileDialogEvents
*pfde
,
2552 [out] DWORD
*pdwCookie
);
2555 [in] DWORD dwCookie
);
2558 [in] FILEOPENDIALOGOPTIONS fos
);
2561 [in] FILEOPENDIALOGOPTIONS
*pfos
);
2563 HRESULT SetDefaultFolder
(
2564 [in] IShellItem
*psi
);
2567 [in] IShellItem
*psi
);
2570 [out] IShellItem
**ppsi
);
2572 HRESULT GetCurrentSelection
(
2573 [out] IShellItem
**ppsi
);
2575 HRESULT SetFileName
(
2576 [in, string] LPCWSTR pszName
);
2578 HRESULT GetFileName
(
2579 [out, string] LPWSTR
*pszName
);
2582 [in, string] LPCWSTR pszTitle
);
2584 HRESULT SetOkButtonLabel
(
2585 [in, string] LPCWSTR pszText
);
2587 HRESULT SetFileNameLabel
(
2588 [in, string] LPCWSTR pszLabel
);
2591 [out] IShellItem
**ppsi
);
2594 [in] IShellItem
*psi
,
2597 HRESULT SetDefaultExtension
(
2598 [in, string] LPCWSTR pszDefaultExtension
);
2603 HRESULT SetClientGuid
(
2606 HRESULT ClearClientData
();
2609 [in] IShellItemFilter
*pFilter
);
2612 /*****************************************************************************
2613 * IFileDialog2 interface
2617 uuid(61744FC7
-85B5
-4791-A9B0
-272276309B13
),
2618 pointer_default(unique)
2620 interface IFileDialog2
: IFileDialog
2622 HRESULT SetCancelButtonLabel
(
2623 [in] LPCWSTR pszLabel
);
2625 HRESULT SetNavigationRoot
(
2626 [in] IShellItem
*psi
);
2629 /*****************************************************************************
2630 * IFileOperationProgressSink interface
2634 uuid(04B0F1A7
-9490-44BC
-96E1
-4296A31252E2
),
2635 pointer_default(unique)
2637 interface IFileOperationProgressSink
: IUnknown
2639 HRESULT StartOperations
();
2641 HRESULT FinishOperations
(
2642 [in] HRESULT hrResult
);
2644 HRESULT PreRenameItem
(
2646 [in] IShellItem
*psiItem
,
2647 [in, unique, string] LPCWSTR pszNewName
);
2649 HRESULT PostRenameItem
(
2651 [in] IShellItem
*psiItem
,
2652 [in, string] LPCWSTR pszNewName
,
2653 [in] HRESULT hrRename
,
2654 [in] IShellItem
*psiNewlyCreated
);
2656 HRESULT PreMoveItem
(
2658 [in] IShellItem
*psiItem
,
2659 [in] IShellItem
*psiDestinationFolder
,
2660 [in, unique, string] LPCWSTR pszNewName
);
2662 HRESULT PostMoveItem
(
2664 [in] IShellItem
*psiItem
,
2665 [in] IShellItem
*psiDestinationFolder
,
2666 [in, unique, string] LPCWSTR pszNewName
,
2667 [in] HRESULT hrMove
,
2668 [in] IShellItem
*psiNewlyCreated
);
2670 HRESULT PreCopyItem
(
2672 [in] IShellItem
*psiItem
,
2673 [in] IShellItem
*psiDestinationFolder
,
2674 [in, unique, string] LPCWSTR pszNewName
);
2676 HRESULT PostCopyItem
(
2678 [in] IShellItem
*psiItem
,
2679 [in] IShellItem
*psiDestinationFolder
,
2680 [in, unique, string] LPCWSTR pszNewName
,
2681 [in] HRESULT hrCopy
,
2682 [in] IShellItem
*psiNewlyCreated
);
2684 HRESULT PreDeleteItem
(
2686 [in] IShellItem
*psiItem
);
2688 HRESULT PostDeleteItem
(
2690 [in] IShellItem
*psiItem
,
2691 [in] HRESULT hrDelete
,
2692 [in] IShellItem
*psiNewlyCreated
);
2696 [in] IShellItem
*psiDestinationFolder
,
2697 [in, unique, string] LPCWSTR pszNewName
);
2699 HRESULT PostNewItem
(
2701 [in] IShellItem
*psiDestinationFolder
,
2702 [in, unique, string] LPCWSTR pszNewName
,
2703 [in, unique, string] LPCWSTR pszTemplateName
,
2704 [in] DWORD dwFileAttributes
,
2706 [in] IShellItem
*psiNewItem
);
2708 HRESULT UpdateProgress
(
2709 [in] UINT iWorkTotal
,
2710 [in] UINT iWorkSoFar
);
2712 HRESULT ResetTimer
();
2714 HRESULT PauseTimer
();
2716 HRESULT ResumeTimer
();
2719 /*****************************************************************************
2720 * IFileSaveDialog interface
2724 uuid(84BCCD23
-5FDE
-4CDB
-AEA4
-AF64B83D78AB
),
2725 pointer_default(unique)
2727 interface IFileSaveDialog
: IFileDialog
2729 HRESULT SetSaveAsItem
(
2730 [in] IShellItem
*psi
);
2732 HRESULT SetProperties
(
2733 [in] IPropertyStore
*pStore
);
2735 HRESULT SetCollectedProperties
(
2736 [in] IPropertyDescriptionList
*pList
,
2737 [in] BOOL fAppendDefault
);
2739 HRESULT GetProperties
(
2740 [in] IPropertyStore
**ppStore
);
2742 HRESULT ApplyProperties
(
2743 [in] IShellItem
*psi
,
2744 [in] IPropertyStore
*pStore
,
2745 [in, unique] HWND hwnd
,
2746 [in, unique] IFileOperationProgressSink
*pSink
);
2750 /*****************************************************************************
2751 * IFileOpenDialog interface
2755 uuid(D57C7288
-D4AD
-4768-BE02
-9D969532D960
),
2756 pointer_default(unique)
2758 interface IFileOpenDialog
: IFileDialog
2761 [out] IShellItemArray
**ppenum
);
2763 HRESULT GetSelectedItems
(
2764 [out] IShellItemArray
**ppsai
);
2767 typedef [v1_enum] enum CDCONTROLSTATEF
2769 CDCS_INACTIVE
= 0x0,
2772 CDCS_ENABLEDVISIBLE
= 0x3
2774 cpp_quote
("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
2775 /*****************************************************************************
2776 * IFileDialogCustomize interface
2780 uuid(E6FDD21A
-163F
-4975-9C8C
-A69F1BA37034
),
2781 pointer_default(unique)
2783 interface IFileDialogCustomize
: IUnknown
2785 HRESULT EnableOpenDropDown
(
2786 [in] DWORD dwIDCtl
);
2790 [in, string] LPCWSTR pszLabel
);
2792 HRESULT AddPushButton
(
2794 [in, string] LPCWSTR pszLabel
);
2796 HRESULT AddComboBox
(
2797 [in] DWORD dwIDCtl
);
2799 HRESULT AddRadioButtonList
(
2800 [in] DWORD dwIDCtl
);
2802 HRESULT AddCheckButton
(
2804 [in, string] LPCWSTR pszLabel
,
2805 [in] BOOL bChecked
);
2809 [in, string] LPCWSTR pszText
);
2811 HRESULT AddSeparator
(
2812 [in] DWORD dwIDCtl
);
2816 [in, string] LPCWSTR pszText
);
2818 HRESULT SetControlLabel
(
2820 [in, string] LPCWSTR pszLabel
);
2822 HRESULT GetControlState
(
2824 [out] CDCONTROLSTATEF
*pdwState
);
2826 HRESULT SetControlState
(
2828 [in] CDCONTROLSTATEF dwState
);
2830 HRESULT GetEditBoxText
(
2832 [out, string] WCHAR
**ppszText
);
2834 HRESULT SetEditBoxText
(
2836 [in, string] LPCWSTR pszText
);
2838 HRESULT GetCheckButtonState
(
2840 [out] BOOL
*pbChecked
);
2842 HRESULT SetCheckButtonState
(
2844 [in] BOOL bChecked
);
2846 HRESULT AddControlItem
(
2848 [in] DWORD dwIDItem
,
2849 [in] LPCWSTR pszLabel
);
2851 HRESULT RemoveControlItem
(
2853 [in] DWORD dwIDItem
);
2855 HRESULT RemoveAllControlItems
(
2856 [in] DWORD dwIDCtl
);
2858 HRESULT GetControlItemState
(
2860 [in] DWORD dwIDItem
,
2861 [out] CDCONTROLSTATEF
*pdwState
);
2863 HRESULT SetControlItemState
(
2865 [in] DWORD dwIDItem
,
2866 [in] CDCONTROLSTATEF dwState
);
2868 HRESULT GetSelectedControlItem
(
2870 [out] DWORD
*pdwIDItem
);
2872 HRESULT SetSelectedControlItem
(
2874 [in] DWORD dwIDItem
);
2876 HRESULT StartVisualGroup
(
2878 [in, string] LPCWSTR pszLabel
);
2880 HRESULT EndVisualGroup
();
2882 HRESULT MakeProminent
(
2883 [in] DWORD dwIDCtl
);
2885 HRESULT SetControlItemText
(
2887 [in] DWORD dwIDItem
,
2888 [in, string] LPCWSTR pszLabel
);
2891 /*****************************************************************************
2892 * IFileDialogControlEvents interface
2896 uuid(36116642-D713
-4B97
-9B83
-7484A9D00433
),
2897 pointer_default(unique)
2899 interface IFileDialogControlEvents
: IUnknown
2901 HRESULT OnItemSelected
(
2902 [in] IFileDialogCustomize
*pfdc
,
2904 [in] DWORD dwIDItem
);
2906 HRESULT OnButtonClicked
(
2907 [in] IFileDialogCustomize
*pfdc
,
2908 [in] DWORD dwIDCtl
);
2910 HRESULT OnCheckButtonToggled
(
2911 [in] IFileDialogCustomize
*pfdc
,
2913 [in] BOOL bChecked
);
2915 HRESULT OnControlActivating
(
2916 [in] IFileDialogCustomize
*pfdc
,
2917 [in] DWORD dwIDCtl
);
2920 typedef [v1_enum] enum tagKF_CATEGORY
2922 KF_CATEGORY_VIRTUAL
= 0x00000001,
2923 KF_CATEGORY_FIXED
= 0x00000002,
2924 KF_CATEGORY_COMMON
= 0x00000003,
2925 KF_CATEGORY_PERUSER
= 0x00000004
2928 typedef [v1_enum] enum tagKF_REDIRECTION_CAPABILITIES
2930 KF_REDIRECTION_CAPABILITIES_ALLOW_ALL
= 0x000000ff,
2931 KF_REDIRECTION_CAPABILITIES_REDIRECTABLE
= 0x00000001,
2932 KF_REDIRECTION_CAPABILITIES_DENY_ALL
= 0x000fff00,
2933 KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED
= 0x00000100,
2934 KF_REDIRECTION_CAPABILITIES_DENY_POLICY
= 0x00000200,
2935 KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS
= 0x00000400
2936 } KF_REDIRECTION_CAPABILITIES
;
2938 typedef [v1_enum] enum tagKF_DEFINITION_FLAGS
2940 KFDF_LOCAL_REDIRECT_ONLY
= 0x00000002,
2941 KFDF_ROAMABLE
= 0x00000004,
2942 KFDF_PRECREATE
= 0x00000008,
2943 KFDF_STREAM
= 0x00000010,
2944 KFDF_PUBLISHEXPANDEDPATH
= 0x00000020
2945 } KF_DEFINITION_FLAGS
;
2947 typedef struct tagKNOWNFOLDER_DEFINITION
2949 KF_CATEGORY category
;
2951 LPWSTR pszDescription
;
2952 KNOWNFOLDERID fidParent
;
2953 LPWSTR pszRelativePath
;
2954 LPWSTR pszParsingName
;
2956 LPWSTR pszLocalizedName
;
2960 KF_DEFINITION_FLAGS kfdFlags
;
2961 FOLDERTYPEID ftidType
;
2962 } KNOWNFOLDER_DEFINITION
;
2966 uuid(3aa7af7e
-9b36
-420C
-a8e3
-f77d4674a488
),
2967 pointer_default(ref)
2969 interface IKnownFolder
: IUnknown
2972 [out] KNOWNFOLDERID
*pkfid
);
2974 HRESULT GetCategory
(
2975 [out] KF_CATEGORY
*pCategory
);
2977 HRESULT GetShellItem
(
2980 [out, iid_is(riid
)] void **ppv
);
2984 [out, string] LPWSTR
*ppszPath
);
2988 [in, string] LPCWSTR pszPath
);
2992 [out] PIDLIST_ABSOLUTE
*ppidl
);
2994 HRESULT GetFolderType
(
2995 [out] FOLDERTYPEID
*pftid
);
2997 HRESULT GetRedirectionCapabilities
(
2998 [out] KF_REDIRECTION_CAPABILITIES
*pCapabilities
);
3000 HRESULT GetFolderDefinition
(
3001 [out] KNOWNFOLDER_DEFINITION
*pKFD
);
3004 typedef [v1_enum] enum tagKF_REDIRECT_FLAGS
3006 KF_REDIRECT_USER_EXCLUSIVE
= 0x00000001,
3007 KF_REDIRECT_COPY_SOURCE_DACL
= 0x00000002,
3008 KF_REDIRECT_OWNER_USER
= 0x00000004,
3009 KF_REDIRECT_SET_OWNER_EXPLICIT
= 0x00000008,
3010 KF_REDIRECT_CHECK_ONLY
= 0x00000010,
3011 KF_REDIRECT_WITH_UI
= 0x00000020,
3012 KF_REDIRECT_UNPIN
= 0x00000040,
3013 KF_REDIRECT_PIN
= 0x00000080,
3014 KF_REDIRECT_COPY_CONTENTS
= 0x00000200,
3015 KF_REDIRECT_DEL_SOURCE_CONTENTS
= 0x00000400,
3016 KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS
= 0x00000800
3017 } KF_REDIRECT_FLAGS
;
3021 uuid(8BE2D872
-86AA
-4d47
-B776
-32CCA40C7018
),
3022 pointer_default(ref)
3024 interface IKnownFolderManager
: IUnknown
3026 typedef [v1_enum] enum tagFFFP_MODE
3029 FFFP_NEARESTPARENTMATCH
3032 HRESULT FolderIdFromCsidl
(
3034 [out] KNOWNFOLDERID
*pfid
);
3036 HRESULT FolderIdToCsidl
(
3037 [in] REFKNOWNFOLDERID rfid
,
3038 [out] int *pnCsidl
);
3040 HRESULT GetFolderIds
(
3041 [out, size_is(, *pCount
)] KNOWNFOLDERID
**ppKFId
,
3042 [in, out] UINT
*pCount
);
3045 [in] REFKNOWNFOLDERID rfid
,
3046 [out] IKnownFolder
**ppkf
);
3048 HRESULT GetFolderByName
(
3049 [in, string] LPCWSTR pszCanonicalName
,
3050 [out] IKnownFolder
**ppkf
);
3052 HRESULT RegisterFolder
(
3053 [in] REFKNOWNFOLDERID rfid
,
3054 [in] KNOWNFOLDER_DEFINITION
const *pKFD
);
3056 HRESULT UnregisterFolder
(
3057 [in] REFKNOWNFOLDERID rfid
);
3059 HRESULT FindFolderFromPath
(
3060 [in, string] LPCWSTR pszPath
,
3061 [in] FFFP_MODE mode
,
3062 [out] IKnownFolder
**ppkf
);
3064 HRESULT FindFolderFromIDList
(
3065 [in] PCIDLIST_ABSOLUTE pidl
,
3066 [out] IKnownFolder
**ppkf
);
3069 [in] REFKNOWNFOLDERID rfid
,
3070 [in, unique] HWND hwnd
,
3071 [in] KF_REDIRECT_FLAGS flags
,
3072 [in, unique, string] LPCWSTR pszTargetPath
,
3074 [in, size_is(cFolders
), unique] KNOWNFOLDERID
const *pExclusion
,
3075 [out, string] LPWSTR
*ppszError
);
3078 /* function for releasing structure returned from IKnownFolder::GetFolderDefinition */
3079 cpp_quote
("static inline void FreeKnownFolderDefinitionFields(KNOWNFOLDER_DEFINITION *pKFD)")
3081 cpp_quote
(" CoTaskMemFree(pKFD->pszName);")
3082 cpp_quote
(" CoTaskMemFree(pKFD->pszDescription);")
3083 cpp_quote
(" CoTaskMemFree(pKFD->pszRelativePath);")
3084 cpp_quote
(" CoTaskMemFree(pKFD->pszParsingName);")
3085 cpp_quote
(" CoTaskMemFree(pKFD->pszTooltip);")
3086 cpp_quote
(" CoTaskMemFree(pKFD->pszLocalizedName);")
3087 cpp_quote
(" CoTaskMemFree(pKFD->pszIcon);")
3088 cpp_quote
(" CoTaskMemFree(pKFD->pszSecurity);")
3091 typedef [v1_enum] enum ASSOCIATIONLEVEL
{
3097 typedef [v1_enum] enum ASSOCIATIONTYPE
{
3106 uuid(4e530b0a
-e611
-4c77
-a3ac
-9031d022281b
),
3107 pointer_default(unique)
3109 interface IApplicationAssociationRegistration
: IUnknown
3111 HRESULT QueryCurrentDefault
(
3112 [in, string] LPCWSTR pszQuery
,
3113 [in] ASSOCIATIONTYPE atQueryType
,
3114 [in] ASSOCIATIONLEVEL alQueryLevel
,
3115 [out, string] LPWSTR
*ppszAssociation
);
3117 HRESULT QueryAppIsDefault
(
3118 [in, string] LPCWSTR pszQuery
,
3119 [in] ASSOCIATIONTYPE atQueryType
,
3120 [in] ASSOCIATIONLEVEL alQueryLevel
,
3121 [in, string] LPCWSTR pszAppRegistryName
,
3122 [out] BOOL
*pfDefault
);
3124 HRESULT QueryAppIsDefaultAll
(
3125 [in] ASSOCIATIONLEVEL alQueryLevel
,
3126 [in, string] LPCWSTR pszAppRegistryName
,
3127 [out] BOOL
* pfDefault
);
3129 HRESULT SetAppAsDefault
(
3130 [in, string] LPCWSTR pszAppRegistryName
,
3131 [in, string] LPCWSTR pszSet
,
3132 [in] ASSOCIATIONTYPE atSetType
);
3134 HRESULT SetAppAsDefaultAll
(
3135 [in, string] LPCWSTR pszAppRegistryName
);
3137 HRESULT ClearUserAssociations
();
3140 /*****************************************************************************
3141 * ShellObjects typelibrary
3144 uuid(50A7E9B1
-70EF
-11D1
-B75A
-00A0C90564FE
),
3148 library ShellObjects
3151 uuid(71F96385
-DDD6
-48D3
-A0C1
-AE06E8B055FB
)
3153 coclass ExplorerBrowser
3155 interface IExplorerBrowser
;
3159 uuid(DC1C5A9C
-E88A
-4DDE
-A5A1
-60F82A20AEF7
)
3161 coclass FileOpenDialog
3163 interface IFileOpenDialog
;
3167 uuid(C0B4E2F3
-BA21
-4773-8DBA
-335EC946EB8B
)
3169 coclass FileSaveDialog
3171 interface IFileSaveDialog
;
3175 uuid(AE054212
-3535-4430-83ED
-D501AA6680E6
)
3177 coclass NamespaceTreeControl
3179 interface INameSpaceTreeControl2
;
3183 uuid(4df0c730
-df9d
-4ae3
-9153-aa6b82e9795a
)
3185 coclass KnownFolderManager
3187 interface IKnownFolderManager
;