mshtml: Pass EventTarget to set_event_handler.
[wine.git] / include / shobjidl.idl
blob455045df79e466f4db9be0a45edbf964a66571d3
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 import "objectarray.idl";
35 /* FIXME: import "structuredquery.idl"; */
37 cpp_quote("/* FIXME: #include <sherrors.h> */")
40 /*****************************************************************************
41 * IPersistFolder interface
44 object,
45 uuid(000214ea-0000-0000-c000-000000000046),
46 pointer_default(unique)
48 interface IPersistFolder : IPersist
50 typedef IPersistFolder *LPPERSISTFOLDER;
52 HRESULT Initialize( [in] LPCITEMIDLIST pidl );
56 /*****************************************************************************
57 * IPersistFolder2 interface
60 object,
61 uuid(1ac3d9f0-175c-11d1-95be-00609797ea4f),
62 pointer_default(unique)
64 interface IPersistFolder2 : IPersistFolder
66 typedef IPersistFolder2 *LPPERSISTFOLDER2;
68 HRESULT GetCurFolder( [out] LPITEMIDLIST *ppidl );
72 /*****************************************************************************
73 * IPersistIDList interface
76 object,
77 uuid(1079acfc-29bd-11d3-8e0d-00c04f6837d5),
78 pointer_default(unique)
80 interface IPersistIDList : IPersist
82 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
83 HRESULT GetIDList( [out] LPITEMIDLIST *ppidl );
87 /*****************************************************************************
88 * IEnumIDList interface
91 object,
92 uuid(000214f2-0000-0000-c000-000000000046),
93 pointer_default(unique)
95 interface IEnumIDList : IUnknown
97 typedef IEnumIDList *LPENUMIDLIST;
99 HRESULT Next(
100 [in] ULONG celt,
101 [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
102 [out] ULONG *pceltFetched);
104 HRESULT Skip( [in] ULONG celt );
105 HRESULT Reset();
106 HRESULT Clone( [out] IEnumIDList **ppenum );
109 /*****************************************************************************
110 * IShellPropSheetExt interface
112 cpp_quote("#if 0")
113 typedef LPARAM LPFNSVADDPROPSHEETPAGE;
114 cpp_quote("#else")
115 cpp_quote("#include <prsht.h>")
116 cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
117 cpp_quote("#endif")
120 object,
121 uuid(000214E9-0000-0000-C000-000000000046),
122 pointer_default(unique),
123 local
125 interface IShellPropSheetExt : IUnknown
127 enum tagSHELLPROPSHEETEXTPAGEID {
128 EXPPS_FILETYPES = 0x1
131 typedef UINT EXPPS;
133 HRESULT AddPages(
134 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
135 [in] LPARAM lParam);
136 HRESULT ReplacePage(
137 [in] EXPPS uPageID,
138 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
139 [in] LPARAM lParam);
141 typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
143 /*****************************************************************************
144 * IShellFolder interface
147 object,
148 uuid(000214e6-0000-0000-c000-000000000046),
149 pointer_default(unique)
151 interface IShellFolder : IUnknown
153 typedef IShellFolder * LPSHELLFOLDER;
155 typedef enum tagSHGDN
157 SHGDN_NORMAL = 0,
158 SHGDN_INFOLDER = 1,
159 SHGDN_FOREDITING = 0x1000,
160 SHGDN_INCLUDE_NONFILESYS = 0x2000,
161 SHGDN_FORADDRESSBAR = 0x4000,
162 SHGDN_FORPARSING = 0x8000
163 } SHGNO;
165 typedef DWORD SHGDNF;
167 enum tagSHCONTF
169 SHCONTF_FOLDERS = 32,
170 SHCONTF_NONFOLDERS = 64,
171 SHCONTF_INCLUDEHIDDEN = 128,
172 SHCONTF_INIT_ON_FIRST_NEXT = 256,
173 SHCONTF_NETPRINTERSRCH = 512,
174 SHCONTF_SHAREABLE = 1024,
175 SHCONTF_STORAGE = 2048
178 typedef DWORD SHCONTF;
180 cpp_quote("#define SFGAO_CANCOPY DROPEFFECT_COPY")
181 cpp_quote("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
182 cpp_quote("#define SFGAO_CANLINK DROPEFFECT_LINK")
183 cpp_quote("#define SFGAO_STORAGE 0x00000008L")
184 cpp_quote("#define SFGAO_CANRENAME 0x00000010L")
185 cpp_quote("#define SFGAO_CANDELETE 0x00000020L")
186 cpp_quote("#define SFGAO_HASPROPSHEET 0x00000040L")
187 cpp_quote("#define SFGAO_DROPTARGET 0x00000100L")
188 cpp_quote("#define SFGAO_CAPABILITYMASK 0x00000177L")
189 cpp_quote("#define SFGAO_ENCRYPTED 0x00002000L")
190 cpp_quote("#define SFGAO_ISSLOW 0x00004000L")
191 cpp_quote("#define SFGAO_GHOSTED 0x00008000L")
192 cpp_quote("#define SFGAO_LINK 0x00010000L")
193 cpp_quote("#define SFGAO_SHARE 0x00020000L")
194 cpp_quote("#define SFGAO_READONLY 0x00040000L")
195 cpp_quote("#define SFGAO_HIDDEN 0x00080000L")
196 cpp_quote("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
197 cpp_quote("#define SFGAO_FILESYSANCESTOR 0x10000000L")
198 cpp_quote("#define SFGAO_FOLDER 0x20000000L")
199 cpp_quote("#define SFGAO_FILESYSTEM 0x40000000L")
200 cpp_quote("#define SFGAO_HASSUBFOLDER 0x80000000L")
201 cpp_quote("#define SFGAO_CONTENTSMASK 0x80000000L")
202 cpp_quote("#define SFGAO_VALIDATE 0x01000000L")
203 cpp_quote("#define SFGAO_REMOVABLE 0x02000000L")
204 cpp_quote("#define SFGAO_COMPRESSED 0x04000000L")
205 cpp_quote("#define SFGAO_BROWSABLE 0x08000000L")
206 cpp_quote("#define SFGAO_NONENUMERATED 0x00100000L")
207 cpp_quote("#define SFGAO_NEWCONTENT 0x00200000L")
208 cpp_quote("#define SFGAO_STREAM 0x00400000L")
209 cpp_quote("#define SFGAO_STORAGEANCESTOR 0x00800000L")
211 typedef ULONG SFGAOF;
213 HRESULT ParseDisplayName(
214 [in] HWND hwndOwner,
215 [in] LPBC pbcReserved,
216 [in, string] LPOLESTR lpszDisplayName,
217 [out] ULONG *pchEaten,
218 [out] LPITEMIDLIST *ppidl,
219 [in, out, unique] ULONG *pdwAttributes);
221 HRESULT EnumObjects(
222 [in] HWND hwndOwner,
223 [in] SHCONTF grfFlags,
224 [out] IEnumIDList **ppenumIDList);
226 HRESULT BindToObject(
227 [in] LPCITEMIDLIST pidl,
228 [in] LPBC pbcReserved,
229 [in] REFIID riid,
230 [out, iid_is(riid)] void **ppvOut);
232 HRESULT BindToStorage(
233 [in] LPCITEMIDLIST pidl,
234 [in] LPBC pbcReserved,
235 [in] REFIID riid,
236 [out, iid_is(riid)] void **ppvObj);
238 HRESULT CompareIDs(
239 [in] LPARAM lParam,
240 [in] LPCITEMIDLIST pidl1,
241 [in] LPCITEMIDLIST pidl2);
243 HRESULT CreateViewObject(
244 [in] HWND hwndOwner,
245 [in] REFIID riid,
246 [out, iid_is(riid)] void **ppvOut);
248 HRESULT GetAttributesOf(
249 [in] UINT cidl,
250 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
251 [in, out] SFGAOF *rgfInOut);
253 HRESULT GetUIObjectOf(
254 [in] HWND hwndOwner,
255 [in] UINT cidl,
256 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
257 [in] REFIID riid,
258 [in, out, unique] UINT *prgfInOut,
259 [out, iid_is(riid)] void **ppvOut);
261 HRESULT GetDisplayNameOf(
262 [in] LPCITEMIDLIST pidl,
263 [in] SHGDNF uFlags,
264 [out] STRRET *lpName);
266 HRESULT SetNameOf(
267 [in] HWND hwnd,
268 [in] LPCITEMIDLIST pidl,
269 [in, string] LPCOLESTR lpszName,
270 [in] SHGDNF uFlags,
271 [out] LPITEMIDLIST *ppidlOut);
275 /*****************************************************************************
276 * IEnumExtraSearch interface
279 object,
280 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
281 pointer_default(unique)
283 interface IEnumExtraSearch : IUnknown
285 typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
287 typedef struct
289 GUID guidSearch;
290 WCHAR wszFriendlyName[80];
292 *WCHAR wszMenuText[80];
293 *WCHAR wszHelpText[MAX_PATH];
295 WCHAR wszUrl[2084];
297 *WCHAR wszIcon[MAX_PATH+10];
298 *WCHAR wszGreyIcon[MAX_PATH+10];
299 *WCHAR wszClrIcon[MAX_PATH+10];
301 } EXTRASEARCH, *LPEXTRASEARCH;
303 HRESULT Next(
304 [in] ULONG celt,
305 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
306 [out] ULONG *pceltFetched);
308 HRESULT Skip( [in] ULONG celt );
309 HRESULT Reset();
310 HRESULT Clone( [out] IEnumExtraSearch **ppenum );
314 /*****************************************************************************
315 * IShellFolder2 interface
318 object,
319 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
320 pointer_default(unique)
322 interface IShellFolder2 : IShellFolder
324 typedef struct
326 GUID fmtid;
327 DWORD pid;
328 } SHCOLUMNID, *LPSHCOLUMNID;
329 typedef const SHCOLUMNID *LPCSHCOLUMNID;
331 HRESULT GetDefaultSearchGUID( [out] GUID *lpguid );
332 HRESULT EnumSearches( [out] IEnumExtraSearch **ppenum );
333 HRESULT GetDefaultColumn( [in] DWORD dwReserved, [out] ULONG *pSort, [out] ULONG *pDisplay );
334 HRESULT GetDefaultColumnState( [in] UINT iColumn, [out] SHCOLSTATEF *pcsFlags );
335 HRESULT GetDetailsEx( [in] LPCITEMIDLIST pidl, [in] const SHCOLUMNID *pscid, [out] VARIANT *pv);
336 HRESULT GetDetailsOf( [in] LPCITEMIDLIST pidl, [in] UINT iColumn, [out] SHELLDETAILS *psd);
337 HRESULT MapColumnToSCID( [in] UINT iColumn, [in] SHCOLUMNID *pscid );
340 /*****************************************************************************
341 * IShellItem interface
344 object,
345 uuid(43826d1e-e718-42ee-bc55-a1e261c37bfe),
346 pointer_default(unique)
348 interface IShellItem : IUnknown
350 typedef [v1_enum] enum {
351 SIGDN_NORMALDISPLAY = 0,
352 SIGDN_PARENTRELATIVEPARSING = 0x80018001,
353 SIGDN_DESKTOPABSOLUTEPARSING = 0x80028000,
354 SIGDN_PARENTRELATIVEEDITING = 0x80031001,
355 SIGDN_DESKTOPABSOLUTEEDITING = 0x8004c000,
356 SIGDN_FILESYSPATH = 0x80058000,
357 SIGDN_URL = 0x80068000,
358 SIGDN_PARENTRELATIVEFORADDRESSBAR = 0x8007c001,
359 SIGDN_PARENTRELATIVE = 0x80080001
360 } SIGDN; /* & 0xFFFF => SHGDN */
362 [v1_enum] enum _SICHINTF
364 SICHINT_DISPLAY = 0x00000000,
365 SICHINT_CANONICAL = 0x10000000,
366 SICHINT_TEST_FILESYSPATH_IF_NOT_EQUAL = 0x20000000,
367 SICHINT_ALLFIELDS = 0x80000000
369 typedef DWORD SICHINTF;
371 HRESULT BindToHandler(
372 [in] IBindCtx *pbc,
373 [in] REFGUID rbhid,
374 [in] REFIID riid,
375 [out, iid_is(riid)] void **ppvOut);
377 HRESULT GetParent( [out] IShellItem **ppsi );
379 HRESULT GetDisplayName(
380 [in] SIGDN sigdnName,
381 [out] LPWSTR *ppszName);
383 HRESULT GetAttributes(
384 [in] SFGAOF sfgaoMask,
385 [out] SFGAOF *psfgaoAttribs);
387 HRESULT Compare(
388 [in] IShellItem *psi,
389 [in] SICHINTF hint,
390 [out] int *piOrder);
393 /*****************************************************************************
394 * IShellItem2 interface
397 object,
398 uuid(7E9FB0D3-919F-4307-AB2E-9B1860310C93),
399 pointer_default(unique)
401 interface IShellItem2 : IShellItem
403 HRESULT GetPropertyStore(
404 [in] GETPROPERTYSTOREFLAGS flags,
405 [in] REFIID riid,
406 [out, iid_is(riid)] void **ppv);
408 HRESULT GetPropertyStoreWithCreateObject(
409 [in] GETPROPERTYSTOREFLAGS flags,
410 [in] IUnknown *punkCreateObject,
411 [in] REFIID riid,
412 [out, iid_is(riid)] void **ppv);
414 HRESULT GetPropertyStoreForKeys(
415 [in, size_is(cKeys)] const PROPERTYKEY *rgKeys,
416 [in] UINT cKeys,
417 [in] GETPROPERTYSTOREFLAGS flags,
418 [in] REFIID riid,
419 [out, iid_is(riid)] void **ppv);
421 HRESULT GetPropertyDescriptionList(
422 [in] REFPROPERTYKEY keyType,
423 [in] REFIID riid,
424 [out, iid_is(riid)] void **ppv);
426 HRESULT Update(
427 [in, unique] IBindCtx *pbc);
429 HRESULT GetProperty(
430 [in] REFPROPERTYKEY key,
431 [out] PROPVARIANT *ppropvar);
433 HRESULT GetCLSID(
434 [in] REFPROPERTYKEY key,
435 [out] CLSID *pclsid);
437 HRESULT GetFileTime (
438 [in] REFPROPERTYKEY key,
439 [out] FILETIME *pft);
441 HRESULT GetInt32(
442 [in] REFPROPERTYKEY key,
443 [out] int *pi);
445 HRESULT GetString(
446 [in] REFPROPERTYKEY key,
447 [out, string] LPWSTR *ppsz);
449 HRESULT GetUInt32(
450 [in] REFPROPERTYKEY key,
451 [out] ULONG *pui);
453 HRESULT GetUInt64(
454 [in] REFPROPERTYKEY key,
455 [out] ULONGLONG *pull);
457 HRESULT GetBool(
458 [in] REFPROPERTYKEY key,
459 [out] BOOL *pf);
462 typedef enum tagNWMF {
463 NWMF_UNLOADING = 0x0001,
464 NWMF_USERINITED = 0x0002,
465 NWMF_FIRST = 0x0004,
466 NWMF_OVERRIDEKEY = 0x0008,
467 NWMF_SHOWHELP = 0x0010,
468 NWMF_HTMLDIALOG = 0x0020,
469 NWMF_FROMDIALOGCHILD = 0x0040,
470 NWMF_USERREQUESTED = 0x0080,
471 NWMF_USERALLOWED = 0x0100
472 } NWMF;
475 uuid(d2bc4c84-3f72-4a52-a604-7bcbf3982cbb),
476 object,
477 pointer_default(unique)
479 interface INewWindowManager : IUnknown
481 HRESULT EvaluateNewWindow(
482 [in, string] LPCWSTR pszUrl,
483 [in, string] LPCWSTR pszName,
484 [in, string] LPCWSTR pszUrlContext,
485 [in, string] LPCWSTR pszFeatures,
486 [in] BOOL fReplace,
487 [in] DWORD dwFlags,
488 [in] DWORD dwUserActionTime);
491 cpp_quote("#define SID_SNewWindowManager IID_INewWindowManager")
493 /*****************************************************************************
494 * IEnumShellItems interface
497 object,
498 uuid(70629033-E363-4A28-A567-0DB78006E6D7),
499 pointer_default(unique)
501 interface IEnumShellItems : IUnknown
503 [local] HRESULT Next(
504 [in] ULONG celt,
505 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
506 [out] ULONG *pceltFetched);
508 [call_as(Next)] HRESULT RemoteNext(
509 [in] ULONG celt,
510 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
511 [out] ULONG *pceltFetched);
513 HRESULT Skip(
514 [in] ULONG celt);
516 HRESULT Reset();
518 HRESULT Clone(
519 [out] IEnumShellItems **ppenum);
522 /*****************************************************************************
523 * IShellItemArray interface
526 object,
527 uuid(B63EA76D-1F85-456F-A19C-48159EFA858B),
528 pointer_default(unique)
530 interface IShellItemArray : IUnknown
532 typedef [v1_enum] enum SIATTRIBFLAGS {
533 SIATTRIBFLAGS_AND = 0x0001,
534 SIATTRIBFLAGS_OR = 0x0002,
535 SIATTRIBFLAGS_APPCOMPAT = 0x0003,
536 SIATTRIBFLAGS_MASK = 0x0003,
537 SIATTRIBFLAGS_ALLITEMS = 0x4000
538 } SIATTRIBFLAGS;
539 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(SIATTRIBFLAGS)")
541 HRESULT BindToHandler(
542 [in, unique] IBindCtx *pbc,
543 [in] REFGUID bhid,
544 [in] REFIID riid,
545 [out, iid_is(riid)] void **ppvOut);
547 HRESULT GetPropertyStore(
548 [in] GETPROPERTYSTOREFLAGS flags,
549 [in] REFIID riid,
550 [out, iid_is(riid)] void **ppv);
552 HRESULT GetPropertyDescriptionList(
553 [in] REFPROPERTYKEY keyType,
554 [in] REFIID riid,
555 [out, iid_is(riid)] void **ppv);
557 HRESULT GetAttributes(
558 [in] SIATTRIBFLAGS AttribFlags,
559 [in] SFGAOF sfgaoMask,
560 [out] SFGAOF *psfgaoAttribs);
562 HRESULT GetCount(
563 [out] DWORD *pdwNumItems);
565 HRESULT GetItemAt(
566 [in] DWORD dwIndex,
567 [out] IShellItem **ppsi);
569 HRESULT EnumItems(
570 [out] IEnumShellItems **ppenumShellItems);
574 typedef [v1_enum] enum DATAOBJ_GET_ITEM_FLAGS
576 DOGIF_DEFAULT = 0x0,
577 DOGIF_TRAVERSE_LINK = 0x1,
578 DOGIF_NO_HDROP = 0x2,
579 DOGIF_NO_URL = 0x4,
580 DOGIF_ONLY_IF_ONE = 0x8
581 } DATAOBJ_GET_ITEM_FLAGS;
582 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DATAOBJ_GET_ITEM_FLAGS)")
584 cpp_quote("HRESULT WINAPI SHGetNameFromIDList(PCIDLIST_ABSOLUTE pidl, SIGDN sigdnName, PWSTR *ppszName);")
585 cpp_quote("HRESULT WINAPI SHCreateItemFromParsingName(PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv);")
586 cpp_quote("HRESULT WINAPI SHCreateItemFromIDList(PCIDLIST_ABSOLUTE pidl, REFIID riid, void **ppv);")
587 cpp_quote("HRESULT WINAPI SHGetItemFromDataObject(IDataObject *pdtobj, DATAOBJ_GET_ITEM_FLAGS dwFlags, REFIID riid, void **ppv);")
588 cpp_quote("HRESULT WINAPI SHGetIDListFromObject(IUnknown *punk, PIDLIST_ABSOLUTE *ppidl);")
589 cpp_quote("HRESULT WINAPI SHGetItemFromObject(IUnknown *punk, REFIID riid, void **ppv);")
590 cpp_quote("HRESULT WINAPI SHCreateShellItemArray(PCIDLIST_ABSOLUTE pidlParent, IShellFolder* psf, UINT cidl, PCUITEMID_CHILD_ARRAY ppidl, IShellItemArray **ppsiItemArray);")
591 cpp_quote("HRESULT WINAPI SHCreateShellItemArrayFromShellItem(IShellItem *psi, REFIID riid, void **ppv);")
592 cpp_quote("HRESULT WINAPI SHCreateShellItemArrayFromIDLists(UINT cidl, PCIDLIST_ABSOLUTE_ARRAY pidl_array, IShellItemArray **psia);")
593 cpp_quote("HRESULT WINAPI SHCreateShellItemArrayFromDataObject(IDataObject *pdo, REFIID riid, void **ppv);")
595 /*****************************************************************************
596 * IShellItemFilter interface
599 object,
600 uuid(2659B475-EEB8-48B7-8F07-B378810F48CF),
601 pointer_default(unique)
603 interface IShellItemFilter : IUnknown
605 HRESULT IncludeItem(
606 [in] IShellItem *psi);
608 HRESULT GetEnumFlagsForItem(
609 [in] IShellItem *psi,
610 [out] SHCONTF *pgrfFlags);
613 /*****************************************************************************
614 * FOLDERSETTINGS
616 typedef char *LPVIEWSETTINGS;
618 typedef enum
620 FWF_AUTOARRANGE = 0x00000001,
621 FWF_ABBREVIATEDNAMES = 0x00000002,
622 FWF_SNAPTOGRID = 0x00000004,
623 FWF_OWNERDATA = 0x00000008,
624 FWF_BESTFITWINDOW = 0x00000010,
625 FWF_DESKTOP = 0x00000020,
626 FWF_SINGLESEL = 0x00000040,
627 FWF_NOSUBFOLDERS = 0x00000080,
628 FWF_TRANSPARENT = 0x00000100,
629 FWF_NOCLIENTEDGE = 0x00000200,
630 FWF_NOSCROLL = 0x00000400,
631 FWF_ALIGNLEFT = 0x00000800,
632 FWF_NOICONS = 0x00001000,
633 FWF_SHOWSELALWAYS = 0x00002000,
634 FWF_NOVISIBLE = 0x00004000,
635 FWF_SINGLECLICKACTIVATE = 0x00008000,
636 FWF_NOWEBVIEW = 0x00010000,
637 FWF_HIDEFILENAMES = 0x00020000,
638 FWF_CHECKSELECT = 0x00040000,
639 FWF_NOENUMREFRESH = 0x00080000,
640 FWF_NOGROUPING = 0x00100000,
641 FWF_FULLROWSELECT = 0x00200000,
642 FWF_NOFILTERS = 0x00400000,
643 FWF_NOCOLUMNHEADER = 0x00800000,
644 FWF_NOHEADERINALLVIEWS = 0x01000000,
645 FWF_EXTENDEDTILES = 0x02000000,
646 FWF_TRICHECKSELECT = 0x04000000,
647 FWF_AUTOCHECKSELECT = 0x08000000,
648 FWF_NOBROWSERVIEWSTATE = 0x10000000,
649 FWF_SUBSETGROUPS = 0x20000000,
650 FWF_USESEARCHFOLDER = 0x40000000,
651 FWF_ALLOWRTLREADING = 0x80000000
652 } FOLDERFLAGS;
654 typedef enum
656 FVM_AUTO =-1,
657 FVM_ICON = 1,
658 FVM_FIRST = FVM_ICON,
659 FVM_SMALLICON = 2,
660 FVM_LIST = 3,
661 FVM_DETAILS = 4,
662 FVM_THUMBNAIL = 5,
663 FVM_TILE = 6,
664 FVM_THUMBSTRIP = 7,
665 FVM_CONTENT = 8,
666 FVM_LAST = FVM_CONTENT
667 } FOLDERVIEWMODE;
669 typedef struct
671 UINT ViewMode;
672 UINT fFlags;
673 } FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
674 typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
676 /*****************************************************************************
677 * IShellIcon interface
680 uuid(000214e5-0000-0000-c000-000000000046),
681 object,
682 pointer_default(unique)
684 interface IShellIcon : IUnknown
686 HRESULT GetIconOf(
687 [in] PCUITEMID_CHILD pidl,
688 [in] UINT flags,
689 [out] int *pIconIndex);
692 /*****************************************************************************
693 * IShellView interface
695 interface IShellBrowser; /* forward declaration */
697 object,
698 uuid(000214e3-0000-0000-c000-000000000046),
699 pointer_default(unique)
701 interface IShellView : IOleWindow
703 typedef IShellView *LPSHELLVIEW;
705 cpp_quote("#define SVSI_DESELECT 0x00000000")
706 cpp_quote("#define SVSI_SELECT 0x00000001")
707 cpp_quote("#define SVSI_EDIT 0x00000003")
708 cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
709 cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
710 cpp_quote("#define SVSI_FOCUSED 0x00000010")
711 cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
712 cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
713 cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
714 cpp_quote("#define SVSI_CHECK 0x00000100")
715 cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
717 typedef UINT SVSIF;
719 typedef enum
721 SVGIO_BACKGROUND = 0x00000000,
722 SVGIO_SELECTION = 0x00000001,
723 SVGIO_ALLVIEW = 0x00000002,
724 SVGIO_CHECKED = 0x00000003,
725 SVGIO_TYPE_MASK = 0x0000000f,
726 SVGIO_FLAG_VIEWORDER = 0x80000000,
727 } SVGIO;
729 typedef enum
731 SVUIA_DEACTIVATE = 0,
732 SVUIA_ACTIVATE_NOFOCUS = 1,
733 SVUIA_ACTIVATE_FOCUS = 2,
734 SVUIA_INPLACEACTIVATE = 3
735 } SVUIA_STATUS;
737 HRESULT TranslateAccelerator( [in] MSG *pmsg );
738 HRESULT EnableModeless( [in] BOOL fEnable );
739 HRESULT UIActivate( [in] UINT uState );
740 HRESULT Refresh();
741 HRESULT CreateViewWindow(
742 [in] IShellView *psvPrevious,
743 [in] LPCFOLDERSETTINGS lpfs,
744 [in] IShellBrowser *psb,
745 [out] RECT *prcView,
746 [out] HWND *phWnd);
748 HRESULT DestroyViewWindow();
749 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
751 [local] HRESULT AddPropertySheetPages(
752 [in] DWORD dwReserved,
753 [in] LPFNSVADDPROPSHEETPAGE pfn,
754 [in] LPARAM lparam);
756 HRESULT SaveViewState();
757 HRESULT SelectItem(
758 [in] LPCITEMIDLIST pidlItem,
759 [in] SVSIF uFlags);
760 HRESULT GetItemObject(
761 [in] UINT uItem,
762 [in] REFIID riid,
763 [out, iid_is(riid)] void **ppv);
767 object,
768 uuid(88e39e80-3578-11cf-ae69-08002b2e1262),
769 pointer_default(unique)
771 interface IShellView2 : IShellView
773 typedef GUID SHELLVIEWID;
774 cpp_quote("#include <pshpack8.h>")
775 typedef struct _SV2CVW2_PARAMS
777 DWORD cbSize;
778 IShellView *psvPrev;
779 LPCFOLDERSETTINGS pfs;
780 IShellBrowser *psbOwner;
781 RECT *prcView;
782 SHELLVIEWID const *pvid;
783 HWND hwndView;
784 } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
785 cpp_quote("#include <poppack.h>")
787 HRESULT GetView(
788 [in, out] SHELLVIEWID *view_guid,
789 [in] ULONG view_type
791 HRESULT CreateViewWindow2(
792 [in] LPSV2CVW2_PARAMS view_params
794 HRESULT HandleRename(
795 [in] LPCITEMIDLIST new_pidl
797 HRESULT SelectAndPositionItem(
798 [in] LPCITEMIDLIST item,
799 [in] UINT flags,
800 [in] POINT *point
805 object,
806 uuid(ec39fa88-f8af-41c5-8421-38bed28f4673),
807 pointer_default(unique)
809 interface IShellView3 : IShellView2
811 [v1_enum] enum _SV3CVW3_FLAGS
813 SV3CVW3_DEFAULT = 0x00000000,
814 SV3CVW3_NONINTERACTIVE = 0x00000001,
815 SV3CVW3_FORCEVIEWMODE = 0x00000002,
816 SV3CVW3_FORCEFOLDERFLAGS = 0x00000004
819 typedef DWORD SV3CVW3_FLAGS;
821 HRESULT CreateViewWindow3(
822 [in] IShellBrowser *owner,
823 [in, unique] IShellView *prev_view,
824 [in] SV3CVW3_FLAGS view_flags,
825 [in] FOLDERFLAGS mask,
826 [in] FOLDERFLAGS flags,
827 [in] FOLDERVIEWMODE mode,
828 [in, unique] const SHELLVIEWID *view_id,
829 [in] const RECT *rect,
830 [out] HWND *hwnd);
833 /*****************************************************************************
834 * IFolderView interface
837 uuid(cde725b0-ccc9-4519-917e-325d72fab4ce),
838 object,
839 pointer_default(unique)
841 interface IFolderView : IUnknown
843 HRESULT GetCurrentViewMode( [out] UINT *mode );
844 HRESULT SetCurrentViewMode( [in] UINT mode );
845 HRESULT GetFolder( [in] REFIID riid, [out, iid_is(riid)] void **ppv );
846 HRESULT Item(
847 [in] int index,
848 [out] PITEMID_CHILD *ppidl
850 HRESULT ItemCount(
851 [in] UINT flags,
852 [out] int *items
854 HRESULT Items(
855 [in] UINT flags,
856 [in] REFIID riid,
857 [out, iid_is(riid)] void **ppv
859 HRESULT GetSelectionMarkedItem( [out] int *item );
860 HRESULT GetFocusedItem( [out] int *item );
861 HRESULT GetItemPosition(
862 [in] PCUITEMID_CHILD pidl,
863 [out] POINT* ppt
865 HRESULT GetSpacing( [in, out, unique] POINT* pt );
866 HRESULT GetDefaultSpacing( [out] POINT* pt );
867 HRESULT GetAutoArrange();
868 HRESULT SelectItem(
869 [in] int item,
870 [in] DWORD flags
872 HRESULT SelectAndPositionItems(
873 [in] UINT cidl,
874 [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
875 [in, unique, size_is(cidl)] POINT* apt,
876 [in] DWORD flags
880 [v1_enum] enum tagSORTDIRECTION
882 SORT_DESCENDING = -1,
883 SORT_ASCENDING = 1
885 typedef int SORTDIRECTION;
887 typedef struct SORTCOLUMN
889 PROPERTYKEY propkey;
890 SORTDIRECTION direction;
891 } SORTCOLUMN;
893 typedef [v1_enum] enum FVTEXTTYPE
895 FVST_EMPTYTEXT = 0
896 } FVTEXTTYPE;
899 uuid(1af3a467-214f-4298-908e-06b03e0b39f9),
900 object,
901 pointer_default(unique)
903 interface IFolderView2 : IFolderView
905 HRESULT SetGroupBy(
906 [in] REFPROPERTYKEY key,
907 [in] BOOL ascending);
909 [local]
910 HRESULT GetGroupBy(
911 [out] PROPERTYKEY *pkey,
912 [out] BOOL *ascending);
914 [call_as(GetGroupBy)]
915 HRESULT RemoteGetGroupBy(
916 [out] PROPERTYKEY *pkey,
917 [out] BOOL *ascending);
919 HRESULT SetViewProperty(
920 [in] PCUITEMID_CHILD pidl,
921 [in] REFPROPERTYKEY propkey,
922 [in] REFPROPVARIANT propvar);
924 HRESULT GetViewProperty(
925 [in] PCUITEMID_CHILD pidl,
926 [in] REFPROPERTYKEY propkey,
927 [out] PROPVARIANT *propvar);
929 HRESULT SetTileViewProperties(
930 [in] PCUITEMID_CHILD pidl,
931 [in, string] LPCWSTR prop_list);
933 HRESULT SetExtendedTileViewProperties(
934 [in] PCUITEMID_CHILD pidl,
935 [in, string] LPCWSTR prop_list);
937 HRESULT SetText(
938 [in] FVTEXTTYPE type,
939 [in] LPCWSTR text);
941 HRESULT SetCurrentFolderFlags(
942 [in] DWORD mask,
943 [in] DWORD flags);
945 HRESULT GetCurrentFolderFlags([out] DWORD *flags);
947 HRESULT GetSortColumnCount([out] int *columns);
949 HRESULT SetSortColumns(
950 [in, size_is(count)] const SORTCOLUMN *columns,
951 [in] int count);
953 HRESULT GetSortColumns(
954 [out, size_is(count)] SORTCOLUMN *columns,
955 [in] int count);
957 HRESULT GetItem(
958 [in] int ittem,
959 [in] REFIID riid,
960 [out, iid_is(riid)] void **ppv);
962 HRESULT GetVisibleItem(
963 [in] int start,
964 [in] BOOL previous,
965 [out] int *item);
967 HRESULT GetSelectedItem(
968 [in] int start,
969 [out] int *item);
971 HRESULT GetSelection(
972 [in] BOOL none_implies_folder,
973 [out] IShellItemArray **array);
975 HRESULT GetSelectionState(
976 [in] PCUITEMID_CHILD pidl,
977 [out] DWORD *flags);
979 HRESULT InvokeVerbOnSelection([in, unique, string] LPCSTR verb);
981 HRESULT SetViewModeAndIconSize(
982 [in] FOLDERVIEWMODE mode,
983 [in] int size);
985 HRESULT GetViewModeAndIconSize(
986 [out] FOLDERVIEWMODE *mode,
987 [out] int *size);
989 HRESULT SetGroupSubsetCount([in] UINT visible_rows);
991 HRESULT GetGroupSubsetCount([out] UINT *visible_rows);
993 HRESULT SetRedraw([in] BOOL redraw);
995 HRESULT IsMoveInSameFolder();
997 HRESULT DoRename();
1000 /*****************************************************************************
1001 * IShellBrowser interface
1004 object,
1005 uuid(000214e2-0000-0000-c000-000000000046),
1006 pointer_default(unique)
1008 interface IShellBrowser : IOleWindow
1010 typedef IShellBrowser *LPSHELLBROWSER;
1012 cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
1013 cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
1014 cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
1015 cpp_quote("#define SBSP_DEFMODE 0x00000000")
1016 cpp_quote("#define SBSP_OPENMODE 0x00000010")
1017 cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
1018 cpp_quote("#define SBSP_HELPMODE 0x00000040")
1019 cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
1020 cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
1021 cpp_quote("#define SBSP_RELATIVE 0x00001000")
1022 cpp_quote("#define SBSP_PARENT 0x00002000")
1023 cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
1024 cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
1025 cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
1026 cpp_quote("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
1027 cpp_quote("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
1028 cpp_quote("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
1029 cpp_quote("#define SBSP_CREATENOHISTORY 0x00100000")
1030 cpp_quote("#define SBSP_PLAYNOSOUND 0x00200000")
1031 cpp_quote("#define SBSP_CALLERUNTURUSTED 0x00800000")
1032 cpp_quote("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
1033 cpp_quote("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
1034 cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
1035 cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
1036 cpp_quote("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
1037 cpp_quote("#define SBSP_FEEDNAVIGATION 0x20000000")
1038 cpp_quote("#define SBSP_REDIRECT 0x40000000")
1039 cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
1041 cpp_quote("#define FCW_STATUS 0x0001")
1042 cpp_quote("#define FCW_TOOLBAR 0x0002")
1043 cpp_quote("#define FCW_TREE 0x0003")
1044 cpp_quote("#define FCW_INTERNETBAR 0x0006")
1045 cpp_quote("#define FCW_PROGRESS 0x0008")
1047 cpp_quote("#define FCT_MERGE 0x0001")
1048 cpp_quote("#define FCT_CONFIGABLE 0x0002")
1049 cpp_quote("#define FCT_ADDTOEND 0x0004")
1051 cpp_quote("#if 0")
1052 typedef LPARAM LPTBBUTTONSB;
1053 cpp_quote("#else")
1054 cpp_quote("#include <commctrl.h>")
1055 cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
1056 cpp_quote("#endif")
1058 HRESULT InsertMenusSB(
1059 [in] HMENU hmenuShared,
1060 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
1062 HRESULT SetMenuSB(
1063 [in] HMENU hmenuShared,
1064 [in] HOLEMENU holemenuReserved,
1065 [in] HWND hwndActiveObject);
1067 HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
1068 HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
1069 HRESULT EnableModelessSB( [in] BOOL fEnable );
1070 HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
1072 HRESULT BrowseObject(
1073 [in] LPCITEMIDLIST pidl,
1074 [in] UINT wFlags);
1076 HRESULT GetViewStateStream(
1077 [in] DWORD grfMode,
1078 [out] IStream **ppStrm);
1080 HRESULT GetControlWindow(
1081 [in] UINT id,
1082 [out] HWND *phwnd);
1084 [local] HRESULT SendControlMsg(
1085 [in] UINT id,
1086 [in] UINT uMsg,
1087 [in] WPARAM wParam,
1088 [in] LPARAM lParam,
1089 [in] LRESULT *pret);
1091 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
1092 HRESULT OnViewWindowActive( [in] IShellView *pshv );
1094 [local]
1095 HRESULT SetToolbarItems(
1096 [in] LPTBBUTTONSB lpButtons,
1097 [in] UINT nButtons,
1098 [in] UINT uFlags);
1102 /*****************************************************************************
1103 * IShellLinkA interface
1106 object,
1107 uuid(000214ee-0000-0000-c000-000000000046),
1108 pointer_default(unique)
1110 interface IShellLinkA : IUnknown
1112 typedef enum
1114 SLR_NO_UI = 0x0001,
1115 SLR_ANY_MATCH = 0x0002,
1116 SLR_UPDATE = 0x0004,
1117 SLR_NOUPDATE = 0x0008,
1118 SLR_NOSEARCH = 0x0010,
1119 SLR_NOTRACK = 0x0020,
1120 SLR_NOLINKINFO = 0x0040,
1121 SLR_INVOKE_MSI = 0x0080,
1122 SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
1123 } SLR_FLAGS;
1125 typedef enum
1127 SLGP_SHORTPATH = 0x0001,
1128 SLGP_UNCPRIORITY = 0x0002,
1129 SLGP_RAWPATH = 0x0004,
1130 } SLGP_FLAGS;
1132 HRESULT GetPath(
1133 [out, size_is(cch)] LPSTR pszFile,
1134 [in] int cch,
1135 [in, out, unique] WIN32_FIND_DATAA *pfd,
1136 [in] DWORD fFlags);
1138 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
1140 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
1142 HRESULT GetDescription(
1143 [out, size_is(cch)] LPSTR pszName,
1144 [in] int cch);
1146 HRESULT SetDescription( [in] LPCSTR pszName );
1148 HRESULT GetWorkingDirectory(
1149 [out, size_is(cch)] LPSTR pszDir,
1150 [in] int cch);
1152 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
1154 HRESULT GetArguments(
1155 [out, size_is(cch)] LPSTR pszArgs,
1156 [in] int cch);
1158 HRESULT SetArguments( [in] LPCSTR pszArgs );
1160 HRESULT GetHotkey( [out] WORD *pwHotkey );
1162 HRESULT SetHotkey( [in] WORD wHotkey );
1164 HRESULT GetShowCmd( [out] int *piShowCmd );
1166 HRESULT SetShowCmd( [in] int iShowCmd );
1168 HRESULT GetIconLocation(
1169 [out, size_is(cch)] LPSTR pszIconPath,
1170 [in] int cch,
1171 [out] int *piIcon);
1173 HRESULT SetIconLocation(
1174 [in] LPCSTR pszIconPath,
1175 [in] int iIcon);
1177 HRESULT SetRelativePath(
1178 [in] LPCSTR pszPathRel,
1179 [in] DWORD dwReserved);
1181 HRESULT Resolve(
1182 [in] HWND hwnd,
1183 [in] DWORD fFlags);
1185 HRESULT SetPath( [in] LPCSTR pszFile );
1189 /*****************************************************************************
1190 * IShellLinkW interface
1193 object,
1194 uuid(000214f9-0000-0000-c000-000000000046),
1195 pointer_default(unique)
1197 interface IShellLinkW : IUnknown
1199 HRESULT GetPath(
1200 [out, size_is(cch)] LPWSTR pszFile,
1201 [in] int cch,
1202 [in, out] WIN32_FIND_DATAW *pfd,
1203 [in] DWORD fFlags);
1205 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
1207 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
1209 HRESULT GetDescription(
1210 [out, size_is(cch)] LPWSTR pszName,
1211 [in] int cch);
1213 HRESULT SetDescription( [in] LPCWSTR pszName );
1215 HRESULT GetWorkingDirectory(
1216 [out, size_is(cch)] LPWSTR pszDir,
1217 [in] int cch);
1219 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
1221 HRESULT GetArguments(
1222 [out, size_is(cch)] LPWSTR pszArgs,
1223 [in] int cch);
1225 HRESULT SetArguments( [in] LPCWSTR pszArgs );
1227 HRESULT GetHotkey( [out] WORD *pwHotkey );
1229 HRESULT SetHotkey( [in] WORD wHotkey );
1231 HRESULT GetShowCmd( [out] int *piShowCmd );
1233 HRESULT SetShowCmd( [in] int iShowCmd );
1235 HRESULT GetIconLocation(
1236 [out, size_is(cch)] LPWSTR pszIconPath,
1237 [in] int cch,
1238 [out] int *piIcon);
1240 HRESULT SetIconLocation(
1241 [in] LPCWSTR pszIconPath,
1242 [in] int iIcon);
1244 HRESULT SetRelativePath(
1245 [in] LPCWSTR pszPathRel,
1246 [in] DWORD dwReserved);
1248 HRESULT Resolve(
1249 [in] HWND hwnd,
1250 [in] DWORD fFlags);
1252 HRESULT SetPath( [in] LPCWSTR pszFile );
1255 cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
1258 /*****************************************************************************
1259 * IShellExtInit interface
1262 object,
1263 uuid(000214e8-0000-0000-c000-000000000046),
1264 pointer_default(unique),
1265 local
1267 interface IShellExtInit : IUnknown
1269 typedef IShellExtInit *LPSHELLEXTINIT;
1271 HRESULT Initialize(
1272 [in] LPCITEMIDLIST pidlFolder,
1273 [in] IDataObject *pdtobj,
1274 [in] HKEY hkeyProgID);
1278 /*******************************************************************************/
1279 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
1280 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
1281 /* them here anyway. */
1282 /*******************************************************************************/
1284 #ifndef MAX_PATH
1285 #define MAX_PATH 260
1286 #endif
1289 /*****************************************************************************
1290 * IPersistFolder3 interface
1293 object,
1294 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
1295 pointer_default(unique)
1297 interface IPersistFolder3 : IPersistFolder2
1299 typedef struct
1301 LPITEMIDLIST pidlTargetFolder;
1302 WCHAR szTargetParsingName[MAX_PATH];
1303 WCHAR szNetworkProvider[MAX_PATH];
1304 DWORD dwAttributes;
1305 int csidl;
1306 } PERSIST_FOLDER_TARGET_INFO;
1308 HRESULT InitializeEx(
1309 [in] IBindCtx *pbc,
1310 [in] LPCITEMIDLIST pidlRoot,
1311 [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
1313 HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
1317 /*****************************************************************************
1318 * IExtractIconA interface
1321 object,
1322 uuid(000214eb-0000-0000-c000-000000000046),
1323 pointer_default(unique),
1324 local
1326 interface IExtractIconA : IUnknown
1328 cpp_quote("#define GIL_OPENICON 0x0001")
1329 cpp_quote("#define GIL_FORSHELL 0x0002")
1330 cpp_quote("#define GIL_ASYNC 0x0020")
1331 cpp_quote("#define GIL_DEFAULTICON 0x0040")
1332 cpp_quote("#define GIL_FORSHORTCUT 0x0080")
1334 cpp_quote("#define GIL_SIMULATEDOC 0x0001")
1335 cpp_quote("#define GIL_PERINSTANCE 0x0002")
1336 cpp_quote("#define GIL_PERCLASS 0x0004")
1337 cpp_quote("#define GIL_NOTFILENAME 0x0008")
1338 cpp_quote("#define GIL_DONTCACHE 0x0010")
1340 typedef IExtractIconA *LPEXTRACTICONA;
1342 HRESULT GetIconLocation(
1343 [in] UINT uFlags,
1344 [out, size_is(cchMax)] LPSTR szIconFile,
1345 [in] UINT cchMax,
1346 [out] INT *piIndex,
1347 [out] UINT *pwFlags);
1349 HRESULT Extract(
1350 [in] LPCSTR pszFile,
1351 [in] UINT nIconIndex,
1352 [out] HICON *phiconLarge,
1353 [out] HICON *phiconSmall,
1354 [in] UINT nIconSize );
1358 /*****************************************************************************
1359 * IExtractIconW interface
1362 object,
1363 uuid(000214fa-0000-0000-c000-000000000046),
1364 pointer_default(unique),
1365 local
1367 interface IExtractIconW : IUnknown
1369 typedef IExtractIconW *LPEXTRACTICONW;
1371 HRESULT GetIconLocation(
1372 [in] UINT uFlags,
1373 [out, size_is(cchMax)] LPWSTR szIconFile,
1374 [in] UINT cchMax,
1375 [out] INT *piIndex,
1376 [out] UINT *pwFlags);
1378 HRESULT Extract(
1379 [in] LPCWSTR pszFile,
1380 [in] UINT nIconIndex,
1381 [out] HICON *phiconLarge,
1382 [out] HICON *phiconSmall,
1383 [in] UINT nIconSize );
1386 cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1387 cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1390 /*****************************************************************************
1391 * ICommDlgBrowser interface
1394 object,
1395 uuid(000214f1-0000-0000-c000-000000000046),
1396 pointer_default(unique)
1398 interface ICommDlgBrowser : IUnknown
1400 cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
1401 cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
1402 cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
1403 cpp_quote("#define CDBOSC_RENAME 0x00000003")
1404 cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
1406 typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
1408 HRESULT OnDefaultCommand( [in] IShellView *shv );
1409 HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
1410 HRESULT IncludeObject( [in] IShellView *shv, [in] LPCITEMIDLIST pidl );
1414 /*****************************************************************************
1415 * ICommDlgBrowser2 interface
1418 object,
1419 uuid(10339516-2894-11D2-9039-00C04F8EEB3E),
1420 pointer_default(unique)
1422 interface ICommDlgBrowser2 : ICommDlgBrowser
1425 HRESULT Notify(
1426 [in] IShellView *ppshv,
1427 [in] DWORD dwNotifyType);
1429 HRESULT GetDefaultMenuText(
1430 [in] IShellView *ppshv,
1431 [out, string, size_is(cchMax)] LPWSTR pszText,
1432 [in] int cchMax);
1434 HRESULT GetViewFlags(
1435 [out] DWORD *pdwFlags);
1439 /*****************************************************************************
1440 * ICommDlgBrowser3 interface
1443 object,
1444 uuid(C8AD25A1-3294-41EE-8165-71174BD01C57),
1445 pointer_default(unique)
1447 interface ICommDlgBrowser3 : ICommDlgBrowser2
1450 HRESULT OnColumnClicked(
1451 [in] IShellView *ppshv,
1452 [in] int iColumn);
1454 HRESULT GetCurrentFilter(
1455 [out, string, size_is(cchFileSpec)] LPWSTR pszFileSpec,
1456 [in] int cchFileSpec);
1458 HRESULT OnPreviewCreated(
1459 [in] IShellView *ppshv);
1462 /*****************************************************************************
1463 * IDockingWindow interface
1466 object,
1467 uuid(012dd920-7b26-11d0-8ca9-00a0c92dbfe8)
1469 interface IDockingWindow : IOleWindow
1471 HRESULT ShowDW(
1472 [in] BOOL fShow);
1474 HRESULT CloseDW(
1475 [in] DWORD dwReserved);
1477 HRESULT ResizeBorderDW(
1478 [in] LPCRECT prcBorder,
1479 [in] IUnknown *punkToolbarSite,
1480 [in] BOOL fReserved);
1484 /*****************************************************************************
1485 * IDockingWindowFrame interface
1488 object,
1489 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
1490 pointer_default(unique),
1491 local
1493 interface IDockingWindowFrame : IOleWindow
1495 cpp_quote("#define DWFRF_NORMAL 0x0000")
1496 cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
1497 cpp_quote("#define DWFAF_HIDDEN 0x0001")
1499 HRESULT AddToolbar(
1500 [in] IUnknown *punkSrc,
1501 [in] LPCWSTR pwszItem,
1502 [in] DWORD dwAddFlags);
1504 HRESULT RemoveToolbar(
1505 [in] IUnknown *punkSrc,
1506 [in] DWORD dwRemoveFlags);
1508 HRESULT FindToolbar(
1509 [in] LPCWSTR pwszItem,
1510 [in] REFIID riid,
1511 [out] LPVOID *ppvObj);
1515 /*****************************************************************************
1516 * IDragSourceHelper interface
1519 object,
1520 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
1521 pointer_default(unique),
1522 local
1524 interface IDragSourceHelper : IUnknown
1526 typedef struct
1528 SIZE sizeDragImage;
1529 POINT ptOffset;
1530 HBITMAP hbmpDragImage;
1531 COLORREF crColorKey;
1532 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
1534 HRESULT InitializeFromBitmap(
1535 [in] LPSHDRAGIMAGE pshdi,
1536 [in] IDataObject *pDataObject);
1538 HRESULT InitializeFromWindow(
1539 [in] HWND hwnd,
1540 [in] POINT *ppt,
1541 [in] IDataObject *pDataObject);
1545 /*****************************************************************************
1546 * IDropTargetHelper interface
1549 object,
1550 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
1551 pointer_default(unique),
1552 local
1554 interface IDropTargetHelper : IUnknown
1556 HRESULT DragEnter(
1557 [in] HWND hwndTarget,
1558 [in] IDataObject *pDataObject,
1559 [in] POINT *ppt,
1560 [in] DWORD dwEffect);
1562 HRESULT DragLeave();
1564 HRESULT DragOver(
1565 [in] POINT *ppt,
1566 [in] DWORD dwEffect);
1568 HRESULT Drop(
1569 [in] IDataObject *pDataObject,
1570 [in] POINT *ppt,
1571 [in] DWORD dwEffect);
1573 HRESULT Show( [in] BOOL fShow );
1577 /*****************************************************************************
1578 * IContextMenu interface
1581 object,
1582 uuid(000214e4-0000-0000-c000-000000000046),
1583 pointer_default(unique),
1584 local
1586 interface IContextMenu : IUnknown
1588 cpp_quote("#define CMF_NORMAL 0x00000000")
1589 cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
1590 cpp_quote("#define CMF_VERBSONLY 0x00000002")
1591 cpp_quote("#define CMF_EXPLORE 0x00000004")
1592 cpp_quote("#define CMF_NOVERBS 0x00000008")
1593 cpp_quote("#define CMF_CANRENAME 0x00000010")
1594 cpp_quote("#define CMF_NODEFAULT 0x00000020")
1595 cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
1596 cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
1597 cpp_quote("#define CMF_RESERVED 0xffff0000")
1599 cpp_quote("#define GCS_VERBA 0x00000000")
1600 cpp_quote("#define GCS_HELPTEXTA 0x00000001")
1601 cpp_quote("#define GCS_VALIDATEA 0x00000002")
1602 cpp_quote("#define GCS_VERBW 0x00000004")
1603 cpp_quote("#define GCS_HELPTEXTW 0x00000005")
1604 cpp_quote("#define GCS_VALIDATEW 0x00000006")
1605 cpp_quote("#define GCS_UNICODE 0x00000004")
1606 cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1607 cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1608 cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1610 cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1611 cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
1612 cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1613 cpp_quote("#if defined(__GNUC__)")
1614 cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1615 cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1616 cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1617 cpp_quote("#elif defined(_MSC_VER)")
1618 cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1619 cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1620 cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1621 cpp_quote("#else")
1622 cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1623 cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1624 cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1625 cpp_quote("#endif")
1626 cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1627 cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1628 cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1630 cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1631 cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
1632 cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1633 cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1634 cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1635 cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1636 cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1637 cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1638 cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1639 cpp_quote("#define CMIC_MASK_NOASYNC SEE_MASK_NOASYNC")
1640 cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1641 cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
1642 cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1643 cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1644 cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1646 typedef IContextMenu *LPCONTEXTMENU;
1648 typedef struct tagCMINVOKECOMMANDINFO
1650 DWORD cbSize;
1651 DWORD fMask;
1652 HWND hwnd;
1653 LPCSTR lpVerb;
1654 LPCSTR lpParameters;
1655 LPCSTR lpDirectory;
1656 INT nShow;
1657 DWORD dwHotKey;
1658 HANDLE hIcon;
1659 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1661 typedef struct tagCMInvokeCommandInfoEx
1663 DWORD cbSize;
1664 DWORD fMask;
1665 HWND hwnd;
1666 LPCSTR lpVerb;
1667 LPCSTR lpParameters;
1668 LPCSTR lpDirectory;
1669 INT nShow;
1670 DWORD dwHotKey;
1671 HANDLE hIcon;
1672 LPCSTR lpTitle;
1673 LPCWSTR lpVerbW;
1674 LPCWSTR lpParametersW;
1675 LPCWSTR lpDirectoryW;
1676 LPCWSTR lpTitleW;
1677 POINT ptInvoke;
1678 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1680 HRESULT QueryContextMenu(
1681 [in] HMENU hmenu,
1682 [in] UINT indexMenu,
1683 [in] UINT idCmdFirst,
1684 [in] UINT idCmdLast,
1685 [in] UINT uFlags);
1687 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1689 HRESULT GetCommandString(
1690 [in] UINT_PTR idCmd,
1691 [in] UINT uType,
1692 [out] UINT *pwReserved,
1693 [out, size_is(cchMax)] LPSTR pszName,
1694 [in] UINT cchMax);
1698 /*****************************************************************************
1699 * IContextMenu2 interface
1702 object,
1703 uuid(000214f4-0000-0000-c000-000000000046),
1704 pointer_default(unique),
1705 local
1707 interface IContextMenu2 : IContextMenu
1709 typedef IContextMenu2 *LPCONTEXTMENU2;
1711 HRESULT HandleMenuMsg(
1712 [in] UINT uMsg,
1713 [in] WPARAM wParam,
1714 [in] LPARAM lParam);
1718 /*****************************************************************************
1719 * IContextMenu3 interface
1722 object,
1723 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1724 pointer_default(unique),
1725 local
1727 interface IContextMenu3 : IContextMenu2
1729 typedef IContextMenu3 *LPCONTEXTMENU3;
1731 HRESULT HandleMenuMsg2(
1732 [in] UINT uMsg,
1733 [in] WPARAM wParam,
1734 [in] LPARAM lParam,
1735 [out] LRESULT *plResult);
1740 object,
1741 uuid(3409e930-5a39-11d1-83fa-00a0c90dc849),
1742 pointer_default(unique),
1743 local
1745 interface IContextMenuCB : IUnknown
1747 HRESULT CallBack(
1748 [in] IShellFolder *psf,
1749 [in] HWND hwndOwner,
1750 [in] IDataObject *pdtobj,
1751 [in] UINT uMsg,
1752 [in] WPARAM wParam,
1753 [in] LPARAM lParam);
1756 /*****************************************************************************
1757 * IShellExecuteHookA interface
1760 object,
1761 uuid(000214f5-0000-0000-c000-000000000046),
1762 pointer_default(unique),
1763 local
1765 interface IShellExecuteHookA : IUnknown
1767 cpp_quote("struct _SHELLEXECUTEINFOA;")
1768 HRESULT Execute(
1769 [in, out] struct _SHELLEXECUTEINFOA* pei);
1773 /*****************************************************************************
1774 * IShellExecuteHookW interface
1777 object,
1778 uuid(000214fb-0000-0000-c000-000000000046),
1779 pointer_default(unique),
1780 local
1782 interface IShellExecuteHookW : IUnknown
1784 cpp_quote("struct _SHELLEXECUTEINFOW;")
1785 HRESULT Execute(
1786 [in, out] struct _SHELLEXECUTEINFOW* pei);
1789 /*****************************************************************************
1790 * IShellLinkDataList interface
1793 object,
1794 uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
1795 pointer_default(unique)
1797 interface IShellLinkDataList : IUnknown
1799 [local] HRESULT AddDataBlock(
1800 [in] void *pDataBlock);
1801 [local] HRESULT CopyDataBlock(
1802 [in] DWORD dwSig,
1803 [out] void **ppDataBlock);
1804 HRESULT RemoveDataBlock(
1805 [in] DWORD dwSig);
1806 HRESULT GetFlags(
1807 [out] DWORD *pdwFlags);
1808 HRESULT SetFlags(
1809 [in] DWORD dwFlags);
1813 /*****************************************************************************
1814 * IResolveShellLink interface
1817 object,
1818 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1819 pointer_default(unique)
1821 interface IResolveShellLink : IUnknown
1823 HRESULT ResolveShellLink(
1824 [in] IUnknown *punk,
1825 [in] HWND hwnd,
1826 [in] DWORD fFlags);
1830 /*****************************************************************************
1831 * IURLSearchHook interface
1834 object,
1835 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1836 pointer_default(unique),
1837 local
1839 interface IURLSearchHook : IUnknown
1841 HRESULT Translate(
1842 [in, out] LPWSTR lpwszSearchURL,
1843 [in] DWORD cchBufferSize);
1847 /*****************************************************************************
1848 * ISearchContext interface
1851 object,
1852 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1853 pointer_default(unique),
1854 local
1856 interface ISearchContext : IUnknown
1858 HRESULT GetSearchUrl(
1859 [in] BSTR *pbstrSearchUrl);
1860 HRESULT GetSearchText(
1861 [in] BSTR *pbstrSearchText);
1862 HRESULT GetSearchStyle(
1863 [in] BSTR *pdwSearchStyle);
1867 /*****************************************************************************
1868 * IURLSearchHook2 interface
1871 object,
1872 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1873 pointer_default(unique),
1874 local
1876 interface IURLSearchHook2 : IURLSearchHook
1878 HRESULT TranslateWithSearchContext(
1879 [in, out] LPWSTR lpwszSearchURL,
1880 [in] DWORD cchBufferSize,
1881 [in] ISearchContext *pSearchContext);
1885 cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1887 /*****************************************************************************
1888 * INewShortcutHookA interface
1891 object,
1892 uuid(000214e1-0000-0000-c000-000000000046),
1893 pointer_default(unique),
1894 local
1896 interface INewShortcutHookA : IUnknown
1898 HRESULT SetReferent(
1899 [in] LPCSTR pcszReferent,
1900 [in] HWND hwnd);
1901 HRESULT GetReferent(
1902 [out] LPSTR pcszReferent,
1903 [in] int cchReferent);
1904 HRESULT SetFolder(
1905 [in] LPCSTR pcszReferent);
1906 HRESULT GetFolder(
1907 [out] LPSTR pcszReferent,
1908 [in] int cchFolder);
1909 HRESULT GetName(
1910 [out] LPSTR pszName,
1911 [in] int cchName);
1912 HRESULT GetExtension(
1913 [out] LPSTR pszExtension,
1914 [in] int cchExtension);
1918 /*****************************************************************************
1919 * INewShortcutHookW interface
1922 object,
1923 uuid(000214f7-0000-0000-c000-000000000046),
1924 pointer_default(unique),
1925 local
1927 interface INewShortcutHookW : IUnknown
1929 HRESULT SetReferent(
1930 [in] LPCWSTR pcszReferent,
1931 [in] HWND hwnd);
1932 HRESULT GetReferent(
1933 [out] LPWSTR pcszReferent,
1934 [in] int cchReferent);
1935 HRESULT SetFolder(
1936 [in] LPCWSTR pcszReferent);
1937 HRESULT GetFolder(
1938 [out] LPWSTR pcszReferent,
1939 [in] int cchFolder);
1940 HRESULT GetName(
1941 [out] LPWSTR pszName,
1942 [in] int cchName);
1943 HRESULT GetExtension(
1944 [out] LPWSTR pszExtension,
1945 [in] int cchExtension);
1948 /*****************************************************************************
1949 * IRunnableTask interface
1952 object,
1953 uuid(85788d00-6807-11d0-b810-00c04fd706ec),
1954 pointer_default(unique),
1955 local
1957 interface IRunnableTask : IUnknown
1959 HRESULT Run();
1960 HRESULT Kill([in] BOOL fWait);
1961 HRESULT Suspend();
1962 HRESULT Resume();
1963 ULONG IsRunning();
1966 /*****************************************************************************
1967 * IShellChangeNotify interface
1970 object,
1971 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
1972 pointer_default(unique),
1973 local
1975 interface IShellChangeNotify : IUnknown
1977 HRESULT OnChange(
1978 [in] LONG lEvent,
1979 [in] LPCITEMIDLIST pidl1,
1980 [in] LPCITEMIDLIST pidl2);
1983 /*****************************************************************************
1984 * IFileSystemBindData interface
1987 object,
1988 uuid(01e18d10-4d8b-11d2-855d-006008059367),
1989 pointer_default(unique),
1990 local
1992 interface IFileSystemBindData : IUnknown
1994 HRESULT SetFindData(
1995 [in] const WIN32_FIND_DATAW *pfd);
1996 HRESULT GetFindData(
1997 [out] WIN32_FIND_DATAW *pfd);
2000 /*****************************************************************************
2001 * ITaskbarList interface
2004 object,
2005 uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
2006 pointer_default(unique)
2008 interface ITaskbarList : IUnknown
2010 HRESULT HrInit();
2012 HRESULT AddTab(
2013 [in] HWND hwnd);
2015 HRESULT DeleteTab(
2016 [in] HWND hwnd);
2018 HRESULT ActivateTab(
2019 [in] HWND hwnd);
2021 HRESULT SetActiveAlt(
2022 [in] HWND hwnd);
2025 /*****************************************************************************
2026 * ITaskbarList2 interface
2029 object,
2030 uuid(602D4995-B13A-429B-A66E-1935E44F4317),
2031 pointer_default(unique)
2033 interface ITaskbarList2 : ITaskbarList
2035 HRESULT MarkFullscreenWindow(
2036 [in] HWND hwnd,
2037 [in] BOOL fullscreen);
2040 cpp_quote("#ifdef MIDL_PASS")
2041 typedef IUnknown* HIMAGELIST;
2042 cpp_quote("#endif")
2044 typedef [v1_enum] enum THUMBBUTTONFLAGS {
2045 THBF_ENABLED = 0x0000,
2046 THBF_DISABLED = 0x0001,
2047 THBF_DISMISSONCLICK = 0x0002,
2048 THBF_NOBACKGROUND = 0x0004,
2049 THBF_HIDDEN = 0x0008,
2050 THBF_NONINTERACTIVE = 0x0010
2051 } THUMBBUTTONFLAGS;
2053 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONFLAGS)")
2055 typedef [v1_enum] enum THUMBBUTTONMASK {
2056 THB_BITMAP = 0x0001,
2057 THB_ICON = 0x0002,
2058 THB_TOOLTIP = 0x0004,
2059 THB_FLAGS = 0x0008
2060 } THUMBBUTTONMASK;
2062 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONMASK)")
2064 cpp_quote("#include <pshpack8.h>")
2065 typedef struct THUMBBUTTON {
2066 THUMBBUTTONMASK dwMask;
2067 UINT iId;
2068 UINT iBitmap;
2069 HICON hIcon;
2070 WCHAR szTip[260];
2071 THUMBBUTTONFLAGS dwFlags;
2072 } THUMBBUTTON, *LPTHUMBBUTTON;
2073 cpp_quote("#include <poppack.h>")
2076 uuid(ea1afb91-9e28-4b86-90e9-9e9f8a5eefaf),
2077 object
2079 interface ITaskbarList3 : ITaskbarList2
2081 typedef [v1_enum] enum TBPFLAG {
2082 TBPF_NOPROGRESS = 0x0000,
2083 TBPF_INDETERMINATE = 0x0001,
2084 TBPF_NORMAL = 0x0002,
2085 TBPF_ERROR = 0x0004,
2086 TBPF_PAUSED = 0x0008
2087 } TBPFLAG;
2089 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(TBPFLAG)")
2091 HRESULT SetProgressValue(
2092 [in] HWND hwnd,
2093 [in] ULONGLONG ullCompleted,
2094 [in] ULONGLONG ullTotal);
2096 HRESULT SetProgressState(
2097 [in] HWND hwnd,
2098 [in] TBPFLAG tbpFlags);
2100 HRESULT RegisterTab(
2101 [in] HWND hwndTab,
2102 [in] HWND hwndMDI);
2104 HRESULT UnregisterTab([in] HWND hwndTab);
2106 HRESULT SetTabOrder(
2107 [in] HWND hwndTab,
2108 [in] HWND hwndInsertBefore);
2110 HRESULT SetTabActive(
2111 [in] HWND hwndTab,
2112 [in] HWND hwndMDI,
2113 [in] DWORD dwReserved);
2115 HRESULT ThumbBarAddButtons(
2116 [in] HWND hwnd,
2117 [in] UINT cButtons,
2118 [in, size_is(cButtons)] LPTHUMBBUTTON pButton);
2120 HRESULT ThumbBarUpdateButtons(
2121 [in] HWND hwnd,
2122 [in] UINT cButtons,
2123 [in, size_is(cButtons)] LPTHUMBBUTTON pButton);
2125 HRESULT ThumbBarSetImageList(
2126 [in] HWND hwnd,
2127 [in] HIMAGELIST himl);
2129 HRESULT SetOverlayIcon(
2130 [in] HWND hwnd,
2131 [in] HICON hIcon,
2132 [in, unique, string] LPCWSTR pszDescription);
2134 HRESULT SetThumbnailTooltip(
2135 [in] HWND hwnd,
2136 [in, unique, string] LPCWSTR pszTip);
2138 HRESULT SetThumbnailClip(
2139 [in] HWND hwnd,
2140 [in] RECT *prcClip);
2144 uuid(c43dc798-95d1-4bea-9030-bb99e2983a1a),
2145 object
2147 interface ITaskbarList4 : ITaskbarList3
2149 typedef [v1_enum] enum STPFLAG {
2150 STPF_NONE = 0x0000,
2151 STPF_USEAPPTHUMBNAILALWAYS = 0x0001,
2152 STPF_USEAPPTHUMBNAILWHENACTIVE = 0x0002,
2153 STPF_USEAPPPEEKALWAYS = 0x0004,
2154 STPF_USEAPPPEEKWHENACTIVE = 0x0008
2155 } STPFLAG;
2157 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(STPFLAG)")
2159 HRESULT SetTabProperties(
2160 [in] HWND hwndTab,
2161 [in] STPFLAG stpFlags);
2164 /*****************************************************************************
2165 * IAutoCompleteDropDown interface
2168 object,
2169 uuid(3CD141F4-3C6A-11d2-BCAA-00C04FD929DB),
2170 pointer_default(unique)
2172 interface IAutoCompleteDropDown : IUnknown
2174 cpp_quote("#define ACDD_VISIBLE 0x0001")
2176 HRESULT GetDropDownStatus(
2177 [out] DWORD *pdwFlags,
2178 [out, string] LPWSTR *ppwszString);
2180 HRESULT ResetEnumerator();
2184 object,
2185 uuid(cb728b20-f786-11ce-92ad-00aa00a74cd0),
2186 pointer_default(unique)
2188 interface IProfferService : IUnknown
2190 HRESULT ProfferService(
2191 [in] REFGUID service,
2192 [in] IServiceProvider *pService,
2193 [out] DWORD *pCookie);
2195 HRESULT RevokeService([in] DWORD cookie);
2198 /*****************************************************************************
2199 * IExplorerBrowserEvents interface
2202 object,
2203 uuid(361BBDC7-E6EE-4E13-BE58-58E2240C810F)
2205 interface IExplorerBrowserEvents : IUnknown
2207 HRESULT OnNavigationPending(
2208 [in] PCIDLIST_ABSOLUTE pidlFolder);
2210 HRESULT OnViewCreated(
2211 [in] IShellView *psv);
2213 HRESULT OnNavigationComplete(
2214 [in] PCIDLIST_ABSOLUTE pidlFolder);
2216 HRESULT OnNavigationFailed(
2217 [in] PCIDLIST_ABSOLUTE pidlFolder);
2220 typedef GUID EXPLORERPANE;
2221 typedef EXPLORERPANE *REFEXPLORERPANE;
2223 cpp_quote("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
2225 /*****************************************************************************
2226 * IExplorerPaneVisibility interface
2229 object,
2230 uuid(E07010EC-BC17-44C0-97B0-46C7C95B9EDC)
2232 interface IExplorerPaneVisibility : IUnknown
2234 typedef enum tagEXPLORERPANESTATE {
2235 EPS_DONTCARE = 0x0,
2236 EPS_DEFAULT_ON = 0x1,
2237 EPS_DEFAULT_OFF = 0x2,
2238 EPS_STATE_MASK = 0xffff,
2239 EPS_INITIALSTATE = 0x10000,
2240 EPS_FORCE = 0x20000
2241 } EXPLORERPANESTATE;
2243 HRESULT GetPaneState(
2244 [in] REFEXPLORERPANE ep,
2245 [out] EXPLORERPANESTATE *peps);
2248 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS {
2249 EBF_NONE = 0,
2250 EBF_SELECTFROMDATAOBJECT = 0x100,
2251 EBF_NODROPTARGET = 0x200
2252 } EXPLORER_BROWSER_FILL_FLAGS;
2254 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS {
2255 EBO_NONE = 0x00,
2256 EBO_NAVIGATEONCE = 0x01,
2257 EBO_SHOWFRAMES = 0x02,
2258 EBO_ALWAYSNAVIGATE = 0x04,
2259 EBO_NOTRAVELLOG = 0x08,
2260 EBO_NOWRAPPERWINDOW = 0x10,
2261 EBO_HTMLSHAREPOINTVIEW = 0x20
2262 } EXPLORER_BROWSER_OPTIONS;
2264 cpp_quote("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
2266 /*****************************************************************************
2267 * IExplorerBrowser interface
2270 object,
2271 uuid(DFD3B6B5-C10C-4BE9-85F6-A66969F402F6),
2272 pointer_default(unique)
2274 interface IExplorerBrowser : IUnknown
2277 [local] HRESULT Initialize(
2278 [in] HWND hwndParent,
2279 [in] const RECT *prc,
2280 [in, unique] const FOLDERSETTINGS *pfs);
2282 HRESULT Destroy();
2284 [local] HRESULT SetRect(
2285 [in,out,unique] HDWP *phdwp,
2286 [in] RECT rcBrowser);
2288 HRESULT SetPropertyBag(
2289 [in, string] LPCWSTR pszPropertyBag);
2291 HRESULT SetEmptyText(
2292 [in, string] LPCWSTR pszEmptyText);
2294 HRESULT SetFolderSettings(
2295 [in] const FOLDERSETTINGS *pfs);
2297 HRESULT Advise(
2298 [in] IExplorerBrowserEvents *psbe,
2299 [out] DWORD *pdwCookie);
2301 HRESULT Unadvise(
2302 [in] DWORD dwCookie);
2304 HRESULT SetOptions(
2305 [in] EXPLORER_BROWSER_OPTIONS dwFlag);
2307 HRESULT GetOptions(
2308 [out] EXPLORER_BROWSER_OPTIONS *pdwFlag);
2310 HRESULT BrowseToIDList(
2311 [in] PCUIDLIST_RELATIVE pidl,
2312 [in] UINT uFlags);
2314 HRESULT BrowseToObject(
2315 [in] IUnknown *punk,
2316 [in] UINT uFlags);
2318 HRESULT FillFromObject(
2319 [in] IUnknown *punk,
2320 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags);
2322 HRESULT RemoveAll();
2324 HRESULT GetCurrentView(
2325 [in] REFIID riid,
2326 [out, iid_is(riid)] void **ppv);
2329 /*****************************************************************************
2330 * INameSpaceTreeControl interface
2333 object,
2334 uuid(028212A3-B627-47E9-8856-C14265554E4F)
2336 interface INameSpaceTreeControl : IUnknown
2338 [v1_enum] enum _NSTCSTYLE {
2339 NSTCS_HASEXPANDOS = 0x00000001,
2340 NSTCS_HASLINES = 0x00000002,
2341 NSTCS_SINGLECLICKEXPAND = 0x00000004,
2342 NSTCS_FULLROWSELECT = 0x00000008,
2343 NSTCS_SPRINGEXPAND = 0x00000010,
2344 NSTCS_HORIZONTALSCROLL = 0x00000020,
2345 NSTCS_ROOTHASEXPANDO = 0x00000040,
2346 NSTCS_SHOWSELECTIONALWAYS = 0x00000080,
2347 NSTCS_NOINFOTIP = 0x00000200,
2348 NSTCS_EVENHEIGHT = 0x00000400,
2349 NSTCS_NOREPLACEOPEN = 0x00000800,
2350 NSTCS_DISABLEDRAGDROP = 0x00001000,
2351 NSTCS_NOORDERSTREAM = 0x00002000,
2352 NSTCS_RICHTOOLTIP = 0x00004000,
2353 NSTCS_BORDER = 0x00008000,
2354 NSTCS_NOEDITLABELS = 0x00010000,
2355 NSTCS_TABSTOP = 0x00020000,
2356 NSTCS_FAVORITESMODE = 0x00080000,
2357 NSTCS_AUTOHSCROLL = 0x00100000,
2358 NSTCS_FADEINOUTEXPANDOS = 0x00200000,
2359 NSTCS_EMPTYTEXT = 0x00400000,
2360 NSTCS_CHECKBOXES = 0x00800000,
2361 NSTCS_PARTIALCHECKBOXES = 0x01000000,
2362 NSTCS_EXCLUSIONCHECKBOXES = 0x02000000,
2363 NSTCS_DIMMEDCHECKBOXES = 0x04000000,
2364 NSTCS_NOINDENTCHECKS = 0x08000000,
2365 NSTCS_ALLOWJUNCTIONS = 0x10000000,
2366 NSTCS_SHOWTABSBUTTON = 0x20000000,
2367 NSTCS_SHOWDELETEBUTTON = 0x40000000,
2368 NSTCS_SHOWREFRESHBUTTON = (int)0x80000000
2370 typedef DWORD NSTCSTYLE;
2372 [v1_enum] enum _NSTCROOTSTYLE {
2373 NSTCRS_VISIBLE = 0x0000,
2374 NSTCRS_HIDDEN = 0x0001,
2375 NSTCRS_EXPANDED = 0x0002
2377 typedef DWORD NSTCROOTSTYLE;
2379 [v1_enum] enum _NSTCITEMSTATE {
2380 NSTCIS_NONE = 0x0000,
2381 NSTCIS_SELECTED = 0x0001,
2382 NSTCIS_EXPANDED = 0x0002,
2383 NSTCIS_BOLD = 0x0004,
2384 NSTCIS_DISABLED = 0x0008,
2385 NSTCIS_SELECTEDNOEXPAND = 0x0010
2387 typedef DWORD NSTCITEMSTATE;
2389 typedef [v1_enum] enum NSTCGNI {
2390 NSTCGNI_NEXT = 0,
2391 NSTCGNI_NEXTVISIBLE = 1,
2392 NSTCGNI_PREV = 2,
2393 NSTCGNI_PREVVISIBLE = 3,
2394 NSTCGNI_PARENT = 4,
2395 NSTCGNI_CHILD = 5,
2396 NSTCGNI_FIRSTVISIBLE = 6,
2397 NSTCGNI_LASTVISIBLE = 7
2398 } NSTCGNI;
2400 HRESULT Initialize(
2401 [in] HWND hwndParent,
2402 [in, unique] RECT *prc,
2403 [in] NSTCSTYLE nstcsFlags);
2405 HRESULT TreeAdvise(
2406 [in] IUnknown *punk,
2407 [out] DWORD *pdwCookie);
2409 HRESULT TreeUnadvise(
2410 [in] DWORD dwCookie);
2412 HRESULT AppendRoot(
2413 [in] IShellItem *psiRoot,
2414 [in] SHCONTF grfEnumFlags,
2415 [in] NSTCROOTSTYLE grfRootStyle,
2416 [in, unique] IShellItemFilter *pif);
2418 HRESULT InsertRoot(
2419 [in] int iIndex,
2420 [in] IShellItem *psiRoot,
2421 [in] SHCONTF grfEnumFlags,
2422 [in] NSTCROOTSTYLE grfRootStyle,
2423 [in, unique] IShellItemFilter *pif);
2425 HRESULT RemoveRoot(
2426 [in] IShellItem *psiRoot);
2428 HRESULT RemoveAllRoots();
2430 HRESULT GetRootItems(
2431 [out] IShellItemArray **ppsiaRootItems);
2433 HRESULT SetItemState(
2434 [in] IShellItem *psi,
2435 [in] NSTCITEMSTATE nstcisMask,
2436 [in] NSTCITEMSTATE nstcisFlags);
2438 HRESULT GetItemState(
2439 [in] IShellItem *psi,
2440 [in] NSTCITEMSTATE nstcismask,
2441 [out] NSTCITEMSTATE *pnstcisFlags);
2443 HRESULT GetSelectedItems(
2444 [out] IShellItemArray **psiaItems);
2446 HRESULT GetItemCustomState(
2447 [in] IShellItem *psi,
2448 [out] int *piStateNumber);
2450 HRESULT SetItemCustomState(
2451 [in] IShellItem *psi,
2452 [in] int iStateNumber);
2454 HRESULT EnsureItemVisible(
2455 [in] IShellItem *psi);
2457 HRESULT SetTheme(
2458 [in, string] LPCWSTR pszTheme);
2460 HRESULT GetNextItem(
2461 [in, unique] IShellItem *psi,
2462 [in] NSTCGNI nstcgi,
2463 [out] IShellItem **ppsiNext);
2465 HRESULT HitTest(
2466 [in] POINT *ppt,
2467 [out] IShellItem **ppsiOut);
2469 HRESULT GetItemRect(
2470 [in] IShellItem *psi,
2471 [out] RECT *prect);
2473 HRESULT CollapseAll();
2476 /*****************************************************************************
2477 * INameSpaceTreeControl2 interface
2480 object,
2481 uuid(7CC7AED8-290E-49BC-8945-C1401CC9306C)
2483 interface INameSpaceTreeControl2 : INameSpaceTreeControl
2485 typedef [v1_enum] enum NSTCSTYLE2 {
2486 NSTCS2_DEFAULT = 0x00,
2487 NSTCS2_INTERRUPTNOTIFICATIONS = 0x01,
2488 NSTCS2_SHOWNULLSPACEMENU = 0x02,
2489 NSTCS2_DISPLAYPADDING = 0x04,
2490 NSTCS2_DISPLAYPINNEDONLY = 0x08,
2491 NTSCS2_NOSINGLETONAUTOEXPAND = 0x10, /* The apparent typo here is */
2492 NTSCS2_NEVERINSERTNONENUMERATED = 0x20 /* present also in the Win SDK */
2493 } NSTCSTYLE2;
2494 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(NSTCSTYLE2)")
2496 HRESULT SetControlStyle(
2497 [in] NSTCSTYLE nstcsMask,
2498 [in] NSTCSTYLE nstcsStyle);
2500 HRESULT GetControlStyle(
2501 [in] NSTCSTYLE nstcsMask,
2502 [out] NSTCSTYLE *pnstcsStyle);
2504 HRESULT SetControlStyle2(
2505 [in] NSTCSTYLE2 nstcsMask,
2506 [in] NSTCSTYLE2 nstcsStyle);
2508 HRESULT GetControlStyle2(
2509 [in] NSTCSTYLE2 nstcsMask,
2510 [out] NSTCSTYLE2 *pnstcsStyle);
2513 /*****************************************************************************
2514 * INameSpaceTreeControlEvents interface
2518 object,
2519 uuid(93D77985-B3D8-4484-8318-672CDDA002CE),
2520 local
2522 interface INameSpaceTreeControlEvents : IUnknown
2524 [v1_enum] enum _NSTCEHITTEST {
2525 NSTCEHT_NOWHERE = 0x0001,
2526 NSTCEHT_ONITEMICON = 0x0002,
2527 NSTCEHT_ONITEMLABEL = 0x0004,
2528 NSTCEHT_ONITEMIDENT = 0x0008,
2529 NSTCEHT_ONITEMBUTTON = 0x0010,
2530 NSTCEHT_ONITEMRIGHT = 0x0020,
2531 NSTCEHT_ONITEMSTATEICON = 0x0040,
2532 NSTCEHT_ONITEM = 0x0046,
2533 NSTCEHT_ONITEMTABBUTTON = 0x1000
2535 typedef DWORD NSTCEHITTEST;
2537 [v1_enum] enum _NSTCECLICKTYPE {
2538 NSTCECT_LBUTTON = 0x1,
2539 NSTCECT_MBUTTON = 0x2,
2540 NSTCECT_RBUTTON = 0x3,
2541 NSTCECT_BUTTON = 0x3,
2542 NSTCECT_DBLCLICK = 0x4
2544 typedef DWORD NSTCECLICKTYPE;
2546 HRESULT OnItemClick(
2547 [in] IShellItem *psi,
2548 [in] NSTCEHITTEST nstceHitTest,
2549 [in] NSTCECLICKTYPE nstceClickType);
2551 HRESULT OnPropertyItemCommit(
2552 [in] IShellItem *psi);
2554 HRESULT OnItemStateChanging(
2555 [in] IShellItem *psi,
2556 [in] NSTCITEMSTATE nstcisMask,
2557 [in] NSTCITEMSTATE nstcisState);
2559 HRESULT OnItemStateChanged(
2560 [in] IShellItem *psi,
2561 [in] NSTCITEMSTATE nstcisMask,
2562 [in] NSTCITEMSTATE nstcisState);
2564 HRESULT OnSelectionChanged(
2565 [in] IShellItemArray *psiaSelection);
2567 HRESULT OnKeyboardInput(
2568 [in] UINT uMsg,
2569 [in] WPARAM wParam,
2570 [in] LPARAM lParam);
2572 HRESULT OnBeforeExpand(
2573 [in] IShellItem *psi);
2575 HRESULT OnAfterExpand(
2576 [in] IShellItem *psi);
2578 HRESULT OnBeginLabelEdit(
2579 [in] IShellItem *psi);
2581 HRESULT OnEndLabelEdit(
2582 [in] IShellItem *psi);
2584 HRESULT OnGetToolTip(
2585 [in] IShellItem *psi,
2586 [out, string, size_is(cchTip)] LPWSTR pszTip,
2587 [in] int cchTip);
2589 HRESULT OnBeforeItemDelete(
2590 [in] IShellItem *psi);
2592 HRESULT OnItemAdded(
2593 [in] IShellItem *psi,
2594 [in] BOOL fIsRoot);
2596 HRESULT OnItemDeleted(
2597 [in] IShellItem *psi,
2598 [in] BOOL fIsRoot);
2600 HRESULT OnBeforeContextMenu(
2601 [in, unique] IShellItem *psi,
2602 [in] REFIID riid,
2603 [out, iid_is(riid)] void **ppv);
2605 HRESULT OnAfterContextMenu(
2606 [in] IShellItem *psi,
2607 [in] IContextMenu *pcmIn,
2608 [in] REFIID riid,
2609 [out, iid_is(riid)] void **ppv);
2611 HRESULT OnBeforeStateImageChange(
2612 [in] IShellItem *psi);
2614 HRESULT OnGetDefaultIconIndex(
2615 [in] IShellItem *psi,
2616 [out] int *piDefaultIcon,
2617 [out] int *piOpenIcon);
2620 /*****************************************************************************
2621 * INameSpaceTreeControlCustomDraw interface
2624 object,
2625 uuid(2D3BA758-33EE-42D5-BB7B-5F3431D86C78),
2626 local
2629 interface INameSpaceTreeControlCustomDraw : IUnknown
2631 typedef struct NSTCCUSTOMDRAW
2633 IShellItem *psi;
2634 UINT uItemState;
2635 NSTCITEMSTATE nstcis;
2636 LPCWSTR pszText;
2637 int iImage;
2638 HIMAGELIST himl;
2639 int iLevel;
2640 int iIndent;
2641 } NSTCCUSTOMDRAW;
2643 HRESULT PrePaint(
2644 [in] HDC hdc,
2645 [in] RECT *prc,
2646 [out] LRESULT *plres);
2648 HRESULT PostPaint(
2649 [in] HDC hdc,
2650 [in] RECT *prc);
2652 HRESULT ItemPrePaint(
2653 [in] HDC hdc,
2654 [in] RECT *prc,
2655 [in, out] COLORREF *pclrText,
2656 [in, out] COLORREF *pclrTextBk,
2657 [out] LRESULT *plres);
2659 HRESULT ItemPostPaint(
2660 [in] HDC hdc,
2661 [in] RECT *prc,
2662 [in] NSTCCUSTOMDRAW *pnstccdItem);
2665 /*****************************************************************************
2666 * INameSpaceTreeControlDropHandler interface
2669 object,
2670 uuid(F9C665D6-C2F2-4C19-BF33-8322D7352F51),
2671 local
2673 interface INameSpaceTreeControlDropHandler : IUnknown
2675 HRESULT OnDragEnter(
2676 [in, unique] IShellItem *psiOver,
2677 [in] IShellItemArray *psiaData,
2678 [in] BOOL fOutsideSource,
2679 [in] DWORD grfKeyState,
2680 [in, out] DWORD *pdwEffect);
2682 HRESULT OnDragOver(
2683 [in, unique] IShellItem *psiOver,
2684 [in] IShellItemArray *psiaData,
2685 [in] DWORD grfKeyState,
2686 [in, out] DWORD *pdwEffect);
2688 HRESULT OnDragPosition(
2689 [in, unique] IShellItem *psiOver,
2690 [in] IShellItemArray *psiaData,
2691 [in] int iNewPosition,
2692 [in] int iOldPosition);
2694 HRESULT OnDrop(
2695 [in, unique] IShellItem *psiOver,
2696 [in] IShellItemArray *psiaData,
2697 [in] int iPosition,
2698 [in] DWORD grfKeyState,
2699 [in, out] DWORD *pdwEffect);
2701 HRESULT OnDropPosition(
2702 [in, unique] IShellItem *psiOver,
2703 [in] IShellItemArray *psiaData,
2704 [in] int iNewPosition,
2705 [in] int iOldPosition);
2707 HRESULT OnDragLeave(
2708 [in, unique] IShellItem *psiOver);
2710 cpp_quote("#define NSTCDHPOS_ONTOP -1")
2712 interface IFileDialog;
2714 typedef [v1_enum] enum FDE_OVERWRITE_RESPONSE
2716 FDEOR_DEFAULT = 0,
2717 FDEOR_ACCCEP = 1,
2718 FDEOR_REFUSE = 2
2719 } FDE_OVERWRITE_RESPONSE;
2721 typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
2723 FDESVR_DEFAULT = 0,
2724 FDESVR_ACCEPT = 1,
2725 FDESVR_REFUSE = 2
2726 } FDE_SHAREVIOLATION_RESPONSE;
2728 /*****************************************************************************
2729 * IFileDialogEvents interface
2732 object,
2733 uuid(973510DB-7D7F-452B-8975-74A85828D354),
2734 pointer_default(unique)
2736 interface IFileDialogEvents : IUnknown
2738 HRESULT OnFileOk(
2739 [in] IFileDialog *pfd);
2741 HRESULT OnFolderChanging(
2742 [in] IFileDialog *pfd,
2743 [in] IShellItem *psiFolder);
2745 HRESULT OnFolderChange(
2746 [in] IFileDialog *pfd);
2748 HRESULT OnSelectionChange(
2749 [in] IFileDialog *pfd);
2751 HRESULT OnShareViolation(
2752 [in] IFileDialog *pfd,
2753 [in] IShellItem *psi,
2754 [out] FDE_SHAREVIOLATION_RESPONSE *pResponse);
2756 HRESULT OnTypeChange(
2757 [in] IFileDialog *pfd);
2759 HRESULT OnOverwrite(
2760 [in] IFileDialog *pfd,
2761 [in] IShellItem *psi,
2762 [out] FDE_OVERWRITE_RESPONSE *pResponse);
2765 /*****************************************************************************
2766 * IModalWindow interface
2769 object,
2770 uuid(B4DB1657-70D7-485E-8E3E-6FCB5A5C1802),
2771 pointer_default(unique)
2773 interface IModalWindow : IUnknown
2775 [local]
2776 HRESULT Show(
2777 [in, unique, annotation("__in_opt")] HWND hwndOwner);
2779 [call_as(Show)]
2780 HRESULT RemoteShow(
2781 [in, unique] HWND hwndOwner);
2784 typedef [v1_enum] enum FDAP
2786 FDAP_BOTTOM = 0,
2787 FDAP_TOP = 1
2788 } FDAP;
2790 /*****************************************************************************
2791 * IFileDialog interface
2794 object,
2795 uuid(42F85136-DB7E-439C-85F1-E4075D135FC8),
2796 pointer_default(unique)
2798 interface IFileDialog : IModalWindow
2800 [v1_enum] enum _FILEOPENDIALOGOPTIONS
2802 FOS_OVERWRITEPROMPT = 0x00000002,
2803 FOS_STRICTFILETYPES = 0x00000004,
2804 FOS_NOCHANGEDIR = 0x00000008,
2805 FOS_PICKFOLDERS = 0x00000020,
2806 FOS_FORCEFILESYSTEM = 0x00000040,
2807 FOS_ALLNONSTORAGEITEMS = 0x00000080,
2808 FOS_NOVALIDATE = 0x00000100,
2809 FOS_ALLOWMULTISELECT = 0x00000200,
2810 FOS_PATHMUSTEXIST = 0x00000800,
2811 FOS_FILEMUSTEXIST = 0x00001000,
2812 FOS_CREATEPROMPT = 0x00002000,
2813 FOS_SHAREAWARE = 0x00004000,
2814 FOS_NOREADONLYRETURN = 0x00008000,
2815 FOS_NOTESTFILECREATE = 0x00010000,
2816 FOS_HIDEMRUPLACES = 0x00020000,
2817 FOS_HIDEPINNEDPLACES = 0x00040000,
2818 FOS_NODEREFERENCELINKS = 0x00100000,
2819 FOS_DONTADDTORECENT = 0x02000000,
2820 FOS_FORCESHOWHIDDEN = 0x10000000,
2821 FOS_DEFAULTNOMINIMODE = 0x20000000,
2822 FOS_FORCEPREVIEWPANEON = 0x40000000
2824 typedef DWORD FILEOPENDIALOGOPTIONS;
2826 HRESULT SetFileTypes(
2827 [in] UINT cFileTypes,
2828 [in, size_is(cFileTypes)] const COMDLG_FILTERSPEC *rgFilterSpec);
2830 HRESULT SetFileTypeIndex(
2831 [in] UINT iFileType);
2833 HRESULT GetFileTypeIndex(
2834 [out] UINT *piFileType);
2836 HRESULT Advise(
2837 [in] IFileDialogEvents *pfde,
2838 [out] DWORD *pdwCookie);
2840 HRESULT Unadvise(
2841 [in] DWORD dwCookie);
2843 HRESULT SetOptions(
2844 [in] FILEOPENDIALOGOPTIONS fos);
2846 HRESULT GetOptions(
2847 [in] FILEOPENDIALOGOPTIONS *pfos);
2849 HRESULT SetDefaultFolder(
2850 [in] IShellItem *psi);
2852 HRESULT SetFolder(
2853 [in] IShellItem *psi);
2855 HRESULT GetFolder(
2856 [out] IShellItem **ppsi);
2858 HRESULT GetCurrentSelection(
2859 [out] IShellItem **ppsi);
2861 HRESULT SetFileName(
2862 [in, string] LPCWSTR pszName);
2864 HRESULT GetFileName(
2865 [out, string] LPWSTR *pszName);
2867 HRESULT SetTitle(
2868 [in, string] LPCWSTR pszTitle);
2870 HRESULT SetOkButtonLabel(
2871 [in, string] LPCWSTR pszText);
2873 HRESULT SetFileNameLabel(
2874 [in, string] LPCWSTR pszLabel);
2876 HRESULT GetResult(
2877 [out] IShellItem **ppsi);
2879 HRESULT AddPlace(
2880 [in] IShellItem *psi,
2881 [in] FDAP fdap);
2883 HRESULT SetDefaultExtension(
2884 [in, string] LPCWSTR pszDefaultExtension);
2886 HRESULT Close(
2887 [in] HRESULT hr);
2889 HRESULT SetClientGuid(
2890 [in] REFGUID guid);
2892 HRESULT ClearClientData();
2894 HRESULT SetFilter(
2895 [in] IShellItemFilter *pFilter);
2898 /*****************************************************************************
2899 * IFileDialog2 interface
2902 object,
2903 uuid(61744FC7-85B5-4791-A9B0-272276309B13),
2904 pointer_default(unique)
2906 interface IFileDialog2 : IFileDialog
2908 HRESULT SetCancelButtonLabel(
2909 [in] LPCWSTR pszLabel);
2911 HRESULT SetNavigationRoot(
2912 [in] IShellItem *psi);
2915 /*****************************************************************************
2916 * IFileOperationProgressSink interface
2919 object,
2920 uuid(04B0F1A7-9490-44BC-96E1-4296A31252E2),
2921 pointer_default(unique)
2923 interface IFileOperationProgressSink : IUnknown
2925 HRESULT StartOperations();
2927 HRESULT FinishOperations(
2928 [in] HRESULT hrResult);
2930 HRESULT PreRenameItem(
2931 [in] DWORD dwFlags,
2932 [in] IShellItem *psiItem,
2933 [in, unique, string] LPCWSTR pszNewName);
2935 HRESULT PostRenameItem(
2936 [in] DWORD dwFlags,
2937 [in] IShellItem *psiItem,
2938 [in, string] LPCWSTR pszNewName,
2939 [in] HRESULT hrRename,
2940 [in] IShellItem *psiNewlyCreated);
2942 HRESULT PreMoveItem(
2943 [in] DWORD dwFlags,
2944 [in] IShellItem *psiItem,
2945 [in] IShellItem *psiDestinationFolder,
2946 [in, unique, string] LPCWSTR pszNewName);
2948 HRESULT PostMoveItem(
2949 [in] DWORD dwFlags,
2950 [in] IShellItem *psiItem,
2951 [in] IShellItem *psiDestinationFolder,
2952 [in, unique, string] LPCWSTR pszNewName,
2953 [in] HRESULT hrMove,
2954 [in] IShellItem *psiNewlyCreated);
2956 HRESULT PreCopyItem(
2957 [in] DWORD dwFlags,
2958 [in] IShellItem *psiItem,
2959 [in] IShellItem *psiDestinationFolder,
2960 [in, unique, string] LPCWSTR pszNewName);
2962 HRESULT PostCopyItem(
2963 [in] DWORD dwFlags,
2964 [in] IShellItem *psiItem,
2965 [in] IShellItem *psiDestinationFolder,
2966 [in, unique, string] LPCWSTR pszNewName,
2967 [in] HRESULT hrCopy,
2968 [in] IShellItem *psiNewlyCreated);
2970 HRESULT PreDeleteItem(
2971 [in] DWORD dwFlags,
2972 [in] IShellItem *psiItem);
2974 HRESULT PostDeleteItem(
2975 [in] DWORD dwFlags,
2976 [in] IShellItem *psiItem,
2977 [in] HRESULT hrDelete,
2978 [in] IShellItem *psiNewlyCreated);
2980 HRESULT PreNewItem(
2981 [in] DWORD dwFlags,
2982 [in] IShellItem *psiDestinationFolder,
2983 [in, unique, string] LPCWSTR pszNewName);
2985 HRESULT PostNewItem(
2986 [in] DWORD dwFlags,
2987 [in] IShellItem *psiDestinationFolder,
2988 [in, unique, string] LPCWSTR pszNewName,
2989 [in, unique, string] LPCWSTR pszTemplateName,
2990 [in] DWORD dwFileAttributes,
2991 [in] HRESULT hrNew,
2992 [in] IShellItem *psiNewItem);
2994 HRESULT UpdateProgress(
2995 [in] UINT iWorkTotal,
2996 [in] UINT iWorkSoFar);
2998 HRESULT ResetTimer();
3000 HRESULT PauseTimer();
3002 HRESULT ResumeTimer();
3005 /*****************************************************************************
3006 * IFileSaveDialog interface
3009 object,
3010 uuid(84BCCD23-5FDE-4CDB-AEA4-AF64B83D78AB),
3011 pointer_default(unique)
3013 interface IFileSaveDialog : IFileDialog
3015 HRESULT SetSaveAsItem(
3016 [in] IShellItem *psi);
3018 HRESULT SetProperties(
3019 [in] IPropertyStore *pStore);
3021 HRESULT SetCollectedProperties(
3022 [in] IPropertyDescriptionList *pList,
3023 [in] BOOL fAppendDefault);
3025 HRESULT GetProperties(
3026 [in] IPropertyStore **ppStore);
3028 HRESULT ApplyProperties(
3029 [in] IShellItem *psi,
3030 [in] IPropertyStore *pStore,
3031 [in, unique] HWND hwnd,
3032 [in, unique] IFileOperationProgressSink *pSink);
3036 /*****************************************************************************
3037 * IFileOpenDialog interface
3040 object,
3041 uuid(D57C7288-D4AD-4768-BE02-9D969532D960),
3042 pointer_default(unique)
3044 interface IFileOpenDialog : IFileDialog
3046 HRESULT GetResults(
3047 [out] IShellItemArray **ppenum);
3049 HRESULT GetSelectedItems(
3050 [out] IShellItemArray **ppsai);
3053 typedef [v1_enum] enum CDCONTROLSTATEF
3055 CDCS_INACTIVE = 0x0,
3056 CDCS_ENABLED = 0x1,
3057 CDCS_VISIBLE = 0x2,
3058 CDCS_ENABLEDVISIBLE = 0x3
3059 } CDCONTROLSTATEF;
3060 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
3061 /*****************************************************************************
3062 * IFileDialogCustomize interface
3065 object,
3066 uuid(E6FDD21A-163F-4975-9C8C-A69F1BA37034),
3067 pointer_default(unique)
3069 interface IFileDialogCustomize : IUnknown
3071 HRESULT EnableOpenDropDown(
3072 [in] DWORD dwIDCtl);
3074 HRESULT AddMenu(
3075 [in] DWORD dwIDCtl,
3076 [in, string] LPCWSTR pszLabel);
3078 HRESULT AddPushButton(
3079 [in] DWORD dwIDCtl,
3080 [in, string] LPCWSTR pszLabel);
3082 HRESULT AddComboBox(
3083 [in] DWORD dwIDCtl);
3085 HRESULT AddRadioButtonList(
3086 [in] DWORD dwIDCtl);
3088 HRESULT AddCheckButton(
3089 [in] DWORD dwIDCtl,
3090 [in, string] LPCWSTR pszLabel,
3091 [in] BOOL bChecked);
3093 HRESULT AddEditBox(
3094 [in] DWORD dwIDCtl,
3095 [in, string] LPCWSTR pszText);
3097 HRESULT AddSeparator(
3098 [in] DWORD dwIDCtl);
3100 HRESULT AddText(
3101 [in] DWORD dwIDCtl,
3102 [in, string] LPCWSTR pszText);
3104 HRESULT SetControlLabel(
3105 [in] DWORD dwIDCtl,
3106 [in, string] LPCWSTR pszLabel);
3108 HRESULT GetControlState(
3109 [in] DWORD dwIDCtl,
3110 [out] CDCONTROLSTATEF *pdwState);
3112 HRESULT SetControlState(
3113 [in] DWORD dwIDCtl,
3114 [in] CDCONTROLSTATEF dwState);
3116 HRESULT GetEditBoxText(
3117 [in] DWORD dwIDCtl,
3118 [out, string] WCHAR **ppszText);
3120 HRESULT SetEditBoxText(
3121 [in] DWORD dwIDCtl,
3122 [in, string] LPCWSTR pszText);
3124 HRESULT GetCheckButtonState(
3125 [in] DWORD dwIDCtl,
3126 [out] BOOL *pbChecked);
3128 HRESULT SetCheckButtonState(
3129 [in] DWORD dwIDCtl,
3130 [in] BOOL bChecked);
3132 HRESULT AddControlItem(
3133 [in] DWORD dwIDCtl,
3134 [in] DWORD dwIDItem,
3135 [in] LPCWSTR pszLabel);
3137 HRESULT RemoveControlItem(
3138 [in] DWORD dwIDCtl,
3139 [in] DWORD dwIDItem);
3141 HRESULT RemoveAllControlItems(
3142 [in] DWORD dwIDCtl);
3144 HRESULT GetControlItemState(
3145 [in] DWORD dwIDCtl,
3146 [in] DWORD dwIDItem,
3147 [out] CDCONTROLSTATEF *pdwState);
3149 HRESULT SetControlItemState(
3150 [in] DWORD dwIDCtl,
3151 [in] DWORD dwIDItem,
3152 [in] CDCONTROLSTATEF dwState);
3154 HRESULT GetSelectedControlItem(
3155 [in] DWORD dwIDCtl,
3156 [out] DWORD *pdwIDItem);
3158 HRESULT SetSelectedControlItem(
3159 [in] DWORD dwIDCtl,
3160 [in] DWORD dwIDItem);
3162 HRESULT StartVisualGroup(
3163 [in] DWORD dwIDCtl,
3164 [in, string] LPCWSTR pszLabel);
3166 HRESULT EndVisualGroup();
3168 HRESULT MakeProminent(
3169 [in] DWORD dwIDCtl);
3171 HRESULT SetControlItemText(
3172 [in] DWORD dwIDCtl,
3173 [in] DWORD dwIDItem,
3174 [in, string] LPCWSTR pszLabel);
3177 /*****************************************************************************
3178 * IFileDialogControlEvents interface
3181 object,
3182 uuid(36116642-D713-4B97-9B83-7484A9D00433),
3183 pointer_default(unique)
3185 interface IFileDialogControlEvents : IUnknown
3187 HRESULT OnItemSelected(
3188 [in] IFileDialogCustomize *pfdc,
3189 [in] DWORD dwIDCtl,
3190 [in] DWORD dwIDItem);
3192 HRESULT OnButtonClicked(
3193 [in] IFileDialogCustomize *pfdc,
3194 [in] DWORD dwIDCtl);
3196 HRESULT OnCheckButtonToggled(
3197 [in] IFileDialogCustomize *pfdc,
3198 [in] BOOL dwIDCtl,
3199 [in] BOOL bChecked);
3201 HRESULT OnControlActivating(
3202 [in] IFileDialogCustomize *pfdc,
3203 [in] DWORD dwIDCtl);
3206 typedef [v1_enum] enum tagKF_CATEGORY
3208 KF_CATEGORY_VIRTUAL = 0x00000001,
3209 KF_CATEGORY_FIXED = 0x00000002,
3210 KF_CATEGORY_COMMON = 0x00000003,
3211 KF_CATEGORY_PERUSER = 0x00000004
3212 } KF_CATEGORY;
3214 typedef [v1_enum] enum tagKF_REDIRECTION_CAPABILITIES
3216 KF_REDIRECTION_CAPABILITIES_ALLOW_ALL = 0x000000ff,
3217 KF_REDIRECTION_CAPABILITIES_REDIRECTABLE = 0x00000001,
3218 KF_REDIRECTION_CAPABILITIES_DENY_ALL = 0x000fff00,
3219 KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED = 0x00000100,
3220 KF_REDIRECTION_CAPABILITIES_DENY_POLICY = 0x00000200,
3221 KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS = 0x00000400
3222 } KF_REDIRECTION_CAPABILITIES;
3224 typedef [v1_enum] enum tagKF_DEFINITION_FLAGS
3226 KFDF_LOCAL_REDIRECT_ONLY = 0x00000002,
3227 KFDF_ROAMABLE = 0x00000004,
3228 KFDF_PRECREATE = 0x00000008,
3229 KFDF_STREAM = 0x00000010,
3230 KFDF_PUBLISHEXPANDEDPATH = 0x00000020
3231 } KF_DEFINITION_FLAGS;
3233 typedef struct tagKNOWNFOLDER_DEFINITION
3235 KF_CATEGORY category;
3236 LPWSTR pszName;
3237 LPWSTR pszDescription;
3238 KNOWNFOLDERID fidParent;
3239 LPWSTR pszRelativePath;
3240 LPWSTR pszParsingName;
3241 LPWSTR pszTooltip;
3242 LPWSTR pszLocalizedName;
3243 LPWSTR pszIcon;
3244 LPWSTR pszSecurity;
3245 DWORD dwAttributes;
3246 KF_DEFINITION_FLAGS kfdFlags;
3247 FOLDERTYPEID ftidType;
3248 } KNOWNFOLDER_DEFINITION;
3251 object,
3252 uuid(3aa7af7e-9b36-420C-a8e3-f77d4674a488),
3253 pointer_default(ref)
3255 interface IKnownFolder : IUnknown
3257 HRESULT GetId(
3258 [out] KNOWNFOLDERID *pkfid);
3260 HRESULT GetCategory(
3261 [out] KF_CATEGORY *pCategory);
3263 HRESULT GetShellItem(
3264 [in] DWORD dwFlags,
3265 [in] REFIID riid,
3266 [out, iid_is(riid)] void **ppv);
3268 HRESULT GetPath(
3269 [in] DWORD dwFlags,
3270 [out, string] LPWSTR *ppszPath);
3272 HRESULT SetPath(
3273 [in] DWORD dwFlags,
3274 [in, string] LPCWSTR pszPath);
3276 HRESULT GetIDList(
3277 [in] DWORD dwFlags,
3278 [out] PIDLIST_ABSOLUTE *ppidl);
3280 HRESULT GetFolderType(
3281 [out] FOLDERTYPEID *pftid);
3283 HRESULT GetRedirectionCapabilities(
3284 [out] KF_REDIRECTION_CAPABILITIES *pCapabilities);
3286 HRESULT GetFolderDefinition(
3287 [out] KNOWNFOLDER_DEFINITION *pKFD);
3290 typedef [v1_enum] enum tagKF_REDIRECT_FLAGS
3292 KF_REDIRECT_USER_EXCLUSIVE = 0x00000001,
3293 KF_REDIRECT_COPY_SOURCE_DACL = 0x00000002,
3294 KF_REDIRECT_OWNER_USER = 0x00000004,
3295 KF_REDIRECT_SET_OWNER_EXPLICIT = 0x00000008,
3296 KF_REDIRECT_CHECK_ONLY = 0x00000010,
3297 KF_REDIRECT_WITH_UI = 0x00000020,
3298 KF_REDIRECT_UNPIN = 0x00000040,
3299 KF_REDIRECT_PIN = 0x00000080,
3300 KF_REDIRECT_COPY_CONTENTS = 0x00000200,
3301 KF_REDIRECT_DEL_SOURCE_CONTENTS = 0x00000400,
3302 KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS = 0x00000800
3303 } KF_REDIRECT_FLAGS;
3306 object,
3307 uuid(8BE2D872-86AA-4d47-B776-32CCA40C7018),
3308 pointer_default(ref)
3310 interface IKnownFolderManager : IUnknown
3312 typedef [v1_enum] enum tagFFFP_MODE
3314 FFFP_EXACTMATCH,
3315 FFFP_NEARESTPARENTMATCH
3316 } FFFP_MODE;
3318 HRESULT FolderIdFromCsidl(
3319 [in] int nCsidl,
3320 [out] KNOWNFOLDERID *pfid);
3322 HRESULT FolderIdToCsidl(
3323 [in] REFKNOWNFOLDERID rfid,
3324 [out] int *pnCsidl);
3326 HRESULT GetFolderIds(
3327 [out, size_is(, *pCount)] KNOWNFOLDERID **ppKFId,
3328 [in, out] UINT *pCount);
3330 HRESULT GetFolder(
3331 [in] REFKNOWNFOLDERID rfid,
3332 [out] IKnownFolder **ppkf);
3334 HRESULT GetFolderByName(
3335 [in, string] LPCWSTR pszCanonicalName,
3336 [out] IKnownFolder **ppkf);
3338 HRESULT RegisterFolder(
3339 [in] REFKNOWNFOLDERID rfid,
3340 [in] KNOWNFOLDER_DEFINITION const *pKFD);
3342 HRESULT UnregisterFolder(
3343 [in] REFKNOWNFOLDERID rfid);
3345 HRESULT FindFolderFromPath(
3346 [in, string] LPCWSTR pszPath,
3347 [in] FFFP_MODE mode,
3348 [out] IKnownFolder **ppkf);
3350 HRESULT FindFolderFromIDList(
3351 [in] PCIDLIST_ABSOLUTE pidl,
3352 [out] IKnownFolder **ppkf);
3354 HRESULT Redirect(
3355 [in] REFKNOWNFOLDERID rfid,
3356 [in, unique] HWND hwnd,
3357 [in] KF_REDIRECT_FLAGS flags,
3358 [in, unique, string] LPCWSTR pszTargetPath,
3359 [in] UINT cFolders,
3360 [in, size_is(cFolders), unique] KNOWNFOLDERID const *pExclusion,
3361 [out, string] LPWSTR *ppszError);
3364 /* function for releasing structure returned from IKnownFolder::GetFolderDefinition */
3365 cpp_quote("static inline void FreeKnownFolderDefinitionFields(KNOWNFOLDER_DEFINITION *pKFD)")
3366 cpp_quote("{")
3367 cpp_quote(" CoTaskMemFree(pKFD->pszName);")
3368 cpp_quote(" CoTaskMemFree(pKFD->pszDescription);")
3369 cpp_quote(" CoTaskMemFree(pKFD->pszRelativePath);")
3370 cpp_quote(" CoTaskMemFree(pKFD->pszParsingName);")
3371 cpp_quote(" CoTaskMemFree(pKFD->pszTooltip);")
3372 cpp_quote(" CoTaskMemFree(pKFD->pszLocalizedName);")
3373 cpp_quote(" CoTaskMemFree(pKFD->pszIcon);")
3374 cpp_quote(" CoTaskMemFree(pKFD->pszSecurity);")
3375 cpp_quote("}")
3377 typedef [v1_enum] enum ASSOCIATIONLEVEL {
3378 AL_MACHINE,
3379 AL_EFFECTIVE,
3380 AL_USER
3381 } ASSOCIATIONLEVEL;
3383 typedef [v1_enum] enum ASSOCIATIONTYPE {
3384 AT_FILEEXTENSION,
3385 AT_URLPROTOCOL,
3386 AT_STARTMENUCLIENT,
3387 AT_MIMETYPE
3388 } ASSOCIATIONTYPE;
3391 object,
3392 uuid(4e530b0a-e611-4c77-a3ac-9031d022281b),
3393 pointer_default(unique)
3395 interface IApplicationAssociationRegistration : IUnknown
3397 HRESULT QueryCurrentDefault(
3398 [in, string] LPCWSTR pszQuery,
3399 [in] ASSOCIATIONTYPE atQueryType,
3400 [in] ASSOCIATIONLEVEL alQueryLevel,
3401 [out, string] LPWSTR *ppszAssociation);
3403 HRESULT QueryAppIsDefault(
3404 [in, string] LPCWSTR pszQuery,
3405 [in] ASSOCIATIONTYPE atQueryType,
3406 [in] ASSOCIATIONLEVEL alQueryLevel,
3407 [in, string] LPCWSTR pszAppRegistryName,
3408 [out] BOOL *pfDefault);
3410 HRESULT QueryAppIsDefaultAll(
3411 [in] ASSOCIATIONLEVEL alQueryLevel,
3412 [in, string] LPCWSTR pszAppRegistryName,
3413 [out] BOOL* pfDefault);
3415 HRESULT SetAppAsDefault(
3416 [in, string] LPCWSTR pszAppRegistryName,
3417 [in, string] LPCWSTR pszSet,
3418 [in] ASSOCIATIONTYPE atSetType);
3420 HRESULT SetAppAsDefaultAll(
3421 [in, string] LPCWSTR pszAppRegistryName);
3423 HRESULT ClearUserAssociations();
3427 uuid(6332debf-87b5-4670-90c0-5e57b408a49e),
3428 object,
3429 pointer_default(unique)
3431 interface ICustomDestinationList : IUnknown
3433 typedef [v1_enum] enum KNOWNDESTCATEGORY {
3434 KDC_FREQUENT = 1,
3435 KDC_RECENT
3436 } KNOWNDESTCATEGORY;
3438 HRESULT SetAppID([in, string] LPCWSTR pszAppID);
3440 HRESULT BeginList(
3441 [out] UINT *pcMinSlots,
3442 [in] REFIID riid,
3443 [out, iid_is(riid)] void **ppv);
3445 HRESULT AppendCategory(
3446 [in, string] LPCWSTR pszCategory,
3447 [in] IObjectArray *poa);
3449 HRESULT AppendKnownCategory([in] KNOWNDESTCATEGORY category);
3450 HRESULT AddUserTasks([in] IObjectArray *poa);
3451 HRESULT CommitList();
3453 HRESULT GetRemovedDestinations(
3454 [in] REFIID riid,
3455 [out, iid_is(riid)] void **ppv);
3457 HRESULT DeleteList([in, unique, string] LPCWSTR pszAppID);
3458 HRESULT AbortList();
3462 uuid(ddefe873-6997-4e68-be26-39b633adbe12),
3463 object,
3464 pointer_default(unique)
3466 interface IQueryCancelAutoPlay : IUnknown
3468 HRESULT AllowAutoPlay([in, string] LPCWSTR path,
3469 [in] DWORD content_type,
3470 [in, string] LPCWSTR label,
3471 [in] DWORD serial_number);
3475 uuid(d594d0d8-8da7-457b-b3b4-ce5dbaac0b88),
3476 pointer_default(unique)
3478 interface ITransferAdviseSink : IUnknown
3480 [v1_enum] enum _TRANSFER_ADVISE_STATE
3482 TS_NONE = 0,
3483 TS_PERFORMING = 1,
3484 TS_PREPARING = 2,
3485 TS_INDETERMINATE = 4
3487 typedef DWORD TRANSFER_ADVISE_STATE;
3489 HRESULT UpdateProgress([in] ULONGLONG size_current,
3490 [in] ULONGLONG size_total,
3491 [in] INT files_current,
3492 [in] INT files_total,
3493 [in] INT folders_current,
3494 [in] INT folders_total);
3495 HRESULT UpdateTransferState([in] TRANSFER_ADVISE_STATE state);
3496 HRESULT ConfirmOverwrite([in] IShellItem *source,
3497 [in] IShellItem *dest_parent,
3498 [in, string] LPCWSTR name);
3499 HRESULT ConfirmEncryptLoss([in] IShellItem *source);
3500 HRESULT FileFailure([in] IShellItem *item,
3501 [in, unique, string] LPCWSTR itemname,
3502 [in] HRESULT hr,
3503 [in, out, unique, size_is(crename)] LPWSTR rename,
3504 [in] ULONG crename);
3505 HRESULT SubStreamFailure([in] IShellItem *item,
3506 [in, string] LPCWSTR stream,
3507 [in] HRESULT hr);
3508 HRESULT PropertyFailure([in] IShellItem *item,
3509 [in, unique] const PROPERTYKEY *key,
3510 [in] HRESULT hr);
3513 [v1_enum] enum _TRANSFER_SOURCE_FLAGS
3515 TSF_NORMAL = 0,
3516 TSF_FAIL_EXIST = 0,
3517 TSF_RENAME_EXIST = 0x1,
3518 TSF_OVERWRITE_EXIST = 0x2,
3519 TSF_ALLOW_DECRYPTION = 0x4,
3520 TSF_NO_SECURITY = 0x8,
3521 TSF_COPY_CREATION_TIME = 0x10,
3522 TSF_COPY_WRITE_TIME = 0x20,
3523 TSF_USE_FULL_ACCESS = 0x40,
3524 TSF_DELETE_RECYCLE_IF_POSSIBLE = 0x80,
3525 TSF_COPY_HARD_LINK = 0x100,
3526 TSF_COPY_LOCALIZED_NAME = 0x200,
3527 TSF_MOVE_AS_COPY_DELETE = 0x400,
3528 TSF_SUSPEND_SHELLEVENTS = 0x800
3530 typedef DWORD TRANSFER_SOURCE_FLAGS;
3533 uuid(00adb003-bde9-45c6-8e29-d09f9353e108),
3534 object,
3535 pointer_default(unique)
3537 interface ITransferSource : IUnknown
3539 HRESULT Advise([in] ITransferAdviseSink *sink, [out] DWORD *cookie);
3540 HRESULT Unadvise([in] DWORD cookie);
3541 HRESULT SetProperties([in] IPropertyChangeArray *array);
3542 HRESULT OpenItem([in] IShellItem *item,
3543 [in] TRANSFER_SOURCE_FLAGS flags,
3544 [in] REFIID riid,
3545 [out, iid_is(riid)] void **ppv);
3546 HRESULT MoveItem([in] IShellItem *item,
3547 [in] IShellItem *parent_dest,
3548 [in, string] LPCWSTR name_dest,
3549 [in] TRANSFER_SOURCE_FLAGS flags,
3550 [out] IShellItem **newitem);
3551 HRESULT RecycleItem([in] IShellItem *source,
3552 [in] IShellItem *parent_dest,
3553 [in] TRANSFER_SOURCE_FLAGS flags,
3554 [out] IShellItem **new_dest);
3555 HRESULT RemoveItem([in] IShellItem *source, [in] TRANSFER_SOURCE_FLAGS flags);
3556 HRESULT RenameItem([in] IShellItem *source,
3557 [in, string] LPCWSTR newname,
3558 [in] TRANSFER_SOURCE_FLAGS flags,
3559 [out] IShellItem **new_dest);
3560 HRESULT LinkItem([in] IShellItem *source,
3561 [in] IShellItem *parent_dest,
3562 [in, unique, string] LPCWSTR new_name,
3563 [in] TRANSFER_SOURCE_FLAGS flags,
3564 [out] IShellItem **new_dest);
3565 HRESULT ApplyPropertiesToItem([in] IShellItem *source, [out] IShellItem **newitem);
3566 HRESULT GetDefaultDestinationName([in] IShellItem *source,
3567 [in] IShellItem *parent_dest,
3568 [out, string] LPWSTR *dest_name);
3569 HRESULT EnterFolder([in] IShellItem *child_folder);
3570 HRESULT LeaveFolder([in] IShellItem *child_folder);
3574 uuid(48addd32-3ca5-4124-abe3-b5a72531b207),
3575 object,
3576 pointer_default(unique)
3578 interface ITransferDestination : IUnknown
3580 HRESULT Advise([in] ITransferAdviseSink *sink, [out] DWORD *cookie);
3581 HRESULT Unadvise([in] DWORD cookie);
3582 HRESULT CreateItem([in, string] LPCWSTR name,
3583 [in] DWORD attr,
3584 [in] ULONGLONG size,
3585 [in] TRANSFER_SOURCE_FLAGS flags,
3586 [in] REFIID riid,
3587 [out, iid_is(riid)] void **ppv,
3588 [in] REFIID resources,
3589 [out, iid_is(riid)] void **presources);
3593 uuid(92218cab-ecaa-4335-8133-807fd234c2ee),
3594 object,
3595 pointer_default(unique)
3597 interface IAssocHandlerInvoker : IUnknown
3599 HRESULT SupportsSelection();
3600 HRESULT Invoke();
3604 uuid(f04061ac-1659-4a3f-a954-775aa57fc083),
3605 object,
3606 pointer_default(unique)
3608 interface IAssocHandler : IUnknown
3610 HRESULT GetName([out, string] LPWSTR *name);
3611 HRESULT GetUIName([out, string] LPWSTR *uiname);
3612 HRESULT GetIconLocation([out, string] LPWSTR *path,
3613 [out] int *index);
3614 HRESULT IsRecommended();
3615 HRESULT MakeDefault([in, string] LPCWSTR description);
3616 HRESULT Invoke([in] IDataObject *object);
3617 HRESULT CreateInvoker([in] IDataObject *object,
3618 [out] IAssocHandlerInvoker **invoker);
3622 uuid(973810ae-9599-4b88-9e4d-6ee98c9552da),
3623 object,
3624 pointer_default(unique)
3626 interface IEnumAssocHandlers : IUnknown
3628 HRESULT Next([in] ULONG count,
3629 [out, size_is(count), length_is(*fetched)] IAssocHandler **handlers,
3630 [out] ULONG *fetched);
3633 typedef enum ASSOC_FILTER
3635 ASSOC_FILTER_NONE = 0,
3636 ASSOC_FILTER_RECOMMENDED
3637 } ASSOC_FILTER;
3638 cpp_quote("HRESULT WINAPI SHAssocEnumHandlers(PCWSTR extra, ASSOC_FILTER filter, IEnumAssocHandlers **handlersenum);")
3640 /*****************************************************************************
3641 * ShellObjects typelibrary
3644 uuid(50A7E9B1-70EF-11D1-B75A-00A0C90564FE),
3645 lcid(0x0000),
3646 version(1.0)
3648 library ShellObjects
3651 uuid(71F96385-DDD6-48D3-A0C1-AE06E8B055FB)
3653 coclass ExplorerBrowser
3655 interface IExplorerBrowser;
3659 uuid(DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7)
3661 coclass FileOpenDialog
3663 interface IFileOpenDialog;
3667 uuid(C0B4E2F3-BA21-4773-8DBA-335EC946EB8B)
3669 coclass FileSaveDialog
3671 interface IFileSaveDialog;
3675 uuid(AE054212-3535-4430-83ED-D501AA6680E6)
3677 coclass NamespaceTreeControl
3679 interface INameSpaceTreeControl2;
3683 uuid(4df0c730-df9d-4ae3-9153-aa6b82e9795a)
3685 coclass KnownFolderManager
3687 interface IKnownFolderManager;
3691 uuid(591209c7-767b-42b2-9fba-44ee4615f2c7)
3693 coclass ApplicationAssociationRegistration
3695 interface IApplicationAssociationRegistration;
3699 uuid(00021401-0000-0000-c000-000000000046)
3701 coclass ShellLink
3703 interface IShellLinkW;
3707 uuid(56fdf344-fd6d-11d0-958a-006097c9a090)
3709 coclass TaskbarList
3711 interface ITaskbarList4;
3715 uuid(77f10cf0-3db5-4966-b520-b7c54fd35ed6)
3717 coclass DestinationList {
3718 interface ICustomDestinationList;
3722 uuid(2d3468c1-36a7-43b6-ac24-d3f02fd9607a)
3724 coclass EnumerableObjectCollection
3726 interface IEnumObjects;
3730 uuid(331f1768-05a9-4ddd-b86e-dae34ddc998a)
3732 coclass QueryCancelAutoPlay
3734 interface IQueryCancelAutoPlay;