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