msxml3: Improve namespace tests to highlight get nodeName issue.
[wine/multimedia.git] / include / shobjidl.idl
blob8dd992697591fd9427696716f9583c3d17bcd14f
1 /*
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
22 import "objidl.idl";
23 import "oleidl.idl";
24 import "oaidl.idl";
25 import "docobj.idl";
26 import "shtypes.idl";
27 import "servprov.idl";
28 import "comcat.idl";
29 import "propidl.idl";
30 /* FIXME: import "prsht.idl";*/
31 import "msxml.idl";
32 import "wtypes.idl";
33 import "propsys.idl";
34 /* FIXME: import "structuredquery.idl"; */
36 cpp_quote("/* FIXME: #include <sherrors.h> */")
39 /*****************************************************************************
40 * IPersistFolder interface
43 object,
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
59 object,
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
75 object,
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
90 object,
91 uuid(000214f2-0000-0000-c000-000000000046),
92 pointer_default(unique)
94 interface IEnumIDList : IUnknown
96 typedef IEnumIDList *LPENUMIDLIST;
98 HRESULT Next(
99 [in] ULONG celt,
100 [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
101 [out] ULONG *pceltFetched);
103 HRESULT Skip( [in] ULONG celt );
104 HRESULT Reset();
105 HRESULT Clone( [out] IEnumIDList **ppenum );
108 /*****************************************************************************
109 * IShellPropSheetExt interface
111 cpp_quote("#if 0")
112 typedef LPARAM LPFNSVADDPROPSHEETPAGE;
113 cpp_quote("#else")
114 cpp_quote("#include <prsht.h>")
115 cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
116 cpp_quote("#endif")
119 object,
120 uuid(000214E9-0000-0000-C000-000000000046),
121 pointer_default(unique),
122 local
124 interface IShellPropSheetExt : IUnknown
126 enum tagSHELLPROPSHEETEXTPAGEID {
127 EXPPS_FILETYPES = 0x1
130 typedef UINT EXPPS;
132 HRESULT AddPages(
133 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
134 [in] LPARAM lParam);
135 HRESULT ReplacePage(
136 [in] EXPPS uPageID,
137 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
138 [in] LPARAM lParam);
140 typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
142 /*****************************************************************************
143 * IShellFolder interface
146 object,
147 uuid(000214e6-0000-0000-c000-000000000046),
148 pointer_default(unique)
150 interface IShellFolder : IUnknown
152 typedef IShellFolder * LPSHELLFOLDER;
154 typedef enum tagSHGDN
156 SHGDN_NORMAL = 0,
157 SHGDN_INFOLDER = 1,
158 SHGDN_FOREDITING = 0x1000,
159 SHGDN_INCLUDE_NONFILESYS = 0x2000,
160 SHGDN_FORADDRESSBAR = 0x4000,
161 SHGDN_FORPARSING = 0x8000
162 } SHGNO;
164 typedef DWORD SHGDNF;
166 enum tagSHCONTF
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(
213 [in] HWND hwndOwner,
214 [in] LPBC pbcReserved,
215 [in, string] LPOLESTR lpszDisplayName,
216 [out] ULONG *pchEaten,
217 [out] LPITEMIDLIST *ppidl,
218 [in, out, unique] ULONG *pdwAttributes);
220 HRESULT EnumObjects(
221 [in] HWND hwndOwner,
222 [in] SHCONTF grfFlags,
223 [out] IEnumIDList **ppenumIDList);
225 HRESULT BindToObject(
226 [in] LPCITEMIDLIST pidl,
227 [in] LPBC pbcReserved,
228 [in] REFIID riid,
229 [out, iid_is(riid)] void **ppvOut);
231 HRESULT BindToStorage(
232 [in] LPCITEMIDLIST pidl,
233 [in] LPBC pbcReserved,
234 [in] REFIID riid,
235 [out, iid_is(riid)] void **ppvObj);
237 HRESULT CompareIDs(
238 [in] LPARAM lParam,
239 [in] LPCITEMIDLIST pidl1,
240 [in] LPCITEMIDLIST pidl2);
242 HRESULT CreateViewObject(
243 [in] HWND hwndOwner,
244 [in] REFIID riid,
245 [out, iid_is(riid)] void **ppvOut);
247 HRESULT GetAttributesOf(
248 [in] UINT cidl,
249 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
250 [in, out] SFGAOF *rgfInOut);
252 HRESULT GetUIObjectOf(
253 [in] HWND hwndOwner,
254 [in] UINT cidl,
255 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
256 [in] REFIID riid,
257 [in, out, unique] UINT *prgfInOut,
258 [out, iid_is(riid)] void **ppvOut);
260 HRESULT GetDisplayNameOf(
261 [in] LPCITEMIDLIST pidl,
262 [in] SHGDNF uFlags,
263 [out] STRRET *lpName);
265 HRESULT SetNameOf(
266 [in] HWND hwnd,
267 [in] LPCITEMIDLIST pidl,
268 [in, string] LPCOLESTR lpszName,
269 [in] SHGDNF uFlags,
270 [out] LPITEMIDLIST *ppidlOut);
274 /*****************************************************************************
275 * IEnumExtraSearch interface
278 object,
279 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
280 pointer_default(unique)
282 interface IEnumExtraSearch : IUnknown
284 typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
286 typedef struct
288 GUID guidSearch;
289 WCHAR wszFriendlyName[80];
291 *WCHAR wszMenuText[80];
292 *WCHAR wszHelpText[MAX_PATH];
294 WCHAR wszUrl[2084];
296 *WCHAR wszIcon[MAX_PATH+10];
297 *WCHAR wszGreyIcon[MAX_PATH+10];
298 *WCHAR wszClrIcon[MAX_PATH+10];
300 } EXTRASEARCH, *LPEXTRASEARCH;
302 HRESULT Next(
303 [in] ULONG celt,
304 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
305 [out] ULONG *pceltFetched);
307 HRESULT Skip( [in] ULONG celt );
308 HRESULT Reset();
309 HRESULT Clone( [out] IEnumExtraSearch **ppenum );
313 /*****************************************************************************
314 * IShellFolder2 interface
317 object,
318 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
319 pointer_default(unique)
321 interface IShellFolder2 : IShellFolder
323 typedef struct
325 GUID fmtid;
326 DWORD pid;
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
343 object,
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(
371 [in] IBindCtx *pbc,
372 [in] REFGUID rbhid,
373 [in] REFIID riid,
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);
386 HRESULT Compare(
387 [in] IShellItem *psi,
388 [in] SICHINTF hint,
389 [out] int *piOrder);
392 /*****************************************************************************
393 * IShellItem2 interface
396 object,
397 uuid(7E9FB0D3-919F-4307-AB2E-9B1860310C93),
398 pointer_default(unique)
400 interface IShellItem2 : IShellItem
402 HRESULT GetPropertyStore(
403 [in] GETPROPERTYSTOREFLAGS flags,
404 [in] REFIID riid,
405 [out, iid_is(riid)] void **ppv);
407 HRESULT GetPropertyStoreWithCreateObject(
408 [in] GETPROPERTYSTOREFLAGS flags,
409 [in] IUnknown *punkCreateObject,
410 [in] REFIID riid,
411 [out, iid_is(riid)] void **ppv);
413 HRESULT GetPropertyStoreForKeys(
414 [in, size_is(cKeys)] const PROPERTYKEY *rgKeys,
415 [in] UINT cKeys,
416 [in] GETPROPERTYSTOREFLAGS flags,
417 [in] REFIID riid,
418 [out, iid_is(riid)] void **ppv);
420 HRESULT GetPropertyDescriptionList(
421 [in] REFPROPERTYKEY keyType,
422 [in] REFIID riid,
423 [out, iid_is(riid)] void **ppv);
425 HRESULT Update(
426 [in, unique] IBindCtx *pbc);
428 HRESULT GetProperty(
429 [in] REFPROPERTYKEY key,
430 [out] PROPVARIANT *ppropvar);
432 HRESULT GetCLSID(
433 [in] REFPROPERTYKEY key,
434 [out] CLSID *pclsid);
436 HRESULT GetFileTime (
437 [in] REFPROPERTYKEY key,
438 [out] FILETIME *pft);
440 HRESULT GetInt32(
441 [in] REFPROPERTYKEY key,
442 [out] int *pi);
444 HRESULT GetString(
445 [in] REFPROPERTYKEY key,
446 [out, string] LPWSTR *ppsz);
448 HRESULT GetUInt32(
449 [in] REFPROPERTYKEY key,
450 [out] ULONG *pui);
452 HRESULT GetUInt64(
453 [in] REFPROPERTYKEY key,
454 [out] ULONGLONG *pull);
456 HRESULT GetBool(
457 [in] REFPROPERTYKEY key,
458 [out] BOOL *pf);
461 typedef enum tagNWMF {
462 NWMF_UNLOADING = 0x0001,
463 NWMF_USERINITED = 0x0002,
464 NWMF_FIRST = 0x0004,
465 NWMF_OVERRIDEKEY = 0x0008,
466 NWMF_SHOWHELP = 0x0010,
467 NWMF_HTMLDIALOG = 0x0020,
468 NWMF_FROMDIALOGCHILD = 0x0040,
469 NWMF_USERREQUESTED = 0x0080,
470 NWMF_USERALLOWED = 0x0100
471 } NWMF;
474 uuid(d2bc4c84-3f72-4a52-a604-7bcbf3982cbb),
475 object,
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,
485 [in] BOOL fReplace,
486 [in] DWORD dwFlags,
487 [in] DWORD dwUserActionTime);
490 cpp_quote("#define SID_SNewWindowManager IID_INewWindowManager")
492 /*****************************************************************************
493 * IEnumShellItems interface
496 object,
497 uuid(70629033-E363-4A28-A567-0DB78006E6D7),
498 pointer_default(unique)
500 interface IEnumShellItems : IUnknown
502 [local] HRESULT Next(
503 [in] ULONG celt,
504 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
505 [out] ULONG *pceltFetched);
507 [call_as(Next)] HRESULT RemoteNext(
508 [in] ULONG celt,
509 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
510 [out] ULONG *pceltFetched);
512 HRESULT Skip(
513 [in] ULONG celt);
515 HRESULT Reset();
517 HRESULT Clone(
518 [out] IEnumShellItems **ppenum);
521 /*****************************************************************************
522 * IShellItemArray interface
525 object,
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
537 } SIATTRIBFLAGS;
538 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(SIATTRIBFLAGS)")
540 HRESULT BindToHandler(
541 [in, unique] IBindCtx *pbc,
542 [in] REFGUID bhid,
543 [in] REFIID riid,
544 [out, iid_is(riid)] void **ppvOut);
546 HRESULT GetPropertyStore(
547 [in] GETPROPERTYSTOREFLAGS flags,
548 [in] REFIID riid,
549 [out, iid_is(riid)] void **ppv);
551 HRESULT GetPropertyDescriptionList(
552 [in] REFPROPERTYKEY keyType,
553 [in] REFIID riid,
554 [out, iid_is(riid)] void **ppv);
556 HRESULT GetAttributes(
557 [in] SIATTRIBFLAGS AttribFlags,
558 [in] SFGAOF sfgaoMask,
559 [out] SFGAOF *psfgaoAttribs);
561 HRESULT GetCount(
562 [out] DWORD *pdwNumItems);
564 HRESULT GetItemAt(
565 [in] DWORD dwIndex,
566 [out] IShellItem **ppsi);
568 HRESULT EnumItems(
569 [out] IEnumShellItems **ppenumShellItems);
573 typedef [v1_enum] enum DATAOBJ_GET_ITEM_FLAGS
575 DOGIF_DEFAULT = 0x0,
576 DOGIF_TRAVERSE_LINK = 0x1,
577 DOGIF_NO_HDROP = 0x2,
578 DOGIF_NO_URL = 0x4,
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
597 object,
598 uuid(2659B475-EEB8-48B7-8F07-B378810F48CF),
599 pointer_default(unique)
601 interface IShellItemFilter : IUnknown
603 HRESULT IncludeItem(
604 [in] IShellItem *psi);
606 HRESULT GetEnumFlagsForItem(
607 [in] IShellItem *psi,
608 [out] SHCONTF *pgrfFlags);
611 /*****************************************************************************
612 * FOLDERSETTINGS
614 typedef char *LPVIEWSETTINGS;
616 typedef enum
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
650 } FOLDERFLAGS;
652 typedef enum
654 FVM_AUTO =-1,
655 FVM_ICON = 1,
656 FVM_FIRST = FVM_ICON,
657 FVM_SMALLICON = 2,
658 FVM_LIST = 3,
659 FVM_DETAILS = 4,
660 FVM_THUMBNAIL = 5,
661 FVM_TILE = 6,
662 FVM_THUMBSTRIP = 7,
663 FVM_CONTENT = 8,
664 FVM_LAST = FVM_CONTENT
665 } FOLDERVIEWMODE;
667 typedef struct
669 UINT ViewMode;
670 UINT fFlags;
671 } FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
672 typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
674 /*****************************************************************************
675 * IShellIcon interface
678 uuid(000214e5-0000-0000-c000-000000000046),
679 object,
680 pointer_default(unique)
682 interface IShellIcon : IUnknown
684 HRESULT GetIconOf(
685 [in] PCUITEMID_CHILD pidl,
686 [in] UINT flags,
687 [out] int *pIconIndex);
690 /*****************************************************************************
691 * IShellView interface
693 interface IShellBrowser; /* forward declaration */
695 object,
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")
715 typedef UINT SVSIF;
717 typedef enum
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,
725 } SVGIO;
727 typedef enum
729 SVUIA_DEACTIVATE = 0,
730 SVUIA_ACTIVATE_NOFOCUS = 1,
731 SVUIA_ACTIVATE_FOCUS = 2,
732 SVUIA_INPLACEACTIVATE = 3
733 } SVUIA_STATUS;
735 HRESULT TranslateAccelerator( [in] MSG *pmsg );
736 HRESULT EnableModeless( [in] BOOL fEnable );
737 HRESULT UIActivate( [in] UINT uState );
738 HRESULT Refresh();
739 HRESULT CreateViewWindow(
740 [in] IShellView *psvPrevious,
741 [in] LPCFOLDERSETTINGS lpfs,
742 [in] IShellBrowser *psb,
743 [out] RECT *prcView,
744 [out] HWND *phWnd);
746 HRESULT DestroyViewWindow();
747 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
749 [local] HRESULT AddPropertySheetPages(
750 [in] DWORD dwReserved,
751 [in] LPFNSVADDPROPSHEETPAGE pfn,
752 [in] LPARAM lparam);
754 HRESULT SaveViewState();
755 HRESULT SelectItem(
756 [in] LPCITEMIDLIST pidlItem,
757 [in] SVSIF uFlags);
758 HRESULT GetItemObject(
759 [in] UINT uItem,
760 [in] REFIID riid,
761 [out, iid_is(riid)] void **ppv);
765 object,
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
775 DWORD cbSize;
776 IShellView *psvPrev;
777 LPCFOLDERSETTINGS pfs;
778 IShellBrowser *psbOwner;
779 RECT *prcView;
780 SHELLVIEWID const *pvid;
781 HWND hwndView;
782 } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
783 cpp_quote("#include <poppack.h>")
785 HRESULT GetView(
786 [in, out] SHELLVIEWID *view_guid,
787 [in] ULONG view_type
789 HRESULT CreateViewWindow2(
790 [in] LPSV2CVW2_PARAMS view_params
792 HRESULT HandleRename(
793 [in] LPCITEMIDLIST new_pidl
795 HRESULT SelectAndPositionItem(
796 [in] LPCITEMIDLIST item,
797 [in] UINT flags,
798 [in] POINT *point
802 /*****************************************************************************
803 * IFolderView interface
806 uuid(cde725b0-ccc9-4519-917e-325d72fab4ce),
807 object,
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 );
815 HRESULT Item(
816 [in] int index,
817 [out] PITEMID_CHILD *ppidl
819 HRESULT ItemCount(
820 [in] UINT flags,
821 [out] int *items
823 HRESULT Items(
824 [in] UINT flags,
825 [in] REFIID riid,
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,
832 [out] POINT* ppt
834 HRESULT GetSpacing( [in, out, unique] POINT* pt );
835 HRESULT GetDefaultSpacing( [out] POINT* pt );
836 HRESULT GetAutoArrange();
837 HRESULT SelectItem(
838 [in] int item,
839 [in] DWORD flags
841 HRESULT SelectAndPositionItems(
842 [in] UINT cidl,
843 [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
844 [in, unique, size_is(cidl)] POINT* apt,
845 [in] DWORD flags
849 /*****************************************************************************
850 * IShellBrowser interface
853 object,
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")
900 cpp_quote("#if 0")
901 typedef LPARAM LPTBBUTTONSB;
902 cpp_quote("#else")
903 cpp_quote("#include <commctrl.h>")
904 cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
905 cpp_quote("#endif")
907 HRESULT InsertMenusSB(
908 [in] HMENU hmenuShared,
909 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
911 HRESULT SetMenuSB(
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,
923 [in] UINT wFlags);
925 HRESULT GetViewStateStream(
926 [in] DWORD grfMode,
927 [out] IStream **ppStrm);
929 HRESULT GetControlWindow(
930 [in] UINT id,
931 [out] HWND *phwnd);
933 [local] HRESULT SendControlMsg(
934 [in] UINT id,
935 [in] UINT uMsg,
936 [in] WPARAM wParam,
937 [in] LPARAM lParam,
938 [in] LRESULT *pret);
940 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
941 HRESULT OnViewWindowActive( [in] IShellView *pshv );
943 [local]
944 HRESULT SetToolbarItems(
945 [in] LPTBBUTTONSB lpButtons,
946 [in] UINT nButtons,
947 [in] UINT uFlags);
951 /*****************************************************************************
952 * IShellLinkA interface
955 object,
956 uuid(000214ee-0000-0000-c000-000000000046),
957 pointer_default(unique)
959 interface IShellLinkA : IUnknown
961 typedef enum
963 SLR_NO_UI = 0x0001,
964 SLR_ANY_MATCH = 0x0002,
965 SLR_UPDATE = 0x0004,
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,
972 } SLR_FLAGS;
974 typedef enum
976 SLGP_SHORTPATH = 0x0001,
977 SLGP_UNCPRIORITY = 0x0002,
978 SLGP_RAWPATH = 0x0004,
979 } SLGP_FLAGS;
981 HRESULT GetPath(
982 [out, size_is(cch)] LPSTR pszFile,
983 [in] int cch,
984 [in, out, unique] WIN32_FIND_DATAA *pfd,
985 [in] DWORD fFlags);
987 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
989 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
991 HRESULT GetDescription(
992 [out, size_is(cch)] LPSTR pszName,
993 [in] int cch);
995 HRESULT SetDescription( [in] LPCSTR pszName );
997 HRESULT GetWorkingDirectory(
998 [out, size_is(cch)] LPSTR pszDir,
999 [in] int cch);
1001 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
1003 HRESULT GetArguments(
1004 [out, size_is(cch)] LPSTR pszArgs,
1005 [in] int cch);
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,
1019 [in] int cch,
1020 [out] int *piIcon);
1022 HRESULT SetIconLocation(
1023 [in] LPCSTR pszIconPath,
1024 [in] int iIcon);
1026 HRESULT SetRelativePath(
1027 [in] LPCSTR pszPathRel,
1028 [in] DWORD dwReserved);
1030 HRESULT Resolve(
1031 [in] HWND hwnd,
1032 [in] DWORD fFlags);
1034 HRESULT SetPath( [in] LPCSTR pszFile );
1038 /*****************************************************************************
1039 * IShellLinkW interface
1042 object,
1043 uuid(000214f9-0000-0000-c000-000000000046),
1044 pointer_default(unique)
1046 interface IShellLinkW : IUnknown
1048 HRESULT GetPath(
1049 [out, size_is(cch)] LPWSTR pszFile,
1050 [in] int cch,
1051 [in, out] WIN32_FIND_DATAW *pfd,
1052 [in] DWORD fFlags);
1054 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
1056 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
1058 HRESULT GetDescription(
1059 [out, size_is(cch)] LPWSTR pszName,
1060 [in] int cch);
1062 HRESULT SetDescription( [in] LPCWSTR pszName );
1064 HRESULT GetWorkingDirectory(
1065 [out, size_is(cch)] LPWSTR pszDir,
1066 [in] int cch);
1068 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
1070 HRESULT GetArguments(
1071 [out, size_is(cch)] LPWSTR pszArgs,
1072 [in] int cch);
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,
1086 [in] int cch,
1087 [out] int *piIcon);
1089 HRESULT SetIconLocation(
1090 [in] LPCWSTR pszIconPath,
1091 [in] int iIcon);
1093 HRESULT SetRelativePath(
1094 [in] LPCWSTR pszPathRel,
1095 [in] DWORD dwReserved);
1097 HRESULT Resolve(
1098 [in] HWND hwnd,
1099 [in] DWORD fFlags);
1101 HRESULT SetPath( [in] LPCWSTR pszFile );
1104 cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
1107 /*****************************************************************************
1108 * IShellExtInit interface
1111 object,
1112 uuid(000214e8-0000-0000-c000-000000000046),
1113 pointer_default(unique),
1114 local
1116 interface IShellExtInit : IUnknown
1118 typedef IShellExtInit *LPSHELLEXTINIT;
1120 HRESULT Initialize(
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 /*******************************************************************************/
1133 #ifndef MAX_PATH
1134 #define MAX_PATH 260
1135 #endif
1138 /*****************************************************************************
1139 * IPersistFolder3 interface
1142 object,
1143 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
1144 pointer_default(unique)
1146 interface IPersistFolder3 : IPersistFolder2
1148 typedef struct
1150 LPITEMIDLIST pidlTargetFolder;
1151 WCHAR szTargetParsingName[MAX_PATH];
1152 WCHAR szNetworkProvider[MAX_PATH];
1153 DWORD dwAttributes;
1154 int csidl;
1155 } PERSIST_FOLDER_TARGET_INFO;
1157 HRESULT InitializeEx(
1158 [in] IBindCtx *pbc,
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
1170 object,
1171 uuid(000214eb-0000-0000-c000-000000000046),
1172 pointer_default(unique),
1173 local
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(
1192 [in] UINT uFlags,
1193 [out, size_is(cchMax)] LPSTR szIconFile,
1194 [in] UINT cchMax,
1195 [out] INT *piIndex,
1196 [out] UINT *pwFlags);
1198 HRESULT Extract(
1199 [in] LPCSTR pszFile,
1200 [in] UINT nIconIndex,
1201 [out] HICON *phiconLarge,
1202 [out] HICON *phiconSmall,
1203 [in] UINT nIconSize );
1207 /*****************************************************************************
1208 * IExtractIconW interface
1211 object,
1212 uuid(000214fa-0000-0000-c000-000000000046),
1213 pointer_default(unique),
1214 local
1216 interface IExtractIconW : IUnknown
1218 typedef IExtractIconW *LPEXTRACTICONW;
1220 HRESULT GetIconLocation(
1221 [in] UINT uFlags,
1222 [out, size_is(cchMax)] LPWSTR szIconFile,
1223 [in] UINT cchMax,
1224 [out] INT *piIndex,
1225 [out] UINT *pwFlags);
1227 HRESULT Extract(
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
1243 object,
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
1267 object,
1268 uuid(10339516-2894-11D2-9039-00C04F8EEB3E),
1269 pointer_default(unique)
1271 interface ICommDlgBrowser2 : ICommDlgBrowser
1274 HRESULT Notify(
1275 [in] IShellView *ppshv,
1276 [in] DWORD dwNotifyType);
1278 HRESULT GetDefaultMenuText(
1279 [in] IShellView *ppshv,
1280 [out, string, size_is(cchMax)] LPWSTR pszText,
1281 [in] int cchMax);
1283 HRESULT GetViewFlags(
1284 [out] DWORD *pdwFlags);
1288 /*****************************************************************************
1289 * ICommDlgBrowser3 interface
1292 object,
1293 uuid(C8AD25A1-3294-41EE-8165-71174BD01C57),
1294 pointer_default(unique)
1296 interface ICommDlgBrowser3 : ICommDlgBrowser2
1299 HRESULT OnColumnClicked(
1300 [in] IShellView *ppshv,
1301 [in] int iColumn);
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
1315 object,
1316 uuid(012dd920-7b26-11d0-8ca9-00a0c92dbfe8)
1318 interface IDockingWindow : IOleWindow
1320 HRESULT ShowDW(
1321 [in] BOOL fShow);
1323 HRESULT CloseDW(
1324 [in] DWORD dwReserved);
1326 HRESULT ResizeBorderDW(
1327 [in] LPCRECT prcBorder,
1328 [in] IUnknown *punkToolbarSite,
1329 [in] BOOL fReserved);
1333 /*****************************************************************************
1334 * IDockingWindowFrame interface
1337 object,
1338 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
1339 pointer_default(unique),
1340 local
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")
1348 HRESULT AddToolbar(
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,
1359 [in] REFIID riid,
1360 [out] LPVOID *ppvObj);
1364 /*****************************************************************************
1365 * IDragSourceHelper interface
1368 object,
1369 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
1370 pointer_default(unique),
1371 local
1373 interface IDragSourceHelper : IUnknown
1375 typedef struct
1377 SIZE sizeDragImage;
1378 POINT ptOffset;
1379 HBITMAP hbmpDragImage;
1380 COLORREF crColorKey;
1381 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
1383 HRESULT InitializeFromBitmap(
1384 [in] LPSHDRAGIMAGE pshdi,
1385 [in] IDataObject *pDataObject);
1387 HRESULT InitializeFromWindow(
1388 [in] HWND hwnd,
1389 [in] POINT *ppt,
1390 [in] IDataObject *pDataObject);
1394 /*****************************************************************************
1395 * IDropTargetHelper interface
1398 object,
1399 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
1400 pointer_default(unique),
1401 local
1403 interface IDropTargetHelper : IUnknown
1405 HRESULT DragEnter(
1406 [in] HWND hwndTarget,
1407 [in] IDataObject *pDataObject,
1408 [in] POINT *ppt,
1409 [in] DWORD dwEffect);
1411 HRESULT DragLeave();
1413 HRESULT DragOver(
1414 [in] POINT *ppt,
1415 [in] DWORD dwEffect);
1417 HRESULT Drop(
1418 [in] IDataObject *pDataObject,
1419 [in] POINT *ppt,
1420 [in] DWORD dwEffect);
1422 HRESULT Show( [in] BOOL fShow );
1426 /*****************************************************************************
1427 * IContextMenu interface
1430 object,
1431 uuid(000214e4-0000-0000-c000-000000000046),
1432 pointer_default(unique),
1433 local
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\"")
1470 cpp_quote("#else")
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};")
1474 cpp_quote("#endif")
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
1499 DWORD cbSize;
1500 DWORD fMask;
1501 HWND hwnd;
1502 LPCSTR lpVerb;
1503 LPCSTR lpParameters;
1504 LPCSTR lpDirectory;
1505 INT nShow;
1506 DWORD dwHotKey;
1507 HANDLE hIcon;
1508 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1510 typedef struct tagCMInvokeCommandInfoEx
1512 DWORD cbSize;
1513 DWORD fMask;
1514 HWND hwnd;
1515 LPCSTR lpVerb;
1516 LPCSTR lpParameters;
1517 LPCSTR lpDirectory;
1518 INT nShow;
1519 DWORD dwHotKey;
1520 HANDLE hIcon;
1521 LPCSTR lpTitle;
1522 LPCWSTR lpVerbW;
1523 LPCWSTR lpParametersW;
1524 LPCWSTR lpDirectoryW;
1525 LPCWSTR lpTitleW;
1526 POINT ptInvoke;
1527 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1529 HRESULT QueryContextMenu(
1530 [in] HMENU hmenu,
1531 [in] UINT indexMenu,
1532 [in] UINT idCmdFirst,
1533 [in] UINT idCmdLast,
1534 [in] UINT uFlags);
1536 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1538 HRESULT GetCommandString(
1539 [in] UINT_PTR idCmd,
1540 [in] UINT uType,
1541 [out] UINT *pwReserved,
1542 [out, size_is(cchMax)] LPSTR pszName,
1543 [in] UINT cchMax);
1547 /*****************************************************************************
1548 * IContextMenu2 interface
1551 object,
1552 uuid(000214f4-0000-0000-c000-000000000046),
1553 pointer_default(unique),
1554 local
1556 interface IContextMenu2 : IContextMenu
1558 typedef IContextMenu2 *LPCONTEXTMENU2;
1560 HRESULT HandleMenuMsg(
1561 [in] UINT uMsg,
1562 [in] WPARAM wParam,
1563 [in] LPARAM lParam);
1567 /*****************************************************************************
1568 * IContextMenu3 interface
1571 object,
1572 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1573 pointer_default(unique),
1574 local
1576 interface IContextMenu3 : IContextMenu2
1578 typedef IContextMenu3 *LPCONTEXTMENU3;
1580 HRESULT HandleMenuMsg2(
1581 [in] UINT uMsg,
1582 [in] WPARAM wParam,
1583 [in] LPARAM lParam,
1584 [out] LRESULT *plResult);
1588 /*****************************************************************************
1589 * IShellExecuteHookA interface
1592 object,
1593 uuid(000214f5-0000-0000-c000-000000000046),
1594 pointer_default(unique),
1595 local
1597 interface IShellExecuteHookA : IUnknown
1599 cpp_quote("struct _SHELLEXECUTEINFOA;")
1600 HRESULT Execute(
1601 [in, out] struct _SHELLEXECUTEINFOA* pei);
1605 /*****************************************************************************
1606 * IShellExecuteHookW interface
1609 object,
1610 uuid(000214fb-0000-0000-c000-000000000046),
1611 pointer_default(unique),
1612 local
1614 interface IShellExecuteHookW : IUnknown
1616 cpp_quote("struct _SHELLEXECUTEINFOW;")
1617 HRESULT Execute(
1618 [in, out] struct _SHELLEXECUTEINFOW* pei);
1621 /*****************************************************************************
1622 * IShellLinkDataList interface
1625 object,
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(
1634 [in] DWORD dwSig,
1635 [out] void **ppDataBlock);
1636 HRESULT RemoveDataBlock(
1637 [in] DWORD dwSig);
1638 HRESULT GetFlags(
1639 [out] DWORD *pdwFlags);
1640 HRESULT SetFlags(
1641 [in] DWORD dwFlags);
1645 /*****************************************************************************
1646 * IResolveShellLink interface
1649 object,
1650 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1651 pointer_default(unique)
1653 interface IResolveShellLink : IUnknown
1655 HRESULT ResolveShellLink(
1656 [in] IUnknown *punk,
1657 [in] HWND hwnd,
1658 [in] DWORD fFlags);
1662 /*****************************************************************************
1663 * IURLSearchHook interface
1666 object,
1667 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1668 pointer_default(unique),
1669 local
1671 interface IURLSearchHook : IUnknown
1673 HRESULT Translate(
1674 [in, out] LPWSTR lpwszSearchURL,
1675 [in] DWORD cchBufferSize);
1679 /*****************************************************************************
1680 * ISearchContext interface
1683 object,
1684 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1685 pointer_default(unique),
1686 local
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
1703 object,
1704 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1705 pointer_default(unique),
1706 local
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
1723 object,
1724 uuid(000214e1-0000-0000-c000-000000000046),
1725 pointer_default(unique),
1726 local
1728 interface INewShortcutHookA : IUnknown
1730 HRESULT SetReferent(
1731 [in] LPCSTR pcszReferent,
1732 [in] HWND hwnd);
1733 HRESULT GetReferent(
1734 [out] LPSTR pcszReferent,
1735 [in] int cchReferent);
1736 HRESULT SetFolder(
1737 [in] LPCSTR pcszReferent);
1738 HRESULT GetFolder(
1739 [out] LPSTR pcszReferent,
1740 [in] int cchFolder);
1741 HRESULT GetName(
1742 [out] LPSTR pszName,
1743 [in] int cchName);
1744 HRESULT GetExtension(
1745 [out] LPSTR pszExtension,
1746 [in] int cchExtension);
1750 /*****************************************************************************
1751 * INewShortcutHookW interface
1754 object,
1755 uuid(000214f7-0000-0000-c000-000000000046),
1756 pointer_default(unique),
1757 local
1759 interface INewShortcutHookW : IUnknown
1761 HRESULT SetReferent(
1762 [in] LPCWSTR pcszReferent,
1763 [in] HWND hwnd);
1764 HRESULT GetReferent(
1765 [out] LPWSTR pcszReferent,
1766 [in] int cchReferent);
1767 HRESULT SetFolder(
1768 [in] LPCWSTR pcszReferent);
1769 HRESULT GetFolder(
1770 [out] LPWSTR pcszReferent,
1771 [in] int cchFolder);
1772 HRESULT GetName(
1773 [out] LPWSTR pszName,
1774 [in] int cchName);
1775 HRESULT GetExtension(
1776 [out] LPWSTR pszExtension,
1777 [in] int cchExtension);
1780 /*****************************************************************************
1781 * IRunnableTask interface
1784 object,
1785 uuid(85788d00-6807-11d0-b810-00c04fd706ec),
1786 pointer_default(unique),
1787 local
1789 interface IRunnableTask : IUnknown
1791 HRESULT Run();
1792 HRESULT Kill([in] BOOL fWait);
1793 HRESULT Suspend();
1794 HRESULT Resume();
1795 ULONG IsRunning();
1798 /*****************************************************************************
1799 * IShellChangeNotify interface
1802 object,
1803 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
1804 pointer_default(unique),
1805 local
1807 interface IShellChangeNotify : IUnknown
1809 HRESULT OnChange(
1810 [in] LONG lEvent,
1811 [in] LPCITEMIDLIST pidl1,
1812 [in] LPCITEMIDLIST pidl2);
1815 /*****************************************************************************
1816 * IFileSystemBindData interface
1819 object,
1820 uuid(01e18d10-4d8b-11d2-855d-006008059367),
1821 pointer_default(unique),
1822 local
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
1836 object,
1837 uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
1838 pointer_default(unique)
1840 interface ITaskbarList : IUnknown
1842 HRESULT HrInit();
1844 HRESULT AddTab(
1845 [in] HWND hwnd);
1847 HRESULT DeleteTab(
1848 [in] HWND hwnd);
1850 HRESULT ActivateTab(
1851 [in] HWND hwnd);
1853 HRESULT SetActiveAlt(
1854 [in] HWND hwnd);
1857 cpp_quote("EXTERN_C const CLSID CLSID_TaskbarList;")
1859 /*****************************************************************************
1860 * ITaskbarList2 interface
1863 object,
1864 uuid(602D4995-B13A-429B-A66E-1935E44F4317),
1865 pointer_default(unique)
1867 interface ITaskbarList2 : ITaskbarList
1869 HRESULT MarkFullscreenWindow(
1870 [in] HWND hwnd,
1871 [in] BOOL fullscreen);
1874 /*****************************************************************************
1875 * IAutoCompleteDropDown interface
1878 object,
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();
1894 object,
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
1912 object,
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
1939 object,
1940 uuid(E07010EC-BC17-44C0-97B0-46C7C95B9EDC)
1942 interface IExplorerPaneVisibility : IUnknown
1944 typedef enum tagEXPLORERPANESTATE {
1945 EPS_DONTCARE = 0x0,
1946 EPS_DEFAULT_ON = 0x1,
1947 EPS_DEFAULT_OFF = 0x2,
1948 EPS_STATE_MASK = 0xffff,
1949 EPS_INITIALSTATE = 0x10000,
1950 EPS_FORCE = 0x20000
1951 } EXPLORERPANESTATE;
1953 HRESULT GetPaneState(
1954 [in] REFEXPLORERPANE ep,
1955 [out] EXPLORERPANESTATE *peps);
1958 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS {
1959 EBF_NONE = 0,
1960 EBF_SELECTFROMDATAOBJECT = 0x100,
1961 EBF_NODROPTARGET = 0x200
1962 } EXPLORER_BROWSER_FILL_FLAGS;
1964 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS {
1965 EBO_NONE = 0x00,
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
1980 object,
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);
1992 HRESULT Destroy();
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);
2007 HRESULT Advise(
2008 [in] IExplorerBrowserEvents *psbe,
2009 [out] DWORD *pdwCookie);
2011 HRESULT Unadvise(
2012 [in] DWORD dwCookie);
2014 HRESULT SetOptions(
2015 [in] EXPLORER_BROWSER_OPTIONS dwFlag);
2017 HRESULT GetOptions(
2018 [out] EXPLORER_BROWSER_OPTIONS *pdwFlag);
2020 HRESULT BrowseToIDList(
2021 [in] PCUIDLIST_RELATIVE pidl,
2022 [in] UINT uFlags);
2024 HRESULT BrowseToObject(
2025 [in] IUnknown *punk,
2026 [in] UINT uFlags);
2028 HRESULT FillFromObject(
2029 [in] IUnknown *punk,
2030 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags);
2032 HRESULT RemoveAll();
2034 HRESULT GetCurrentView(
2035 [in] REFIID riid,
2036 [out, iid_is(riid)] void **ppv);
2039 /*****************************************************************************
2040 * INameSpaceTreeControl interface
2043 object,
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 {
2100 NSTCGNI_NEXT = 0,
2101 NSTCGNI_NEXTVISIBLE = 1,
2102 NSTCGNI_PREV = 2,
2103 NSTCGNI_PREVVISIBLE = 3,
2104 NSTCGNI_PARENT = 4,
2105 NSTCGNI_CHILD = 5,
2106 NSTCGNI_FIRSTVISIBLE = 6,
2107 NSTCGNI_LASTVISIBLE = 7
2108 } NSTCGNI;
2110 HRESULT Initialize(
2111 [in] HWND hwndParent,
2112 [in, unique] RECT *prc,
2113 [in] NSTCSTYLE nstcsFlags);
2115 HRESULT TreeAdvise(
2116 [in] IUnknown *punk,
2117 [out] DWORD *pdwCookie);
2119 HRESULT TreeUnadvise(
2120 [in] DWORD dwCookie);
2122 HRESULT AppendRoot(
2123 [in] IShellItem *psiRoot,
2124 [in] SHCONTF grfEnumFlags,
2125 [in] NSTCROOTSTYLE grfRootStyle,
2126 [in, unique] IShellItemFilter *pif);
2128 HRESULT InsertRoot(
2129 [in] int iIndex,
2130 [in] IShellItem *psiRoot,
2131 [in] SHCONTF grfEnumFlags,
2132 [in] NSTCROOTSTYLE grfRootStyle,
2133 [in, unique] IShellItemFilter *pif);
2135 HRESULT RemoveRoot(
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);
2167 HRESULT SetTheme(
2168 [in, string] LPCWSTR pszTheme);
2170 HRESULT GetNextItem(
2171 [in, unique] IShellItem *psi,
2172 [in] NSTCGNI nstcgi,
2173 [out] IShellItem **ppsiNext);
2175 HRESULT HitTest(
2176 [in] POINT *ppt,
2177 [out] IShellItem **ppsiOut);
2179 HRESULT GetItemRect(
2180 [in] IShellItem *psi,
2181 [out] RECT *prect);
2183 HRESULT CollapseAll();
2186 /*****************************************************************************
2187 * INameSpaceTreeControl2 interface
2190 object,
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 */
2203 } NSTCSTYLE2;
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
2228 object,
2229 uuid(93D77985-B3D8-4484-8318-672CDDA002CE),
2230 local
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(
2278 [in] UINT uMsg,
2279 [in] WPARAM wParam,
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,
2297 [in] int cchTip);
2299 HRESULT OnBeforeItemDelete(
2300 [in] IShellItem *psi);
2302 HRESULT OnItemAdded(
2303 [in] IShellItem *psi,
2304 [in] BOOL fIsRoot);
2306 HRESULT OnItemDeleted(
2307 [in] IShellItem *psi,
2308 [in] BOOL fIsRoot);
2310 HRESULT OnBeforeContextMenu(
2311 [in, unique] IShellItem *psi,
2312 [in] REFIID riid,
2313 [out, iid_is(riid)] void **ppv);
2315 HRESULT OnAfterContextMenu(
2316 [in] IShellItem *psi,
2317 [in] IContextMenu *pcmIn,
2318 [in] REFIID riid,
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;
2332 cpp_quote("#endif")
2334 /*****************************************************************************
2335 * INameSpaceTreeControlCustomDraw interface
2338 object,
2339 uuid(2D3BA758-33EE-42D5-BB7B-5F3431D86C78),
2340 local
2343 interface INameSpaceTreeControlCustomDraw : IUnknown
2345 typedef struct NSTCCUSTOMDRAW
2347 IShellItem *psi;
2348 UINT uItemState;
2349 NSTCITEMSTATE nstcis;
2350 LPCWSTR pszText;
2351 int iImage;
2352 HIMAGELIST himl;
2353 int iLevel;
2354 int iIndent;
2355 } NSTCCUSTOMDRAW;
2357 HRESULT PrePaint(
2358 [in] HDC hdc,
2359 [in] RECT *prc,
2360 [out] LRESULT *plres);
2362 HRESULT PostPaint(
2363 [in] HDC hdc,
2364 [in] RECT *prc);
2366 HRESULT ItemPrePaint(
2367 [in] HDC hdc,
2368 [in] RECT *prc,
2369 [in, out] COLORREF *pclrText,
2370 [in, out] COLORREF *pclrTextBk,
2371 [out] LRESULT *plres);
2373 HRESULT ItemPostPaint(
2374 [in] HDC hdc,
2375 [in] RECT *prc,
2376 [in] NSTCCUSTOMDRAW *pnstccdItem);
2379 /*****************************************************************************
2380 * INameSpaceTreeControlDropHandler interface
2383 object,
2384 uuid(F9C665D6-C2F2-4C19-BF33-8322D7352F51),
2385 local
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);
2396 HRESULT OnDragOver(
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);
2408 HRESULT OnDrop(
2409 [in, unique] IShellItem *psiOver,
2410 [in] IShellItemArray *psiaData,
2411 [in] int iPosition,
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
2430 FDEOR_DEFAULT = 0,
2431 FDEOR_ACCCEP = 1,
2432 FDEOR_REFUSE = 2
2433 } FDE_OVERWRITE_RESPONSE;
2435 typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
2437 FDESVR_DEFAULT = 0,
2438 FDESVR_ACCEPT = 1,
2439 FDESVR_REFUSE = 2
2440 } FDE_SHAREVIOLATION_RESPONSE;
2442 /*****************************************************************************
2443 * IFileDialogEvents interface
2446 object,
2447 uuid(973510DB-7D7F-452B-8975-74A85828D354),
2448 pointer_default(unique)
2450 interface IFileDialogEvents : IUnknown
2452 HRESULT OnFileOk(
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
2483 object,
2484 uuid(B4DB1657-70D7-485E-8E3E-6FCB5A5C1802),
2485 pointer_default(unique)
2487 interface IModalWindow : IUnknown
2489 [local]
2490 HRESULT Show(
2491 [in, unique, annotation("__in_opt")] HWND hwndOwner);
2493 [call_as(Show)]
2494 HRESULT RemoteShow(
2495 [in, unique] HWND hwndOwner);
2498 typedef [v1_enum] enum FDAP
2500 FDAP_BOTTOM = 0,
2501 FDAP_TOP = 1
2502 } FDAP;
2504 /*****************************************************************************
2505 * IFileDialog interface
2508 object,
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);
2550 HRESULT Advise(
2551 [in] IFileDialogEvents *pfde,
2552 [out] DWORD *pdwCookie);
2554 HRESULT Unadvise(
2555 [in] DWORD dwCookie);
2557 HRESULT SetOptions(
2558 [in] FILEOPENDIALOGOPTIONS fos);
2560 HRESULT GetOptions(
2561 [in] FILEOPENDIALOGOPTIONS *pfos);
2563 HRESULT SetDefaultFolder(
2564 [in] IShellItem *psi);
2566 HRESULT SetFolder(
2567 [in] IShellItem *psi);
2569 HRESULT GetFolder(
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);
2581 HRESULT SetTitle(
2582 [in, string] LPCWSTR pszTitle);
2584 HRESULT SetOkButtonLabel(
2585 [in, string] LPCWSTR pszText);
2587 HRESULT SetFileNameLabel(
2588 [in, string] LPCWSTR pszLabel);
2590 HRESULT GetResult(
2591 [out] IShellItem **ppsi);
2593 HRESULT AddPlace(
2594 [in] IShellItem *psi,
2595 [in] FDAP fdap);
2597 HRESULT SetDefaultExtension(
2598 [in, string] LPCWSTR pszDefaultExtension);
2600 HRESULT Close(
2601 [in] HRESULT hr);
2603 HRESULT SetClientGuid(
2604 [in] REFGUID guid);
2606 HRESULT ClearClientData();
2608 HRESULT SetFilter(
2609 [in] IShellItemFilter *pFilter);
2612 /*****************************************************************************
2613 * IFileDialog2 interface
2616 object,
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
2633 object,
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(
2645 [in] DWORD dwFlags,
2646 [in] IShellItem *psiItem,
2647 [in, unique, string] LPCWSTR pszNewName);
2649 HRESULT PostRenameItem(
2650 [in] DWORD dwFlags,
2651 [in] IShellItem *psiItem,
2652 [in, string] LPCWSTR pszNewName,
2653 [in] HRESULT hrRename,
2654 [in] IShellItem *psiNewlyCreated);
2656 HRESULT PreMoveItem(
2657 [in] DWORD dwFlags,
2658 [in] IShellItem *psiItem,
2659 [in] IShellItem *psiDestinationFolder,
2660 [in, unique, string] LPCWSTR pszNewName);
2662 HRESULT PostMoveItem(
2663 [in] DWORD dwFlags,
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(
2671 [in] DWORD dwFlags,
2672 [in] IShellItem *psiItem,
2673 [in] IShellItem *psiDestinationFolder,
2674 [in, unique, string] LPCWSTR pszNewName);
2676 HRESULT PostCopyItem(
2677 [in] DWORD dwFlags,
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(
2685 [in] DWORD dwFlags,
2686 [in] IShellItem *psiItem);
2688 HRESULT PostDeleteItem(
2689 [in] DWORD dwFlags,
2690 [in] IShellItem *psiItem,
2691 [in] HRESULT hrDelete,
2692 [in] IShellItem *psiNewlyCreated);
2694 HRESULT PreNewItem(
2695 [in] DWORD dwFlags,
2696 [in] IShellItem *psiDestinationFolder,
2697 [in, unique, string] LPCWSTR pszNewName);
2699 HRESULT PostNewItem(
2700 [in] DWORD dwFlags,
2701 [in] IShellItem *psiDestinationFolder,
2702 [in, unique, string] LPCWSTR pszNewName,
2703 [in, unique, string] LPCWSTR pszTemplateName,
2704 [in] DWORD dwFileAttributes,
2705 [in] HRESULT hrNew,
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
2723 object,
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
2754 object,
2755 uuid(D57C7288-D4AD-4768-BE02-9D969532D960),
2756 pointer_default(unique)
2758 interface IFileOpenDialog : IFileDialog
2760 HRESULT GetResults(
2761 [out] IShellItemArray **ppenum);
2763 HRESULT GetSelectedItems(
2764 [out] IShellItemArray **ppsai);
2767 typedef [v1_enum] enum CDCONTROLSTATEF
2769 CDCS_INACTIVE = 0x0,
2770 CDCS_ENABLED = 0x1,
2771 CDCS_VISIBLE = 0x2,
2772 CDCS_ENABLEDVISIBLE = 0x3
2773 } CDCONTROLSTATEF;
2774 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
2775 /*****************************************************************************
2776 * IFileDialogCustomize interface
2779 object,
2780 uuid(E6FDD21A-163F-4975-9C8C-A69F1BA37034),
2781 pointer_default(unique)
2783 interface IFileDialogCustomize : IUnknown
2785 HRESULT EnableOpenDropDown(
2786 [in] DWORD dwIDCtl);
2788 HRESULT AddMenu(
2789 [in] DWORD dwIDCtl,
2790 [in, string] LPCWSTR pszLabel);
2792 HRESULT AddPushButton(
2793 [in] DWORD dwIDCtl,
2794 [in, string] LPCWSTR pszLabel);
2796 HRESULT AddComboBox(
2797 [in] DWORD dwIDCtl);
2799 HRESULT AddRadioButtonList(
2800 [in] DWORD dwIDCtl);
2802 HRESULT AddCheckButton(
2803 [in] DWORD dwIDCtl,
2804 [in, string] LPCWSTR pszLabel,
2805 [in] BOOL bChecked);
2807 HRESULT AddEditBox(
2808 [in] DWORD dwIDCtl,
2809 [in, string] LPCWSTR pszText);
2811 HRESULT AddSeparator(
2812 [in] DWORD dwIDCtl);
2814 HRESULT AddText(
2815 [in] DWORD dwIDCtl,
2816 [in, string] LPCWSTR pszText);
2818 HRESULT SetControlLabel(
2819 [in] DWORD dwIDCtl,
2820 [in, string] LPCWSTR pszLabel);
2822 HRESULT GetControlState(
2823 [in] DWORD dwIDCtl,
2824 [out] CDCONTROLSTATEF *pdwState);
2826 HRESULT SetControlState(
2827 [in] DWORD dwIDCtl,
2828 [in] CDCONTROLSTATEF dwState);
2830 HRESULT GetEditBoxText(
2831 [in] DWORD dwIDCtl,
2832 [out, string] WCHAR **ppszText);
2834 HRESULT SetEditBoxText(
2835 [in] DWORD dwIDCtl,
2836 [in, string] LPCWSTR pszText);
2838 HRESULT GetCheckButtonState(
2839 [in] DWORD dwIDCtl,
2840 [out] BOOL *pbChecked);
2842 HRESULT SetCheckButtonState(
2843 [in] DWORD dwIDCtl,
2844 [in] BOOL bChecked);
2846 HRESULT AddControlItem(
2847 [in] DWORD dwIDCtl,
2848 [in] DWORD dwIDItem,
2849 [in] LPCWSTR pszLabel);
2851 HRESULT RemoveControlItem(
2852 [in] DWORD dwIDCtl,
2853 [in] DWORD dwIDItem);
2855 HRESULT RemoveAllControlItems(
2856 [in] DWORD dwIDCtl);
2858 HRESULT GetControlItemState(
2859 [in] DWORD dwIDCtl,
2860 [in] DWORD dwIDItem,
2861 [out] CDCONTROLSTATEF *pdwState);
2863 HRESULT SetControlItemState(
2864 [in] DWORD dwIDCtl,
2865 [in] DWORD dwIDItem,
2866 [in] CDCONTROLSTATEF dwState);
2868 HRESULT GetSelectedControlItem(
2869 [in] DWORD dwIDCtl,
2870 [out] DWORD *pdwIDItem);
2872 HRESULT SetSelectedControlItem(
2873 [in] DWORD dwIDCtl,
2874 [in] DWORD dwIDItem);
2876 HRESULT StartVisualGroup(
2877 [in] DWORD dwIDCtl,
2878 [in, string] LPCWSTR pszLabel);
2880 HRESULT EndVisualGroup();
2882 HRESULT MakeProminent(
2883 [in] DWORD dwIDCtl);
2885 HRESULT SetControlItemText(
2886 [in] DWORD dwIDCtl,
2887 [in] DWORD dwIDItem,
2888 [in, string] LPCWSTR pszLabel);
2891 /*****************************************************************************
2892 * IFileDialogControlEvents interface
2895 object,
2896 uuid(36116642-D713-4B97-9B83-7484A9D00433),
2897 pointer_default(unique)
2899 interface IFileDialogControlEvents : IUnknown
2901 HRESULT OnItemSelected(
2902 [in] IFileDialogCustomize *pfdc,
2903 [in] DWORD dwIDCtl,
2904 [in] DWORD dwIDItem);
2906 HRESULT OnButtonClicked(
2907 [in] IFileDialogCustomize *pfdc,
2908 [in] DWORD dwIDCtl);
2910 HRESULT OnCheckButtonToggled(
2911 [in] IFileDialogCustomize *pfdc,
2912 [in] BOOL dwIDCtl,
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
2926 } KF_CATEGORY;
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;
2950 LPWSTR pszName;
2951 LPWSTR pszDescription;
2952 KNOWNFOLDERID fidParent;
2953 LPWSTR pszRelativePath;
2954 LPWSTR pszParsingName;
2955 LPWSTR pszTooltip;
2956 LPWSTR pszLocalizedName;
2957 LPWSTR pszIcon;
2958 LPWSTR pszSecurity;
2959 DWORD dwAttributes;
2960 KF_DEFINITION_FLAGS kfdFlags;
2961 FOLDERTYPEID ftidType;
2962 } KNOWNFOLDER_DEFINITION;
2965 object,
2966 uuid(3aa7af7e-9b36-420C-a8e3-f77d4674a488),
2967 pointer_default(ref)
2969 interface IKnownFolder : IUnknown
2971 HRESULT GetId(
2972 [out] KNOWNFOLDERID *pkfid);
2974 HRESULT GetCategory(
2975 [out] KF_CATEGORY *pCategory);
2977 HRESULT GetShellItem(
2978 [in] DWORD dwFlags,
2979 [in] REFIID riid,
2980 [out, iid_is(riid)] void **ppv);
2982 HRESULT GetPath(
2983 [in] DWORD dwFlags,
2984 [out, string] LPWSTR *ppszPath);
2986 HRESULT SetPath(
2987 [in] DWORD dwFlags,
2988 [in, string] LPCWSTR pszPath);
2990 HRESULT GetIDList(
2991 [in] DWORD dwFlags,
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;
3020 object,
3021 uuid(8BE2D872-86AA-4d47-B776-32CCA40C7018),
3022 pointer_default(ref)
3024 interface IKnownFolderManager : IUnknown
3026 typedef [v1_enum] enum tagFFFP_MODE
3028 FFFP_EXACTMATCH,
3029 FFFP_NEARESTPARENTMATCH
3030 } FFFP_MODE;
3032 HRESULT FolderIdFromCsidl(
3033 [in] int nCsidl,
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);
3044 HRESULT GetFolder(
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);
3068 HRESULT Redirect(
3069 [in] REFKNOWNFOLDERID rfid,
3070 [in, unique] HWND hwnd,
3071 [in] KF_REDIRECT_FLAGS flags,
3072 [in, unique, string] LPCWSTR pszTargetPath,
3073 [in] UINT cFolders,
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)")
3080 cpp_quote("{")
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);")
3089 cpp_quote("}")
3091 typedef [v1_enum] enum ASSOCIATIONLEVEL {
3092 AL_MACHINE,
3093 AL_EFFECTIVE,
3094 AL_USER
3095 } ASSOCIATIONLEVEL;
3097 typedef [v1_enum] enum ASSOCIATIONTYPE {
3098 AT_FILEEXTENSION,
3099 AT_URLPROTOCOL,
3100 AT_STARTMENUCLIENT,
3101 AT_MIMETYPE
3102 } ASSOCIATIONTYPE;
3105 object,
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),
3145 lcid(0x0000),
3146 version(1.0)
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;