Synchronize with trunk revision 59636 (just before Alex's CreateProcess revamp).
[reactos.git] / include / psdk / shobjidl.idl
1 /*
2 * COM interfaces for shell objects
3 *
4 * Copyright (C) 1999 Juergen Schmied
5 * Copyright (C) 2003 Alexandre Julliard
6 *
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.
11 *
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.
16 *
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
20 */
21
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
37 cpp_quote("/* FIXME: #include <sherrors.h> */")
38
39
40 /*****************************************************************************
41 * IPersistFolder interface
42 */
43 [
44 object,
45 uuid(000214ea-0000-0000-c000-000000000046),
46 pointer_default(unique)
47 ]
48 interface IPersistFolder : IPersist
49 {
50 typedef IPersistFolder *LPPERSISTFOLDER;
51
52 HRESULT Initialize( [in] LPCITEMIDLIST pidl );
53 }
54
55
56 /*****************************************************************************
57 * IPersistFolder2 interface
58 */
59 [
60 object,
61 uuid(1ac3d9f0-175c-11d1-95be-00609797ea4f),
62 pointer_default(unique)
63 ]
64 interface IPersistFolder2 : IPersistFolder
65 {
66 typedef IPersistFolder2 *LPPERSISTFOLDER2;
67
68 HRESULT GetCurFolder( [out] LPITEMIDLIST *ppidl );
69 }
70
71
72 /*****************************************************************************
73 * IPersistIDList interface
74 */
75 [
76 object,
77 uuid(1079acfc-29bd-11d3-8e0d-00c04f6837d5),
78 pointer_default(unique)
79 ]
80 interface IPersistIDList : IPersist
81 {
82 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
83 HRESULT GetIDList( [out] LPITEMIDLIST *ppidl );
84 }
85
86
87 /*****************************************************************************
88 * IEnumIDList interface
89 */
90 [
91 object,
92 uuid(000214f2-0000-0000-c000-000000000046),
93 pointer_default(unique)
94 ]
95 interface IEnumIDList : IUnknown
96 {
97 typedef IEnumIDList *LPENUMIDLIST;
98
99 HRESULT Next(
100 [in] ULONG celt,
101 [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
102 [out] ULONG *pceltFetched);
103
104 HRESULT Skip( [in] ULONG celt );
105 HRESULT Reset();
106 HRESULT Clone( [out] IEnumIDList **ppenum );
107 }
108
109 /*****************************************************************************
110 * IShellPropSheetExt interface
111 */
112 cpp_quote("#if 0")
113 typedef LPARAM LPFNSVADDPROPSHEETPAGE;
114 cpp_quote("#else")
115 cpp_quote("#include <prsht.h>")
116 cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
117 cpp_quote("#endif")
118
119 [
120 object,
121 uuid(000214E9-0000-0000-C000-000000000046),
122 pointer_default(unique),
123 local
124 ]
125 interface IShellPropSheetExt : IUnknown
126 {
127 enum tagSHELLPROPSHEETEXTPAGEID {
128 EXPPS_FILETYPES = 0x1
129 };
130
131 typedef UINT EXPPS;
132
133 HRESULT AddPages(
134 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
135 [in] LPARAM lParam);
136 HRESULT ReplacePage(
137 [in] EXPPS uPageID,
138 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
139 [in] LPARAM lParam);
140 }
141 typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
142
143 /*****************************************************************************
144 * IShellFolder interface
145 */
146 [
147 object,
148 uuid(000214e6-0000-0000-c000-000000000046),
149 pointer_default(unique)
150 ]
151 interface IShellFolder : IUnknown
152 {
153 typedef IShellFolder * LPSHELLFOLDER;
154
155 typedef enum tagSHGDN
156 {
157 SHGDN_NORMAL = 0,
158 SHGDN_INFOLDER = 1,
159 SHGDN_FOREDITING = 0x1000,
160 SHGDN_INCLUDE_NONFILESYS = 0x2000,
161 SHGDN_FORADDRESSBAR = 0x4000,
162 SHGDN_FORPARSING = 0x8000
163 } SHGNO;
164
165 typedef DWORD SHGDNF;
166
167 enum tagSHCONTF
168 {
169 SHCONTF_FOLDERS = 32,
170 SHCONTF_NONFOLDERS = 64,
171 SHCONTF_INCLUDEHIDDEN = 128,
172 SHCONTF_INIT_ON_FIRST_NEXT = 256,
173 SHCONTF_NETPRINTERSRCH = 512,
174 SHCONTF_SHAREABLE = 1024,
175 SHCONTF_STORAGE = 2048
176 };
177
178 typedef DWORD SHCONTF;
179
180 cpp_quote("#define SFGAO_CANCOPY DROPEFFECT_COPY")
181 cpp_quote("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
182 cpp_quote("#define SFGAO_CANLINK DROPEFFECT_LINK")
183 cpp_quote("#define SFGAO_STORAGE 0x00000008L")
184 cpp_quote("#define SFGAO_CANRENAME 0x00000010L")
185 cpp_quote("#define SFGAO_CANDELETE 0x00000020L")
186 cpp_quote("#define SFGAO_HASPROPSHEET 0x00000040L")
187 cpp_quote("#define SFGAO_DROPTARGET 0x00000100L")
188 cpp_quote("#define SFGAO_CAPABILITYMASK 0x00000177L")
189 cpp_quote("#define SFGAO_ENCRYPTED 0x00002000L")
190 cpp_quote("#define SFGAO_ISSLOW 0x00004000L")
191 cpp_quote("#define SFGAO_GHOSTED 0x00008000L")
192 cpp_quote("#define SFGAO_LINK 0x00010000L")
193 cpp_quote("#define SFGAO_SHARE 0x00020000L")
194 cpp_quote("#define SFGAO_READONLY 0x00040000L")
195 cpp_quote("#define SFGAO_HIDDEN 0x00080000L")
196 cpp_quote("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
197 cpp_quote("#define SFGAO_FILESYSANCESTOR 0x10000000L")
198 cpp_quote("#define SFGAO_FOLDER 0x20000000L")
199 cpp_quote("#define SFGAO_FILESYSTEM 0x40000000L")
200 cpp_quote("#define SFGAO_HASSUBFOLDER 0x80000000L")
201 cpp_quote("#define SFGAO_CONTENTSMASK 0x80000000L")
202 cpp_quote("#define SFGAO_VALIDATE 0x01000000L")
203 cpp_quote("#define SFGAO_REMOVABLE 0x02000000L")
204 cpp_quote("#define SFGAO_COMPRESSED 0x04000000L")
205 cpp_quote("#define SFGAO_BROWSABLE 0x08000000L")
206 cpp_quote("#define SFGAO_NONENUMERATED 0x00100000L")
207 cpp_quote("#define SFGAO_NEWCONTENT 0x00200000L")
208 cpp_quote("#define SFGAO_STREAM 0x00400000L")
209 cpp_quote("#define SFGAO_STORAGEANCESTOR 0x00800000L")
210
211 typedef ULONG SFGAOF;
212
213 HRESULT ParseDisplayName(
214 [in] HWND hwndOwner,
215 [in] LPBC pbcReserved,
216 [in, string] LPOLESTR lpszDisplayName,
217 [out] ULONG *pchEaten,
218 [out] LPITEMIDLIST *ppidl,
219 [in, out, unique] ULONG *pdwAttributes);
220
221 HRESULT EnumObjects(
222 [in] HWND hwndOwner,
223 [in] SHCONTF grfFlags,
224 [out] IEnumIDList **ppenumIDList);
225
226 HRESULT BindToObject(
227 [in] LPCITEMIDLIST pidl,
228 [in] LPBC pbcReserved,
229 [in] REFIID riid,
230 [out, iid_is(riid)] void **ppvOut);
231
232 HRESULT BindToStorage(
233 [in] LPCITEMIDLIST pidl,
234 [in] LPBC pbcReserved,
235 [in] REFIID riid,
236 [out, iid_is(riid)] void **ppvObj);
237
238 HRESULT CompareIDs(
239 [in] LPARAM lParam,
240 [in] LPCITEMIDLIST pidl1,
241 [in] LPCITEMIDLIST pidl2);
242
243 HRESULT CreateViewObject(
244 [in] HWND hwndOwner,
245 [in] REFIID riid,
246 [out, iid_is(riid)] void **ppvOut);
247
248 HRESULT GetAttributesOf(
249 [in] UINT cidl,
250 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
251 [in, out] SFGAOF *rgfInOut);
252
253 HRESULT GetUIObjectOf(
254 [in] HWND hwndOwner,
255 [in] UINT cidl,
256 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
257 [in] REFIID riid,
258 [in, out, unique] UINT *prgfInOut,
259 [out, iid_is(riid)] void **ppvOut);
260
261 HRESULT GetDisplayNameOf(
262 [in] LPCITEMIDLIST pidl,
263 [in] SHGDNF uFlags,
264 [out] STRRET *lpName);
265
266 HRESULT SetNameOf(
267 [in] HWND hwnd,
268 [in] LPCITEMIDLIST pidl,
269 [in, string] LPCOLESTR lpszName,
270 [in] SHGDNF uFlags,
271 [out] LPITEMIDLIST *ppidlOut);
272 }
273
274
275 /*****************************************************************************
276 * IEnumExtraSearch interface
277 */
278 [
279 object,
280 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
281 pointer_default(unique)
282 ]
283 interface IEnumExtraSearch : IUnknown
284 {
285 typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
286
287 typedef struct
288 {
289 GUID guidSearch;
290 WCHAR wszFriendlyName[80];
291 /*
292 *WCHAR wszMenuText[80];
293 *WCHAR wszHelpText[MAX_PATH];
294 */
295 WCHAR wszUrl[2084];
296 /*
297 *WCHAR wszIcon[MAX_PATH+10];
298 *WCHAR wszGreyIcon[MAX_PATH+10];
299 *WCHAR wszClrIcon[MAX_PATH+10];
300 */
301 } EXTRASEARCH, *LPEXTRASEARCH;
302
303 HRESULT Next(
304 [in] ULONG celt,
305 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
306 [out] ULONG *pceltFetched);
307
308 HRESULT Skip( [in] ULONG celt );
309 HRESULT Reset();
310 HRESULT Clone( [out] IEnumExtraSearch **ppenum );
311 }
312
313
314 /*****************************************************************************
315 * IShellFolder2 interface
316 */
317 [
318 object,
319 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
320 pointer_default(unique)
321 ]
322 interface IShellFolder2 : IShellFolder
323 {
324 typedef struct
325 {
326 GUID fmtid;
327 DWORD pid;
328 } SHCOLUMNID, *LPSHCOLUMNID;
329 typedef const SHCOLUMNID *LPCSHCOLUMNID;
330
331 HRESULT GetDefaultSearchGUID( [out] GUID *lpguid );
332 HRESULT EnumSearches( [out] IEnumExtraSearch **ppenum );
333 HRESULT GetDefaultColumn( [in] DWORD dwReserved, [out] ULONG *pSort, [out] ULONG *pDisplay );
334 HRESULT GetDefaultColumnState( [in] UINT iColumn, [out] SHCOLSTATEF *pcsFlags );
335 HRESULT GetDetailsEx( [in] LPCITEMIDLIST pidl, [in] const SHCOLUMNID *pscid, [out] VARIANT *pv);
336 HRESULT GetDetailsOf( [in] LPCITEMIDLIST pidl, [in] UINT iColumn, [out] SHELLDETAILS *psd);
337 HRESULT MapColumnToSCID( [in] UINT iColumn, [in] SHCOLUMNID *pscid );
338 }
339
340 /*****************************************************************************
341 * IShellItem interface
342 */
343 [
344 object,
345 uuid(43826d1e-e718-42ee-bc55-a1e261c37bfe),
346 pointer_default(unique)
347 ]
348 interface IShellItem : IUnknown
349 {
350 typedef [v1_enum] enum {
351 SIGDN_NORMALDISPLAY = 0,
352 SIGDN_PARENTRELATIVEPARSING = 0x80018001,
353 SIGDN_DESKTOPABSOLUTEPARSING = 0x80028000,
354 SIGDN_PARENTRELATIVEEDITING = 0x80031001,
355 SIGDN_DESKTOPABSOLUTEEDITING = 0x8004c000,
356 SIGDN_FILESYSPATH = 0x80058000,
357 SIGDN_URL = 0x80068000,
358 SIGDN_PARENTRELATIVEFORADDRESSBAR = 0x8007c001,
359 SIGDN_PARENTRELATIVE = 0x80080001
360 } SIGDN; /* & 0xFFFF => SHGDN */
361
362 [v1_enum] enum _SICHINTF
363 {
364 SICHINT_DISPLAY = 0x00000000,
365 SICHINT_CANONICAL = 0x10000000,
366 SICHINT_TEST_FILESYSPATH_IF_NOT_EQUAL = 0x20000000,
367 SICHINT_ALLFIELDS = 0x80000000
368 };
369 typedef DWORD SICHINTF;
370
371 HRESULT BindToHandler(
372 [in] IBindCtx *pbc,
373 [in] REFGUID rbhid,
374 [in] REFIID riid,
375 [out, iid_is(riid)] void **ppvOut);
376
377 HRESULT GetParent( [out] IShellItem **ppsi );
378
379 HRESULT GetDisplayName(
380 [in] SIGDN sigdnName,
381 [out] LPWSTR *ppszName);
382
383 HRESULT GetAttributes(
384 [in] SFGAOF sfgaoMask,
385 [out] SFGAOF *psfgaoAttribs);
386
387 HRESULT Compare(
388 [in] IShellItem *psi,
389 [in] SICHINTF hint,
390 [out] int *piOrder);
391 }
392
393 /*****************************************************************************
394 * IShellItem2 interface
395 */
396 [
397 object,
398 uuid(7E9FB0D3-919F-4307-AB2E-9B1860310C93),
399 pointer_default(unique)
400 ]
401 interface IShellItem2 : IShellItem
402 {
403 HRESULT GetPropertyStore(
404 [in] GETPROPERTYSTOREFLAGS flags,
405 [in] REFIID riid,
406 [out, iid_is(riid)] void **ppv);
407
408 HRESULT GetPropertyStoreWithCreateObject(
409 [in] GETPROPERTYSTOREFLAGS flags,
410 [in] IUnknown *punkCreateObject,
411 [in] REFIID riid,
412 [out, iid_is(riid)] void **ppv);
413
414 HRESULT GetPropertyStoreForKeys(
415 [in, size_is(cKeys)] const PROPERTYKEY *rgKeys,
416 [in] UINT cKeys,
417 [in] GETPROPERTYSTOREFLAGS flags,
418 [in] REFIID riid,
419 [out, iid_is(riid)] void **ppv);
420
421 HRESULT GetPropertyDescriptionList(
422 [in] REFPROPERTYKEY keyType,
423 [in] REFIID riid,
424 [out, iid_is(riid)] void **ppv);
425
426 HRESULT Update(
427 [in, unique] IBindCtx *pbc);
428
429 HRESULT GetProperty(
430 [in] REFPROPERTYKEY key,
431 [out] PROPVARIANT *ppropvar);
432
433 HRESULT GetCLSID(
434 [in] REFPROPERTYKEY key,
435 [out] CLSID *pclsid);
436
437 HRESULT GetFileTime (
438 [in] REFPROPERTYKEY key,
439 [out] FILETIME *pft);
440
441 HRESULT GetInt32(
442 [in] REFPROPERTYKEY key,
443 [out] int *pi);
444
445 HRESULT GetString(
446 [in] REFPROPERTYKEY key,
447 [out, string] LPWSTR *ppsz);
448
449 HRESULT GetUInt32(
450 [in] REFPROPERTYKEY key,
451 [out] ULONG *pui);
452
453 HRESULT GetUInt64(
454 [in] REFPROPERTYKEY key,
455 [out] ULONGLONG *pull);
456
457 HRESULT GetBool(
458 [in] REFPROPERTYKEY key,
459 [out] BOOL *pf);
460 }
461
462 typedef enum tagNWMF {
463 NWMF_UNLOADING = 0x0001,
464 NWMF_USERINITED = 0x0002,
465 NWMF_FIRST = 0x0004,
466 NWMF_OVERRIDEKEY = 0x0008,
467 NWMF_SHOWHELP = 0x0010,
468 NWMF_HTMLDIALOG = 0x0020,
469 NWMF_FROMDIALOGCHILD = 0x0040,
470 NWMF_USERREQUESTED = 0x0080,
471 NWMF_USERALLOWED = 0x0100
472 } NWMF;
473
474 [
475 uuid(d2bc4c84-3f72-4a52-a604-7bcbf3982cbb),
476 object,
477 pointer_default(unique)
478 ]
479 interface INewWindowManager : IUnknown
480 {
481 HRESULT EvaluateNewWindow(
482 [in, string] LPCWSTR pszUrl,
483 [in, string] LPCWSTR pszName,
484 [in, string] LPCWSTR pszUrlContext,
485 [in, string] LPCWSTR pszFeatures,
486 [in] BOOL fReplace,
487 [in] DWORD dwFlags,
488 [in] DWORD dwUserActionTime);
489 }
490
491 cpp_quote("#define SID_SNewWindowManager IID_INewWindowManager")
492
493 /*****************************************************************************
494 * IEnumShellItems interface
495 */
496 [
497 object,
498 uuid(70629033-E363-4A28-A567-0DB78006E6D7),
499 pointer_default(unique)
500 ]
501 interface IEnumShellItems : IUnknown
502 {
503 [local] HRESULT Next(
504 [in] ULONG celt,
505 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
506 [out] ULONG *pceltFetched);
507
508 [call_as(Next)] HRESULT RemoteNext(
509 [in] ULONG celt,
510 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
511 [out] ULONG *pceltFetched);
512
513 HRESULT Skip(
514 [in] ULONG celt);
515
516 HRESULT Reset();
517
518 HRESULT Clone(
519 [out] IEnumShellItems **ppenum);
520 }
521
522 /*****************************************************************************
523 * IShellItemArray interface
524 */
525 [
526 object,
527 uuid(B63EA76D-1F85-456F-A19C-48159EFA858B),
528 pointer_default(unique)
529 ]
530 interface IShellItemArray : IUnknown
531 {
532 typedef [v1_enum] enum SIATTRIBFLAGS {
533 SIATTRIBFLAGS_AND = 0x0001,
534 SIATTRIBFLAGS_OR = 0x0002,
535 SIATTRIBFLAGS_APPCOMPAT = 0x0003,
536 SIATTRIBFLAGS_MASK = 0x0003,
537 SIATTRIBFLAGS_ALLITEMS = 0x4000
538 } SIATTRIBFLAGS;
539 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(SIATTRIBFLAGS)")
540
541 HRESULT BindToHandler(
542 [in, unique] IBindCtx *pbc,
543 [in] REFGUID bhid,
544 [in] REFIID riid,
545 [out, iid_is(riid)] void **ppvOut);
546
547 HRESULT GetPropertyStore(
548 [in] GETPROPERTYSTOREFLAGS flags,
549 [in] REFIID riid,
550 [out, iid_is(riid)] void **ppv);
551
552 HRESULT GetPropertyDescriptionList(
553 [in] REFPROPERTYKEY keyType,
554 [in] REFIID riid,
555 [out, iid_is(riid)] void **ppv);
556
557 HRESULT GetAttributes(
558 [in] SIATTRIBFLAGS AttribFlags,
559 [in] SFGAOF sfgaoMask,
560 [out] SFGAOF *psfgaoAttribs);
561
562 HRESULT GetCount(
563 [out] DWORD *pdwNumItems);
564
565 HRESULT GetItemAt(
566 [in] DWORD dwIndex,
567 [out] IShellItem **ppsi);
568
569 HRESULT EnumItems(
570 [out] IEnumShellItems **ppenumShellItems);
571
572 }
573
574 typedef [v1_enum] enum DATAOBJ_GET_ITEM_FLAGS
575 {
576 DOGIF_DEFAULT = 0x0,
577 DOGIF_TRAVERSE_LINK = 0x1,
578 DOGIF_NO_HDROP = 0x2,
579 DOGIF_NO_URL = 0x4,
580 DOGIF_ONLY_IF_ONE = 0x8
581 } DATAOBJ_GET_ITEM_FLAGS;
582 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DATAOBJ_GET_ITEM_FLAGS)")
583
584 cpp_quote("HRESULT WINAPI SHGetNameFromIDList(PCIDLIST_ABSOLUTE pidl, SIGDN sigdnName, PWSTR *ppszName);")
585 cpp_quote("HRESULT WINAPI SHCreateItemFromParsingName(PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv);")
586 cpp_quote("HRESULT WINAPI SHCreateItemFromIDList(PCIDLIST_ABSOLUTE pidl, REFIID riid, void **ppv);")
587 cpp_quote("HRESULT WINAPI SHGetItemFromDataObject(IDataObject *pdtobj, DATAOBJ_GET_ITEM_FLAGS dwFlags, REFIID riid, void **ppv);")
588 cpp_quote("HRESULT WINAPI SHGetIDListFromObject(IUnknown *punk, PIDLIST_ABSOLUTE *ppidl);")
589 cpp_quote("HRESULT WINAPI SHGetItemFromObject(IUnknown *punk, REFIID riid, void **ppv);")
590 cpp_quote("HRESULT WINAPI SHCreateShellItemArray(PCIDLIST_ABSOLUTE pidlParent, IShellFolder* psf, UINT cidl, PCUITEMID_CHILD_ARRAY ppidl, IShellItemArray **ppsiItemArray);")
591 cpp_quote("HRESULT WINAPI SHCreateShellItemArrayFromShellItem(IShellItem *psi, REFIID riid, void **ppv);")
592 cpp_quote("HRESULT WINAPI SHCreateShellItemArrayFromDataObject(IDataObject *pdo, REFIID riid, void **ppv);")
593
594 /*****************************************************************************
595 * IShellItemFilter interface
596 */
597 [
598 object,
599 uuid(2659B475-EEB8-48B7-8F07-B378810F48CF),
600 pointer_default(unique)
601 ]
602 interface IShellItemFilter : IUnknown
603 {
604 HRESULT IncludeItem(
605 [in] IShellItem *psi);
606
607 HRESULT GetEnumFlagsForItem(
608 [in] IShellItem *psi,
609 [out] SHCONTF *pgrfFlags);
610 }
611
612 /*****************************************************************************
613 * FOLDERSETTINGS
614 */
615 typedef char *LPVIEWSETTINGS;
616
617 typedef enum
618 {
619 FWF_AUTOARRANGE = 0x00000001,
620 FWF_ABBREVIATEDNAMES = 0x00000002,
621 FWF_SNAPTOGRID = 0x00000004,
622 FWF_OWNERDATA = 0x00000008,
623 FWF_BESTFITWINDOW = 0x00000010,
624 FWF_DESKTOP = 0x00000020,
625 FWF_SINGLESEL = 0x00000040,
626 FWF_NOSUBFOLDERS = 0x00000080,
627 FWF_TRANSPARENT = 0x00000100,
628 FWF_NOCLIENTEDGE = 0x00000200,
629 FWF_NOSCROLL = 0x00000400,
630 FWF_ALIGNLEFT = 0x00000800,
631 FWF_NOICONS = 0x00001000,
632 FWF_SHOWSELALWAYS = 0x00002000,
633 FWF_NOVISIBLE = 0x00004000,
634 FWF_SINGLECLICKACTIVATE = 0x00008000,
635 FWF_NOWEBVIEW = 0x00010000,
636 FWF_HIDEFILENAMES = 0x00020000,
637 FWF_CHECKSELECT = 0x00040000,
638 FWF_NOENUMREFRESH = 0x00080000,
639 FWF_NOGROUPING = 0x00100000,
640 FWF_FULLROWSELECT = 0x00200000,
641 FWF_NOFILTERS = 0x00400000,
642 FWF_NOCOLUMNHEADER = 0x00800000,
643 FWF_NOHEADERINALLVIEWS = 0x01000000,
644 FWF_EXTENDEDTILES = 0x02000000,
645 FWF_TRICHECKSELECT = 0x04000000,
646 FWF_AUTOCHECKSELECT = 0x08000000,
647 FWF_NOBROWSERVIEWSTATE = 0x10000000,
648 FWF_SUBSETGROUPS = 0x20000000,
649 FWF_USESEARCHFOLDER = 0x40000000,
650 FWF_ALLOWRTLREADING = 0x80000000
651 } FOLDERFLAGS;
652
653 typedef enum
654 {
655 FVM_AUTO =-1,
656 FVM_ICON = 1,
657 FVM_FIRST = FVM_ICON,
658 FVM_SMALLICON = 2,
659 FVM_LIST = 3,
660 FVM_DETAILS = 4,
661 FVM_THUMBNAIL = 5,
662 FVM_TILE = 6,
663 FVM_THUMBSTRIP = 7,
664 FVM_CONTENT = 8,
665 FVM_LAST = FVM_CONTENT
666 } FOLDERVIEWMODE;
667
668 typedef struct
669 {
670 UINT ViewMode;
671 UINT fFlags;
672 } FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
673 typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
674
675 /*****************************************************************************
676 * IShellIcon interface
677 */
678 [
679 uuid(000214e5-0000-0000-c000-000000000046),
680 object,
681 pointer_default(unique)
682 ]
683 interface IShellIcon : IUnknown
684 {
685 HRESULT GetIconOf(
686 [in] PCUITEMID_CHILD pidl,
687 [in] UINT flags,
688 [out] int *pIconIndex);
689 }
690
691 /*****************************************************************************
692 * IShellView interface
693 */
694 interface IShellBrowser; /* forward declaration */
695 [
696 object,
697 uuid(000214e3-0000-0000-c000-000000000046),
698 pointer_default(unique)
699 ]
700 interface IShellView : IOleWindow
701 {
702 typedef IShellView *LPSHELLVIEW;
703
704 cpp_quote("#define SVSI_DESELECT 0x00000000")
705 cpp_quote("#define SVSI_SELECT 0x00000001")
706 cpp_quote("#define SVSI_EDIT 0x00000003")
707 cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
708 cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
709 cpp_quote("#define SVSI_FOCUSED 0x00000010")
710 cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
711 cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
712 cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
713 cpp_quote("#define SVSI_CHECK 0x00000100")
714 cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
715
716 typedef UINT SVSIF;
717
718 typedef enum
719 {
720 SVGIO_BACKGROUND = 0x00000000,
721 SVGIO_SELECTION = 0x00000001,
722 SVGIO_ALLVIEW = 0x00000002,
723 SVGIO_CHECKED = 0x00000003,
724 SVGIO_TYPE_MASK = 0x0000000f,
725 SVGIO_FLAG_VIEWORDER = 0x80000000,
726 } SVGIO;
727
728 typedef enum
729 {
730 SVUIA_DEACTIVATE = 0,
731 SVUIA_ACTIVATE_NOFOCUS = 1,
732 SVUIA_ACTIVATE_FOCUS = 2,
733 SVUIA_INPLACEACTIVATE = 3
734 } SVUIA_STATUS;
735
736 HRESULT TranslateAccelerator( [in] MSG *pmsg );
737 HRESULT EnableModeless( [in] BOOL fEnable );
738 HRESULT UIActivate( [in] UINT uState );
739 HRESULT Refresh();
740 HRESULT CreateViewWindow(
741 [in] IShellView *psvPrevious,
742 [in] LPCFOLDERSETTINGS lpfs,
743 [in] IShellBrowser *psb,
744 [out] RECT *prcView,
745 [out] HWND *phWnd);
746
747 HRESULT DestroyViewWindow();
748 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
749
750 [local] HRESULT AddPropertySheetPages(
751 [in] DWORD dwReserved,
752 [in] LPFNSVADDPROPSHEETPAGE pfn,
753 [in] LPARAM lparam);
754
755 HRESULT SaveViewState();
756 HRESULT SelectItem(
757 [in] LPCITEMIDLIST pidlItem,
758 [in] SVSIF uFlags);
759 HRESULT GetItemObject(
760 [in] UINT uItem,
761 [in] REFIID riid,
762 [out, iid_is(riid)] void **ppv);
763 }
764
765 [
766 object,
767 uuid(88e39e80-3578-11cf-ae69-08002b2e1262),
768 pointer_default(unique)
769 ]
770 interface IShellView2 : IShellView
771 {
772 typedef GUID SHELLVIEWID;
773 cpp_quote("#include <pshpack8.h>")
774 typedef struct _SV2CVW2_PARAMS
775 {
776 DWORD cbSize;
777 IShellView *psvPrev;
778 LPCFOLDERSETTINGS pfs;
779 IShellBrowser *psbOwner;
780 RECT *prcView;
781 SHELLVIEWID const *pvid;
782 HWND hwndView;
783 } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
784 cpp_quote("#include <poppack.h>")
785
786 HRESULT GetView(
787 [in, out] SHELLVIEWID *view_guid,
788 [in] ULONG view_type
789 );
790 HRESULT CreateViewWindow2(
791 [in] LPSV2CVW2_PARAMS view_params
792 );
793 HRESULT HandleRename(
794 [in] LPCITEMIDLIST new_pidl
795 );
796 HRESULT SelectAndPositionItem(
797 [in] LPCITEMIDLIST item,
798 [in] UINT flags,
799 [in] POINT *point
800 );
801 }
802
803 /*****************************************************************************
804 * IFolderView interface
805 */
806 [
807 uuid(cde725b0-ccc9-4519-917e-325d72fab4ce),
808 object,
809 pointer_default(unique)
810 ]
811 interface IFolderView : IUnknown
812 {
813 HRESULT GetCurrentViewMode( [out] UINT *mode );
814 HRESULT SetCurrentViewMode( [in] UINT mode );
815 HRESULT GetFolder( [in] REFIID riid, [out, iid_is(riid)] void **ppv );
816 HRESULT Item(
817 [in] int index,
818 [out] PITEMID_CHILD *ppidl
819 );
820 HRESULT ItemCount(
821 [in] UINT flags,
822 [out] int *items
823 );
824 HRESULT Items(
825 [in] UINT flags,
826 [in] REFIID riid,
827 [out, iid_is(riid)] void **ppv
828 );
829 HRESULT GetSelectionMarkedItem( [out] int *item );
830 HRESULT GetFocusedItem( [out] int *item );
831 HRESULT GetItemPosition(
832 [in] PCUITEMID_CHILD pidl,
833 [out] POINT* ppt
834 );
835 HRESULT GetSpacing( [in, out, unique] POINT* pt );
836 HRESULT GetDefaultSpacing( [out] POINT* pt );
837 HRESULT GetAutoArrange();
838 HRESULT SelectItem(
839 [in] int item,
840 [in] DWORD flags
841 );
842 HRESULT SelectAndPositionItems(
843 [in] UINT cidl,
844 [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
845 [in, unique, size_is(cidl)] POINT* apt,
846 [in] DWORD flags
847 );
848 }
849
850 /*****************************************************************************
851 * IShellBrowser interface
852 */
853 [
854 object,
855 uuid(000214e2-0000-0000-c000-000000000046),
856 pointer_default(unique)
857 ]
858 interface IShellBrowser : IOleWindow
859 {
860 typedef IShellBrowser *LPSHELLBROWSER;
861
862 cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
863 cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
864 cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
865 cpp_quote("#define SBSP_DEFMODE 0x00000000")
866 cpp_quote("#define SBSP_OPENMODE 0x00000010")
867 cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
868 cpp_quote("#define SBSP_HELPMODE 0x00000040")
869 cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
870 cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
871 cpp_quote("#define SBSP_RELATIVE 0x00001000")
872 cpp_quote("#define SBSP_PARENT 0x00002000")
873 cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
874 cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
875 cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
876 cpp_quote("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
877 cpp_quote("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
878 cpp_quote("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
879 cpp_quote("#define SBSP_CREATENOHISTORY 0x00100000")
880 cpp_quote("#define SBSP_PLAYNOSOUND 0x00200000")
881 cpp_quote("#define SBSP_CALLERUNTURUSTED 0x00800000")
882 cpp_quote("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
883 cpp_quote("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
884 cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
885 cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
886 cpp_quote("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
887 cpp_quote("#define SBSP_FEEDNAVIGATION 0x20000000")
888 cpp_quote("#define SBSP_REDIRECT 0x40000000")
889 cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
890
891 cpp_quote("#define FCW_STATUS 0x0001")
892 cpp_quote("#define FCW_TOOLBAR 0x0002")
893 cpp_quote("#define FCW_TREE 0x0003")
894 cpp_quote("#define FCW_INTERNETBAR 0x0006")
895 cpp_quote("#define FCW_PROGRESS 0x0008")
896
897 cpp_quote("#define FCT_MERGE 0x0001")
898 cpp_quote("#define FCT_CONFIGABLE 0x0002")
899 cpp_quote("#define FCT_ADDTOEND 0x0004")
900
901 cpp_quote("#if 0")
902 typedef LPARAM LPTBBUTTONSB;
903 cpp_quote("#else")
904 cpp_quote("#include <commctrl.h>")
905 cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
906 cpp_quote("#endif")
907
908 HRESULT InsertMenusSB(
909 [in] HMENU hmenuShared,
910 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
911
912 HRESULT SetMenuSB(
913 [in] HMENU hmenuShared,
914 [in] HOLEMENU holemenuReserved,
915 [in] HWND hwndActiveObject);
916
917 HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
918 HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
919 HRESULT EnableModelessSB( [in] BOOL fEnable );
920 HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
921
922 HRESULT BrowseObject(
923 [in] LPCITEMIDLIST pidl,
924 [in] UINT wFlags);
925
926 HRESULT GetViewStateStream(
927 [in] DWORD grfMode,
928 [out] IStream **ppStrm);
929
930 HRESULT GetControlWindow(
931 [in] UINT id,
932 [out] HWND *phwnd);
933
934 [local] HRESULT SendControlMsg(
935 [in] UINT id,
936 [in] UINT uMsg,
937 [in] WPARAM wParam,
938 [in] LPARAM lParam,
939 [in] LRESULT *pret);
940
941 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
942 HRESULT OnViewWindowActive( [in] IShellView *pshv );
943
944 [local]
945 HRESULT SetToolbarItems(
946 [in] LPTBBUTTONSB lpButtons,
947 [in] UINT nButtons,
948 [in] UINT uFlags);
949 }
950
951
952 /*****************************************************************************
953 * IShellLinkA interface
954 */
955 [
956 object,
957 uuid(000214ee-0000-0000-c000-000000000046),
958 pointer_default(unique)
959 ]
960 interface IShellLinkA : IUnknown
961 {
962 typedef enum
963 {
964 SLR_NO_UI = 0x0001,
965 SLR_ANY_MATCH = 0x0002,
966 SLR_UPDATE = 0x0004,
967 SLR_NOUPDATE = 0x0008,
968 SLR_NOSEARCH = 0x0010,
969 SLR_NOTRACK = 0x0020,
970 SLR_NOLINKINFO = 0x0040,
971 SLR_INVOKE_MSI = 0x0080,
972 SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
973 } SLR_FLAGS;
974
975 typedef enum
976 {
977 SLGP_SHORTPATH = 0x0001,
978 SLGP_UNCPRIORITY = 0x0002,
979 SLGP_RAWPATH = 0x0004,
980 } SLGP_FLAGS;
981
982 HRESULT GetPath(
983 [out, size_is(cch)] LPSTR pszFile,
984 [in] int cch,
985 [in, out, unique] WIN32_FIND_DATAA *pfd,
986 [in] DWORD fFlags);
987
988 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
989
990 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
991
992 HRESULT GetDescription(
993 [out, size_is(cch)] LPSTR pszName,
994 [in] int cch);
995
996 HRESULT SetDescription( [in] LPCSTR pszName );
997
998 HRESULT GetWorkingDirectory(
999 [out, size_is(cch)] LPSTR pszDir,
1000 [in] int cch);
1001
1002 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
1003
1004 HRESULT GetArguments(
1005 [out, size_is(cch)] LPSTR pszArgs,
1006 [in] int cch);
1007
1008 HRESULT SetArguments( [in] LPCSTR pszArgs );
1009
1010 HRESULT GetHotkey( [out] WORD *pwHotkey );
1011
1012 HRESULT SetHotkey( [in] WORD wHotkey );
1013
1014 HRESULT GetShowCmd( [out] int *piShowCmd );
1015
1016 HRESULT SetShowCmd( [in] int iShowCmd );
1017
1018 HRESULT GetIconLocation(
1019 [out, size_is(cch)] LPSTR pszIconPath,
1020 [in] int cch,
1021 [out] int *piIcon);
1022
1023 HRESULT SetIconLocation(
1024 [in] LPCSTR pszIconPath,
1025 [in] int iIcon);
1026
1027 HRESULT SetRelativePath(
1028 [in] LPCSTR pszPathRel,
1029 [in] DWORD dwReserved);
1030
1031 HRESULT Resolve(
1032 [in] HWND hwnd,
1033 [in] DWORD fFlags);
1034
1035 HRESULT SetPath( [in] LPCSTR pszFile );
1036 }
1037
1038
1039 /*****************************************************************************
1040 * IShellLinkW interface
1041 */
1042 [
1043 object,
1044 uuid(000214f9-0000-0000-c000-000000000046),
1045 pointer_default(unique)
1046 ]
1047 interface IShellLinkW : IUnknown
1048 {
1049 HRESULT GetPath(
1050 [out, size_is(cch)] LPWSTR pszFile,
1051 [in] int cch,
1052 [in, out] WIN32_FIND_DATAW *pfd,
1053 [in] DWORD fFlags);
1054
1055 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
1056
1057 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
1058
1059 HRESULT GetDescription(
1060 [out, size_is(cch)] LPWSTR pszName,
1061 [in] int cch);
1062
1063 HRESULT SetDescription( [in] LPCWSTR pszName );
1064
1065 HRESULT GetWorkingDirectory(
1066 [out, size_is(cch)] LPWSTR pszDir,
1067 [in] int cch);
1068
1069 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
1070
1071 HRESULT GetArguments(
1072 [out, size_is(cch)] LPWSTR pszArgs,
1073 [in] int cch);
1074
1075 HRESULT SetArguments( [in] LPCWSTR pszArgs );
1076
1077 HRESULT GetHotkey( [out] WORD *pwHotkey );
1078
1079 HRESULT SetHotkey( [in] WORD wHotkey );
1080
1081 HRESULT GetShowCmd( [out] int *piShowCmd );
1082
1083 HRESULT SetShowCmd( [in] int iShowCmd );
1084
1085 HRESULT GetIconLocation(
1086 [out, size_is(cch)] LPWSTR pszIconPath,
1087 [in] int cch,
1088 [out] int *piIcon);
1089
1090 HRESULT SetIconLocation(
1091 [in] LPCWSTR pszIconPath,
1092 [in] int iIcon);
1093
1094 HRESULT SetRelativePath(
1095 [in] LPCWSTR pszPathRel,
1096 [in] DWORD dwReserved);
1097
1098 HRESULT Resolve(
1099 [in] HWND hwnd,
1100 [in] DWORD fFlags);
1101
1102 HRESULT SetPath( [in] LPCWSTR pszFile );
1103 }
1104
1105 cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
1106
1107
1108 /*****************************************************************************
1109 * IShellExtInit interface
1110 */
1111 [
1112 object,
1113 uuid(000214e8-0000-0000-c000-000000000046),
1114 pointer_default(unique),
1115 local
1116 ]
1117 interface IShellExtInit : IUnknown
1118 {
1119 typedef IShellExtInit *LPSHELLEXTINIT;
1120
1121 HRESULT Initialize(
1122 [in] LPCITEMIDLIST pidlFolder,
1123 [in] IDataObject *pdtobj,
1124 [in] HKEY hkeyProgID);
1125 }
1126
1127
1128 /*******************************************************************************/
1129 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
1130 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
1131 /* them here anyway. */
1132 /*******************************************************************************/
1133
1134 #ifndef MAX_PATH
1135 #define MAX_PATH 260
1136 #endif
1137
1138
1139 /*****************************************************************************
1140 * IPersistFolder3 interface
1141 */
1142 [
1143 object,
1144 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
1145 pointer_default(unique)
1146 ]
1147 interface IPersistFolder3 : IPersistFolder2
1148 {
1149 typedef struct
1150 {
1151 LPITEMIDLIST pidlTargetFolder;
1152 WCHAR szTargetParsingName[MAX_PATH];
1153 WCHAR szNetworkProvider[MAX_PATH];
1154 DWORD dwAttributes;
1155 int csidl;
1156 } PERSIST_FOLDER_TARGET_INFO;
1157
1158 HRESULT InitializeEx(
1159 [in] IBindCtx *pbc,
1160 [in] LPCITEMIDLIST pidlRoot,
1161 [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
1162
1163 HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
1164 }
1165
1166
1167 /*****************************************************************************
1168 * IExtractIconA interface
1169 */
1170 [
1171 object,
1172 uuid(000214eb-0000-0000-c000-000000000046),
1173 pointer_default(unique),
1174 local
1175 ]
1176 interface IExtractIconA : IUnknown
1177 {
1178 cpp_quote("#define GIL_OPENICON 0x0001")
1179 cpp_quote("#define GIL_FORSHELL 0x0002")
1180 cpp_quote("#define GIL_ASYNC 0x0020")
1181 cpp_quote("#define GIL_DEFAULTICON 0x0040")
1182 cpp_quote("#define GIL_FORSHORTCUT 0x0080")
1183
1184 cpp_quote("#define GIL_SIMULATEDOC 0x0001")
1185 cpp_quote("#define GIL_PERINSTANCE 0x0002")
1186 cpp_quote("#define GIL_PERCLASS 0x0004")
1187 cpp_quote("#define GIL_NOTFILENAME 0x0008")
1188 cpp_quote("#define GIL_DONTCACHE 0x0010")
1189
1190 typedef IExtractIconA *LPEXTRACTICONA;
1191
1192 HRESULT GetIconLocation(
1193 [in] UINT uFlags,
1194 [out, size_is(cchMax)] LPSTR szIconFile,
1195 [in] UINT cchMax,
1196 [out] INT *piIndex,
1197 [out] UINT *pwFlags);
1198
1199 HRESULT Extract(
1200 [in] LPCSTR pszFile,
1201 [in] UINT nIconIndex,
1202 [out] HICON *phiconLarge,
1203 [out] HICON *phiconSmall,
1204 [in] UINT nIconSize );
1205 }
1206
1207
1208 /*****************************************************************************
1209 * IExtractIconW interface
1210 */
1211 [
1212 object,
1213 uuid(000214fa-0000-0000-c000-000000000046),
1214 pointer_default(unique),
1215 local
1216 ]
1217 interface IExtractIconW : IUnknown
1218 {
1219 typedef IExtractIconW *LPEXTRACTICONW;
1220
1221 HRESULT GetIconLocation(
1222 [in] UINT uFlags,
1223 [out, size_is(cchMax)] LPWSTR szIconFile,
1224 [in] UINT cchMax,
1225 [out] INT *piIndex,
1226 [out] UINT *pwFlags);
1227
1228 HRESULT Extract(
1229 [in] LPCWSTR pszFile,
1230 [in] UINT nIconIndex,
1231 [out] HICON *phiconLarge,
1232 [out] HICON *phiconSmall,
1233 [in] UINT nIconSize );
1234 }
1235
1236 cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1237 cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1238
1239
1240 /*****************************************************************************
1241 * ICommDlgBrowser interface
1242 */
1243 [
1244 object,
1245 uuid(000214f1-0000-0000-c000-000000000046),
1246 pointer_default(unique)
1247 ]
1248 interface ICommDlgBrowser : IUnknown
1249 {
1250 cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
1251 cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
1252 cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
1253 cpp_quote("#define CDBOSC_RENAME 0x00000003")
1254 cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
1255
1256 typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
1257
1258 HRESULT OnDefaultCommand( [in] IShellView *shv );
1259 HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
1260 HRESULT IncludeObject( [in] IShellView *shv, [in] LPCITEMIDLIST pidl );
1261 }
1262
1263
1264 /*****************************************************************************
1265 * ICommDlgBrowser2 interface
1266 */
1267 [
1268 object,
1269 uuid(10339516-2894-11D2-9039-00C04F8EEB3E),
1270 pointer_default(unique)
1271 ]
1272 interface ICommDlgBrowser2 : ICommDlgBrowser
1273 {
1274
1275 HRESULT Notify(
1276 [in] IShellView *ppshv,
1277 [in] DWORD dwNotifyType);
1278
1279 HRESULT GetDefaultMenuText(
1280 [in] IShellView *ppshv,
1281 [out, string, size_is(cchMax)] LPWSTR pszText,
1282 [in] int cchMax);
1283
1284 HRESULT GetViewFlags(
1285 [out] DWORD *pdwFlags);
1286 }
1287
1288
1289 /*****************************************************************************
1290 * ICommDlgBrowser3 interface
1291 */
1292 [
1293 object,
1294 uuid(C8AD25A1-3294-41EE-8165-71174BD01C57),
1295 pointer_default(unique)
1296 ]
1297 interface ICommDlgBrowser3 : ICommDlgBrowser2
1298 {
1299
1300 HRESULT OnColumnClicked(
1301 [in] IShellView *ppshv,
1302 [in] int iColumn);
1303
1304 HRESULT GetCurrentFilter(
1305 [out, string, size_is(cchFileSpec)] LPWSTR pszFileSpec,
1306 [in] int cchFileSpec);
1307
1308 HRESULT OnPreviewCreated(
1309 [in] IShellView *ppshv);
1310 }
1311
1312 /*****************************************************************************
1313 * IDockingWindow interface
1314 */
1315 [
1316 object,
1317 uuid(012dd920-7b26-11d0-8ca9-00a0c92dbfe8)
1318 ]
1319 interface IDockingWindow : IOleWindow
1320 {
1321 HRESULT ShowDW(
1322 [in] BOOL fShow);
1323
1324 HRESULT CloseDW(
1325 [in] DWORD dwReserved);
1326
1327 HRESULT ResizeBorderDW(
1328 [in] LPCRECT prcBorder,
1329 [in] IUnknown *punkToolbarSite,
1330 [in] BOOL fReserved);
1331 };
1332
1333
1334 /*****************************************************************************
1335 * IDockingWindowFrame interface
1336 */
1337 [
1338 object,
1339 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
1340 pointer_default(unique),
1341 local
1342 ]
1343 interface IDockingWindowFrame : IOleWindow
1344 {
1345 cpp_quote("#define DWFRF_NORMAL 0x0000")
1346 cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
1347 cpp_quote("#define DWFAF_HIDDEN 0x0001")
1348
1349 HRESULT AddToolbar(
1350 [in] IUnknown *punkSrc,
1351 [in] LPCWSTR pwszItem,
1352 [in] DWORD dwAddFlags);
1353
1354 HRESULT RemoveToolbar(
1355 [in] IUnknown *punkSrc,
1356 [in] DWORD dwRemoveFlags);
1357
1358 HRESULT FindToolbar(
1359 [in] LPCWSTR pwszItem,
1360 [in] REFIID riid,
1361 [out] LPVOID *ppvObj);
1362 }
1363
1364
1365 /*****************************************************************************
1366 * IDragSourceHelper interface
1367 */
1368 [
1369 object,
1370 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
1371 pointer_default(unique),
1372 local
1373 ]
1374 interface IDragSourceHelper : IUnknown
1375 {
1376 typedef struct
1377 {
1378 SIZE sizeDragImage;
1379 POINT ptOffset;
1380 HBITMAP hbmpDragImage;
1381 COLORREF crColorKey;
1382 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
1383
1384 HRESULT InitializeFromBitmap(
1385 [in] LPSHDRAGIMAGE pshdi,
1386 [in] IDataObject *pDataObject);
1387
1388 HRESULT InitializeFromWindow(
1389 [in] HWND hwnd,
1390 [in] POINT *ppt,
1391 [in] IDataObject *pDataObject);
1392 }
1393
1394
1395 /*****************************************************************************
1396 * IDropTargetHelper interface
1397 */
1398 [
1399 object,
1400 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
1401 pointer_default(unique),
1402 local
1403 ]
1404 interface IDropTargetHelper : IUnknown
1405 {
1406 HRESULT DragEnter(
1407 [in] HWND hwndTarget,
1408 [in] IDataObject *pDataObject,
1409 [in] POINT *ppt,
1410 [in] DWORD dwEffect);
1411
1412 HRESULT DragLeave();
1413
1414 HRESULT DragOver(
1415 [in] POINT *ppt,
1416 [in] DWORD dwEffect);
1417
1418 HRESULT Drop(
1419 [in] IDataObject *pDataObject,
1420 [in] POINT *ppt,
1421 [in] DWORD dwEffect);
1422
1423 HRESULT Show( [in] BOOL fShow );
1424 }
1425
1426
1427 /*****************************************************************************
1428 * IContextMenu interface
1429 */
1430 [
1431 object,
1432 uuid(000214e4-0000-0000-c000-000000000046),
1433 pointer_default(unique),
1434 local
1435 ]
1436 interface IContextMenu : IUnknown
1437 {
1438 cpp_quote("#define CMF_NORMAL 0x00000000")
1439 cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
1440 cpp_quote("#define CMF_VERBSONLY 0x00000002")
1441 cpp_quote("#define CMF_EXPLORE 0x00000004")
1442 cpp_quote("#define CMF_NOVERBS 0x00000008")
1443 cpp_quote("#define CMF_CANRENAME 0x00000010")
1444 cpp_quote("#define CMF_NODEFAULT 0x00000020")
1445 cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
1446 cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
1447 cpp_quote("#define CMF_RESERVED 0xffff0000")
1448
1449 cpp_quote("#define GCS_VERBA 0x00000000")
1450 cpp_quote("#define GCS_HELPTEXTA 0x00000001")
1451 cpp_quote("#define GCS_VALIDATEA 0x00000002")
1452 cpp_quote("#define GCS_VERBW 0x00000004")
1453 cpp_quote("#define GCS_HELPTEXTW 0x00000005")
1454 cpp_quote("#define GCS_VALIDATEW 0x00000006")
1455 cpp_quote("#define GCS_UNICODE 0x00000004")
1456 cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1457 cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1458 cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1459
1460 cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1461 cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
1462 cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1463 cpp_quote("#if defined(__GNUC__)")
1464 cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1465 cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1466 cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1467 cpp_quote("#elif defined(_MSC_VER)")
1468 cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1469 cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1470 cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1471 cpp_quote("#else")
1472 cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1473 cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1474 cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1475 cpp_quote("#endif")
1476 cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1477 cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1478 cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1479
1480 cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1481 cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
1482 cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1483 cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1484 cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1485 cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1486 cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1487 cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1488 cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1489 cpp_quote("#define CMIC_MASK_NOASYNC SEE_MASK_NOASYNC")
1490 cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1491 cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
1492 cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1493 cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1494 cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1495
1496 typedef IContextMenu *LPCONTEXTMENU;
1497
1498 typedef struct tagCMINVOKECOMMANDINFO
1499 {
1500 DWORD cbSize;
1501 DWORD fMask;
1502 HWND hwnd;
1503 LPCSTR lpVerb;
1504 LPCSTR lpParameters;
1505 LPCSTR lpDirectory;
1506 INT nShow;
1507 DWORD dwHotKey;
1508 HANDLE hIcon;
1509 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1510
1511 typedef struct tagCMInvokeCommandInfoEx
1512 {
1513 DWORD cbSize;
1514 DWORD fMask;
1515 HWND hwnd;
1516 LPCSTR lpVerb;
1517 LPCSTR lpParameters;
1518 LPCSTR lpDirectory;
1519 INT nShow;
1520 DWORD dwHotKey;
1521 HANDLE hIcon;
1522 LPCSTR lpTitle;
1523 LPCWSTR lpVerbW;
1524 LPCWSTR lpParametersW;
1525 LPCWSTR lpDirectoryW;
1526 LPCWSTR lpTitleW;
1527 POINT ptInvoke;
1528 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1529
1530 HRESULT QueryContextMenu(
1531 [in] HMENU hmenu,
1532 [in] UINT indexMenu,
1533 [in] UINT idCmdFirst,
1534 [in] UINT idCmdLast,
1535 [in] UINT uFlags);
1536
1537 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1538
1539 HRESULT GetCommandString(
1540 [in] UINT_PTR idCmd,
1541 [in] UINT uType,
1542 [out] UINT *pwReserved,
1543 [out, size_is(cchMax)] LPSTR pszName,
1544 [in] UINT cchMax);
1545 }
1546
1547
1548 /*****************************************************************************
1549 * IContextMenu2 interface
1550 */
1551 [
1552 object,
1553 uuid(000214f4-0000-0000-c000-000000000046),
1554 pointer_default(unique),
1555 local
1556 ]
1557 interface IContextMenu2 : IContextMenu
1558 {
1559 typedef IContextMenu2 *LPCONTEXTMENU2;
1560
1561 HRESULT HandleMenuMsg(
1562 [in] UINT uMsg,
1563 [in] WPARAM wParam,
1564 [in] LPARAM lParam);
1565 }
1566
1567
1568 /*****************************************************************************
1569 * IContextMenu3 interface
1570 */
1571 [
1572 object,
1573 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1574 pointer_default(unique),
1575 local
1576 ]
1577 interface IContextMenu3 : IContextMenu2
1578 {
1579 typedef IContextMenu3 *LPCONTEXTMENU3;
1580
1581 HRESULT HandleMenuMsg2(
1582 [in] UINT uMsg,
1583 [in] WPARAM wParam,
1584 [in] LPARAM lParam,
1585 [out] LRESULT *plResult);
1586 }
1587
1588 /*****************************************************************************
1589 * IContextMenuCB interface
1590 */
1591
1592 [
1593 object,
1594 uuid(3409e930-5a39-11d1-83fa-00a0c90dc849),
1595 pointer_default(unique),
1596 local
1597 ]
1598 interface IContextMenuCB : IUnknown
1599 {
1600 HRESULT CallBack(
1601 [in] IShellFolder *psf,
1602 [in] HWND hwndOwner,
1603 [in] IDataObject *pdtobj,
1604 [in] UINT uMsg,
1605 [in] WPARAM wParam,
1606 [in] LPARAM lParam);
1607 }
1608
1609 /*****************************************************************************
1610 * IShellExecuteHookA interface
1611 */
1612 [
1613 object,
1614 uuid(000214f5-0000-0000-c000-000000000046),
1615 pointer_default(unique),
1616 local
1617 ]
1618 interface IShellExecuteHookA : IUnknown
1619 {
1620 cpp_quote("struct _SHELLEXECUTEINFOA;")
1621 HRESULT Execute(
1622 [in, out] struct _SHELLEXECUTEINFOA* pei);
1623 }
1624
1625
1626 /*****************************************************************************
1627 * IShellExecuteHookW interface
1628 */
1629 [
1630 object,
1631 uuid(000214fb-0000-0000-c000-000000000046),
1632 pointer_default(unique),
1633 local
1634 ]
1635 interface IShellExecuteHookW : IUnknown
1636 {
1637 cpp_quote("struct _SHELLEXECUTEINFOW;")
1638 HRESULT Execute(
1639 [in, out] struct _SHELLEXECUTEINFOW* pei);
1640 }
1641
1642 /*****************************************************************************
1643 * IShellLinkDataList interface
1644 */
1645 [
1646 object,
1647 uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
1648 pointer_default(unique)
1649 ]
1650 interface IShellLinkDataList : IUnknown
1651 {
1652 [local] HRESULT AddDataBlock(
1653 [in] void *pDataBlock);
1654 [local] HRESULT CopyDataBlock(
1655 [in] DWORD dwSig,
1656 [out] void **ppDataBlock);
1657 HRESULT RemoveDataBlock(
1658 [in] DWORD dwSig);
1659 HRESULT GetFlags(
1660 [out] DWORD *pdwFlags);
1661 HRESULT SetFlags(
1662 [in] DWORD dwFlags);
1663 }
1664
1665
1666 /*****************************************************************************
1667 * IResolveShellLink interface
1668 */
1669 [
1670 object,
1671 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1672 pointer_default(unique)
1673 ]
1674 interface IResolveShellLink : IUnknown
1675 {
1676 HRESULT ResolveShellLink(
1677 [in] IUnknown *punk,
1678 [in] HWND hwnd,
1679 [in] DWORD fFlags);
1680 }
1681
1682
1683 /*****************************************************************************
1684 * IURLSearchHook interface
1685 */
1686 [
1687 object,
1688 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1689 pointer_default(unique),
1690 local
1691 ]
1692 interface IURLSearchHook : IUnknown
1693 {
1694 HRESULT Translate(
1695 [in, out] LPWSTR lpwszSearchURL,
1696 [in] DWORD cchBufferSize);
1697 }
1698
1699
1700 /*****************************************************************************
1701 * ISearchContext interface
1702 */
1703 [
1704 object,
1705 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1706 pointer_default(unique),
1707 local
1708 ]
1709 interface ISearchContext : IUnknown
1710 {
1711 HRESULT GetSearchUrl(
1712 [in] BSTR *pbstrSearchUrl);
1713 HRESULT GetSearchText(
1714 [in] BSTR *pbstrSearchText);
1715 HRESULT GetSearchStyle(
1716 [in] BSTR *pdwSearchStyle);
1717 }
1718
1719
1720 /*****************************************************************************
1721 * IURLSearchHook2 interface
1722 */
1723 [
1724 object,
1725 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1726 pointer_default(unique),
1727 local
1728 ]
1729 interface IURLSearchHook2 : IURLSearchHook
1730 {
1731 HRESULT TranslateWithSearchContext(
1732 [in, out] LPWSTR lpwszSearchURL,
1733 [in] DWORD cchBufferSize,
1734 [in] ISearchContext *pSearchContext);
1735 }
1736
1737
1738 cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1739
1740 /*****************************************************************************
1741 * INewShortcutHookA interface
1742 */
1743 [
1744 object,
1745 uuid(000214e1-0000-0000-c000-000000000046),
1746 pointer_default(unique),
1747 local
1748 ]
1749 interface INewShortcutHookA : IUnknown
1750 {
1751 HRESULT SetReferent(
1752 [in] LPCSTR pcszReferent,
1753 [in] HWND hwnd);
1754 HRESULT GetReferent(
1755 [out] LPSTR pcszReferent,
1756 [in] int cchReferent);
1757 HRESULT SetFolder(
1758 [in] LPCSTR pcszReferent);
1759 HRESULT GetFolder(
1760 [out] LPSTR pcszReferent,
1761 [in] int cchFolder);
1762 HRESULT GetName(
1763 [out] LPSTR pszName,
1764 [in] int cchName);
1765 HRESULT GetExtension(
1766 [out] LPSTR pszExtension,
1767 [in] int cchExtension);
1768 }
1769
1770
1771 /*****************************************************************************
1772 * INewShortcutHookW interface
1773 */
1774 [
1775 object,
1776 uuid(000214f7-0000-0000-c000-000000000046),
1777 pointer_default(unique),
1778 local
1779 ]
1780 interface INewShortcutHookW : IUnknown
1781 {
1782 HRESULT SetReferent(
1783 [in] LPCWSTR pcszReferent,
1784 [in] HWND hwnd);
1785 HRESULT GetReferent(
1786 [out] LPWSTR pcszReferent,
1787 [in] int cchReferent);
1788 HRESULT SetFolder(
1789 [in] LPCWSTR pcszReferent);
1790 HRESULT GetFolder(
1791 [out] LPWSTR pcszReferent,
1792 [in] int cchFolder);
1793 HRESULT GetName(
1794 [out] LPWSTR pszName,
1795 [in] int cchName);
1796 HRESULT GetExtension(
1797 [out] LPWSTR pszExtension,
1798 [in] int cchExtension);
1799 }
1800
1801 /*****************************************************************************
1802 * IRunnableTask interface
1803 */
1804 [
1805 object,
1806 uuid(85788d00-6807-11d0-b810-00c04fd706ec),
1807 pointer_default(unique),
1808 local
1809 ]
1810 interface IRunnableTask : IUnknown
1811 {
1812 HRESULT Run();
1813 HRESULT Kill([in] BOOL fWait);
1814 HRESULT Suspend();
1815 HRESULT Resume();
1816 ULONG IsRunning();
1817 }
1818
1819 /*****************************************************************************
1820 * IShellChangeNotify interface
1821 */
1822 [
1823 object,
1824 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
1825 pointer_default(unique),
1826 local
1827 ]
1828 interface IShellChangeNotify : IUnknown
1829 {
1830 HRESULT OnChange(
1831 [in] LONG lEvent,
1832 [in] LPCITEMIDLIST pidl1,
1833 [in] LPCITEMIDLIST pidl2);
1834 }
1835
1836 /*****************************************************************************
1837 * IFileSystemBindData interface
1838 */
1839 [
1840 object,
1841 uuid(01e18d10-4d8b-11d2-855d-006008059367),
1842 pointer_default(unique),
1843 local
1844 ]
1845 interface IFileSystemBindData : IUnknown
1846 {
1847 HRESULT SetFindData(
1848 [in] const WIN32_FIND_DATAW *pfd);
1849 HRESULT GetFindData(
1850 [out] WIN32_FIND_DATAW *pfd);
1851 }
1852
1853 /*****************************************************************************
1854 * ITaskbarList interface
1855 */
1856 [
1857 object,
1858 uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
1859 pointer_default(unique)
1860 ]
1861 interface ITaskbarList : IUnknown
1862 {
1863 HRESULT HrInit();
1864
1865 HRESULT AddTab(
1866 [in] HWND hwnd);
1867
1868 HRESULT DeleteTab(
1869 [in] HWND hwnd);
1870
1871 HRESULT ActivateTab(
1872 [in] HWND hwnd);
1873
1874 HRESULT SetActiveAlt(
1875 [in] HWND hwnd);
1876 }
1877
1878 /*****************************************************************************
1879 * IDefaultExtractIconInit interface
1880 */
1881
1882 [
1883 object,
1884 uuid(800AB0B8-F5FA-4e72-8FF3-B1A243B87BD9), /* FIXME: wrong value! */
1885 pointer_default(unique),
1886 local
1887 ]
1888 interface IDefaultExtractIconInit : IUnknown
1889 {
1890 HRESULT SetDefaultIcon(
1891 [in] LPCWSTR pszFile,
1892 [in] int iIcon);
1893 HRESULT SetFlags(
1894 [in] UINT uFlags);
1895 HRESULT SetKey(
1896 [in] HKEY hkey);
1897 HRESULT SetNormalIcon(
1898 [in] LPCWSTR pszFile,
1899 [in] int iIcon);
1900 HRESULT SetOpenIcon(
1901 [in] LPCWSTR pszFile,
1902 [in] int iIcon);
1903 HRESULT SetShortcutIcon(
1904 [in] LPCWSTR pszFile,
1905 [in] int iIcon);
1906 }
1907
1908 /*****************************************************************************
1909 * IDeskBand interface
1910 */
1911 cpp_quote("#define DBIM_MINSIZE 0x0001")
1912 cpp_quote("#define DBIM_MAXSIZE 0x0002")
1913 cpp_quote("#define DBIM_INTEGRAL 0x0004")
1914 cpp_quote("#define DBIM_ACTUAL 0x0008")
1915 cpp_quote("#define DBIM_TITLE 0x0010")
1916 cpp_quote("#define DBIM_MODEFLAGS 0x0020")
1917 cpp_quote("#define DBIM_BKCOLOR 0x0040")
1918
1919 cpp_quote("#include <pshpack8.h>")
1920
1921 typedef struct tagDESKBANDINFO
1922 {
1923 DWORD dwMask;
1924 POINTL ptMinSize;
1925 POINTL ptMaxSize;
1926 POINTL ptIntegral;
1927 POINTL ptActual;
1928 WCHAR wszTitle[256];
1929 DWORD dwModeFlags;
1930 COLORREF crBkgnd;
1931 } DESKBANDINFO;
1932
1933 cpp_quote("#include <poppack.h>")
1934
1935 cpp_quote("#define DBIMF_NORMAL 0x0000")
1936 cpp_quote("#define DBIMF_FIXED 0x0001")
1937 cpp_quote("#define DBIMF_FIXEDBMP 0x0004 // a fixed background bitmap (if supported)")
1938 cpp_quote("#define DBIMF_VARIABLEHEIGHT 0x0008")
1939 cpp_quote("#define DBIMF_UNDELETEABLE 0x0010")
1940 cpp_quote("#define DBIMF_DEBOSSED 0x0020")
1941 cpp_quote("#define DBIMF_BKCOLOR 0x0040")
1942 cpp_quote("#define DBIMF_USECHEVRON 0x0080")
1943 cpp_quote("#define DBIMF_BREAK 0x0100")
1944 cpp_quote("#define DBIMF_ADDTOFRONT 0x0200")
1945 cpp_quote("#define DBIMF_TOPALIGN 0x0400")
1946 cpp_quote("#if (NTDDI_VERSION >= NTDDI_LONGHORN)")
1947 cpp_quote("#define DBIMF_NOGRIPPER 0x0800")
1948 cpp_quote("#define DBIMF_ALWAYSGRIPPER 0x1000")
1949 cpp_quote("#define DBIMF_NOMARGINS 0x2000")
1950 cpp_quote("#endif // NTDDI_LONGHORN")
1951
1952 cpp_quote("#define DBIF_VIEWMODE_NORMAL 0x0000")
1953 cpp_quote("#define DBIF_VIEWMODE_VERTICAL 0x0001")
1954 cpp_quote("#define DBIF_VIEWMODE_FLOATING 0x0002")
1955 cpp_quote("#define DBIF_VIEWMODE_TRANSPARENT 0x0004")
1956
1957 enum tagDESKBANDCID {
1958 DBID_BANDINFOCHANGED = 0,
1959 DBID_SHOWONLY = 1,
1960 DBID_MAXIMIZEBAND = 2,
1961 DBID_PUSHCHEVRON = 3,
1962 DBID_DELAYINIT = 4,
1963 DBID_FINISHINIT = 5,
1964 DBID_SETWINDOWTHEME = 6,
1965 DBID_PERMITAUTOHIDE = 7,
1966 };
1967
1968 cpp_quote("#define DBPC_SELECTFIRST (DWORD)-1")
1969 cpp_quote("#define DBPC_SELECTLAST (DWORD)-2")
1970
1971 cpp_quote("#define CGID_DeskBand IID_IDeskBand")
1972
1973 [
1974 uuid(EB0FE172-1A3A-11D0-89B3-00A0C90A90AC),
1975 object,
1976 ]
1977 interface IDeskBand : IDockingWindow
1978 {
1979 HRESULT GetBandInfo(
1980 [in] DWORD dwBandID,
1981 [in] DWORD dwViewMode,
1982 [in, out] DESKBANDINFO* pdbi);
1983 }
1984
1985 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60)")
1986
1987 [
1988 uuid(EB0FE173-1A3A-11D0-89B3-00A0C90A90AC),
1989 object,
1990 pointer_default(unique),
1991 local
1992 ]
1993 interface IDeskBar : IOleWindow
1994 {
1995 HRESULT SetClient([in] IUnknown* punkClient);
1996
1997 HRESULT GetClient([out] IUnknown** ppunkClient);
1998
1999 HRESULT OnPosRectChangeDB([in] RECT *prc);
2000 }
2001
2002
2003 /*****************************************************************************
2004 * IMenuPopup interface
2005 */
2006 [
2007 uuid(D1E7AFEB-6A2E-11d0-8C78-00C04FD918B4),
2008 object,
2009 pointer_default(unique),
2010 local
2011 ]
2012 interface IMenuPopup : IDeskBar
2013 {
2014 enum tagMENUPOPUPSELECT
2015 {
2016 MPOS_EXECUTE = 0,
2017 MPOS_FULLCANCEL,
2018 MPOS_CANCELLEVEL,
2019 MPOS_SELECTLEFT,
2020 MPOS_SELECTRIGHT,
2021 MPOS_CHILDTRACKING
2022 };
2023
2024 enum tagMENUPOPUPPOPUPFLAGS
2025 {
2026 MPPF_SETFOCUS = 0x00000001,
2027 MPPF_INITIALSELECT = 0x00000002,
2028 MPPF_NOANIMATE = 0x00000004,
2029 MPPF_KEYBOARD = 0x00000010,
2030 MPPF_REPOSITION = 0x00000020,
2031 MPPF_FORCEZORDER = 0x00000040,
2032 MPPF_FINALSELECT = 0x00000080,
2033 MPPF_TOP = 0x20000000,
2034 MPPF_LEFT = 0x40000000,
2035 MPPF_RIGHT = 0x60000000,
2036 MPPF_BOTTOM = 0x80000000,
2037 MPPF_POS_MASK = 0xE0000000,
2038 MPPF_ALIGN_LEFT = 0x02000000,
2039 MPPF_ALIGN_RIGHT = 0x04000000
2040 };
2041 typedef int MP_POPUPFLAGS;
2042
2043 HRESULT Popup(
2044 [in] POINTL *ppt,
2045 [in] RECTL *prcExclude,
2046 [in] MP_POPUPFLAGS dwFlags);
2047
2048 HRESULT OnSelect([in] DWORD dwSelectType);
2049
2050 HRESULT SetSubMenu(
2051 [in] IMenuPopup* pmp,
2052 [in] BOOL fSet);
2053 }
2054
2055 cpp_quote("#endif /* _WIN32_IE_IE60 */")
2056
2057 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE40)")
2058
2059 /*****************************************************************************
2060 * IBandSite interface
2061 */
2062 cpp_quote("#include <pshpack8.h>")
2063
2064 typedef struct tagBANDSITEINFO
2065 {
2066 DWORD dwMask;
2067 DWORD dwState;
2068 DWORD dwStyle;
2069 } BANDSITEINFO;
2070
2071 cpp_quote("#include <poppack.h>")
2072
2073
2074 enum tagBANDSITECID {
2075 BSID_BANDADDED,
2076 BSID_BANDREMOVED,
2077 };
2078
2079 cpp_quote("#define BSIM_STATE 0x00000001")
2080 cpp_quote("#define BSIM_STYLE 0x00000002")
2081
2082 cpp_quote("#define BSSF_VISIBLE 0x00000001")
2083 cpp_quote("#define BSSF_NOTITLE 0x00000002")
2084 cpp_quote("#define BSSF_UNDELETEABLE 0x00001000")
2085
2086 cpp_quote("#define BSIS_AUTOGRIPPER 0x00000000")
2087 cpp_quote("#define BSIS_NOGRIPPER 0x00000001")
2088 cpp_quote("#define BSIS_ALWAYSGRIPPER 0x00000002")
2089 cpp_quote("#define BSIS_LEFTALIGN 0x00000004")
2090 cpp_quote("#define BSIS_SINGLECLICK 0x00000008")
2091 cpp_quote("#define BSIS_NOCONTEXTMENU 0x00000010")
2092 cpp_quote("#define BSIS_NODROPTARGET 0x00000020")
2093 cpp_quote("#define BSIS_NOCAPTION 0x00000040")
2094 cpp_quote("#define BSIS_PREFERNOLINEBREAK 0x00000080")
2095 cpp_quote("#define BSIS_LOCKED 0x00000100")
2096 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
2097 cpp_quote("#define BSIS_PRESERVEORDERDURINGLAYOUT 0x00000200")
2098 cpp_quote("#endif /* _WIN32_IE_IE70 */")
2099
2100 cpp_quote("#define SID_SBandSite IID_IBandSite")
2101 cpp_quote("#define CGID_BandSite IID_IBandSite")
2102
2103 [
2104 object,
2105 uuid(4CF504B0-DE96-11D0-8B3F-00A0C911E8E5)
2106 ]
2107 interface IBandSite : IUnknown
2108 {
2109 HRESULT AddBand([in] IUnknown* punk);
2110
2111 HRESULT EnumBands(
2112 [in] UINT uBand,
2113 [out] DWORD* pdwBandID);
2114
2115 HRESULT QueryBand(
2116 [in] DWORD dwBandID,
2117 [out] IDeskBand** ppstb,
2118 [out] DWORD* pdwState,
2119 [out, string, size_is(cchName)] LPWSTR pszName,
2120 [in] int cchName);
2121
2122 HRESULT SetBandState(
2123 [in] DWORD dwBandID,
2124 [in] DWORD dwMask,
2125 [in] DWORD dwState);
2126
2127 HRESULT RemoveBand([in] DWORD dwBandID);
2128
2129 HRESULT GetBandObject(
2130 [in] DWORD dwBandID,
2131 [in] REFIID riid,
2132 [out, iid_is(riid)] void **ppv);
2133
2134 HRESULT SetBandSiteInfo([in] const BANDSITEINFO *pbsinfo);
2135
2136 HRESULT GetBandSiteInfo([in, out] BANDSITEINFO *pbsinfo);
2137 }
2138
2139 cpp_quote("#endif /* _WIN32_IE_IE40 */")
2140
2141 /*****************************************************************************
2142 * IMenuBand interface
2143 */
2144 [
2145 uuid(568804CD-CBD7-11d0-9816-00C04FD91972),
2146 object,
2147 pointer_default(unique),
2148 local
2149 ]
2150 interface IMenuBand : IUnknown
2151 {
2152 enum tagMENUBANDHANDLERCID {
2153 MBHANDCID_PIDLSELECT = 0,
2154 };
2155
2156 HRESULT IsMenuMessage([in] MSG* pmsg);
2157
2158 HRESULT TranslateMenuMessage(
2159 [in, out] MSG* pmsg,
2160 [out] LRESULT* plRet);
2161 }
2162
2163 /*****************************************************************************
2164 * IProfferService interface
2165 */
2166 [
2167 uuid(cb728b20-f786-11ce-92ad-00aa00a74cd0),
2168 object,
2169 pointer_default(unique),
2170 local
2171 ]
2172 interface IProfferService : IUnknown
2173 {
2174 HRESULT ProfferService(
2175 [in] REFGUID service,
2176 [in] IServiceProvider *pService,
2177 [out] DWORD *pCookie);
2178
2179 HRESULT RevokeService([in] DWORD cookie);
2180 }
2181
2182 /*****************************************************************************
2183 * IShellMenuCallback interface
2184 */
2185 cpp_quote("#include <pshpack8.h>")
2186
2187 typedef struct tagSMDATA
2188 {
2189 DWORD dwMask;
2190 DWORD dwFlags;
2191 HMENU hmenu;
2192 HWND hwnd;
2193 UINT uId;
2194 UINT uIdParent;
2195 UINT uIdAncestor;
2196 IUnknown *punk;
2197 LPITEMIDLIST pidlFolder;
2198 LPITEMIDLIST pidlItem;
2199 IShellFolder *psf;
2200 void *pvUserData;
2201 } SMDATA, *LPSMDATA;
2202
2203 cpp_quote("#define SMDM_SHELLFOLDER 0x00000001")
2204 cpp_quote("#define SMDM_HMENU 0x00000002")
2205 cpp_quote("#define SMDM_TOOLBAR 0x00000004")
2206
2207 typedef struct tagSMINFO
2208 {
2209 DWORD dwMask;
2210 DWORD dwType;
2211 DWORD dwFlags;
2212 int iIcon;
2213 } SMINFO, *PSMINFO;
2214
2215 typedef struct tagSHCSCHANGENOTIFYSTRUCT
2216 {
2217 LONG lEvent;
2218 LPCITEMIDLIST pidl1;
2219 LPCITEMIDLIST pidl2;
2220 } SMCSHCHANGENOTIFYSTRUCT, *PSMCSHCHANGENOTIFYSTRUCT;
2221
2222 cpp_quote("#include <poppack.h>")
2223
2224 enum
2225 {
2226 SMIM_TYPE = 0x00000001,
2227 SMIM_FLAGS = 0x00000002,
2228 SMIM_ICON = 0x00000004
2229 };
2230
2231 enum
2232 {
2233 SMIT_SEPARATOR = 0x00000001,
2234 SMIT_STRING = 0x00000002
2235 };
2236
2237 enum
2238 {
2239 SMIF_ICON = 0x00000001,
2240 SMIF_ACCELERATOR = 0x00000002,
2241 SMIF_DROPTARGET = 0x00000004,
2242 SMIF_SUBMENU = 0x00000008,
2243 SMIF_CHECKED = 0x00000020,
2244 SMIF_DROPCASCADE = 0x00000040,
2245 SMIF_HIDDEN = 0x00000080,
2246 SMIF_DISABLED = 0x00000100,
2247 SMIF_TRACKPOPUP = 0x00000200,
2248 SMIF_DEMOTED = 0x00000400,
2249 SMIF_ALTSTATE = 0x00000800,
2250 SMIF_DRAGNDROP = 0x00001000,
2251 SMIF_NEW = 0x00002000,
2252 };
2253
2254
2255 cpp_quote("#define SMC_INITMENU 0x00000001")
2256 cpp_quote("#define SMC_CREATE 0x00000002")
2257 cpp_quote("#define SMC_EXITMENU 0x00000003")
2258 cpp_quote("#define SMC_GETINFO 0x00000005")
2259 cpp_quote("#define SMC_GETSFINFO 0x00000006")
2260 cpp_quote("#define SMC_GETOBJECT 0x00000007")
2261 cpp_quote("#define SMC_GETSFOBJECT 0x00000008")
2262 cpp_quote("#define SMC_SFEXEC 0x00000009")
2263 cpp_quote("#define SMC_SFSELECTITEM 0x0000000A")
2264 cpp_quote("#define SMC_REFRESH 0x00000010")
2265 cpp_quote("#define SMC_DEMOTE 0x00000011")
2266 cpp_quote("#define SMC_PROMOTE 0x00000012")
2267 cpp_quote("#define SMC_DEFAULTICON 0x00000016")
2268 cpp_quote("#define SMC_NEWITEM 0x00000017")
2269 cpp_quote("#define SMC_CHEVRONEXPAND 0x00000019")
2270 cpp_quote("#define SMC_DISPLAYCHEVRONTIP 0x0000002A")
2271 cpp_quote("#define SMC_SETSFOBJECT 0x0000002D")
2272 cpp_quote("#define SMC_SHCHANGENOTIFY 0x0000002E")
2273 cpp_quote("#define SMC_CHEVRONGETTIP 0x0000002F")
2274 cpp_quote("#define SMC_SFDDRESTRICTED 0x00000030")
2275
2276 [
2277 uuid(4CA300A1-9B8D-11d1-8B22-00C04FD918D0),
2278 object,
2279 pointer_default(unique),
2280 local
2281 ]
2282 interface IShellMenuCallback : IUnknown
2283 {
2284 HRESULT CallbackSM(
2285 [in, out] LPSMDATA psmd,
2286 [in] UINT uMsg,
2287 [in] WPARAM wParam,
2288 [in] LPARAM lParam);
2289 }
2290
2291
2292 /*****************************************************************************
2293 * IShellMenu interface
2294 */
2295
2296 cpp_quote("#define SMINIT_DEFAULT 0x00000000")
2297 cpp_quote("#define SMINIT_RESTRICT_DRAGDROP 0x00000002")
2298 cpp_quote("#define SMINIT_TOPLEVEL 0x00000004")
2299 cpp_quote("#define SMINIT_CACHED 0x00000010")
2300 cpp_quote("#define SMINIT_VERTICAL 0x10000000")
2301 cpp_quote("#define SMINIT_HORIZONTAL 0x20000000")
2302 cpp_quote("")
2303 cpp_quote("#define ANCESTORDEFAULT (UINT)-1")
2304 cpp_quote("")
2305 cpp_quote("#define SMSET_TOP 0x10000000")
2306 cpp_quote("#define SMSET_BOTTOM 0x20000000")
2307 cpp_quote("#define SMSET_DONTOWN 0x00000001")
2308 cpp_quote("")
2309 cpp_quote("#define SMINV_REFRESH 0x00000001")
2310 cpp_quote("#define SMINV_ID 0x00000008")
2311
2312 [
2313 uuid(EE1F7637-E138-11d1-8379-00C04FD918D0),
2314 object,
2315 pointer_default(unique),
2316 local
2317 ]
2318 interface IShellMenu : IUnknown
2319 {
2320 HRESULT Initialize(
2321 [in] IShellMenuCallback *psmc,
2322 [in] UINT uId,
2323 [in] UINT uIdAncestor,
2324 [in] DWORD dwFlags);
2325
2326 HRESULT GetMenuInfo(
2327 [out] IShellMenuCallback **ppsmc,
2328 [out] UINT *puId,
2329 [out] UINT *puIdAncestor,
2330 [out] DWORD *pdwFlags);
2331
2332 HRESULT SetShellFolder(
2333 [in] IShellFolder *psf,
2334 [in] LPCITEMIDLIST pidlFolder,
2335 [in] HKEY hKey,
2336 [in] DWORD dwFlags);
2337
2338 HRESULT GetShellFolder(
2339 [out] DWORD *pdwFlags,
2340 [out] LPITEMIDLIST *ppidl,
2341 [in] REFIID riid,
2342 [out] void **ppv);
2343
2344 HRESULT SetMenu(
2345 [in] HMENU hmenu,
2346 [in] HWND hwnd,
2347 [in] DWORD dwFlags);
2348
2349 HRESULT GetMenu(
2350 [out] HMENU *phmenu,
2351 [out] HWND *phwnd,
2352 [out] DWORD *pdwFlags);
2353
2354 HRESULT InvalidateItem(
2355 [in] LPSMDATA psmd,
2356 [in] DWORD dwFlags);
2357
2358 HRESULT GetState(
2359 [out] LPSMDATA psmd);
2360
2361 HRESULT SetMenuToolbar(
2362 [in] IUnknown *punk,
2363 [in] DWORD dwFlags);
2364 }
2365
2366 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60)")
2367
2368 /*****************************************************************************
2369 * ITrackShellMenu interface
2370 */
2371 [
2372 uuid(8278F932-2A3E-11d2-838F-00C04FD918D0),
2373 object,
2374 pointer_default(unique),
2375 local
2376 ]
2377 interface ITrackShellMenu : IShellMenu
2378 {
2379 HRESULT SetObscured(
2380 [in] HWND hwndTB,
2381 [in] IUnknown *punkBand,
2382 DWORD dwSMSetFlags);
2383
2384 HRESULT Popup(
2385 [in] HWND hwnd,
2386 [in] POINTL *ppt,
2387 [in] RECTL *prcExclude,
2388 MP_POPUPFLAGS dwFlags);
2389 };
2390
2391 cpp_quote("#endif /* _WIN32_IE_IE60 */")
2392
2393 cpp_quote("#ifdef MIDL_PASS")
2394 typedef IUnknown* HIMAGELIST;
2395 cpp_quote("#endif")
2396
2397 typedef [v1_enum] enum THUMBBUTTONFLAGS {
2398 THBF_ENABLED = 0x0000,
2399 THBF_DISABLED = 0x0001,
2400 THBF_DISMISSONCLICK = 0x0002,
2401 THBF_NOBACKGROUND = 0x0004,
2402 THBF_HIDDEN = 0x0008,
2403 THBF_NONINTERACTIVE = 0x0010
2404 } THUMBBUTTONFLAGS;
2405
2406 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONFLAGS)")
2407
2408 typedef [v1_enum] enum THUMBBUTTONMASK {
2409 THB_BITMAP = 0x0001,
2410 THB_ICON = 0x0002,
2411 THB_TOOLTIP = 0x0004,
2412 THB_FLAGS = 0x0008
2413 } THUMBBUTTONMASK;
2414
2415 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONMASK)")
2416
2417 cpp_quote("#include <pshpack8.h>")
2418 typedef struct THUMBBUTTON {
2419 THUMBBUTTONMASK dwMask;
2420 UINT iId;
2421 UINT iBitmap;
2422 HICON hIcon;
2423 WCHAR szTip[260];
2424 THUMBBUTTONFLAGS dwFlags;
2425 } THUMBBUTTON, *LPTHUMBBUTTON;
2426 cpp_quote("#include <poppack.h>")
2427
2428 /*****************************************************************************
2429 * ITaskbarList2 interface
2430 */
2431 [
2432 object,
2433 uuid(602D4995-B13A-429B-A66E-1935E44F4317),
2434 pointer_default(unique)
2435 ]
2436 interface ITaskbarList2 : ITaskbarList
2437 {
2438 HRESULT MarkFullscreenWindow(
2439 [in] HWND hwnd,
2440 [in] BOOL fullscreen);
2441 }
2442
2443 [
2444 uuid(ea1afb91-9e28-4b86-90e9-9e9f8a5eefaf),
2445 object
2446 ]
2447 interface ITaskbarList3 : ITaskbarList2
2448 {
2449 typedef [v1_enum] enum TBPFLAG {
2450 TBPF_NOPROGRESS = 0x0000,
2451 TBPF_INDETERMINATE = 0x0001,
2452 TBPF_NORMAL = 0x0002,
2453 TBPF_ERROR = 0x0004,
2454 TBPF_PAUSED = 0x0008
2455 } TBPFLAG;
2456
2457 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(TBPFLAG)")
2458
2459 HRESULT SetProgressValue(
2460 [in] HWND hwnd,
2461 [in] ULONGLONG ullCompleted,
2462 [in] ULONGLONG ullTotal);
2463
2464 HRESULT SetProgressState(
2465 [in] HWND hwnd,
2466 [in] TBPFLAG tbpFlags);
2467
2468 HRESULT RegisterTab(
2469 [in] HWND hwndTab,
2470 [in] HWND hwndMDI);
2471
2472 HRESULT UnregisterTab([in] HWND hwndTab);
2473
2474 HRESULT SetTabOrder(
2475 [in] HWND hwndTab,
2476 [in] HWND hwndInsertBefore);
2477
2478 HRESULT SetTabActive(
2479 [in] HWND hwndTab,
2480 [in] HWND hwndMDI,
2481 [in] DWORD dwReserved);
2482
2483 HRESULT ThumbBarAddButtons(
2484 [in] HWND hwnd,
2485 [in] UINT cButtons,
2486 [in, size_is(cButtons)] LPTHUMBBUTTON pButton);
2487
2488 HRESULT ThumbBarUpdateButtons(
2489 [in] HWND hwnd,
2490 [in] UINT cButtons,
2491 [in, size_is(cButtons)] LPTHUMBBUTTON pButton);
2492
2493 HRESULT ThumbBarSetImageList(
2494 [in] HWND hwnd,
2495 [in] HIMAGELIST himl);
2496
2497 HRESULT SetOverlayIcon(
2498 [in] HWND hwnd,
2499 [in] HICON hIcon,
2500 [in, unique, string] LPCWSTR pszDescription);
2501
2502 HRESULT SetThumbnailTooltip(
2503 [in] HWND hwnd,
2504 [in, unique, string] LPCWSTR pszTip);
2505
2506 HRESULT SetThumbnailClip(
2507 [in] HWND hwnd,
2508 [in] RECT *prcClip);
2509 }
2510
2511 [
2512 uuid(c43dc798-95d1-4bea-9030-bb99e2983a1a),
2513 object
2514 ]
2515 interface ITaskbarList4 : ITaskbarList3
2516 {
2517 typedef [v1_enum] enum STPFLAG {
2518 STPF_NONE = 0x0000,
2519 STPF_USEAPPTHUMBNAILALWAYS = 0x0001,
2520 STPF_USEAPPTHUMBNAILWHENACTIVE = 0x0002,
2521 STPF_USEAPPPEEKALWAYS = 0x0004,
2522 STPF_USEAPPPEEKWHENACTIVE = 0x0008
2523 } STPFLAG;
2524
2525 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(STPFLAG)")
2526
2527 HRESULT SetTabProperties(
2528 [in] HWND hwndTab,
2529 [in] STPFLAG stpFlags);
2530 }
2531
2532 /*****************************************************************************
2533 * IAutoCompleteDropDown interface
2534 */
2535 [
2536 object,
2537 uuid(3CD141F4-3C6A-11d2-BCAA-00C04FD929DB),
2538 pointer_default(unique)
2539 ]
2540 interface IAutoCompleteDropDown : IUnknown
2541 {
2542 cpp_quote("#define ACDD_VISIBLE 0x0001")
2543
2544 HRESULT GetDropDownStatus(
2545 [out] DWORD *pdwFlags,
2546 [out, string] LPWSTR *ppwszString);
2547
2548 HRESULT ResetEnumerator();
2549 }
2550
2551 /*****************************************************************************
2552 * IExplorerBrowserEvents interface
2553 */
2554 [
2555 object,
2556 uuid(361BBDC7-E6EE-4E13-BE58-58E2240C810F)
2557 ]
2558 interface IExplorerBrowserEvents : IUnknown
2559 {
2560 HRESULT OnNavigationPending(
2561 [in] PCIDLIST_ABSOLUTE pidlFolder);
2562
2563 HRESULT OnViewCreated(
2564 [in] IShellView *psv);
2565
2566 HRESULT OnNavigationComplete(
2567 [in] PCIDLIST_ABSOLUTE pidlFolder);
2568
2569 HRESULT OnNavigationFailed(
2570 [in] PCIDLIST_ABSOLUTE pidlFolder);
2571 }
2572
2573 typedef GUID EXPLORERPANE;
2574 typedef EXPLORERPANE *REFEXPLORERPANE;
2575
2576 cpp_quote("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
2577
2578 /*****************************************************************************
2579 * IExplorerPaneVisibility interface
2580 */
2581 [
2582 object,
2583 uuid(E07010EC-BC17-44C0-97B0-46C7C95B9EDC)
2584 ]
2585 interface IExplorerPaneVisibility : IUnknown
2586 {
2587 typedef enum tagEXPLORERPANESTATE {
2588 EPS_DONTCARE = 0x0,
2589 EPS_DEFAULT_ON = 0x1,
2590 EPS_DEFAULT_OFF = 0x2,
2591 EPS_STATE_MASK = 0xffff,
2592 EPS_INITIALSTATE = 0x10000,
2593 EPS_FORCE = 0x20000
2594 } EXPLORERPANESTATE;
2595
2596 HRESULT GetPaneState(
2597 [in] REFEXPLORERPANE ep,
2598 [out] EXPLORERPANESTATE *peps);
2599 }
2600
2601 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS {
2602 EBF_NONE = 0,
2603 EBF_SELECTFROMDATAOBJECT = 0x100,
2604 EBF_NODROPTARGET = 0x200
2605 } EXPLORER_BROWSER_FILL_FLAGS;
2606
2607 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS {
2608 EBO_NONE = 0x00,
2609 EBO_NAVIGATEONCE = 0x01,
2610 EBO_SHOWFRAMES = 0x02,
2611 EBO_ALWAYSNAVIGATE = 0x04,
2612 EBO_NOTRAVELLOG = 0x08,
2613 EBO_NOWRAPPERWINDOW = 0x10,
2614 EBO_HTMLSHAREPOINTVIEW = 0x20
2615 } EXPLORER_BROWSER_OPTIONS;
2616
2617 cpp_quote("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
2618
2619 /*****************************************************************************
2620 * IExplorerBrowser interface
2621 */
2622 [
2623 object,
2624 uuid(DFD3B6B5-C10C-4BE9-85F6-A66969F402F6),
2625 pointer_default(unique)
2626 ]
2627 interface IExplorerBrowser : IUnknown
2628 {
2629
2630 [local] HRESULT Initialize(
2631 [in] HWND hwndParent,
2632 [in] const RECT *prc,
2633 [in, unique] const FOLDERSETTINGS *pfs);
2634
2635 HRESULT Destroy();
2636
2637 [local] HRESULT SetRect(
2638 [in,out,unique] HDWP *phdwp,
2639 [in] RECT rcBrowser);
2640
2641 HRESULT SetPropertyBag(
2642 [in, string] LPCWSTR pszPropertyBag);
2643
2644 HRESULT SetEmptyText(
2645 [in, string] LPCWSTR pszEmptyText);
2646
2647 HRESULT SetFolderSettings(
2648 [in] const FOLDERSETTINGS *pfs);
2649
2650 HRESULT Advise(
2651 [in] IExplorerBrowserEvents *psbe,
2652 [out] DWORD *pdwCookie);
2653
2654 HRESULT Unadvise(
2655 [in] DWORD dwCookie);
2656
2657 HRESULT SetOptions(
2658 [in] EXPLORER_BROWSER_OPTIONS dwFlag);
2659
2660 HRESULT GetOptions(
2661 [out] EXPLORER_BROWSER_OPTIONS *pdwFlag);
2662
2663 HRESULT BrowseToIDList(
2664 [in] PCUIDLIST_RELATIVE pidl,
2665 [in] UINT uFlags);
2666
2667 HRESULT BrowseToObject(
2668 [in] IUnknown *punk,
2669 [in] UINT uFlags);
2670
2671 HRESULT FillFromObject(
2672 [in] IUnknown *punk,
2673 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags);
2674
2675 HRESULT RemoveAll();
2676
2677 HRESULT GetCurrentView(
2678 [in] REFIID riid,
2679 [out, iid_is(riid)] void **ppv);
2680 }
2681
2682 /*****************************************************************************
2683 * INameSpaceTreeControl interface
2684 */
2685 [
2686 object,
2687 uuid(028212A3-B627-47E9-8856-C14265554E4F)
2688 ]
2689 interface INameSpaceTreeControl : IUnknown
2690 {
2691 [v1_enum] enum _NSTCSTYLE {
2692 NSTCS_HASEXPANDOS = 0x00000001,
2693 NSTCS_HASLINES = 0x00000002,
2694 NSTCS_SINGLECLICKEXPAND = 0x00000004,
2695 NSTCS_FULLROWSELECT = 0x00000008,
2696 NSTCS_SPRINGEXPAND = 0x00000010,
2697 NSTCS_HORIZONTALSCROLL = 0x00000020,
2698 NSTCS_ROOTHASEXPANDO = 0x00000040,
2699 NSTCS_SHOWSELECTIONALWAYS = 0x00000080,
2700 NSTCS_NOINFOTIP = 0x00000200,
2701 NSTCS_EVENHEIGHT = 0x00000400,
2702 NSTCS_NOREPLACEOPEN = 0x00000800,
2703 NSTCS_DISABLEDRAGDROP = 0x00001000,
2704 NSTCS_NOORDERSTREAM = 0x00002000,
2705 NSTCS_RICHTOOLTIP = 0x00004000,
2706 NSTCS_BORDER = 0x00008000,
2707 NSTCS_NOEDITLABELS = 0x00010000,
2708 NSTCS_TABSTOP = 0x00020000,
2709 NSTCS_FAVORITESMODE = 0x00080000,
2710 NSTCS_AUTOHSCROLL = 0x00100000,
2711 NSTCS_FADEINOUTEXPANDOS = 0x00200000,
2712 NSTCS_EMPTYTEXT = 0x00400000,
2713 NSTCS_CHECKBOXES = 0x00800000,
2714 NSTCS_PARTIALCHECKBOXES = 0x01000000,
2715 NSTCS_EXCLUSIONCHECKBOXES = 0x02000000,
2716 NSTCS_DIMMEDCHECKBOXES = 0x04000000,
2717 NSTCS_NOINDENTCHECKS = 0x08000000,
2718 NSTCS_ALLOWJUNCTIONS = 0x10000000,
2719 NSTCS_SHOWTABSBUTTON = 0x20000000,
2720 NSTCS_SHOWDELETEBUTTON = 0x40000000,
2721 NSTCS_SHOWREFRESHBUTTON = (int)0x80000000
2722 };
2723 typedef DWORD NSTCSTYLE;
2724
2725 [v1_enum] enum _NSTCROOTSTYLE {
2726 NSTCRS_VISIBLE = 0x0000,
2727 NSTCRS_HIDDEN = 0x0001,
2728 NSTCRS_EXPANDED = 0x0002
2729 };
2730 typedef DWORD NSTCROOTSTYLE;
2731
2732 [v1_enum] enum _NSTCITEMSTATE {
2733 NSTCIS_NONE = 0x0000,
2734 NSTCIS_SELECTED = 0x0001,
2735 NSTCIS_EXPANDED = 0x0002,
2736 NSTCIS_BOLD = 0x0004,
2737 NSTCIS_DISABLED = 0x0008,
2738 NSTCIS_SELECTEDNOEXPAND = 0x0010
2739 };
2740 typedef DWORD NSTCITEMSTATE;
2741
2742 typedef [v1_enum] enum NSTCGNI {
2743 NSTCGNI_NEXT = 0,
2744 NSTCGNI_NEXTVISIBLE = 1,
2745 NSTCGNI_PREV = 2,
2746 NSTCGNI_PREVVISIBLE = 3,
2747 NSTCGNI_PARENT = 4,
2748 NSTCGNI_CHILD = 5,
2749 NSTCGNI_FIRSTVISIBLE = 6,
2750 NSTCGNI_LASTVISIBLE = 7
2751 } NSTCGNI;
2752
2753 HRESULT Initialize(
2754 [in] HWND hwndParent,
2755 [in, unique] RECT *prc,
2756 [in] NSTCSTYLE nstcsFlags);
2757
2758 HRESULT TreeAdvise(
2759 [in] IUnknown *punk,
2760 [out] DWORD *pdwCookie);
2761
2762 HRESULT TreeUnadvise(
2763 [in] DWORD dwCookie);
2764
2765 HRESULT AppendRoot(
2766 [in] IShellItem *psiRoot,
2767 [in] SHCONTF grfEnumFlags,
2768 [in] NSTCROOTSTYLE grfRootStyle,
2769 [in, unique] IShellItemFilter *pif);
2770
2771 HRESULT InsertRoot(
2772 [in] int iIndex,
2773 [in] IShellItem *psiRoot,
2774 [in] SHCONTF grfEnumFlags,
2775 [in] NSTCROOTSTYLE grfRootStyle,
2776 [in, unique] IShellItemFilter *pif);
2777
2778 HRESULT RemoveRoot(
2779 [in] IShellItem *psiRoot);
2780
2781 HRESULT RemoveAllRoots();
2782
2783 HRESULT GetRootItems(
2784 [out] IShellItemArray **ppsiaRootItems);
2785
2786 HRESULT SetItemState(
2787 [in] IShellItem *psi,
2788 [in] NSTCITEMSTATE nstcisMask,
2789 [in] NSTCITEMSTATE nstcisFlags);
2790
2791 HRESULT GetItemState(
2792 [in] IShellItem *psi,
2793 [in] NSTCITEMSTATE nstcismask,
2794 [out] NSTCITEMSTATE *pnstcisFlags);
2795
2796 HRESULT GetSelectedItems(
2797 [out] IShellItemArray **psiaItems);
2798
2799 HRESULT GetItemCustomState(
2800 [in] IShellItem *psi,
2801 [out] int *piStateNumber);
2802
2803 HRESULT SetItemCustomState(
2804 [in] IShellItem *psi,
2805 [in] int iStateNumber);
2806
2807 HRESULT EnsureItemVisible(
2808 [in] IShellItem *psi);
2809
2810 HRESULT SetTheme(
2811 [in, string] LPCWSTR pszTheme);
2812
2813 HRESULT GetNextItem(
2814 [in, unique] IShellItem *psi,
2815 [in] NSTCGNI nstcgi,
2816 [out] IShellItem **ppsiNext);
2817
2818 HRESULT HitTest(
2819 [in] POINT *ppt,
2820 [out] IShellItem **ppsiOut);
2821
2822 HRESULT GetItemRect(
2823 [in] IShellItem *psi,
2824 [out] RECT *prect);
2825
2826 HRESULT CollapseAll();
2827 }
2828
2829 /*****************************************************************************
2830 * INameSpaceTreeControl2 interface
2831 */
2832 [
2833 object,
2834 uuid(7CC7AED8-290E-49BC-8945-C1401CC9306C)
2835 ]
2836 interface INameSpaceTreeControl2 : INameSpaceTreeControl
2837 {
2838 typedef [v1_enum] enum NSTCSTYLE2 {
2839 NSTCS2_DEFAULT = 0x00,
2840 NSTCS2_INTERRUPTNOTIFICATIONS = 0x01,
2841 NSTCS2_SHOWNULLSPACEMENU = 0x02,
2842 NSTCS2_DISPLAYPADDING = 0x04,
2843 NSTCS2_DISPLAYPINNEDONLY = 0x08,
2844 NTSCS2_NOSINGLETONAUTOEXPAND = 0x10, /* The apparent typo here is */
2845 NTSCS2_NEVERINSERTNONENUMERATED = 0x20 /* present also in the Win SDK */
2846 } NSTCSTYLE2;
2847 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(NSTCSTYLE2)")
2848
2849 HRESULT SetControlStyle(
2850 [in] NSTCSTYLE nstcsMask,
2851 [in] NSTCSTYLE nstcsStyle);
2852
2853 HRESULT GetControlStyle(
2854 [in] NSTCSTYLE nstcsMask,
2855 [out] NSTCSTYLE *pnstcsStyle);
2856
2857 HRESULT SetControlStyle2(
2858 [in] NSTCSTYLE2 nstcsMask,
2859 [in] NSTCSTYLE2 nstcsStyle);
2860
2861 HRESULT GetControlStyle2(
2862 [in] NSTCSTYLE2 nstcsMask,
2863 [out] NSTCSTYLE2 *pnstcsStyle);
2864 }
2865
2866 /*****************************************************************************
2867 * INameSpaceTreeControlEvents interface
2868 */
2869
2870 [
2871 object,
2872 uuid(93D77985-B3D8-4484-8318-672CDDA002CE),
2873 local
2874 ]
2875 interface INameSpaceTreeControlEvents : IUnknown
2876 {
2877 [v1_enum] enum _NSTCEHITTEST {
2878 NSTCEHT_NOWHERE = 0x0001,
2879 NSTCEHT_ONITEMICON = 0x0002,
2880 NSTCEHT_ONITEMLABEL = 0x0004,
2881 NSTCEHT_ONITEMIDENT = 0x0008,
2882 NSTCEHT_ONITEMBUTTON = 0x0010,
2883 NSTCEHT_ONITEMRIGHT = 0x0020,
2884 NSTCEHT_ONITEMSTATEICON = 0x0040,
2885 NSTCEHT_ONITEM = 0x0046,
2886 NSTCEHT_ONITEMTABBUTTON = 0x1000
2887 };
2888 typedef DWORD NSTCEHITTEST;
2889
2890 [v1_enum] enum _NSTCECLICKTYPE {
2891 NSTCECT_LBUTTON = 0x1,
2892 NSTCECT_MBUTTON = 0x2,
2893 NSTCECT_RBUTTON = 0x3,
2894 NSTCECT_BUTTON = 0x3,
2895 NSTCECT_DBLCLICK = 0x4
2896 };
2897 typedef DWORD NSTCECLICKTYPE;
2898
2899 HRESULT OnItemClick(
2900 [in] IShellItem *psi,
2901 [in] NSTCEHITTEST nstceHitTest,
2902 [in] NSTCECLICKTYPE nstceClickType);
2903
2904 HRESULT OnPropertyItemCommit(
2905 [in] IShellItem *psi);
2906
2907 HRESULT OnItemStateChanging(
2908 [in] IShellItem *psi,
2909 [in] NSTCITEMSTATE nstcisMask,
2910 [in] NSTCITEMSTATE nstcisState);
2911
2912 HRESULT OnItemStateChanged(
2913 [in] IShellItem *psi,
2914 [in] NSTCITEMSTATE nstcisMask,
2915 [in] NSTCITEMSTATE nstcisState);
2916
2917 HRESULT OnSelectionChanged(
2918 [in] IShellItemArray *psiaSelection);
2919
2920 HRESULT OnKeyboardInput(
2921 [in] UINT uMsg,
2922 [in] WPARAM wParam,
2923 [in] LPARAM lParam);
2924
2925 HRESULT OnBeforeExpand(
2926 [in] IShellItem *psi);
2927
2928 HRESULT OnAfterExpand(
2929 [in] IShellItem *psi);
2930
2931 HRESULT OnBeginLabelEdit(
2932 [in] IShellItem *psi);
2933
2934 HRESULT OnEndLabelEdit(
2935 [in] IShellItem *psi);
2936
2937 HRESULT OnGetToolTip(
2938 [in] IShellItem *psi,
2939 [out, string, size_is(cchTip)] LPWSTR pszTip,
2940 [in] int cchTip);
2941
2942 HRESULT OnBeforeItemDelete(
2943 [in] IShellItem *psi);
2944
2945 HRESULT OnItemAdded(
2946 [in] IShellItem *psi,
2947 [in] BOOL fIsRoot);
2948
2949 HRESULT OnItemDeleted(
2950 [in] IShellItem *psi,
2951 [in] BOOL fIsRoot);
2952
2953 HRESULT OnBeforeContextMenu(
2954 [in, unique] IShellItem *psi,
2955 [in] REFIID riid,
2956 [out, iid_is(riid)] void **ppv);
2957
2958 HRESULT OnAfterContextMenu(
2959 [in] IShellItem *psi,
2960 [in] IContextMenu *pcmIn,
2961 [in] REFIID riid,
2962 [out, iid_is(riid)] void **ppv);
2963
2964 HRESULT OnBeforeStateImageChange(
2965 [in] IShellItem *psi);
2966
2967 HRESULT OnGetDefaultIconIndex(
2968 [in] IShellItem *psi,
2969 [out] int *piDefaultIcon,
2970 [out] int *piOpenIcon);
2971 }
2972
2973 /*****************************************************************************
2974 * INameSpaceTreeControlCustomDraw interface
2975 */
2976 [
2977 object,
2978 uuid(2D3BA758-33EE-42D5-BB7B-5F3431D86C78),
2979 local
2980 ]
2981
2982 interface INameSpaceTreeControlCustomDraw : IUnknown
2983 {
2984 typedef struct NSTCCUSTOMDRAW
2985 {
2986 IShellItem *psi;
2987 UINT uItemState;
2988 NSTCITEMSTATE nstcis;
2989 LPCWSTR pszText;
2990 int iImage;
2991 HIMAGELIST himl;
2992 int iLevel;
2993 int iIndent;
2994 } NSTCCUSTOMDRAW;
2995
2996 HRESULT PrePaint(
2997 [in] HDC hdc,
2998 [in] RECT *prc,
2999 [out] LRESULT *plres);
3000
3001 HRESULT PostPaint(
3002 [in] HDC hdc,
3003 [in] RECT *prc);
3004
3005 HRESULT ItemPrePaint(
3006 [in] HDC hdc,
3007 [in] RECT *prc,
3008 [in, out] COLORREF *pclrText,
3009 [in, out] COLORREF *pclrTextBk,
3010 [out] LRESULT *plres);
3011
3012 HRESULT ItemPostPaint(
3013 [in] HDC hdc,
3014 [in] RECT *prc,
3015 [in] NSTCCUSTOMDRAW *pnstccdItem);
3016 }
3017
3018 /*****************************************************************************
3019 * INameSpaceTreeControlDropHandler interface
3020 */
3021 [
3022 object,
3023 uuid(F9C665D6-C2F2-4C19-BF33-8322D7352F51),
3024 local
3025 ]
3026 interface INameSpaceTreeControlDropHandler : IUnknown
3027 {
3028 HRESULT OnDragEnter(
3029 [in, unique] IShellItem *psiOver,
3030 [in] IShellItemArray *psiaData,
3031 [in] BOOL fOutsideSource,
3032 [in] DWORD grfKeyState,
3033 [in, out] DWORD *pdwEffect);
3034
3035 HRESULT OnDragOver(
3036 [in, unique] IShellItem *psiOver,
3037 [in] IShellItemArray *psiaData,
3038 [in] DWORD grfKeyState,
3039 [in, out] DWORD *pdwEffect);
3040
3041 HRESULT OnDragPosition(
3042 [in, unique] IShellItem *psiOver,
3043 [in] IShellItemArray *psiaData,
3044 [in] int iNewPosition,
3045 [in] int iOldPosition);
3046
3047 HRESULT OnDrop(
3048 [in, unique] IShellItem *psiOver,
3049 [in] IShellItemArray *psiaData,
3050 [in] int iPosition,
3051 [in] DWORD grfKeyState,
3052 [in, out] DWORD *pdwEffect);
3053
3054 HRESULT OnDropPosition(
3055 [in, unique] IShellItem *psiOver,
3056 [in] IShellItemArray *psiaData,
3057 [in] int iNewPosition,
3058 [in] int iOldPosition);
3059
3060 HRESULT OnDragLeave(
3061 [in, unique] IShellItem *psiOver);
3062 }
3063 cpp_quote("#define NSTCDHPOS_ONTOP -1")
3064
3065 interface IFileDialog;
3066
3067 typedef [v1_enum] enum FDE_OVERWRITE_RESPONSE
3068 {
3069 FDEOR_DEFAULT = 0,
3070 FDEOR_ACCCEP = 1,
3071 FDEOR_REFUSE = 2
3072 } FDE_OVERWRITE_RESPONSE;
3073
3074 typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
3075 {
3076 FDESVR_DEFAULT = 0,
3077 FDESVR_ACCEPT = 1,
3078 FDESVR_REFUSE = 2
3079 } FDE_SHAREVIOLATION_RESPONSE;
3080
3081 /*****************************************************************************
3082 * IFileDialogEvents interface
3083 */
3084 [
3085 object,
3086 uuid(973510DB-7D7F-452B-8975-74A85828D354),
3087 pointer_default(unique)
3088 ]
3089 interface IFileDialogEvents : IUnknown
3090 {
3091 HRESULT OnFileOk(
3092 [in] IFileDialog *pfd);
3093
3094 HRESULT OnFolderChanging(
3095 [in] IFileDialog *pfd,
3096 [in] IShellItem *psiFolder);
3097
3098 HRESULT OnFolderChange(
3099 [in] IFileDialog *pfd);
3100
3101 HRESULT OnSelectionChange(
3102 [in] IFileDialog *pfd);
3103
3104 HRESULT OnShareViolation(
3105 [in] IFileDialog *pfd,
3106 [in] IShellItem *psi,
3107 [out] FDE_SHAREVIOLATION_RESPONSE *pResponse);
3108
3109 HRESULT OnTypeChange(
3110 [in] IFileDialog *pfd);
3111
3112 HRESULT OnOverwrite(
3113 [in] IFileDialog *pfd,
3114 [in] IShellItem *psi,
3115 [out] FDE_OVERWRITE_RESPONSE *pResponse);
3116 }
3117
3118 /*****************************************************************************
3119 * IModalWindow interface
3120 */
3121 [
3122 object,
3123 uuid(B4DB1657-70D7-485E-8E3E-6FCB5A5C1802),
3124 pointer_default(unique)
3125 ]
3126 interface IModalWindow : IUnknown
3127 {
3128 [local]
3129 HRESULT Show(
3130 [in, unique, annotation("__in_opt")] HWND hwndOwner);
3131
3132 [call_as(Show)]
3133 HRESULT RemoteShow(
3134 [in, unique] HWND hwndOwner);
3135 }
3136
3137 typedef [v1_enum] enum FDAP
3138 {
3139 FDAP_BOTTOM = 0,
3140 FDAP_TOP = 1
3141 } FDAP;
3142
3143 /*****************************************************************************
3144 * IFileDialog interface
3145 */
3146 [
3147 object,
3148 uuid(42F85136-DB7E-439C-85F1-E4075D135FC8),
3149 pointer_default(unique)
3150 ]
3151 interface IFileDialog : IModalWindow
3152 {
3153 [v1_enum] enum _FILEOPENDIALOGOPTIONS
3154 {
3155 FOS_OVERWRITEPROMPT = 0x00000002,
3156 FOS_STRICTFILETYPES = 0x00000004,
3157 FOS_NOCHANGEDIR = 0x00000008,
3158 FOS_PICKFOLDERS = 0x00000020,
3159 FOS_FORCEFILESYSTEM = 0x00000040,
3160 FOS_ALLNONSTORAGEITEMS = 0x00000080,
3161 FOS_NOVALIDATE = 0x00000100,
3162 FOS_ALLOWMULTISELECT = 0x00000200,
3163 FOS_PATHMUSTEXIST = 0x00000800,
3164 FOS_FILEMUSTEXIST = 0x00001000,
3165 FOS_CREATEPROMPT = 0x00002000,
3166 FOS_SHAREAWARE = 0x00004000,
3167 FOS_NOREADONLYRETURN = 0x00008000,
3168 FOS_NOTESTFILECREATE = 0x00010000,
3169 FOS_HIDEMRUPLACES = 0x00020000,
3170 FOS_HIDEPINNEDPLACES = 0x00040000,
3171 FOS_NODEREFERENCELINKS = 0x00100000,
3172 FOS_DONTADDTORECENT = 0x02000000,
3173 FOS_FORCESHOWHIDDEN = 0x10000000,
3174 FOS_DEFAULTNOMINIMODE = 0x20000000,
3175 FOS_FORCEPREVIEWPANEON = 0x40000000
3176 };
3177 typedef DWORD FILEOPENDIALOGOPTIONS;
3178
3179 HRESULT SetFileTypes(
3180 [in] UINT cFileTypes,
3181 [in, size_is(cFileTypes)] const COMDLG_FILTERSPEC *rgFilterSpec);
3182
3183 HRESULT SetFileTypeIndex(
3184 [in] UINT iFileType);
3185
3186 HRESULT GetFileTypeIndex(
3187 [out] UINT *piFileType);
3188
3189 HRESULT Advise(
3190 [in] IFileDialogEvents *pfde,
3191 [out] DWORD *pdwCookie);
3192
3193 HRESULT Unadvise(
3194 [in] DWORD dwCookie);
3195
3196 HRESULT SetOptions(
3197 [in] FILEOPENDIALOGOPTIONS fos);
3198
3199 HRESULT GetOptions(
3200 [in] FILEOPENDIALOGOPTIONS *pfos);
3201
3202 HRESULT SetDefaultFolder(
3203 [in] IShellItem *psi);
3204
3205 HRESULT SetFolder(
3206 [in] IShellItem *psi);
3207
3208 HRESULT GetFolder(
3209 [out] IShellItem **ppsi);
3210
3211 HRESULT GetCurrentSelection(
3212 [out] IShellItem **ppsi);
3213
3214 HRESULT SetFileName(
3215 [in, string] LPCWSTR pszName);
3216
3217 HRESULT GetFileName(
3218 [out, string] LPWSTR *pszName);
3219
3220 HRESULT SetTitle(
3221 [in, string] LPCWSTR pszTitle);
3222
3223 HRESULT SetOkButtonLabel(
3224 [in, string] LPCWSTR pszText);
3225
3226 HRESULT SetFileNameLabel(
3227 [in, string] LPCWSTR pszLabel);
3228
3229 HRESULT GetResult(
3230 [out] IShellItem **ppsi);
3231
3232 HRESULT AddPlace(
3233 [in] IShellItem *psi,
3234 [in] FDAP fdap);
3235
3236 HRESULT SetDefaultExtension(
3237 [in, string] LPCWSTR pszDefaultExtension);
3238
3239 HRESULT Close(
3240 [in] HRESULT hr);
3241
3242 HRESULT SetClientGuid(
3243 [in] REFGUID guid);
3244
3245 HRESULT ClearClientData();
3246
3247 HRESULT SetFilter(
3248 [in] IShellItemFilter *pFilter);
3249 }
3250
3251 /*****************************************************************************
3252 * IFileDialog2 interface
3253 */
3254 [
3255 object,
3256 uuid(61744FC7-85B5-4791-A9B0-272276309B13),
3257 pointer_default(unique)
3258 ]
3259 interface IFileDialog2 : IFileDialog
3260 {
3261 HRESULT SetCancelButtonLabel(
3262 [in] LPCWSTR pszLabel);
3263
3264 HRESULT SetNavigationRoot(
3265 [in] IShellItem *psi);
3266 }
3267
3268 /*****************************************************************************
3269 * IFileOperationProgressSink interface
3270 */
3271 [
3272 object,
3273 uuid(04B0F1A7-9490-44BC-96E1-4296A31252E2),
3274 pointer_default(unique)
3275 ]
3276 interface IFileOperationProgressSink : IUnknown
3277 {
3278 HRESULT StartOperations();
3279
3280 HRESULT FinishOperations(
3281 [in] HRESULT hrResult);
3282
3283 HRESULT PreRenameItem(
3284 [in] DWORD dwFlags,
3285 [in] IShellItem *psiItem,
3286 [in, unique, string] LPCWSTR pszNewName);
3287
3288 HRESULT PostRenameItem(
3289 [in] DWORD dwFlags,
3290 [in] IShellItem *psiItem,
3291 [in, string] LPCWSTR pszNewName,
3292 [in] HRESULT hrRename,
3293 [in] IShellItem *psiNewlyCreated);
3294
3295 HRESULT PreMoveItem(
3296 [in] DWORD dwFlags,
3297 [in] IShellItem *psiItem,
3298 [in] IShellItem *psiDestinationFolder,
3299 [in, unique, string] LPCWSTR pszNewName);
3300
3301 HRESULT PostMoveItem(
3302 [in] DWORD dwFlags,
3303 [in] IShellItem *psiItem,
3304 [in] IShellItem *psiDestinationFolder,
3305 [in, unique, string] LPCWSTR pszNewName,
3306 [in] HRESULT hrMove,
3307 [in] IShellItem *psiNewlyCreated);
3308
3309 HRESULT PreCopyItem(
3310 [in] DWORD dwFlags,
3311 [in] IShellItem *psiItem,
3312 [in] IShellItem *psiDestinationFolder,
3313 [in, unique, string] LPCWSTR pszNewName);
3314
3315 HRESULT PostCopyItem(
3316 [in] DWORD dwFlags,
3317 [in] IShellItem *psiItem,
3318 [in] IShellItem *psiDestinationFolder,
3319 [in, unique, string] LPCWSTR pszNewName,
3320 [in] HRESULT hrCopy,
3321 [in] IShellItem *psiNewlyCreated);
3322
3323 HRESULT PreDeleteItem(
3324 [in] DWORD dwFlags,
3325 [in] IShellItem *psiItem);
3326
3327 HRESULT PostDeleteItem(
3328 [in] DWORD dwFlags,
3329 [in] IShellItem *psiItem,
3330 [in] HRESULT hrDelete,
3331 [in] IShellItem *psiNewlyCreated);
3332
3333 HRESULT PreNewItem(
3334 [in] DWORD dwFlags,
3335 [in] IShellItem *psiDestinationFolder,
3336 [in, unique, string] LPCWSTR pszNewName);
3337
3338 HRESULT PostNewItem(
3339 [in] DWORD dwFlags,
3340 [in] IShellItem *psiDestinationFolder,
3341 [in, unique, string] LPCWSTR pszNewName,
3342 [in, unique, string] LPCWSTR pszTemplateName,
3343 [in] DWORD dwFileAttributes,
3344 [in] HRESULT hrNew,
3345 [in] IShellItem *psiNewItem);
3346
3347 HRESULT UpdateProgress(
3348 [in] UINT iWorkTotal,
3349 [in] UINT iWorkSoFar);
3350
3351 HRESULT ResetTimer();
3352
3353 HRESULT PauseTimer();
3354
3355 HRESULT ResumeTimer();
3356 }
3357
3358 /*****************************************************************************
3359 * IFileSaveDialog interface
3360 */
3361 [
3362 object,
3363 uuid(84BCCD23-5FDE-4CDB-AEA4-AF64B83D78AB),
3364 pointer_default(unique)
3365 ]
3366 interface IFileSaveDialog : IFileDialog
3367 {
3368 HRESULT SetSaveAsItem(
3369 [in] IShellItem *psi);
3370
3371 HRESULT SetProperties(
3372 [in] IPropertyStore *pStore);
3373
3374 HRESULT SetCollectedProperties(
3375 [in] IPropertyDescriptionList *pList,
3376 [in] BOOL fAppendDefault);
3377
3378 HRESULT GetProperties(
3379 [in] IPropertyStore **ppStore);
3380
3381 HRESULT ApplyProperties(
3382 [in] IShellItem *psi,
3383 [in] IPropertyStore *pStore,
3384 [in, unique] HWND hwnd,
3385 [in, unique] IFileOperationProgressSink *pSink);
3386 }
3387
3388
3389 /*****************************************************************************
3390 * IFileOpenDialog interface
3391 */
3392 [
3393 object,
3394 uuid(D57C7288-D4AD-4768-BE02-9D969532D960),
3395 pointer_default(unique)
3396 ]
3397 interface IFileOpenDialog : IFileDialog
3398 {
3399 HRESULT GetResults(
3400 [out] IShellItemArray **ppenum);
3401
3402 HRESULT GetSelectedItems(
3403 [out] IShellItemArray **ppsai);
3404 }
3405
3406 typedef [v1_enum] enum CDCONTROLSTATEF
3407 {
3408 CDCS_INACTIVE = 0x0,
3409 CDCS_ENABLED = 0x1,
3410 CDCS_VISIBLE = 0x2,
3411 CDCS_ENABLEDVISIBLE = 0x3
3412 } CDCONTROLSTATEF;
3413 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
3414 /*****************************************************************************
3415 * IFileDialogCustomize interface
3416 */
3417 [
3418 object,
3419 uuid(E6FDD21A-163F-4975-9C8C-A69F1BA37034),
3420 pointer_default(unique)
3421 ]
3422 interface IFileDialogCustomize : IUnknown
3423 {
3424 HRESULT EnableOpenDropDown(
3425 [in] DWORD dwIDCtl);
3426
3427 HRESULT AddMenu(
3428 [in] DWORD dwIDCtl,
3429 [in, string] LPCWSTR pszLabel);
3430
3431 HRESULT AddPushButton(
3432 [in] DWORD dwIDCtl,
3433 [in, string] LPCWSTR pszLabel);
3434
3435 HRESULT AddComboBox(
3436 [in] DWORD dwIDCtl);
3437
3438 HRESULT AddRadioButtonList(
3439 [in] DWORD dwIDCtl);
3440
3441 HRESULT AddCheckButton(
3442 [in] DWORD dwIDCtl,
3443 [in, string] LPCWSTR pszLabel,
3444 [in] BOOL bChecked);
3445
3446 HRESULT AddEditBox(
3447 [in] DWORD dwIDCtl,
3448 [in, string] LPCWSTR pszText);
3449
3450 HRESULT AddSeparator(
3451 [in] DWORD dwIDCtl);
3452
3453 HRESULT AddText(
3454 [in] DWORD dwIDCtl,
3455 [in, string] LPCWSTR pszText);
3456
3457 HRESULT SetControlLabel(
3458 [in] DWORD dwIDCtl,
3459 [in, string] LPCWSTR pszLabel);
3460
3461 HRESULT GetControlState(
3462 [in] DWORD dwIDCtl,
3463 [out] CDCONTROLSTATEF *pdwState);
3464
3465 HRESULT SetControlState(
3466 [in] DWORD dwIDCtl,
3467 [in] CDCONTROLSTATEF dwState);
3468
3469 HRESULT GetEditBoxText(
3470 [in] DWORD dwIDCtl,
3471 [out, string] WCHAR **ppszText);
3472
3473 HRESULT SetEditBoxText(
3474 [in] DWORD dwIDCtl,
3475 [in, string] LPCWSTR pszText);
3476
3477 HRESULT GetCheckButtonState(
3478 [in] DWORD dwIDCtl,
3479 [out] BOOL *pbChecked);
3480
3481 HRESULT SetCheckButtonState(
3482 [in] DWORD dwIDCtl,
3483 [in] BOOL bChecked);
3484
3485 HRESULT AddControlItem(
3486 [in] DWORD dwIDCtl,
3487 [in] DWORD dwIDItem,
3488 [in] LPCWSTR pszLabel);
3489
3490 HRESULT RemoveControlItem(
3491 [in] DWORD dwIDCtl,
3492 [in] DWORD dwIDItem);
3493
3494 HRESULT RemoveAllControlItems(
3495 [in] DWORD dwIDCtl);
3496
3497 HRESULT GetControlItemState(
3498 [in] DWORD dwIDCtl,
3499 [in] DWORD dwIDItem,
3500 [out] CDCONTROLSTATEF *pdwState);
3501
3502 HRESULT SetControlItemState(
3503 [in] DWORD dwIDCtl,
3504 [in] DWORD dwIDItem,
3505 [in] CDCONTROLSTATEF dwState);
3506
3507 HRESULT GetSelectedControlItem(
3508 [in] DWORD dwIDCtl,
3509 [out] DWORD *pdwIDItem);
3510
3511 HRESULT SetSelectedControlItem(
3512 [in] DWORD dwIDCtl,
3513 [in] DWORD dwIDItem);
3514
3515 HRESULT StartVisualGroup(
3516 [in] DWORD dwIDCtl,
3517 [in, string] LPCWSTR pszLabel);
3518
3519 HRESULT EndVisualGroup();
3520
3521 HRESULT MakeProminent(
3522 [in] DWORD dwIDCtl);
3523
3524 HRESULT SetControlItemText(
3525 [in] DWORD dwIDCtl,
3526 [in] DWORD dwIDItem,
3527 [in, string] LPCWSTR pszLabel);
3528 }
3529
3530 /*****************************************************************************
3531 * IFileDialogControlEvents interface
3532 */
3533 [
3534 object,
3535 uuid(36116642-D713-4B97-9B83-7484A9D00433),
3536 pointer_default(unique)
3537 ]
3538 interface IFileDialogControlEvents : IUnknown
3539 {
3540 HRESULT OnItemSelected(
3541 [in] IFileDialogCustomize *pfdc,
3542 [in] DWORD dwIDCtl,
3543 [in] DWORD dwIDItem);
3544
3545 HRESULT OnButtonClicked(
3546 [in] IFileDialogCustomize *pfdc,
3547 [in] DWORD dwIDCtl);
3548
3549 HRESULT OnCheckButtonToggled(
3550 [in] IFileDialogCustomize *pfdc,
3551 [in] BOOL dwIDCtl,
3552 [in] BOOL bChecked);
3553
3554 HRESULT OnControlActivating(
3555 [in] IFileDialogCustomize *pfdc,
3556 [in] DWORD dwIDCtl);
3557 }
3558
3559 typedef [v1_enum] enum tagKF_CATEGORY
3560 {
3561 KF_CATEGORY_VIRTUAL = 0x00000001,
3562 KF_CATEGORY_FIXED = 0x00000002,
3563 KF_CATEGORY_COMMON = 0x00000003,
3564 KF_CATEGORY_PERUSER = 0x00000004
3565 } KF_CATEGORY;
3566
3567 typedef [v1_enum] enum tagKF_REDIRECTION_CAPABILITIES
3568 {
3569 KF_REDIRECTION_CAPABILITIES_ALLOW_ALL = 0x000000ff,
3570 KF_REDIRECTION_CAPABILITIES_REDIRECTABLE = 0x00000001,
3571 KF_REDIRECTION_CAPABILITIES_DENY_ALL = 0x000fff00,
3572 KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED = 0x00000100,
3573 KF_REDIRECTION_CAPABILITIES_DENY_POLICY = 0x00000200,
3574 KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS = 0x00000400
3575 } KF_REDIRECTION_CAPABILITIES;
3576
3577 typedef [v1_enum] enum tagKF_DEFINITION_FLAGS
3578 {
3579 KFDF_LOCAL_REDIRECT_ONLY = 0x00000002,
3580 KFDF_ROAMABLE = 0x00000004,
3581 KFDF_PRECREATE = 0x00000008,
3582 KFDF_STREAM = 0x00000010,
3583 KFDF_PUBLISHEXPANDEDPATH = 0x00000020
3584 } KF_DEFINITION_FLAGS;
3585
3586 typedef struct tagKNOWNFOLDER_DEFINITION
3587 {
3588 KF_CATEGORY category;
3589 LPWSTR pszName;
3590 LPWSTR pszDescription;
3591 KNOWNFOLDERID fidParent;
3592 LPWSTR pszRelativePath;
3593 LPWSTR pszParsingName;
3594 LPWSTR pszTooltip;
3595 LPWSTR pszLocalizedName;
3596 LPWSTR pszIcon;
3597 LPWSTR pszSecurity;
3598 DWORD dwAttributes;
3599 KF_DEFINITION_FLAGS kfdFlags;
3600 FOLDERTYPEID ftidType;
3601 } KNOWNFOLDER_DEFINITION;
3602
3603 [
3604 object,
3605 uuid(3aa7af7e-9b36-420C-a8e3-f77d4674a488),
3606 pointer_default(ref)
3607 ]
3608 interface IKnownFolder : IUnknown
3609 {
3610 HRESULT GetId(
3611 [out] KNOWNFOLDERID *pkfid);
3612
3613 HRESULT GetCategory(
3614 [out] KF_CATEGORY *pCategory);
3615
3616 HRESULT GetShellItem(
3617 [in] DWORD dwFlags,
3618 [in] REFIID riid,
3619 [out, iid_is(riid)] void **ppv);
3620
3621 HRESULT GetPath(
3622 [in] DWORD dwFlags,
3623 [out, string] LPWSTR *ppszPath);
3624
3625 HRESULT SetPath(
3626 [in] DWORD dwFlags,
3627 [in, string] LPCWSTR pszPath);
3628
3629 HRESULT GetIDList(
3630 [in] DWORD dwFlags,
3631 [out] PIDLIST_ABSOLUTE *ppidl);
3632
3633 HRESULT GetFolderType(
3634 [out] FOLDERTYPEID *pftid);
3635
3636 HRESULT GetRedirectionCapabilities(
3637 [out] KF_REDIRECTION_CAPABILITIES *pCapabilities);
3638
3639 HRESULT GetFolderDefinition(
3640 [out] KNOWNFOLDER_DEFINITION *pKFD);
3641 }
3642
3643 typedef [v1_enum] enum tagKF_REDIRECT_FLAGS
3644 {
3645 KF_REDIRECT_USER_EXCLUSIVE = 0x00000001,
3646 KF_REDIRECT_COPY_SOURCE_DACL = 0x00000002,
3647 KF_REDIRECT_OWNER_USER = 0x00000004,
3648 KF_REDIRECT_SET_OWNER_EXPLICIT = 0x00000008,
3649 KF_REDIRECT_CHECK_ONLY = 0x00000010,
3650 KF_REDIRECT_WITH_UI = 0x00000020,
3651 KF_REDIRECT_UNPIN = 0x00000040,
3652 KF_REDIRECT_PIN = 0x00000080,
3653 KF_REDIRECT_COPY_CONTENTS = 0x00000200,
3654 KF_REDIRECT_DEL_SOURCE_CONTENTS = 0x00000400,
3655 KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS = 0x00000800
3656 } KF_REDIRECT_FLAGS;
3657
3658 [
3659 object,
3660 uuid(8BE2D872-86AA-4d47-B776-32CCA40C7018),
3661 pointer_default(ref)
3662 ]
3663 interface IKnownFolderManager : IUnknown
3664 {
3665 typedef [v1_enum] enum tagFFFP_MODE
3666 {
3667 FFFP_EXACTMATCH,
3668 FFFP_NEARESTPARENTMATCH
3669 } FFFP_MODE;
3670
3671 HRESULT FolderIdFromCsidl(
3672 [in] int nCsidl,
3673 [out] KNOWNFOLDERID *pfid);
3674
3675 HRESULT FolderIdToCsidl(
3676 [in] REFKNOWNFOLDERID rfid,
3677 [out] int *pnCsidl);
3678
3679 HRESULT GetFolderIds(
3680 [out, size_is(, *pCount)] KNOWNFOLDERID **ppKFId,
3681 [in, out] UINT *pCount);
3682
3683 HRESULT GetFolder(
3684 [in] REFKNOWNFOLDERID rfid,
3685 [out] IKnownFolder **ppkf);
3686
3687 HRESULT GetFolderByName(
3688 [in, string] LPCWSTR pszCanonicalName,
3689 [out] IKnownFolder **ppkf);
3690
3691 HRESULT RegisterFolder(
3692 [in] REFKNOWNFOLDERID rfid,
3693 [in] KNOWNFOLDER_DEFINITION const *pKFD);
3694
3695 HRESULT UnregisterFolder(
3696 [in] REFKNOWNFOLDERID rfid);
3697
3698 HRESULT FindFolderFromPath(
3699 [in, string] LPCWSTR pszPath,
3700 [in] FFFP_MODE mode,
3701 [out] IKnownFolder **ppkf);
3702
3703 HRESULT FindFolderFromIDList(
3704 [in] PCIDLIST_ABSOLUTE pidl,
3705 [out] IKnownFolder **ppkf);
3706
3707 HRESULT Redirect(
3708 [in] REFKNOWNFOLDERID rfid,
3709 [in, unique] HWND hwnd,
3710 [in] KF_REDIRECT_FLAGS flags,
3711 [in, unique, string] LPCWSTR pszTargetPath,
3712 [in] UINT cFolders,
3713 [in, size_is(cFolders), unique] KNOWNFOLDERID const *pExclusion,
3714 [out, string] LPWSTR *ppszError);
3715 }
3716
3717 /* function for releasing structure returned from IKnownFolder::GetFolderDefinition */
3718 cpp_quote("static inline void FreeKnownFolderDefinitionFields(KNOWNFOLDER_DEFINITION *pKFD)")
3719 cpp_quote("{")
3720 cpp_quote(" CoTaskMemFree(pKFD->pszName);")
3721 cpp_quote(" CoTaskMemFree(pKFD->pszDescription);")
3722 cpp_quote(" CoTaskMemFree(pKFD->pszRelativePath);")
3723 cpp_quote(" CoTaskMemFree(pKFD->pszParsingName);")
3724 cpp_quote(" CoTaskMemFree(pKFD->pszTooltip);")
3725 cpp_quote(" CoTaskMemFree(pKFD->pszLocalizedName);")
3726 cpp_quote(" CoTaskMemFree(pKFD->pszIcon);")
3727 cpp_quote(" CoTaskMemFree(pKFD->pszSecurity);")
3728 cpp_quote("}")
3729
3730 typedef [v1_enum] enum ASSOCIATIONLEVEL {
3731 AL_MACHINE,
3732 AL_EFFECTIVE,
3733 AL_USER
3734 } ASSOCIATIONLEVEL;
3735
3736 typedef [v1_enum] enum ASSOCIATIONTYPE {
3737 AT_FILEEXTENSION,
3738 AT_URLPROTOCOL,
3739 AT_STARTMENUCLIENT,
3740 AT_MIMETYPE
3741 } ASSOCIATIONTYPE;
3742
3743 [
3744 object,
3745 uuid(4e530b0a-e611-4c77-a3ac-9031d022281b),
3746 pointer_default(unique)
3747 ]
3748 interface IApplicationAssociationRegistration : IUnknown
3749 {
3750 HRESULT QueryCurrentDefault(
3751 [in, string] LPCWSTR pszQuery,
3752 [in] ASSOCIATIONTYPE atQueryType,
3753 [in] ASSOCIATIONLEVEL alQueryLevel,
3754 [out, string] LPWSTR *ppszAssociation);
3755
3756 HRESULT QueryAppIsDefault(
3757 [in, string] LPCWSTR pszQuery,
3758 [in] ASSOCIATIONTYPE atQueryType,
3759 [in] ASSOCIATIONLEVEL alQueryLevel,
3760 [in, string] LPCWSTR pszAppRegistryName,
3761 [out] BOOL *pfDefault);
3762
3763 HRESULT QueryAppIsDefaultAll(
3764 [in] ASSOCIATIONLEVEL alQueryLevel,
3765 [in, string] LPCWSTR pszAppRegistryName,
3766 [out] BOOL* pfDefault);
3767
3768 HRESULT SetAppAsDefault(
3769 [in, string] LPCWSTR pszAppRegistryName,
3770 [in, string] LPCWSTR pszSet,
3771 [in] ASSOCIATIONTYPE atSetType);
3772
3773 HRESULT SetAppAsDefaultAll(
3774 [in, string] LPCWSTR pszAppRegistryName);
3775
3776 HRESULT ClearUserAssociations();
3777 }
3778
3779 [
3780 uuid(6332debf-87b5-4670-90c0-5e57b408a49e),
3781 object,
3782 pointer_default(unique)
3783 ]
3784 interface ICustomDestinationList : IUnknown
3785 {
3786 typedef [v1_enum] enum KNOWNDESTCATEGORY {
3787 KDC_FREQUENT = 1,
3788 KDC_RECENT
3789 } KNOWNDESTCATEGORY;
3790
3791 HRESULT SetAppID([in, string] LPCWSTR pszAppID);
3792
3793 HRESULT BeginList(
3794 [out] UINT *pcMinSlots,
3795 [in] REFIID riid,
3796 [out, iid_is(riid)] void **ppv);
3797
3798 HRESULT AppendCategory(
3799 [in, string] LPCWSTR pszCategory,
3800 [in] IObjectArray *poa);
3801
3802 HRESULT AppendKnownCategory([in] KNOWNDESTCATEGORY category);
3803 HRESULT AddUserTasks([in] IObjectArray *poa);
3804 HRESULT CommitList();
3805
3806 HRESULT GetRemovedDestinations(
3807 [in] REFIID riid,
3808 [out, iid_is(riid)] void **ppv);
3809
3810 HRESULT DeleteList([in, unique, string] LPCWSTR pszAppID);
3811 HRESULT AbortList();
3812 }
3813
3814 /*****************************************************************************
3815 * ShellObjects typelibrary
3816 */
3817 [
3818 uuid(50A7E9B1-70EF-11D1-B75A-00A0C90564FE),
3819 lcid(0x0000),
3820 version(1.0)
3821 ]
3822 library ShellObjects
3823 {
3824 [
3825 uuid(71F96385-DDD6-48D3-A0C1-AE06E8B055FB)
3826 ]
3827 coclass ExplorerBrowser
3828 {
3829 interface IExplorerBrowser;
3830 }
3831
3832 [
3833 uuid(DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7)
3834 ]
3835 coclass FileOpenDialog
3836 {
3837 interface IFileOpenDialog;
3838 }
3839
3840 [
3841 uuid(C0B4E2F3-BA21-4773-8DBA-335EC946EB8B)
3842 ]
3843 coclass FileSaveDialog
3844 {
3845 interface IFileSaveDialog;
3846 }
3847
3848 [
3849 uuid(AE054212-3535-4430-83ED-D501AA6680E6)
3850 ]
3851 coclass NamespaceTreeControl
3852 {
3853 interface INameSpaceTreeControl2;
3854 }
3855
3856 [
3857 uuid(4df0c730-df9d-4ae3-9153-aa6b82e9795a)
3858 ]
3859 coclass KnownFolderManager
3860 {
3861 interface IKnownFolderManager;
3862 }
3863
3864 [
3865 uuid(591209c7-767b-42b2-9fba-44ee4615f2c7)
3866 ]
3867 coclass ApplicationAssociationRegistration
3868 {
3869 interface IApplicationAssociationRegistration;
3870 }
3871
3872 [
3873 uuid(00021401-0000-0000-c000-000000000046)
3874 ]
3875 coclass ShellLink
3876 {
3877 interface IShellLinkW;
3878 }
3879
3880 [
3881 uuid(56fdf344-fd6d-11d0-958a-006097c9a090)
3882 ]
3883 coclass TaskbarList
3884 {
3885 interface ITaskbarList4;
3886 }
3887
3888 [
3889 uuid(77f10cf0-3db5-4966-b520-b7c54fd35ed6)
3890 ]
3891 coclass DestinationList {
3892 interface ICustomDestinationList;
3893 }
3894
3895 [
3896 uuid(9ac9fbe1-e0a2-4ad6-b4ee-e212013ea917)
3897 ]
3898 coclass ShellItem {
3899 interface IShellItem2;
3900 }
3901 }