ReactOS 0.4.16-dev-91-g764881a
shobjidl.idl
Go to the documentation of this file.
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
22import "objidl.idl";
23import "oleidl.idl";
24import "oaidl.idl";
25import "docobj.idl";
26import "shtypes.idl";
27import "servprov.idl";
28import "comcat.idl";
29import "propidl.idl";
30/* FIXME: import "prsht.idl";*/
31import "msxml.idl";
32import "wtypes.idl";
33import "propsys.idl";
34import "objectarray.idl";
35/* FIXME: import "structuredquery.idl"; */
36
37cpp_quote("/* FIXME: #include <sherrors.h> */")
38
39cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
40cpp_quote("#undef PlaySound")
41cpp_quote("#endif")
42
43
44/*****************************************************************************
45 * IPersistFolder interface
46 */
47[
48 object,
49 uuid(000214ea-0000-0000-c000-000000000046),
50 pointer_default(unique)
51]
52interface IPersistFolder : IPersist
53{
54 typedef IPersistFolder *LPPERSISTFOLDER;
55
56 HRESULT Initialize( [in] PCIDLIST_ABSOLUTE pidl );
57}
58
59
60/*****************************************************************************
61 * IPersistFolder2 interface
62 */
63[
64 object,
65 uuid(1ac3d9f0-175c-11d1-95be-00609797ea4f),
66 pointer_default(unique)
67]
68interface IPersistFolder2 : IPersistFolder
69{
70 typedef IPersistFolder2 *LPPERSISTFOLDER2;
71
72 HRESULT GetCurFolder( [out] PIDLIST_ABSOLUTE *ppidl );
73}
74
75
76/*****************************************************************************
77 * IPersistIDList interface
78 */
79[
80 object,
81 uuid(1079acfc-29bd-11d3-8e0d-00c04f6837d5),
82 pointer_default(unique)
83]
84interface IPersistIDList : IPersist
85{
86 HRESULT SetIDList( [in] PCIDLIST_ABSOLUTE pidl );
87 HRESULT GetIDList( [out] PIDLIST_ABSOLUTE *ppidl );
88}
89
90
91/*****************************************************************************
92 * IEnumIDList interface
93 */
94[
95 object,
96 uuid(000214f2-0000-0000-c000-000000000046),
97 pointer_default(unique)
98]
99interface IEnumIDList : IUnknown
100{
101 typedef IEnumIDList *LPENUMIDLIST;
102
103 HRESULT Next(
104 [in] ULONG celt,
105 [out, size_is(celt), length_is(*pceltFetched)] PITEMID_CHILD *rgelt,
106 [out] ULONG *pceltFetched);
107
108 HRESULT Skip( [in] ULONG celt );
109 HRESULT Reset();
110 HRESULT Clone( [out] IEnumIDList **ppenum );
111}
112
113/*****************************************************************************
114 * IShellPropSheetExt interface
115 */
116cpp_quote("#if 0")
117 typedef LPARAM LPFNSVADDPROPSHEETPAGE;
118cpp_quote("#else")
119cpp_quote("#include <prsht.h>")
120cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
121cpp_quote("#endif")
122
123[
124 object,
125 uuid(000214E9-0000-0000-C000-000000000046),
126 pointer_default(unique),
127 local
128]
129interface IShellPropSheetExt : IUnknown
130{
131 enum tagSHELLPROPSHEETEXTPAGEID {
132 EXPPS_FILETYPES = 0x1
133 };
134
135 typedef UINT EXPPS;
136
137 HRESULT AddPages(
138 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
139 [in] LPARAM lParam);
140 HRESULT ReplacePage(
141 [in] EXPPS uPageID,
142 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
143 [in] LPARAM lParam);
144}
145typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
146
147/*****************************************************************************
148 * IShellFolder interface
149 */
150[
151 object,
152 uuid(000214e6-0000-0000-c000-000000000046),
153 pointer_default(unique)
154]
155interface IShellFolder : IUnknown
156{
157 typedef IShellFolder * LPSHELLFOLDER;
158
159 typedef enum tagSHGDN
160 {
161 SHGDN_NORMAL = 0,
162 SHGDN_INFOLDER = 1,
163 SHGDN_FOREDITING = 0x1000,
164 SHGDN_INCLUDE_NONFILESYS = 0x2000,
165 SHGDN_FORADDRESSBAR = 0x4000,
166 SHGDN_FORPARSING = 0x8000
167 } SHGNO;
168
169 typedef DWORD SHGDNF;
170
171 enum tagSHCONTF
172 {
173 SHCONTF_FOLDERS = 32,
174 SHCONTF_NONFOLDERS = 64,
175 SHCONTF_INCLUDEHIDDEN = 128,
176 SHCONTF_INIT_ON_FIRST_NEXT = 256,
177 SHCONTF_NETPRINTERSRCH = 512,
178 SHCONTF_SHAREABLE = 1024,
179 SHCONTF_STORAGE = 2048,
180 SHCONTF_NAVIGATION_ENUM = 0x01000,
181 SHCONTF_FASTITEMS = 0x02000,
182 SHCONTF_FLATLIST = 0x04000,
183 SHCONTF_ENABLE_ASYNC = 0x08000,
184 SHCONTF_INCLUDESUPERHIDDEN = 0x10000
185 };
186
187 typedef DWORD SHCONTF;
188
189 cpp_quote("#define SFGAO_CANCOPY DROPEFFECT_COPY")
190 cpp_quote("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
191 cpp_quote("#define SFGAO_CANLINK DROPEFFECT_LINK")
192 cpp_quote("#define SFGAO_STORAGE 0x00000008L")
193 cpp_quote("#define SFGAO_CANRENAME 0x00000010L")
194 cpp_quote("#define SFGAO_CANDELETE 0x00000020L")
195 cpp_quote("#define SFGAO_HASPROPSHEET 0x00000040L")
196 cpp_quote("#define SFGAO_DROPTARGET 0x00000100L")
197 cpp_quote("#define SFGAO_CAPABILITYMASK 0x00000177L")
198 cpp_quote("#define SFGAO_SYSTEM 0x00001000L")
199 cpp_quote("#define SFGAO_ENCRYPTED 0x00002000L")
200 cpp_quote("#define SFGAO_ISSLOW 0x00004000L")
201 cpp_quote("#define SFGAO_GHOSTED 0x00008000L")
202 cpp_quote("#define SFGAO_LINK 0x00010000L")
203 cpp_quote("#define SFGAO_SHARE 0x00020000L")
204 cpp_quote("#define SFGAO_READONLY 0x00040000L")
205 cpp_quote("#define SFGAO_HIDDEN 0x00080000L")
206 cpp_quote("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
207 cpp_quote("#define SFGAO_FILESYSANCESTOR 0x10000000L")
208 cpp_quote("#define SFGAO_FOLDER 0x20000000L")
209 cpp_quote("#define SFGAO_FILESYSTEM 0x40000000L")
210 cpp_quote("#define SFGAO_HASSUBFOLDER 0x80000000L")
211 cpp_quote("#define SFGAO_CONTENTSMASK 0x80000000L")
212 cpp_quote("#define SFGAO_VALIDATE 0x01000000L")
213 cpp_quote("#define SFGAO_REMOVABLE 0x02000000L")
214 cpp_quote("#define SFGAO_COMPRESSED 0x04000000L")
215 cpp_quote("#define SFGAO_BROWSABLE 0x08000000L")
216 cpp_quote("#define SFGAO_NONENUMERATED 0x00100000L")
217 cpp_quote("#define SFGAO_NEWCONTENT 0x00200000L")
218 cpp_quote("#define SFGAO_STREAM 0x00400000L")
219 cpp_quote("#define SFGAO_STORAGEANCESTOR 0x00800000L")
220 cpp_quote("#define SFGAO_STORAGECAPMASK 0x70C50008L")
221 cpp_quote("#define SFGAO_PKEYSFGAOMASK 0x81044000L")
222 typedef ULONG SFGAOF;
223
224 cpp_quote("#define SHCIDS_COLUMNMASK 0x0000FFFFL")
225 cpp_quote("#define SHCIDS_BITMASK 0xFFFF0000L")
226 cpp_quote("#define SHCIDS_CANONICALONLY 0x10000000L")
227 cpp_quote("#define SHCIDS_ALLFIELDS 0x80000000L")
228
229 cpp_quote("#define STR_PARSE_SHELL_PROTOCOL_TO_FILE_OBJECTS L\"Parse Shell Protocol To File Objects\"")
230 cpp_quote("#define STR_FILE_SYS_BIND_DATA L\"File System Bind Data\"")
231 cpp_quote("#define STR_PARSE_PREFER_FOLDER_BROWSING L\"Parse Prefer Folder Browsing\"")
232 cpp_quote("#define STR_PARSE_TRANSLATE_ALIASES L\"Parse Translate Aliases\"")
233 cpp_quote("#define STR_DONT_PARSE_RELATIVE L\"Don't Parse Relative\"")
234
236 [in] HWND hwndOwner,
237 [in] LPBC pbcReserved,
238 [in, string] LPOLESTR lpszDisplayName,
239 [out] ULONG *pchEaten,
240 [out] PIDLIST_RELATIVE *ppidl,
241 [in, out, unique] ULONG *pdwAttributes);
242
244 [in] HWND hwndOwner,
245 [in] SHCONTF grfFlags,
246 [out] IEnumIDList **ppenumIDList);
247
249 [in] PCUIDLIST_RELATIVE pidl,
250 [in] LPBC pbcReserved,
251 [in] REFIID riid,
252 [out, iid_is(riid)] void **ppvOut);
253
255 [in] PCUIDLIST_RELATIVE pidl,
256 [in] LPBC pbcReserved,
257 [in] REFIID riid,
258 [out, iid_is(riid)] void **ppvObj);
259
261 [in] LPARAM lParam,
262 [in] PCUIDLIST_RELATIVE pidl1,
263 [in] PCUIDLIST_RELATIVE pidl2);
264
266 [in] HWND hwndOwner,
267 [in] REFIID riid,
268 [out, iid_is(riid)] void **ppvOut);
269
271 [in] UINT cidl,
272 [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
273 [in, out] SFGAOF *rgfInOut);
274
276 [in] HWND hwndOwner,
277 [in] UINT cidl,
278 [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
279 [in] REFIID riid,
280 [in, out, unique] UINT *prgfInOut,
281 [out, iid_is(riid)] void **ppvOut);
282
284 [in] PCUITEMID_CHILD pidl,
285 [in] SHGDNF uFlags,
286 [out] STRRET *lpName);
287
289 [in] HWND hwnd,
290 [in] PCUITEMID_CHILD pidl,
291 [in, string] LPCOLESTR lpszName,
292 [in] SHGDNF uFlags,
293 [out] PITEMID_CHILD *ppidlOut);
294}
295
296
297/*****************************************************************************
298 * IEnumExtraSearch interface
299 */
300[
301 object,
302 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
304]
306{
308
309 typedef struct
310 {
313 /*
314 *WCHAR wszMenuText[80];
315 *WCHAR wszHelpText[MAX_PATH];
316 */
317 WCHAR wszUrl[2084];
318 /*
319 *WCHAR wszIcon[MAX_PATH+10];
320 *WCHAR wszGreyIcon[MAX_PATH+10];
321 *WCHAR wszClrIcon[MAX_PATH+10];
322 */
323 } EXTRASEARCH, *LPEXTRASEARCH;
324
326 [in] ULONG celt,
327 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
328 [out] ULONG *pceltFetched);
329
330 HRESULT Skip( [in] ULONG celt );
333}
334
335
336/*****************************************************************************
337 * IShellFolder2 interface
338 */
339[
340 object,
341 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
343]
345{
346 typedef struct
347 {
350 } SHCOLUMNID, *LPSHCOLUMNID;
351 typedef const SHCOLUMNID *LPCSHCOLUMNID;
352
359 HRESULT MapColumnToSCID( [in] UINT iColumn, [in] SHCOLUMNID *pscid );
360}
361
362/*****************************************************************************
363 * IShellItem interface
364 */
365[
366 object,
367 uuid(43826d1e-e718-42ee-bc55-a1e261c37bfe),
369]
371{
372 typedef [v1_enum] enum {
378 SIGDN_FILESYSPATH = 0x80058000,
379 SIGDN_URL = 0x80068000,
381 SIGDN_PARENTRELATIVE = 0x80080001
382 } SIGDN; /* & 0xFFFF => SHGDN */
383
385 {
386 SICHINT_DISPLAY = 0x00000000,
387 SICHINT_CANONICAL = 0x10000000,
389 SICHINT_ALLFIELDS = 0x80000000
390 };
392
394 [in] IBindCtx *pbc,
395 [in] REFGUID rbhid,
396 [in] REFIID riid,
397 [out, iid_is(riid)] void **ppvOut);
398
400
403 [out] LPWSTR *ppszName);
404
406 [in] SFGAOF sfgaoMask,
407 [out] SFGAOF *psfgaoAttribs);
408
410 [in] IShellItem *psi,
411 [in] SICHINTF hint,
412 [out] int *piOrder);
413}
414
415/*****************************************************************************
416 * IShellItem2 interface
417 */
418[
419 object,
420 uuid(7E9FB0D3-919F-4307-AB2E-9B1860310C93),
422]
423interface IShellItem2 : IShellItem
424{
426 [in] GETPROPERTYSTOREFLAGS flags,
427 [in] REFIID riid,
428 [out, iid_is(riid)] void **ppv);
429
431 [in] GETPROPERTYSTOREFLAGS flags,
432 [in] IUnknown *punkCreateObject,
433 [in] REFIID riid,
434 [out, iid_is(riid)] void **ppv);
435
437 [in, size_is(cKeys)] const PROPERTYKEY *rgKeys,
438 [in] UINT cKeys,
439 [in] GETPROPERTYSTOREFLAGS flags,
440 [in] REFIID riid,
441 [out, iid_is(riid)] void **ppv);
442
444 [in] REFPROPERTYKEY keyType,
445 [in] REFIID riid,
446 [out, iid_is(riid)] void **ppv);
447
449 [in, unique] IBindCtx *pbc);
450
453 [out] PROPVARIANT *ppropvar);
454
457 [out] CLSID *pclsid);
458
461 [out] FILETIME *pft);
462
465 [out] int *pi);
466
469 [out, string] LPWSTR *ppsz);
470
473 [out] ULONG *pui);
474
477 [out] ULONGLONG *pull);
478
481 [out] BOOL *pf);
482}
483
484typedef enum tagNWMF {
485 NWMF_UNLOADING = 0x0001,
487 NWMF_FIRST = 0x0004,
493 NWMF_USERALLOWED = 0x0100
494} NWMF;
495
496[
497 uuid(d2bc4c84-3f72-4a52-a604-7bcbf3982cbb),
498 object,
500]
502{
504 [in, string] LPCWSTR pszUrl,
505 [in, string] LPCWSTR pszName,
506 [in, string] LPCWSTR pszUrlContext,
507 [in, string] LPCWSTR pszFeatures,
508 [in] BOOL fReplace,
509 [in] DWORD dwFlags,
510 [in] DWORD dwUserActionTime);
511}
512
513cpp_quote("#define SID_SNewWindowManager IID_INewWindowManager")
514
515/*****************************************************************************
516 * IEnumShellItems interface
517 */
518[
519 object,
520 uuid(70629033-E363-4A28-A567-0DB78006E6D7),
522]
524{
526 [in] ULONG celt,
527 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
528 [out] ULONG *pceltFetched);
529
531 [in] ULONG celt,
532 [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
533 [out] ULONG *pceltFetched);
534
536 [in] ULONG celt);
537
539
541 [out] IEnumShellItems **ppenum);
542}
543
544/*****************************************************************************
545 * IShellItemArray interface
546 */
547[
548 object,
549 uuid(B63EA76D-1F85-456F-A19C-48159EFA858B),
551]
552interface IShellItemArray : IUnknown
553{
554 typedef [v1_enum] enum SIATTRIBFLAGS {
555 SIATTRIBFLAGS_AND = 0x0001,
556 SIATTRIBFLAGS_OR = 0x0002,
557 SIATTRIBFLAGS_APPCOMPAT = 0x0003,
558 SIATTRIBFLAGS_MASK = 0x0003,
559 SIATTRIBFLAGS_ALLITEMS = 0x4000
560 } SIATTRIBFLAGS;
561 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(SIATTRIBFLAGS)")
562
563 HRESULT BindToHandler(
565 [in] REFGUID bhid,
567 [out, iid_is(riid)] void **ppvOut);
568
569 HRESULT GetPropertyStore(
570 [in] GETPROPERTYSTOREFLAGS flags,
571 [in] REFIID riid,
572 [out, iid_is(riid)] void **ppv);
573
574 HRESULT GetPropertyDescriptionList(
575 [in] REFPROPERTYKEY keyType,
576 [in] REFIID riid,
577 [out, iid_is(riid)] void **ppv);
578
579 HRESULT GetAttributes(
580 [in] SIATTRIBFLAGS AttribFlags,
581 [in] SFGAOF sfgaoMask,
582 [out] SFGAOF *psfgaoAttribs);
583
585 [out] DWORD *pdwNumItems);
586
587 HRESULT GetItemAt(
588 [in] DWORD dwIndex,
589 [out] IShellItem **ppsi);
590
591 HRESULT EnumItems(
592 [out] IEnumShellItems **ppenumShellItems);
593
594}
595
597{
598 DOGIF_DEFAULT = 0x0,
604cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DATAOBJ_GET_ITEM_FLAGS)")
605
612cpp_quote("HRESULT WINAPI SHCreateShellItemArray(PCIDLIST_ABSOLUTE pidlParent, IShellFolder* psf, UINT cidl, PCUITEMID_CHILD_ARRAY ppidl, IShellItemArray **ppsiItemArray);")
616
617/*****************************************************************************
618 * IShellItemFilter interface
619 */
620[
621 object,
622 uuid(2659B475-EEB8-48B7-8F07-B378810F48CF),
624]
626{
628 [in] IShellItem *psi);
629
631 [in] IShellItem *psi,
632 [out] SHCONTF *pgrfFlags);
633}
634
635/*****************************************************************************
636 * FOLDERSETTINGS
637 */
638typedef char *LPVIEWSETTINGS;
639
640typedef enum
641{
642 FWF_AUTOARRANGE = 0x00000001,
644 FWF_SNAPTOGRID = 0x00000004,
645 FWF_OWNERDATA = 0x00000008,
646 FWF_BESTFITWINDOW = 0x00000010,
647 FWF_DESKTOP = 0x00000020,
648 FWF_SINGLESEL = 0x00000040,
649 FWF_NOSUBFOLDERS = 0x00000080,
650 FWF_TRANSPARENT = 0x00000100,
651 FWF_NOCLIENTEDGE = 0x00000200,
652 FWF_NOSCROLL = 0x00000400,
653 FWF_ALIGNLEFT = 0x00000800,
654 FWF_NOICONS = 0x00001000,
655 FWF_SHOWSELALWAYS = 0x00002000,
656 FWF_NOVISIBLE = 0x00004000,
658 FWF_NOWEBVIEW = 0x00010000,
659 FWF_HIDEFILENAMES = 0x00020000,
660 FWF_CHECKSELECT = 0x00040000,
661 FWF_NOENUMREFRESH = 0x00080000,
662 FWF_NOGROUPING = 0x00100000,
663 FWF_FULLROWSELECT = 0x00200000,
664 FWF_NOFILTERS = 0x00400000,
665 FWF_NOCOLUMNHEADER = 0x00800000,
667 FWF_EXTENDEDTILES = 0x02000000,
668 FWF_TRICHECKSELECT = 0x04000000,
671 FWF_SUBSETGROUPS = 0x20000000,
673 FWF_ALLOWRTLREADING = 0x80000000
675
676typedef enum
677{
690
691typedef struct
692{
697
698/*****************************************************************************
699 * IShellIcon interface
700 */
701[
702 uuid(000214e5-0000-0000-c000-000000000046),
703 object,
705]
707{
709 [in] PCUITEMID_CHILD pidl,
710 [in] UINT flags,
711 [out] int *pIconIndex);
712}
713
714/*****************************************************************************
715 * IShellView interface
716 */
717interface IShellBrowser; /* forward declaration */
718[
719 object,
720 uuid(000214e3-0000-0000-c000-000000000046),
722]
724{
726
727 cpp_quote("#define SVSI_DESELECT 0x00000000")
728 cpp_quote("#define SVSI_SELECT 0x00000001")
729 cpp_quote("#define SVSI_EDIT 0x00000003")
730 cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
731 cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
732 cpp_quote("#define SVSI_FOCUSED 0x00000010")
733 cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
734 cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
735 cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
736 cpp_quote("#define SVSI_CHECK 0x00000100")
737 cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
738
739 typedef UINT SVSIF;
740
741 typedef enum
742 {
743 SVGIO_BACKGROUND = 0x00000000,
744 SVGIO_SELECTION = 0x00000001,
745 SVGIO_ALLVIEW = 0x00000002,
746 SVGIO_CHECKED = 0x00000003,
747 SVGIO_TYPE_MASK = 0x0000000f,
748 SVGIO_FLAG_VIEWORDER = 0x80000000,
749 } SVGIO;
750
751 typedef enum
752 {
753 SVUIA_DEACTIVATE = 0,
754 SVUIA_ACTIVATE_NOFOCUS = 1,
755 SVUIA_ACTIVATE_FOCUS = 2,
756 SVUIA_INPLACEACTIVATE = 3
757 } SVUIA_STATUS;
758
759 HRESULT TranslateAccelerator( [in] MSG *pmsg );
760 HRESULT EnableModeless( [in] BOOL fEnable );
761 HRESULT UIActivate( [in] UINT uState );
762 HRESULT Refresh();
763 HRESULT CreateViewWindow(
764 [in] IShellView *psvPrevious,
765 [in] LPCFOLDERSETTINGS lpfs,
766 [in] IShellBrowser *psb,
767 [out] RECT *prcView,
768 [out] HWND *phWnd);
769
770 HRESULT DestroyViewWindow();
771 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
772
773 [local] HRESULT AddPropertySheetPages(
774 [in] DWORD dwReserved,
775 [in] LPFNSVADDPROPSHEETPAGE pfn,
776 [in] LPARAM lparam);
777
778 HRESULT SaveViewState();
779 HRESULT SelectItem(
780 [in] PCUITEMID_CHILD pidlItem,
781 [in] SVSIF uFlags);
782 HRESULT GetItemObject(
783 [in] UINT uItem,
784 [in] REFIID riid,
785 [out, iid_is(riid)] void **ppv);
786}
787
788[
789 object,
790 uuid(88e39e80-3578-11cf-ae69-08002b2e1262),
791 pointer_default(unique)
792]
793interface IShellView2 : IShellView
794{
795 typedef GUID SHELLVIEWID;
796cpp_quote("#include <pshpack8.h>")
797 typedef struct _SV2CVW2_PARAMS
798 {
799 DWORD cbSize;
800 IShellView *psvPrev;
801 LPCFOLDERSETTINGS pfs;
802 IShellBrowser *psbOwner;
803 RECT *prcView;
804 SHELLVIEWID const *pvid;
805 HWND hwndView;
806 } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
807cpp_quote("#include <poppack.h>")
808
809 HRESULT GetView(
810 [in, out] SHELLVIEWID *view_guid,
811 [in] ULONG view_type
812 );
813 HRESULT CreateViewWindow2(
814 [in] LPSV2CVW2_PARAMS view_params
815 );
816 HRESULT HandleRename(
817 [in] PCUITEMID_CHILD new_pidl
818 );
819 HRESULT SelectAndPositionItem(
820 [in] PCUITEMID_CHILD item,
821 [in] UINT flags,
822 [in] POINT *point
823 );
824}
825
826[
827 object,
828 uuid(ec39fa88-f8af-41c5-8421-38bed28f4673),
829 pointer_default(unique)
830]
831interface IShellView3 : IShellView2
832{
833 [v1_enum] enum _SV3CVW3_FLAGS
834 {
835 SV3CVW3_DEFAULT = 0x00000000,
836 SV3CVW3_NONINTERACTIVE = 0x00000001,
837 SV3CVW3_FORCEVIEWMODE = 0x00000002,
838 SV3CVW3_FORCEFOLDERFLAGS = 0x00000004
839 };
840
841 typedef DWORD SV3CVW3_FLAGS;
842
843 HRESULT CreateViewWindow3(
844 [in] IShellBrowser *owner,
845 [in, unique] IShellView *prev_view,
846 [in] SV3CVW3_FLAGS view_flags,
847 [in] FOLDERFLAGS mask,
848 [in] FOLDERFLAGS flags,
849 [in] FOLDERVIEWMODE mode,
850 [in, unique] const SHELLVIEWID *view_id,
851 [in] const RECT *rect,
852 [out] HWND *hwnd);
853}
854
855/*****************************************************************************
856 * IFolderView interface
857 */
858[
859 uuid(cde725b0-ccc9-4519-917e-325d72fab4ce),
860 object,
861 pointer_default(unique)
862]
863interface IFolderView : IUnknown
864{
865 HRESULT GetCurrentViewMode( [out] UINT *mode );
866 HRESULT SetCurrentViewMode( [in] UINT mode );
867 HRESULT GetFolder( [in] REFIID riid, [out, iid_is(riid)] void **ppv );
868 HRESULT Item(
869 [in] int index,
870 [out] PITEMID_CHILD *ppidl
871 );
872 HRESULT ItemCount(
873 [in] UINT flags,
874 [out] int *items
875 );
876 HRESULT Items(
877 [in] UINT flags,
878 [in] REFIID riid,
879 [out, iid_is(riid)] void **ppv
880 );
881 HRESULT GetSelectionMarkedItem( [out] int *item );
882 HRESULT GetFocusedItem( [out] int *item );
883 HRESULT GetItemPosition(
884 [in] PCUITEMID_CHILD pidl,
885 [out] POINT* ppt
886 );
887 HRESULT GetSpacing( [in, out, unique] POINT* pt );
888 HRESULT GetDefaultSpacing( [out] POINT* pt );
889 HRESULT GetAutoArrange();
890 HRESULT SelectItem(
891 [in] int item,
892 [in] DWORD flags
893 );
894 HRESULT SelectAndPositionItems(
895 [in] UINT cidl,
896 [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
897 [in, unique, size_is(cidl)] POINT* apt,
898 [in] DWORD flags
899 );
900}
901
902[v1_enum] enum tagSORTDIRECTION
903{
904 SORT_DESCENDING = -1,
905 SORT_ASCENDING = 1
907typedef int SORTDIRECTION;
908
909typedef struct SORTCOLUMN
910{
911 PROPERTYKEY propkey;
912 SORTDIRECTION direction;
913} SORTCOLUMN;
914
915typedef [v1_enum] enum FVTEXTTYPE
916{
917 FVST_EMPTYTEXT = 0
918} FVTEXTTYPE;
919
920[
921 uuid(1af3a467-214f-4298-908e-06b03e0b39f9),
922 object,
923 pointer_default(unique)
924]
925interface IFolderView2 : IFolderView
926{
927 HRESULT SetGroupBy(
928 [in] REFPROPERTYKEY key,
929 [in] BOOL ascending);
930
931 [local]
932 HRESULT GetGroupBy(
933 [out] PROPERTYKEY *pkey,
934 [out] BOOL *ascending);
935
936 [call_as(GetGroupBy)]
937 HRESULT RemoteGetGroupBy(
938 [out] PROPERTYKEY *pkey,
939 [out] BOOL *ascending);
940
941 HRESULT SetViewProperty(
942 [in] PCUITEMID_CHILD pidl,
943 [in] REFPROPERTYKEY propkey,
944 [in] REFPROPVARIANT propvar);
945
946 HRESULT GetViewProperty(
947 [in] PCUITEMID_CHILD pidl,
948 [in] REFPROPERTYKEY propkey,
949 [out] PROPVARIANT *propvar);
950
951 HRESULT SetTileViewProperties(
952 [in] PCUITEMID_CHILD pidl,
953 [in, string] LPCWSTR prop_list);
954
955 HRESULT SetExtendedTileViewProperties(
956 [in] PCUITEMID_CHILD pidl,
957 [in, string] LPCWSTR prop_list);
958
959 HRESULT SetText(
960 [in] FVTEXTTYPE type,
961 [in] LPCWSTR text);
962
963 HRESULT SetCurrentFolderFlags(
964 [in] DWORD mask,
965 [in] DWORD flags);
966
967 HRESULT GetCurrentFolderFlags([out] DWORD *flags);
968
969 HRESULT GetSortColumnCount([out] int *columns);
970
971 HRESULT SetSortColumns(
972 [in, size_is(count)] const SORTCOLUMN *columns,
973 [in] int count);
974
975 HRESULT GetSortColumns(
976 [out, size_is(count)] SORTCOLUMN *columns,
977 [in] int count);
978
979 HRESULT GetItem(
980 [in] int ittem,
981 [in] REFIID riid,
982 [out, iid_is(riid)] void **ppv);
983
984 HRESULT GetVisibleItem(
985 [in] int start,
986 [in] BOOL previous,
987 [out] int *item);
988
989 HRESULT GetSelectedItem(
990 [in] int start,
991 [out] int *item);
992
993 HRESULT GetSelection(
994 [in] BOOL none_implies_folder,
995 [out] IShellItemArray **array);
996
997 HRESULT GetSelectionState(
998 [in] PCUITEMID_CHILD pidl,
999 [out] DWORD *flags);
1000
1001 HRESULT InvokeVerbOnSelection([in, unique, string] LPCSTR verb);
1002
1003 HRESULT SetViewModeAndIconSize(
1004 [in] FOLDERVIEWMODE mode,
1005 [in] int size);
1006
1007 HRESULT GetViewModeAndIconSize(
1008 [out] FOLDERVIEWMODE *mode,
1009 [out] int *size);
1010
1011 HRESULT SetGroupSubsetCount([in] UINT visible_rows);
1012
1013 HRESULT GetGroupSubsetCount([out] UINT *visible_rows);
1014
1015 HRESULT SetRedraw([in] BOOL redraw);
1016
1017 HRESULT IsMoveInSameFolder();
1018
1019 HRESULT DoRename();
1020}
1021
1022/*****************************************************************************
1023 * IShellBrowser interface
1024 */
1025[
1026 object,
1027 uuid(000214e2-0000-0000-c000-000000000046),
1028 pointer_default(unique)
1029]
1030interface IShellBrowser : IOleWindow
1031{
1032 typedef IShellBrowser *LPSHELLBROWSER;
1033
1034cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
1035cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
1036cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
1037cpp_quote("#define SBSP_DEFMODE 0x00000000")
1038cpp_quote("#define SBSP_OPENMODE 0x00000010")
1039cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
1040cpp_quote("#define SBSP_HELPMODE 0x00000040")
1041cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
1042cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
1043cpp_quote("#define SBSP_RELATIVE 0x00001000")
1044cpp_quote("#define SBSP_PARENT 0x00002000")
1045cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
1046cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
1047cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
1048cpp_quote("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
1049cpp_quote("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
1050cpp_quote("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
1051cpp_quote("#define SBSP_CREATENOHISTORY 0x00100000")
1052cpp_quote("#define SBSP_PLAYNOSOUND 0x00200000")
1053cpp_quote("#define SBSP_CALLERUNTURUSTED 0x00800000")
1054cpp_quote("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
1055cpp_quote("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
1056cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
1057cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
1058cpp_quote("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
1059cpp_quote("#define SBSP_FEEDNAVIGATION 0x20000000")
1060cpp_quote("#define SBSP_REDIRECT 0x40000000")
1061cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
1062
1063cpp_quote("#define FCW_STATUS 0x0001")
1064cpp_quote("#define FCW_TOOLBAR 0x0002")
1065cpp_quote("#define FCW_TREE 0x0003")
1066cpp_quote("#define FCW_INTERNETBAR 0x0006")
1067cpp_quote("#define FCW_PROGRESS 0x0008")
1068
1069cpp_quote("#define FCT_MERGE 0x0001")
1070cpp_quote("#define FCT_CONFIGABLE 0x0002")
1071cpp_quote("#define FCT_ADDTOEND 0x0004")
1072
1073cpp_quote("#if 0")
1074 typedef LPARAM LPTBBUTTONSB;
1075cpp_quote("#else")
1076cpp_quote("#include <commctrl.h>")
1077cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
1078cpp_quote("#endif")
1079
1080 HRESULT InsertMenusSB(
1081 [in] HMENU hmenuShared,
1082 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
1083
1084 HRESULT SetMenuSB(
1085 [in] HMENU hmenuShared,
1086 [in] HOLEMENU holemenuReserved,
1087 [in] HWND hwndActiveObject);
1088
1089 HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
1090 HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
1091 HRESULT EnableModelessSB( [in] BOOL fEnable );
1092 HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
1093
1094 HRESULT BrowseObject(
1095 [in] PCUIDLIST_RELATIVE pidl,
1096 [in] UINT wFlags);
1097
1098 HRESULT GetViewStateStream(
1099 [in] DWORD grfMode,
1100 [out] IStream **ppStrm);
1101
1102 HRESULT GetControlWindow(
1103 [in] UINT id,
1104 [out] HWND *phwnd);
1105
1106 [local] HRESULT SendControlMsg(
1107 [in] UINT id,
1108 [in] UINT uMsg,
1109 [in] WPARAM wParam,
1110 [in] LPARAM lParam,
1111 [in] LRESULT *pret);
1112
1113 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
1114 HRESULT OnViewWindowActive( [in] IShellView *pshv );
1115
1116 [local]
1117 HRESULT SetToolbarItems(
1118 [in] LPTBBUTTONSB lpButtons,
1119 [in] UINT nButtons,
1120 [in] UINT uFlags);
1121}
1122
1123
1124/*****************************************************************************
1125 * IShellLinkA interface
1126 */
1127[
1128 object,
1129 uuid(000214ee-0000-0000-c000-000000000046),
1130 pointer_default(unique)
1131]
1132interface IShellLinkA : IUnknown
1133{
1134 typedef enum
1135 {
1136 SLR_NO_UI = 0x0001,
1137 SLR_ANY_MATCH = 0x0002,
1138 SLR_UPDATE = 0x0004,
1139 SLR_NOUPDATE = 0x0008,
1140 SLR_NOSEARCH = 0x0010,
1141 SLR_NOTRACK = 0x0020,
1142 SLR_NOLINKINFO = 0x0040,
1143 SLR_INVOKE_MSI = 0x0080,
1144 SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
1145 } SLR_FLAGS;
1146
1147 typedef enum
1148 {
1149 SLGP_SHORTPATH = 0x0001,
1150 SLGP_UNCPRIORITY = 0x0002,
1151 SLGP_RAWPATH = 0x0004,
1152 } SLGP_FLAGS;
1153
1154 HRESULT GetPath(
1155 [out, size_is(cch)] LPSTR pszFile,
1156 [in] int cch,
1157 [in, out, unique] WIN32_FIND_DATAA *pfd,
1158 [in] DWORD fFlags);
1159
1160 HRESULT GetIDList( [out] PIDLIST_ABSOLUTE * ppidl );
1161
1162 HRESULT SetIDList( [in] PCIDLIST_ABSOLUTE pidl );
1163
1164 HRESULT GetDescription(
1165 [out, size_is(cch)] LPSTR pszName,
1166 [in] int cch);
1167
1168 HRESULT SetDescription( [in] LPCSTR pszName );
1169
1170 HRESULT GetWorkingDirectory(
1171 [out, size_is(cch)] LPSTR pszDir,
1172 [in] int cch);
1173
1174 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
1175
1176 HRESULT GetArguments(
1177 [out, size_is(cch)] LPSTR pszArgs,
1178 [in] int cch);
1179
1180 HRESULT SetArguments( [in] LPCSTR pszArgs );
1181
1182 HRESULT GetHotkey( [out] WORD *pwHotkey );
1183
1184 HRESULT SetHotkey( [in] WORD wHotkey );
1185
1186 HRESULT GetShowCmd( [out] int *piShowCmd );
1187
1188 HRESULT SetShowCmd( [in] int iShowCmd );
1189
1190 HRESULT GetIconLocation(
1191 [out, size_is(cch)] LPSTR pszIconPath,
1192 [in] int cch,
1193 [out] int *piIcon);
1194
1195 HRESULT SetIconLocation(
1196 [in] LPCSTR pszIconPath,
1197 [in] int iIcon);
1198
1199 HRESULT SetRelativePath(
1200 [in] LPCSTR pszPathRel,
1201 [in] DWORD dwReserved);
1202
1203 HRESULT Resolve(
1204 [in] HWND hwnd,
1205 [in] DWORD fFlags);
1206
1207 HRESULT SetPath( [in] LPCSTR pszFile );
1208}
1209
1210
1211/*****************************************************************************
1212 * IShellLinkW interface
1213 */
1214[
1215 object,
1216 uuid(000214f9-0000-0000-c000-000000000046),
1217 pointer_default(unique)
1218]
1219interface IShellLinkW : IUnknown
1220{
1221 HRESULT GetPath(
1222 [out, size_is(cch)] LPWSTR pszFile,
1223 [in] int cch,
1224 [in, out] WIN32_FIND_DATAW *pfd,
1225 [in] DWORD fFlags);
1226
1227 HRESULT GetIDList( [out] PIDLIST_ABSOLUTE * ppidl );
1228
1229 HRESULT SetIDList( [in] PCIDLIST_ABSOLUTE pidl );
1230
1231 HRESULT GetDescription(
1232 [out, size_is(cch)] LPWSTR pszName,
1233 [in] int cch);
1234
1235 HRESULT SetDescription( [in] LPCWSTR pszName );
1236
1237 HRESULT GetWorkingDirectory(
1238 [out, size_is(cch)] LPWSTR pszDir,
1239 [in] int cch);
1240
1241 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
1242
1243 HRESULT GetArguments(
1244 [out, size_is(cch)] LPWSTR pszArgs,
1245 [in] int cch);
1246
1247 HRESULT SetArguments( [in] LPCWSTR pszArgs );
1248
1249 HRESULT GetHotkey( [out] WORD *pwHotkey );
1250
1251 HRESULT SetHotkey( [in] WORD wHotkey );
1252
1253 HRESULT GetShowCmd( [out] int *piShowCmd );
1254
1255 HRESULT SetShowCmd( [in] int iShowCmd );
1256
1257 HRESULT GetIconLocation(
1258 [out, size_is(cch)] LPWSTR pszIconPath,
1259 [in] int cch,
1260 [out] int *piIcon);
1261
1262 HRESULT SetIconLocation(
1263 [in] LPCWSTR pszIconPath,
1264 [in] int iIcon);
1265
1266 HRESULT SetRelativePath(
1267 [in] LPCWSTR pszPathRel,
1268 [in] DWORD dwReserved);
1269
1270 HRESULT Resolve(
1271 [in] HWND hwnd,
1272 [in] DWORD fFlags);
1273
1274 HRESULT SetPath( [in] LPCWSTR pszFile );
1275}
1276
1277cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
1278
1279
1280/*****************************************************************************
1281 * IShellExtInit interface
1282 */
1283[
1284 object,
1285 uuid(000214e8-0000-0000-c000-000000000046),
1286 pointer_default(unique),
1287 local
1288]
1289interface IShellExtInit : IUnknown
1290{
1291 typedef IShellExtInit *LPSHELLEXTINIT;
1292
1293 HRESULT Initialize(
1294 [in] PCIDLIST_ABSOLUTE pidlFolder,
1295 [in] IDataObject *pdtobj,
1296 [in] HKEY hkeyProgID);
1297}
1298
1299
1300/*******************************************************************************/
1301/* Note: the following interfaces are not in shobjidl.idl under Windows, they */
1302/* are declared directly in shlobj.h. It hopefully won't break anything to put */
1303/* them here anyway. */
1304/*******************************************************************************/
1305
1306#ifndef MAX_PATH
1307#define MAX_PATH 260
1308#endif
1309
1310
1311/*****************************************************************************
1312 * IPersistFolder3 interface
1313 */
1314[
1315 object,
1316 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
1317 pointer_default(unique)
1318]
1319interface IPersistFolder3 : IPersistFolder2
1320{
1321 typedef struct
1322 {
1323 PIDLIST_ABSOLUTE pidlTargetFolder;
1324 WCHAR szTargetParsingName[MAX_PATH];
1325 WCHAR szNetworkProvider[MAX_PATH];
1326 DWORD dwAttributes;
1327 int csidl;
1328 } PERSIST_FOLDER_TARGET_INFO;
1329
1330 HRESULT InitializeEx(
1331 [in] IBindCtx *pbc,
1332 [in] PCIDLIST_ABSOLUTE pidlRoot,
1333 [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
1334
1335 HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
1336}
1337
1338
1339/*****************************************************************************
1340 * IExtractIconA interface
1341 */
1342[
1343 object,
1344 uuid(000214eb-0000-0000-c000-000000000046),
1345 pointer_default(unique),
1346 local
1347]
1348interface IExtractIconA : IUnknown
1349{
1350cpp_quote("#define GIL_OPENICON 0x0001")
1351cpp_quote("#define GIL_FORSHELL 0x0002")
1352cpp_quote("#define GIL_ASYNC 0x0020")
1353cpp_quote("#define GIL_DEFAULTICON 0x0040")
1354cpp_quote("#define GIL_FORSHORTCUT 0x0080")
1355
1356cpp_quote("#define GIL_SIMULATEDOC 0x0001")
1357cpp_quote("#define GIL_PERINSTANCE 0x0002")
1358cpp_quote("#define GIL_PERCLASS 0x0004")
1359cpp_quote("#define GIL_NOTFILENAME 0x0008")
1360cpp_quote("#define GIL_DONTCACHE 0x0010")
1361
1362 typedef IExtractIconA *LPEXTRACTICONA;
1363
1364 HRESULT GetIconLocation(
1365 [in] UINT uFlags,
1366 [out, size_is(cchMax)] LPSTR szIconFile,
1367 [in] UINT cchMax,
1368 [out] INT *piIndex,
1369 [out] UINT *pwFlags);
1370
1371 HRESULT Extract(
1372 [in] LPCSTR pszFile,
1373 [in] UINT nIconIndex,
1374 [out] HICON *phiconLarge,
1375 [out] HICON *phiconSmall,
1376 [in] UINT nIconSize );
1377}
1378
1379
1380/*****************************************************************************
1381 * IExtractIconW interface
1382 */
1383[
1384 object,
1385 uuid(000214fa-0000-0000-c000-000000000046),
1386 pointer_default(unique),
1387 local
1388]
1389interface IExtractIconW : IUnknown
1390{
1391 typedef IExtractIconW *LPEXTRACTICONW;
1392
1393 HRESULT GetIconLocation(
1394 [in] UINT uFlags,
1395 [out, size_is(cchMax)] LPWSTR szIconFile,
1396 [in] UINT cchMax,
1397 [out] INT *piIndex,
1398 [out] UINT *pwFlags);
1399
1400 HRESULT Extract(
1401 [in] LPCWSTR pszFile,
1402 [in] UINT nIconIndex,
1403 [out] HICON *phiconLarge,
1404 [out] HICON *phiconSmall,
1405 [in] UINT nIconSize );
1406}
1407
1408cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1409cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1410
1411
1412/*****************************************************************************
1413 * ICommDlgBrowser interface
1414 */
1415[
1416 object,
1417 uuid(000214f1-0000-0000-c000-000000000046),
1418 pointer_default(unique)
1419]
1420interface ICommDlgBrowser : IUnknown
1421{
1422cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
1423cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
1424cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
1425cpp_quote("#define CDBOSC_RENAME 0x00000003")
1426cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
1427
1428 typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
1429
1430 HRESULT OnDefaultCommand( [in] IShellView *shv );
1431 HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
1432 HRESULT IncludeObject( [in] IShellView *shv, [in] PCUITEMID_CHILD pidl );
1433}
1434
1435
1436/*****************************************************************************
1437 * ICommDlgBrowser2 interface
1438 */
1439[
1440 object,
1441 uuid(10339516-2894-11D2-9039-00C04F8EEB3E),
1442 pointer_default(unique)
1443]
1444interface ICommDlgBrowser2 : ICommDlgBrowser
1445{
1446cpp_quote("#define CDB2N_CONTEXTMENU_DONE 1")
1447cpp_quote("#define CDB2N_CONTEXTMENU_START 2")
1448cpp_quote("#define CDB2GVF_SHOWALLFILES 0x00000001")
1449cpp_quote("#define CDB2GVF_NOSELECTVERB 0x00000008")
1450cpp_quote("#define CDB2GVF_NOINCLUDEITEM 0x00000010 /* IncludeObject should not be called */")
1451
1452 HRESULT Notify(
1453 [in] IShellView *ppshv,
1454 [in] DWORD dwNotifyType);
1455
1456 HRESULT GetDefaultMenuText(
1457 [in] IShellView *ppshv,
1458 [out, string, size_is(cchMax)] LPWSTR pszText,
1459 [in] int cchMax);
1460
1461 HRESULT GetViewFlags(
1462 [out] DWORD *pdwFlags);
1463}
1464
1465
1466/*****************************************************************************
1467 * ICommDlgBrowser3 interface
1468 */
1469[
1470 object,
1471 uuid(C8AD25A1-3294-41EE-8165-71174BD01C57),
1472 pointer_default(unique)
1473]
1474interface ICommDlgBrowser3 : ICommDlgBrowser2
1475{
1476
1477 HRESULT OnColumnClicked(
1478 [in] IShellView *ppshv,
1479 [in] int iColumn);
1480
1481 HRESULT GetCurrentFilter(
1482 [out, string, size_is(cchFileSpec)] LPWSTR pszFileSpec,
1483 [in] int cchFileSpec);
1484
1485 HRESULT OnPreviewCreated(
1486 [in] IShellView *ppshv);
1487}
1488
1489/*****************************************************************************
1490 * IFolderFilterSite & IFolderFilter interfaces
1491 */
1492[
1493 object,
1494 uuid(C0A651F5-B48B-11d2-B5ED-006097C686F6),
1495 pointer_default(unique)
1496]
1497interface IFolderFilterSite : IUnknown
1498{
1499 HRESULT SetFilter([in] IUnknown* punk);
1500}
1501
1502[
1503 object,
1504 uuid(9CC22886-DC8E-11d2-B1D0-00C04F8EEB3E),
1505 pointer_default(unique)
1506]
1507interface IFolderFilter : IUnknown
1508{
1509 HRESULT ShouldShow(
1510 [in] IShellFolder* psf,
1511 [in, unique] PCIDLIST_ABSOLUTE pidlFolder,
1512 [in] PCUITEMID_CHILD pidlItem);
1513
1514 HRESULT GetEnumFlags(
1515 [in] IShellFolder* psf,
1516 [in] PCIDLIST_ABSOLUTE pidlFolder,
1517 [out] HWND *phwnd,
1518 [in, out] DWORD *pgrfFlags);
1519}
1520
1521/*****************************************************************************
1522 * IDockingWindow interface
1523 */
1524[
1525 object,
1526 uuid(012dd920-7b26-11d0-8ca9-00a0c92dbfe8)
1527]
1528interface IDockingWindow : IOleWindow
1529{
1530 HRESULT ShowDW(
1531 [in] BOOL fShow);
1532
1533 HRESULT CloseDW(
1534 [in] DWORD dwReserved);
1535
1536 HRESULT ResizeBorderDW(
1537 [in] LPCRECT prcBorder,
1538 [in] IUnknown *punkToolbarSite,
1539 [in] BOOL fReserved);
1540};
1541
1542
1543/*****************************************************************************
1544 * IDockingWindowFrame interface
1545 */
1546[
1547 object,
1548 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
1549 pointer_default(unique),
1550 local
1551]
1552interface IDockingWindowFrame : IOleWindow
1553{
1554cpp_quote("#define DWFRF_NORMAL 0x0000")
1555cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
1556cpp_quote("#define DWFAF_HIDDEN 0x0001")
1557
1558 HRESULT AddToolbar(
1559 [in] IUnknown *punkSrc,
1560 [in] LPCWSTR pwszItem,
1561 [in] DWORD dwAddFlags);
1562
1563 HRESULT RemoveToolbar(
1564 [in] IUnknown *punkSrc,
1565 [in] DWORD dwRemoveFlags);
1566
1567 HRESULT FindToolbar(
1568 [in] LPCWSTR pwszItem,
1569 [in] REFIID riid,
1570 [out] LPVOID *ppvObj);
1571}
1572
1573
1574/*****************************************************************************
1575 * IDragSourceHelper interface
1576 */
1577[
1578 object,
1579 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
1580 pointer_default(unique),
1581 local
1582]
1583interface IDragSourceHelper : IUnknown
1584{
1585 typedef struct
1586 {
1587 SIZE sizeDragImage;
1588 POINT ptOffset;
1589 HBITMAP hbmpDragImage;
1590 COLORREF crColorKey;
1591 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
1592
1593 HRESULT InitializeFromBitmap(
1594 [in] LPSHDRAGIMAGE pshdi,
1595 [in] IDataObject *pDataObject);
1596
1597 HRESULT InitializeFromWindow(
1598 [in] HWND hwnd,
1599 [in] POINT *ppt,
1600 [in] IDataObject *pDataObject);
1601}
1602
1603
1604/*****************************************************************************
1605 * IDropTargetHelper interface
1606 */
1607[
1608 object,
1609 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
1610 pointer_default(unique),
1611 local
1612]
1613interface IDropTargetHelper : IUnknown
1614{
1615 HRESULT DragEnter(
1616 [in] HWND hwndTarget,
1617 [in] IDataObject *pDataObject,
1618 [in] POINT *ppt,
1619 [in] DWORD dwEffect);
1620
1621 HRESULT DragLeave();
1622
1623 HRESULT DragOver(
1624 [in] POINT *ppt,
1625 [in] DWORD dwEffect);
1626
1627 HRESULT Drop(
1628 [in] IDataObject *pDataObject,
1629 [in] POINT *ppt,
1630 [in] DWORD dwEffect);
1631
1632 HRESULT Show( [in] BOOL fShow );
1633}
1634
1635
1636/*****************************************************************************
1637 * IContextMenu interface
1638 */
1639[
1640 object,
1641 uuid(000214e4-0000-0000-c000-000000000046),
1642 pointer_default(unique),
1643 local
1644]
1645interface IContextMenu : IUnknown
1646{
1647cpp_quote("#define CMF_NORMAL 0x00000000")
1648cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
1649cpp_quote("#define CMF_VERBSONLY 0x00000002")
1650cpp_quote("#define CMF_EXPLORE 0x00000004")
1651cpp_quote("#define CMF_NOVERBS 0x00000008")
1652cpp_quote("#define CMF_CANRENAME 0x00000010")
1653cpp_quote("#define CMF_NODEFAULT 0x00000020")
1654cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
1655cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
1656cpp_quote("#define CMF_DISABLEDVERBS 0x00000200")
1657cpp_quote("#define CMF_ASYNCVERBSTATE 0x00000400")
1658cpp_quote("#define CMF_OPTIMIZEFORINVOKE 0x00000800")
1659cpp_quote("#define CMF_SYNCCASCADEMENU 0x00001000")
1660cpp_quote("#define CMF_DONOTPICKDEFAULT 0x00002000")
1661cpp_quote("#define CMF_RESERVED 0xffff0000")
1662
1663cpp_quote("#define GCS_VERBA 0x00000000")
1664cpp_quote("#define GCS_HELPTEXTA 0x00000001")
1665cpp_quote("#define GCS_VALIDATEA 0x00000002")
1666cpp_quote("#define GCS_VERBW 0x00000004")
1667cpp_quote("#define GCS_HELPTEXTW 0x00000005")
1668cpp_quote("#define GCS_VALIDATEW 0x00000006")
1669cpp_quote("#define GCS_UNICODE 0x00000004")
1670cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1671cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1672cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1673
1674cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1675cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
1676cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1677cpp_quote("#if defined(__GNUC__)")
1678cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1679cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1680cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1681cpp_quote("#elif defined(_MSC_VER)")
1682cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1683cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1684cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1685cpp_quote("#else")
1686cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1687cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1688cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1689cpp_quote("#endif")
1690cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1691cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1692cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1693
1694cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1695cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
1696cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1697cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1698cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1699cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1700cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1701cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1702cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1703cpp_quote("#define CMIC_MASK_NOASYNC SEE_MASK_NOASYNC")
1704cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1705cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
1706cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1707cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1708cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1709
1710 typedef IContextMenu *LPCONTEXTMENU;
1711
1712 typedef struct tagCMINVOKECOMMANDINFO
1713 {
1714 DWORD cbSize;
1715 DWORD fMask;
1716 HWND hwnd;
1717 LPCSTR lpVerb;
1718 LPCSTR lpParameters;
1719 LPCSTR lpDirectory;
1720 INT nShow;
1721 DWORD dwHotKey;
1722 HANDLE hIcon;
1723 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1724
1725 typedef struct tagCMInvokeCommandInfoEx
1726 {
1727 DWORD cbSize;
1728 DWORD fMask;
1729 HWND hwnd;
1730 LPCSTR lpVerb;
1731 LPCSTR lpParameters;
1732 LPCSTR lpDirectory;
1733 INT nShow;
1734 DWORD dwHotKey;
1735 HANDLE hIcon;
1736 LPCSTR lpTitle;
1737 LPCWSTR lpVerbW;
1738 LPCWSTR lpParametersW;
1739 LPCWSTR lpDirectoryW;
1740 LPCWSTR lpTitleW;
1741 POINT ptInvoke;
1742 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1743
1744 HRESULT QueryContextMenu(
1745 [in] HMENU hmenu,
1746 [in] UINT indexMenu,
1747 [in] UINT idCmdFirst,
1748 [in] UINT idCmdLast,
1749 [in] UINT uFlags);
1750
1751 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1752
1753 HRESULT GetCommandString(
1754 [in] UINT_PTR idCmd,
1755 [in] UINT uType,
1756 [out] UINT *pwReserved,
1757 [out, size_is(cchMax)] LPSTR pszName,
1758 [in] UINT cchMax);
1759}
1760
1761
1762/*****************************************************************************
1763 * IContextMenu2 interface
1764 */
1765[
1766 object,
1767 uuid(000214f4-0000-0000-c000-000000000046),
1768 pointer_default(unique),
1769 local
1770]
1771interface IContextMenu2 : IContextMenu
1772{
1773 typedef IContextMenu2 *LPCONTEXTMENU2;
1774
1775 HRESULT HandleMenuMsg(
1776 [in] UINT uMsg,
1777 [in] WPARAM wParam,
1778 [in] LPARAM lParam);
1779}
1780
1781
1782/*****************************************************************************
1783 * IContextMenu3 interface
1784 */
1785[
1786 object,
1787 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1788 pointer_default(unique),
1789 local
1790]
1791interface IContextMenu3 : IContextMenu2
1792{
1793 typedef IContextMenu3 *LPCONTEXTMENU3;
1794
1795 HRESULT HandleMenuMsg2(
1796 [in] UINT uMsg,
1797 [in] WPARAM wParam,
1798 [in] LPARAM lParam,
1799 [out] LRESULT *plResult);
1800}
1801
1802/*****************************************************************************
1803 * IContextMenuCB interface
1804 */
1805
1806[
1807 object,
1808 uuid(3409e930-5a39-11d1-83fa-00a0c90dc849),
1809 pointer_default(unique),
1810 local
1811]
1812interface IContextMenuCB : IUnknown
1813{
1814 HRESULT CallBack(
1815 [in] IShellFolder *psf,
1816 [in] HWND hwndOwner,
1817 [in] IDataObject *pdtobj,
1818 [in] UINT uMsg,
1819 [in] WPARAM wParam,
1820 [in] LPARAM lParam);
1821}
1822
1823/*****************************************************************************
1824 * IShellExecuteHookA interface
1825 */
1826[
1827 object,
1828 uuid(000214f5-0000-0000-c000-000000000046),
1829 pointer_default(unique),
1830 local
1831]
1832interface IShellExecuteHookA : IUnknown
1833{
1834 cpp_quote("struct _SHELLEXECUTEINFOA;")
1835 HRESULT Execute(
1836 [in, out] struct _SHELLEXECUTEINFOA* pei);
1837}
1838
1839
1840/*****************************************************************************
1841 * IShellExecuteHookW interface
1842 */
1843[
1844 object,
1845 uuid(000214fb-0000-0000-c000-000000000046),
1846 pointer_default(unique),
1847 local
1848]
1849interface IShellExecuteHookW : IUnknown
1850{
1851 cpp_quote("struct _SHELLEXECUTEINFOW;")
1852 HRESULT Execute(
1853 [in, out] struct _SHELLEXECUTEINFOW* pei);
1854}
1855
1856/*****************************************************************************
1857 * IShellLinkDataList interface
1858 */
1859[
1860 object,
1861 uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
1862 pointer_default(unique)
1863]
1864interface IShellLinkDataList : IUnknown
1865{
1866 [local] HRESULT AddDataBlock(
1867 [in] void *pDataBlock);
1868 [local] HRESULT CopyDataBlock(
1869 [in] DWORD dwSig,
1870 [out] void **ppDataBlock);
1871 HRESULT RemoveDataBlock(
1872 [in] DWORD dwSig);
1873 HRESULT GetFlags(
1874 [out] DWORD *pdwFlags);
1875 HRESULT SetFlags(
1876 [in] DWORD dwFlags);
1877}
1878
1879
1880/*****************************************************************************
1881 * IResolveShellLink interface
1882 */
1883[
1884 object,
1885 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1886 pointer_default(unique)
1887]
1888interface IResolveShellLink : IUnknown
1889{
1890 HRESULT ResolveShellLink(
1891 [in] IUnknown *punk,
1892 [in] HWND hwnd,
1893 [in] DWORD fFlags);
1894}
1895
1896
1897/*****************************************************************************
1898 * IURLSearchHook interface
1899 */
1900[
1901 object,
1902 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1903 pointer_default(unique),
1904 local
1905]
1906interface IURLSearchHook : IUnknown
1907{
1908 HRESULT Translate(
1909 [in, out] LPWSTR lpwszSearchURL,
1910 [in] DWORD cchBufferSize);
1911}
1912
1913
1914/*****************************************************************************
1915 * ISearchContext interface
1916 */
1917[
1918 object,
1919 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1920 pointer_default(unique),
1921 local
1922]
1923interface ISearchContext : IUnknown
1924{
1925 HRESULT GetSearchUrl(
1926 [in] BSTR *pbstrSearchUrl);
1927 HRESULT GetSearchText(
1928 [in] BSTR *pbstrSearchText);
1929 HRESULT GetSearchStyle(
1930 [in] BSTR *pdwSearchStyle);
1931}
1932
1933
1934/*****************************************************************************
1935 * IURLSearchHook2 interface
1936 */
1937[
1938 object,
1939 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1940 pointer_default(unique),
1941 local
1942]
1943interface IURLSearchHook2 : IURLSearchHook
1944{
1945 HRESULT TranslateWithSearchContext(
1946 [in, out] LPWSTR lpwszSearchURL,
1947 [in] DWORD cchBufferSize,
1948 [in] ISearchContext *pSearchContext);
1949}
1950
1951
1952cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1953
1954/*****************************************************************************
1955 * INewShortcutHookA interface
1956 */
1957[
1958 object,
1959 uuid(000214e1-0000-0000-c000-000000000046),
1960 pointer_default(unique),
1961 local
1962]
1963interface INewShortcutHookA : IUnknown
1964{
1965 HRESULT SetReferent(
1966 [in] LPCSTR pcszReferent,
1967 [in] HWND hwnd);
1968 HRESULT GetReferent(
1969 [out] LPSTR pcszReferent,
1970 [in] int cchReferent);
1971 HRESULT SetFolder(
1972 [in] LPCSTR pcszReferent);
1973 HRESULT GetFolder(
1974 [out] LPSTR pcszReferent,
1975 [in] int cchFolder);
1976 HRESULT GetName(
1977 [out] LPSTR pszName,
1978 [in] int cchName);
1979 HRESULT GetExtension(
1980 [out] LPSTR pszExtension,
1981 [in] int cchExtension);
1982}
1983
1984
1985/*****************************************************************************
1986 * INewShortcutHookW interface
1987 */
1988[
1989 object,
1990 uuid(000214f7-0000-0000-c000-000000000046),
1991 pointer_default(unique),
1992 local
1993]
1994interface INewShortcutHookW : IUnknown
1995{
1996 HRESULT SetReferent(
1997 [in] LPCWSTR pcszReferent,
1998 [in] HWND hwnd);
1999 HRESULT GetReferent(
2000 [out] LPWSTR pcszReferent,
2001 [in] int cchReferent);
2002 HRESULT SetFolder(
2003 [in] LPCWSTR pcszReferent);
2004 HRESULT GetFolder(
2005 [out] LPWSTR pcszReferent,
2006 [in] int cchFolder);
2007 HRESULT GetName(
2008 [out] LPWSTR pszName,
2009 [in] int cchName);
2010 HRESULT GetExtension(
2011 [out] LPWSTR pszExtension,
2012 [in] int cchExtension);
2013}
2014
2015/*****************************************************************************
2016 * IRunnableTask interface
2017 */
2018[
2019 object,
2020 uuid(85788d00-6807-11d0-b810-00c04fd706ec),
2021 pointer_default(unique),
2022 local
2023]
2024interface IRunnableTask : IUnknown
2025{
2026 HRESULT Run();
2027 HRESULT Kill([in] BOOL fWait);
2028 HRESULT Suspend();
2029 HRESULT Resume();
2030 ULONG IsRunning();
2031}
2032
2033/*****************************************************************************
2034 * IShellChangeNotify interface
2035 */
2036[
2037 object,
2038 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
2039 pointer_default(unique),
2040 local
2041]
2042interface IShellChangeNotify : IUnknown
2043{
2044 HRESULT OnChange(
2045 [in] LONG lEvent,
2046 [in] PCIDLIST_ABSOLUTE pidl1,
2047 [in] PCIDLIST_ABSOLUTE pidl2);
2048}
2049
2050cpp_quote("#define STR_FILE_SYS_BIND_DATA L\"File System Bind Data\"")
2051
2052/*****************************************************************************
2053 * IFileSystemBindData interface
2054 */
2055[
2056 object,
2057 uuid(01e18d10-4d8b-11d2-855d-006008059367),
2059 local
2060]
2062{
2064 [in] const WIN32_FIND_DATAW *pfd);
2067}
2068
2069/*****************************************************************************
2070 * ITaskbarList interface
2071 */
2072[
2073 object,
2074 uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
2076]
2078{
2080
2082 [in] HWND hwnd);
2083
2085 [in] HWND hwnd);
2086
2088 [in] HWND hwnd);
2089
2091 [in] HWND hwnd);
2092}
2093
2094/*****************************************************************************
2095 * ITaskbarList2 interface
2096 */
2097[
2098 object,
2099 uuid(602D4995-B13A-429B-A66E-1935E44F4317),
2101]
2103{
2105 [in] HWND hwnd,
2106 [in] BOOL fullscreen);
2107}
2108
2109cpp_quote("#ifdef MIDL_PASS")
2111cpp_quote("#endif")
2112
2113typedef [v1_enum] enum THUMBBUTTONFLAGS {
2114 THBF_ENABLED = 0x0000,
2115 THBF_DISABLED = 0x0001,
2116 THBF_DISMISSONCLICK = 0x0002,
2117 THBF_NOBACKGROUND = 0x0004,
2118 THBF_HIDDEN = 0x0008,
2119 THBF_NONINTERACTIVE = 0x0010
2120} THUMBBUTTONFLAGS;
2121
2122cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONFLAGS)")
2123
2124typedef [v1_enum] enum THUMBBUTTONMASK {
2125 THB_BITMAP = 0x0001,
2126 THB_ICON = 0x0002,
2127 THB_TOOLTIP = 0x0004,
2128 THB_FLAGS = 0x0008
2129} THUMBBUTTONMASK;
2130
2131cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(THUMBBUTTONMASK)")
2132
2133cpp_quote("#include <pshpack8.h>")
2134typedef struct THUMBBUTTON {
2135 THUMBBUTTONMASK dwMask;
2136 UINT iId;
2137 UINT iBitmap;
2138 HICON hIcon;
2139 WCHAR szTip[260];
2140 THUMBBUTTONFLAGS dwFlags;
2141} THUMBBUTTON, *LPTHUMBBUTTON;
2142cpp_quote("#include <poppack.h>")
2143
2144[
2145 uuid(ea1afb91-9e28-4b86-90e9-9e9f8a5eefaf),
2146 object
2147]
2148interface ITaskbarList3 : ITaskbarList2
2149{
2150 typedef [v1_enum] enum TBPFLAG {
2151 TBPF_NOPROGRESS = 0x0000,
2152 TBPF_INDETERMINATE = 0x0001,
2153 TBPF_NORMAL = 0x0002,
2154 TBPF_ERROR = 0x0004,
2155 TBPF_PAUSED = 0x0008
2156 } TBPFLAG;
2157
2158 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(TBPFLAG)")
2159
2160 HRESULT SetProgressValue(
2161 [in] HWND hwnd,
2162 [in] ULONGLONG ullCompleted,
2163 [in] ULONGLONG ullTotal);
2164
2165 HRESULT SetProgressState(
2166 [in] HWND hwnd,
2167 [in] TBPFLAG tbpFlags);
2168
2169 HRESULT RegisterTab(
2170 [in] HWND hwndTab,
2171 [in] HWND hwndMDI);
2172
2173 HRESULT UnregisterTab([in] HWND hwndTab);
2174
2175 HRESULT SetTabOrder(
2176 [in] HWND hwndTab,
2177 [in] HWND hwndInsertBefore);
2178
2179 HRESULT SetTabActive(
2180 [in] HWND hwndTab,
2181 [in] HWND hwndMDI,
2182 [in] DWORD dwReserved);
2183
2184 HRESULT ThumbBarAddButtons(
2185 [in] HWND hwnd,
2186 [in] UINT cButtons,
2187 [in, size_is(cButtons)] LPTHUMBBUTTON pButton);
2188
2189 HRESULT ThumbBarUpdateButtons(
2190 [in] HWND hwnd,
2191 [in] UINT cButtons,
2192 [in, size_is(cButtons)] LPTHUMBBUTTON pButton);
2193
2194 HRESULT ThumbBarSetImageList(
2195 [in] HWND hwnd,
2196 [in] HIMAGELIST himl);
2197
2198 HRESULT SetOverlayIcon(
2199 [in] HWND hwnd,
2200 [in] HICON hIcon,
2201 [in, unique, string] LPCWSTR pszDescription);
2202
2203 HRESULT SetThumbnailTooltip(
2204 [in] HWND hwnd,
2205 [in, unique, string] LPCWSTR pszTip);
2206
2207 HRESULT SetThumbnailClip(
2208 [in] HWND hwnd,
2209 [in] RECT *prcClip);
2210}
2211
2212[
2213 uuid(c43dc798-95d1-4bea-9030-bb99e2983a1a),
2214 object
2215]
2216interface ITaskbarList4 : ITaskbarList3
2217{
2218 typedef [v1_enum] enum STPFLAG {
2219 STPF_NONE = 0x0000,
2220 STPF_USEAPPTHUMBNAILALWAYS = 0x0001,
2221 STPF_USEAPPTHUMBNAILWHENACTIVE = 0x0002,
2222 STPF_USEAPPPEEKALWAYS = 0x0004,
2223 STPF_USEAPPPEEKWHENACTIVE = 0x0008
2224 } STPFLAG;
2225
2226 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(STPFLAG)")
2227
2228 HRESULT SetTabProperties(
2229 [in] HWND hwndTab,
2230 [in] STPFLAG stpFlags);
2231}
2232
2233/*****************************************************************************
2234 * IDefaultExtractIconInit interface
2235 */
2236
2237[
2238 object,
2239 uuid(800AB0B8-F5FA-4e72-8FF3-B1A243B87BD9), /* FIXME: wrong value! */
2240 pointer_default(unique),
2241 local
2242]
2243interface IDefaultExtractIconInit : IUnknown
2244{
2245 HRESULT SetDefaultIcon(
2246 [in] LPCWSTR pszFile,
2247 [in] int iIcon);
2248 HRESULT SetFlags(
2249 [in] UINT uFlags);
2250 HRESULT SetKey(
2251 [in] HKEY hkey);
2252 HRESULT SetNormalIcon(
2253 [in] LPCWSTR pszFile,
2254 [in] int iIcon);
2255 HRESULT SetOpenIcon(
2256 [in] LPCWSTR pszFile,
2257 [in] int iIcon);
2258 HRESULT SetShortcutIcon(
2259 [in] LPCWSTR pszFile,
2260 [in] int iIcon);
2261}
2262
2263
2264#ifdef __REACTOS__
2265/*****************************************************************************
2266 * IExplorerCommand interface (Vista+)
2267 */
2268
2269interface IEnumExplorerCommand;
2270
2271[
2272 uuid(A08CE4D0-FA25-44AB-B57C-C7B1C323E0B9),
2273 pointer_default(unique)
2274]
2275interface IExplorerCommand : IUnknown
2276{
2277 cpp_quote("// GetIcon(ppszIcon) Receives resource string that identifies icon source")
2278 typedef [v1_enum] enum _EXPCMDSTATE
2279 {
2280 ECS_ENABLED = 0x000,
2281 ECS_DISABLED = 0x001,
2282 ECS_HIDDEN = 0x002,
2283 ECS_CHECKBOX = 0x004,
2284 ECS_CHECKED = 0x008,
2285 ECS_RADIOCHECK = 0x010, // Windows 7
2286 } EXPCMDSTATE;
2287
2288 typedef [v1_enum] enum _EXPCMDFLAGS
2289 {
2290 ECF_DEFAULT = 0x000,
2291 ECF_HASSUBCOMMANDS = 0x001,
2292 ECF_HASSPLITBUTTON = 0x002,
2293 ECF_HIDELABEL = 0x004,
2294 ECF_ISSEPARATOR = 0x008,
2295 ECF_HASLUASHIELD = 0x010,
2296 ECF_SEPARATORBEFORE = 0x020, // Windows 7
2297 ECF_SEPARATORAFTER = 0x040, // Windows 7
2298 ECF_ISDROPDOWN = 0x080, // Windows 7
2299 ECF_TOGGLEABLE = 0x100, // Windows 8
2300 ECF_AUTOMENUICONS = 0x200, // Windows 8
2301 } EXPCMDFLAGS;
2302
2303 HRESULT GetTitle(
2304 [in, unique] IShellItemArray *psiItemArray,
2305 [out, string] LPWSTR *ppszName);
2306 HRESULT GetIcon(
2307 [in, unique] IShellItemArray *psiItemArray,
2308 [out, string] LPWSTR *ppszIcon);
2309 HRESULT GetToolTip(
2310 [in, unique] IShellItemArray *psiItemArray,
2311 [out, string] LPWSTR *ppszInfotip);
2312 HRESULT GetCanonicalName(
2313 [out] GUID* pguidCommandName);
2315 [in] IShellItemArray *psiItemArray,
2316 [in] BOOL fOkToBeSlow,
2317 [out] EXPCMDSTATE *pCmdState);
2318 HRESULT Invoke(
2319 [in] IShellItemArray *psiItemArray,
2320 [in, unique] IBindCtx *pbc);
2321 HRESULT GetFlags(
2322 [out] EXPCMDFLAGS *pFlags);
2323 HRESULT EnumSubCommands(
2324 [out] IEnumExplorerCommand **ppEnum);
2325};
2326
2327
2328/*****************************************************************************
2329 * IExplorerCommandState interface (Vista+)
2330 */
2331[
2332 object,
2333 uuid(BDDACB60-7657-47AE-8445-D23E1ACF82AE),
2335]
2336interface IExplorerCommandState : IUnknown
2337{
2339 [in] IShellItemArray *psiItemArray,
2340 [in] BOOL fOkToBeSlow,
2341 [out] EXPCMDSTATE *pCmdState);
2342}
2343
2344
2345/*****************************************************************************
2346 * IInitializeCommand interface (Vista+)
2347 */
2348[
2349 object,
2350 uuid(85075ACF-231F-40EA-9610-D26B7B58F638),
2352]
2353interface IInitializeCommand : IUnknown
2354{
2356 [in, string] LPCWSTR pszCommandName,
2357 [in, optional] IPropertyBag *ppb);
2358}
2359
2360
2361/*****************************************************************************
2362 * IEnumExplorerCommand interface (Vista+)
2363 */
2364[
2365 object,
2366 uuid(A88826F8-186F-4987-AADE-EA0CEF8FBFE8),
2368]
2369interface IEnumExplorerCommand : IUnknown
2370{
2371 [local]
2372 HRESULT Next(
2373 [in] ULONG celt,
2374 [out] IExplorerCommand** pUICommand,
2375 [out, optional] ULONG *pceltFetched);
2376 [call_as(Next)]
2377 HRESULT RemoteNext(
2378 [in] ULONG celt,
2379 [out] IExplorerCommand** pUICommand,
2380 [out, optional] ULONG *pceltFetched);
2381 HRESULT Skip(
2382 [in] ULONG celt);
2383 HRESULT Reset();
2384 HRESULT Clone(
2385 [out] IEnumExplorerCommand **ppenum);
2386};
2387
2388
2389/*****************************************************************************
2390 * IExplorerCommandProvider interface (Vista+)
2391 */
2392[
2393 uuid(64961751-0835-43C0-8FFE-D57686530E64),
2395]
2396interface IExplorerCommandProvider : IUnknown
2397{
2398 cpp_quote("// GetCommands usually creates an IEnumExplorerCommand")
2399 cpp_quote("// GetCommand usually creates an IExplorerCommand")
2400
2401 HRESULT GetCommands(
2402 [in] IUnknown *punkSite,
2403 [in] REFIID riid,
2404 [out, iid_is(riid)] void **ppv);
2405 HRESULT GetCommand(
2406 [in] REFGUID rguidCommandId,
2407 [in] REFIID riid,
2408 [out, iid_is(riid)] void **ppv);
2409};
2410
2411
2412/*****************************************************************************
2413 * IExecuteCommand interface (7+)
2414 */
2415[
2416 uuid(7F9185B0-CB92-43C5-80A9-92277A4F7B54),
2418]
2419interface IExecuteCommand : IUnknown
2420{
2421 HRESULT SetKeyState([in] DWORD grfKeyState);
2422 HRESULT SetParameters([in, string] LPCWSTR pszParameters);
2423 HRESULT SetPosition([in] POINT pt);
2424 HRESULT SetShowWindow([in] int nShow);
2425 HRESULT SetNoShowUI([in] BOOL fNoShowUI);
2426 HRESULT SetDirectory([in, string] LPCWSTR pszDirectory);
2427 HRESULT Execute();
2428};
2429
2430
2431/*****************************************************************************
2432 * IObjectWithSelection interface (Vista+)
2433 */
2434[
2435 uuid(1C9CD5BB-98E9-4491-A60F-31AACC72B83C),
2437]
2438interface IObjectWithSelection : IUnknown
2439{
2440 HRESULT SetSelection([in] IShellItemArray *psia);
2441 HRESULT GetSelection([in] REFIID riid, [out, iid_is(riid)] void **ppv);
2442};
2443
2444
2445/*****************************************************************************
2446 * IOpenControlPanel interface (Vista+)
2447 */
2448[
2449 object,
2450 uuid(D11AD862-66DE-4DF4-BF6C-1F5621996AF1),
2452]
2453interface IOpenControlPanel : IUnknown
2454{
2455 typedef [v1_enum] enum CPVIEW
2456 {
2457 CPVIEW_CLASSIC = 0,
2458 CPVIEW_CATEGORY = 1,
2459 CPVIEW_ALLITEMS = CPVIEW_CLASSIC,
2460 CPVIEW_HOME = CPVIEW_CATEGORY
2461 } CPVIEW;
2462
2463 HRESULT Open(
2464 [in, optional] LPCWSTR pszName,
2465 [in, optional] LPCWSTR pszPage,
2466 [in, optional] IUnknown *punkSite);
2468 [in, optional] LPCWSTR pszName,
2469 [out, string, size_is(cchPath)] LPWSTR pszPath,
2470 [in] UINT cchPath);
2471 HRESULT GetCurrentView(
2472 [out] CPVIEW *pView);
2473}
2474
2475#endif // __REACTOS__
2476
2477/*****************************************************************************
2478 * IDeskBand interface
2479 */
2480cpp_quote("#define DBIM_MINSIZE 0x0001")
2481cpp_quote("#define DBIM_MAXSIZE 0x0002")
2482cpp_quote("#define DBIM_INTEGRAL 0x0004")
2483cpp_quote("#define DBIM_ACTUAL 0x0008")
2484cpp_quote("#define DBIM_TITLE 0x0010")
2485cpp_quote("#define DBIM_MODEFLAGS 0x0020")
2486cpp_quote("#define DBIM_BKCOLOR 0x0040")
2487
2488cpp_quote("#include <pshpack8.h>")
2489
2490typedef struct tagDESKBANDINFO
2491{
2492 DWORD dwMask;
2493 POINTL ptMinSize;
2494 POINTL ptMaxSize;
2495 POINTL ptIntegral;
2496 POINTL ptActual;
2497 WCHAR wszTitle[256];
2498 DWORD dwModeFlags;
2499 COLORREF crBkgnd;
2500} DESKBANDINFO;
2501
2502cpp_quote("#include <poppack.h>")
2503
2504cpp_quote("#define DBIMF_NORMAL 0x0000")
2505cpp_quote("#define DBIMF_FIXED 0x0001")
2506cpp_quote("#define DBIMF_FIXEDBMP 0x0004 // a fixed background bitmap (if supported)")
2507cpp_quote("#define DBIMF_VARIABLEHEIGHT 0x0008")
2508cpp_quote("#define DBIMF_UNDELETEABLE 0x0010")
2509cpp_quote("#define DBIMF_DEBOSSED 0x0020")
2510cpp_quote("#define DBIMF_BKCOLOR 0x0040")
2511cpp_quote("#define DBIMF_USECHEVRON 0x0080")
2512cpp_quote("#define DBIMF_BREAK 0x0100")
2513cpp_quote("#define DBIMF_ADDTOFRONT 0x0200")
2514cpp_quote("#define DBIMF_TOPALIGN 0x0400")
2515cpp_quote("#if (NTDDI_VERSION >= NTDDI_LONGHORN)")
2516cpp_quote("#define DBIMF_NOGRIPPER 0x0800")
2517cpp_quote("#define DBIMF_ALWAYSGRIPPER 0x1000")
2518cpp_quote("#define DBIMF_NOMARGINS 0x2000")
2519cpp_quote("#endif // NTDDI_LONGHORN")
2520
2521cpp_quote("#define DBIF_VIEWMODE_NORMAL 0x0000")
2522cpp_quote("#define DBIF_VIEWMODE_VERTICAL 0x0001")
2523cpp_quote("#define DBIF_VIEWMODE_FLOATING 0x0002")
2524cpp_quote("#define DBIF_VIEWMODE_TRANSPARENT 0x0004")
2525
2526enum tagDESKBANDCID {
2527 DBID_BANDINFOCHANGED = 0,
2528 DBID_SHOWONLY = 1,
2529 DBID_MAXIMIZEBAND = 2,
2530 DBID_PUSHCHEVRON = 3,
2531 DBID_DELAYINIT = 4,
2532 DBID_FINISHINIT = 5,
2533 DBID_SETWINDOWTHEME = 6,
2534 DBID_PERMITAUTOHIDE = 7,
2535};
2536
2537cpp_quote("#define DBPC_SELECTFIRST (DWORD)-1")
2538cpp_quote("#define DBPC_SELECTLAST (DWORD)-2")
2539
2540cpp_quote("#define CGID_DeskBand IID_IDeskBand")
2541
2542[
2543 uuid(EB0FE172-1A3A-11D0-89B3-00A0C90A90AC),
2544 object,
2545]
2546interface IDeskBand : IDockingWindow
2547{
2548 HRESULT GetBandInfo(
2549 [in] DWORD dwBandID,
2550 [in] DWORD dwViewMode,
2551 [in, out] DESKBANDINFO* pdbi);
2552}
2553
2554cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60)")
2555
2556[
2557 uuid(EB0FE173-1A3A-11D0-89B3-00A0C90A90AC),
2558 object,
2559 pointer_default(unique),
2560 local
2561]
2562interface IDeskBar : IOleWindow
2563{
2564 HRESULT SetClient([in] IUnknown* punkClient);
2565
2566 HRESULT GetClient([out] IUnknown** ppunkClient);
2567
2568 HRESULT OnPosRectChangeDB([in] RECT *prc);
2569}
2570
2571
2572/*****************************************************************************
2573 * IMenuPopup interface
2574 */
2575[
2576 uuid(D1E7AFEB-6A2E-11d0-8C78-00C04FD918B4),
2577 object,
2578 pointer_default(unique),
2579 local
2580]
2581interface IMenuPopup : IDeskBar
2582{
2583 enum tagMENUPOPUPSELECT
2584 {
2585 MPOS_EXECUTE = 0,
2586 MPOS_FULLCANCEL,
2587 MPOS_CANCELLEVEL,
2588 MPOS_SELECTLEFT,
2589 MPOS_SELECTRIGHT,
2590 MPOS_CHILDTRACKING
2592
2593 enum tagMENUPOPUPPOPUPFLAGS
2594 {
2595 MPPF_SETFOCUS = 0x00000001,
2596 MPPF_INITIALSELECT = 0x00000002,
2597 MPPF_NOANIMATE = 0x00000004,
2598 MPPF_KEYBOARD = 0x00000010,
2599 MPPF_REPOSITION = 0x00000020,
2600 MPPF_FORCEZORDER = 0x00000040,
2601 MPPF_FINALSELECT = 0x00000080,
2602 MPPF_TOP = 0x20000000,
2603 MPPF_LEFT = 0x40000000,
2604 MPPF_RIGHT = 0x60000000,
2605 MPPF_BOTTOM = 0x80000000,
2606 MPPF_POS_MASK = 0xE0000000,
2607 MPPF_ALIGN_LEFT = 0x02000000,
2608 MPPF_ALIGN_RIGHT = 0x04000000
2610 typedef int MP_POPUPFLAGS;
2611
2612 HRESULT Popup(
2613 [in] POINTL *ppt,
2614 [in] RECTL *prcExclude,
2615 [in] MP_POPUPFLAGS dwFlags);
2616
2617 HRESULT OnSelect([in] DWORD dwSelectType);
2618
2619 HRESULT SetSubMenu(
2620 [in] IMenuPopup* pmp,
2621 [in] BOOL fSet);
2622}
2623
2624cpp_quote("#endif /* _WIN32_IE_IE60 */")
2625
2626cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE40)")
2627
2628/*****************************************************************************
2629 * IBandSite interface
2630 */
2631cpp_quote("#include <pshpack8.h>")
2632
2633typedef struct tagBANDSITEINFO
2634{
2635 DWORD dwMask;
2636 DWORD dwState;
2637 DWORD dwStyle;
2638} BANDSITEINFO;
2639
2640cpp_quote("#include <poppack.h>")
2641
2642
2643enum tagBANDSITECID {
2644 BSID_BANDADDED,
2645 BSID_BANDREMOVED,
2646};
2647
2648cpp_quote("#define BSIM_STATE 0x00000001")
2649cpp_quote("#define BSIM_STYLE 0x00000002")
2650
2651cpp_quote("#define BSSF_VISIBLE 0x00000001")
2652cpp_quote("#define BSSF_NOTITLE 0x00000002")
2653cpp_quote("#define BSSF_UNDELETEABLE 0x00001000")
2654
2655cpp_quote("#define BSIS_AUTOGRIPPER 0x00000000")
2656cpp_quote("#define BSIS_NOGRIPPER 0x00000001")
2657cpp_quote("#define BSIS_ALWAYSGRIPPER 0x00000002")
2658cpp_quote("#define BSIS_LEFTALIGN 0x00000004")
2659cpp_quote("#define BSIS_SINGLECLICK 0x00000008")
2660cpp_quote("#define BSIS_NOCONTEXTMENU 0x00000010")
2661cpp_quote("#define BSIS_NODROPTARGET 0x00000020")
2662cpp_quote("#define BSIS_NOCAPTION 0x00000040")
2663cpp_quote("#define BSIS_PREFERNOLINEBREAK 0x00000080")
2664cpp_quote("#define BSIS_LOCKED 0x00000100")
2665cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
2666cpp_quote("#define BSIS_PRESERVEORDERDURINGLAYOUT 0x00000200")
2667cpp_quote("#endif /* _WIN32_IE_IE70 */")
2668
2669cpp_quote("#define SID_SBandSite IID_IBandSite")
2670cpp_quote("#define CGID_BandSite IID_IBandSite")
2671
2672[
2673 object,
2674 uuid(4CF504B0-DE96-11D0-8B3F-00A0C911E8E5)
2675]
2676interface IBandSite : IUnknown
2677{
2678 HRESULT AddBand([in] IUnknown* punk);
2679
2680 HRESULT EnumBands(
2681 [in] UINT uBand,
2682 [out] DWORD* pdwBandID);
2683
2684 HRESULT QueryBand(
2685 [in] DWORD dwBandID,
2686 [out] IDeskBand** ppstb,
2687 [out] DWORD* pdwState,
2688 [out, string, size_is(cchName)] LPWSTR pszName,
2689 [in] int cchName);
2690
2691 HRESULT SetBandState(
2692 [in] DWORD dwBandID,
2693 [in] DWORD dwMask,
2694 [in] DWORD dwState);
2695
2696 HRESULT RemoveBand([in] DWORD dwBandID);
2697
2698 HRESULT GetBandObject(
2699 [in] DWORD dwBandID,
2700 [in] REFIID riid,
2701 [out, iid_is(riid)] void **ppv);
2702
2703 HRESULT SetBandSiteInfo([in] const BANDSITEINFO *pbsinfo);
2704
2705 HRESULT GetBandSiteInfo([in, out] BANDSITEINFO *pbsinfo);
2706}
2707
2708cpp_quote("#endif /* _WIN32_IE_IE40 */")
2709
2710/*****************************************************************************
2711 * IMenuBand interface
2712 */
2713[
2714 uuid(568804CD-CBD7-11d0-9816-00C04FD91972),
2715 object,
2716 pointer_default(unique),
2717 local
2718]
2719interface IMenuBand : IUnknown
2720{
2721 enum tagMENUBANDHANDLERCID {
2722 MBHANDCID_PIDLSELECT = 0,
2723 };
2724
2725 HRESULT IsMenuMessage([in] MSG* pmsg);
2726
2727 HRESULT TranslateMenuMessage(
2728 [in, out] MSG* pmsg,
2729 [out] LRESULT* plRet);
2730}
2731
2732/*****************************************************************************
2733 * IShellMenuCallback interface
2734 */
2735cpp_quote("#include <pshpack8.h>")
2736
2737typedef struct tagSMDATA
2738{
2739 DWORD dwMask;
2740 DWORD dwFlags;
2741 HMENU hmenu;
2742 HWND hwnd;
2743 UINT uId;
2744 UINT uIdParent;
2745 UINT uIdAncestor;
2746 IUnknown *punk;
2747 PIDLIST_ABSOLUTE pidlFolder;
2748 PUITEMID_CHILD pidlItem;
2749 IShellFolder *psf;
2750 void *pvUserData;
2751} SMDATA, *LPSMDATA;
2752
2753cpp_quote("#define SMDM_SHELLFOLDER 0x00000001")
2754cpp_quote("#define SMDM_HMENU 0x00000002")
2755cpp_quote("#define SMDM_TOOLBAR 0x00000004")
2756
2757typedef struct tagSMINFO
2758{
2759 DWORD dwMask;
2760 DWORD dwType;
2761 DWORD dwFlags;
2762 int iIcon;
2763} SMINFO, *PSMINFO;
2764
2765typedef struct tagSHCSCHANGENOTIFYSTRUCT
2766{
2767 LONG lEvent;
2768 PCIDLIST_ABSOLUTE pidl1;
2769 PCIDLIST_ABSOLUTE pidl2;
2770} SMCSHCHANGENOTIFYSTRUCT, *PSMCSHCHANGENOTIFYSTRUCT;
2771
2772cpp_quote("#include <poppack.h>")
2773
2774enum
2775{
2776 SMIM_TYPE = 0x00000001,
2777 SMIM_FLAGS = 0x00000002,
2778 SMIM_ICON = 0x00000004
2780
2781enum
2782{
2783 SMIT_SEPARATOR = 0x00000001,
2784 SMIT_STRING = 0x00000002
2786
2787enum
2788{
2789 SMIF_ICON = 0x00000001,
2790 SMIF_ACCELERATOR = 0x00000002,
2791 SMIF_DROPTARGET = 0x00000004,
2792 SMIF_SUBMENU = 0x00000008,
2793 SMIF_CHECKED = 0x00000020,
2794 SMIF_DROPCASCADE = 0x00000040,
2795 SMIF_HIDDEN = 0x00000080,
2796 SMIF_DISABLED = 0x00000100,
2797 SMIF_TRACKPOPUP = 0x00000200,
2798 SMIF_DEMOTED = 0x00000400,
2799 SMIF_ALTSTATE = 0x00000800,
2800 SMIF_DRAGNDROP = 0x00001000,
2801 SMIF_NEW = 0x00002000,
2802};
2803
2804
2805cpp_quote("#define SMC_INITMENU 0x00000001")
2806cpp_quote("#define SMC_CREATE 0x00000002")
2807cpp_quote("#define SMC_EXITMENU 0x00000003")
2808cpp_quote("#define SMC_GETINFO 0x00000005")
2809cpp_quote("#define SMC_GETSFINFO 0x00000006")
2810cpp_quote("#define SMC_GETOBJECT 0x00000007")
2811cpp_quote("#define SMC_GETSFOBJECT 0x00000008")
2812cpp_quote("#define SMC_SFEXEC 0x00000009")
2813cpp_quote("#define SMC_SFSELECTITEM 0x0000000A")
2814cpp_quote("#define SMC_REFRESH 0x00000010")
2815cpp_quote("#define SMC_DEMOTE 0x00000011")
2816cpp_quote("#define SMC_PROMOTE 0x00000012")
2817cpp_quote("#define SMC_DEFAULTICON 0x00000016")
2818cpp_quote("#define SMC_NEWITEM 0x00000017")
2819cpp_quote("#define SMC_CHEVRONEXPAND 0x00000019")
2820cpp_quote("#define SMC_DISPLAYCHEVRONTIP 0x0000002A")
2821cpp_quote("#define SMC_SETSFOBJECT 0x0000002D")
2822cpp_quote("#define SMC_SHCHANGENOTIFY 0x0000002E")
2823cpp_quote("#define SMC_CHEVRONGETTIP 0x0000002F")
2824cpp_quote("#define SMC_SFDDRESTRICTED 0x00000030")
2825
2826[
2827 uuid(4CA300A1-9B8D-11d1-8B22-00C04FD918D0),
2828 object,
2829 pointer_default(unique),
2830 local
2831]
2832interface IShellMenuCallback : IUnknown
2833{
2834 HRESULT CallbackSM(
2835 [in, out] LPSMDATA psmd,
2836 [in] UINT uMsg,
2837 [in] WPARAM wParam,
2838 [in] LPARAM lParam);
2839}
2840
2841
2842/*****************************************************************************
2843 * IShellMenu interface
2844 */
2845
2846cpp_quote("#define SMINIT_DEFAULT 0x00000000")
2847cpp_quote("#define SMINIT_RESTRICT_DRAGDROP 0x00000002")
2848cpp_quote("#define SMINIT_TOPLEVEL 0x00000004")
2849cpp_quote("#define SMINIT_CACHED 0x00000010")
2850cpp_quote("#define SMINIT_VERTICAL 0x10000000")
2851cpp_quote("#define SMINIT_HORIZONTAL 0x20000000")
2852cpp_quote("")
2853cpp_quote("#define ANCESTORDEFAULT (UINT)-1")
2854cpp_quote("")
2855cpp_quote("#define SMSET_TOP 0x10000000")
2856cpp_quote("#define SMSET_BOTTOM 0x20000000")
2857cpp_quote("#define SMSET_DONTOWN 0x00000001")
2858cpp_quote("")
2859cpp_quote("#define SMINV_REFRESH 0x00000001")
2860cpp_quote("#define SMINV_ID 0x00000008")
2861
2862[
2863 uuid(EE1F7637-E138-11d1-8379-00C04FD918D0),
2864 object,
2865 pointer_default(unique),
2866 local
2867]
2868interface IShellMenu : IUnknown
2869{
2870 HRESULT Initialize(
2871 [in] IShellMenuCallback *psmc,
2872 [in] UINT uId,
2873 [in] UINT uIdAncestor,
2874 [in] DWORD dwFlags);
2875
2876 HRESULT GetMenuInfo(
2877 [out] IShellMenuCallback **ppsmc,
2878 [out] UINT *puId,
2879 [out] UINT *puIdAncestor,
2880 [out] DWORD *pdwFlags);
2881
2882 HRESULT SetShellFolder(
2883 [in] IShellFolder *psf,
2884 [in] PCIDLIST_ABSOLUTE pidlFolder,
2885 [in] HKEY hKey,
2886 [in] DWORD dwFlags);
2887
2888 HRESULT GetShellFolder(
2889 [out] DWORD *pdwFlags,
2890 [out] PIDLIST_ABSOLUTE *ppidl,
2891 [in] REFIID riid,
2892 [out] void **ppv);
2893
2894 HRESULT SetMenu(
2895 [in] HMENU hmenu,
2896 [in] HWND hwnd,
2897 [in] DWORD dwFlags);
2898
2899 HRESULT GetMenu(
2900 [out] HMENU *phmenu,
2901 [out] HWND *phwnd,
2902 [out] DWORD *pdwFlags);
2903
2904 HRESULT InvalidateItem(
2905 [in] LPSMDATA psmd,
2906 [in] DWORD dwFlags);
2907
2908 HRESULT GetState(
2909 [out] LPSMDATA psmd);
2910
2911 HRESULT SetMenuToolbar(
2912 [in] IUnknown *punk,
2913 [in] DWORD dwFlags);
2914}
2915
2916cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60)")
2917
2918/*****************************************************************************
2919 * ITrackShellMenu interface
2920 */
2921[
2922 uuid(8278F932-2A3E-11d2-838F-00C04FD918D0),
2923 object,
2924 pointer_default(unique),
2925 local
2926]
2927interface ITrackShellMenu : IShellMenu
2928{
2929 HRESULT SetObscured(
2930 [in] HWND hwndTB,
2931 [in] IUnknown *punkBand,
2932 DWORD dwSMSetFlags);
2933
2934 HRESULT Popup(
2935 [in] HWND hwnd,
2936 [in] POINTL *ppt,
2937 [in] RECTL *prcExclude,
2938 MP_POPUPFLAGS dwFlags);
2939};
2940
2941cpp_quote("#endif /* _WIN32_IE_IE60 */")
2942
2943/*****************************************************************************
2944 * IAutoCompleteDropDown interface
2945 */
2946[
2947 object,
2948 uuid(3CD141F4-3C6A-11d2-BCAA-00C04FD929DB),
2949 pointer_default(unique)
2950]
2951interface IAutoCompleteDropDown : IUnknown
2952{
2953cpp_quote("#define ACDD_VISIBLE 0x0001")
2954
2955 HRESULT GetDropDownStatus(
2956 [out] DWORD *pdwFlags,
2957 [out, string] LPWSTR *ppwszString);
2958
2959 HRESULT ResetEnumerator();
2960}
2961
2962/*****************************************************************************
2963 * IProfferService interface
2964 */
2965[
2966 object,
2967 uuid(cb728b20-f786-11ce-92ad-00aa00a74cd0),
2968 pointer_default(unique)
2969]
2970interface IProfferService : IUnknown
2971{
2972 HRESULT ProfferService(
2973 [in] REFGUID service,
2974 [in] IServiceProvider *pService,
2975 [out] DWORD *pCookie);
2976
2977 HRESULT RevokeService([in] DWORD cookie);
2978}
2979
2980/*****************************************************************************
2981 * IExplorerBrowserEvents interface
2982 */
2983[
2984 object,
2985 uuid(361BBDC7-E6EE-4E13-BE58-58E2240C810F)
2986]
2987interface IExplorerBrowserEvents : IUnknown
2988{
2989 HRESULT OnNavigationPending(
2990 [in] PCIDLIST_ABSOLUTE pidlFolder);
2991
2992 HRESULT OnViewCreated(
2993 [in] IShellView *psv);
2994
2995 HRESULT OnNavigationComplete(
2996 [in] PCIDLIST_ABSOLUTE pidlFolder);
2997
2998 HRESULT OnNavigationFailed(
2999 [in] PCIDLIST_ABSOLUTE pidlFolder);
3000}
3001
3002typedef GUID EXPLORERPANE;
3003typedef EXPLORERPANE *REFEXPLORERPANE;
3004
3005cpp_quote("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
3006
3007/*****************************************************************************
3008 * IExplorerPaneVisibility interface
3009 */
3010[
3011 object,
3012 uuid(E07010EC-BC17-44C0-97B0-46C7C95B9EDC)
3013]
3014interface IExplorerPaneVisibility : IUnknown
3015{
3016 typedef enum tagEXPLORERPANESTATE {
3017 EPS_DONTCARE = 0x0,
3018 EPS_DEFAULT_ON = 0x1,
3019 EPS_DEFAULT_OFF = 0x2,
3020 EPS_STATE_MASK = 0xffff,
3021 EPS_INITIALSTATE = 0x10000,
3022 EPS_FORCE = 0x20000
3023 } EXPLORERPANESTATE;
3024
3025 HRESULT GetPaneState(
3026 [in] REFEXPLORERPANE ep,
3027 [out] EXPLORERPANESTATE *peps);
3028}
3029
3030typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS {
3031 EBF_NONE = 0,
3032 EBF_SELECTFROMDATAOBJECT = 0x100,
3033 EBF_NODROPTARGET = 0x200
3034} EXPLORER_BROWSER_FILL_FLAGS;
3035
3036typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS {
3037 EBO_NONE = 0x00,
3038 EBO_NAVIGATEONCE = 0x01,
3039 EBO_SHOWFRAMES = 0x02,
3040 EBO_ALWAYSNAVIGATE = 0x04,
3041 EBO_NOTRAVELLOG = 0x08,
3042 EBO_NOWRAPPERWINDOW = 0x10,
3043 EBO_HTMLSHAREPOINTVIEW = 0x20,
3044 EBO_NOBORDER = 0x40,
3045 EBO_NOPERSISTVIEWSTATE = 0x80,
3046} EXPLORER_BROWSER_OPTIONS;
3047
3048cpp_quote("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
3049
3050/*****************************************************************************
3051 * IExplorerBrowser interface
3052 */
3053[
3054 object,
3055 uuid(DFD3B6B5-C10C-4BE9-85F6-A66969F402F6),
3056 pointer_default(unique)
3057]
3058interface IExplorerBrowser : IUnknown
3059{
3060
3061 [local] HRESULT Initialize(
3062 [in] HWND hwndParent,
3063 [in] const RECT *prc,
3064 [in, unique] const FOLDERSETTINGS *pfs);
3065
3066 HRESULT Destroy();
3067
3068 [local] HRESULT SetRect(
3069 [in,out,unique] HDWP *phdwp,
3070 [in] RECT rcBrowser);
3071
3072 HRESULT SetPropertyBag(
3073 [in, string] LPCWSTR pszPropertyBag);
3074
3075 HRESULT SetEmptyText(
3076 [in, string] LPCWSTR pszEmptyText);
3077
3078 HRESULT SetFolderSettings(
3079 [in] const FOLDERSETTINGS *pfs);
3080
3081 HRESULT Advise(
3082 [in] IExplorerBrowserEvents *psbe,
3083 [out] DWORD *pdwCookie);
3084
3085 HRESULT Unadvise(
3086 [in] DWORD dwCookie);
3087
3088 HRESULT SetOptions(
3089 [in] EXPLORER_BROWSER_OPTIONS dwFlag);
3090
3091 HRESULT GetOptions(
3092 [out] EXPLORER_BROWSER_OPTIONS *pdwFlag);
3093
3094 HRESULT BrowseToIDList(
3095 [in] PCUIDLIST_RELATIVE pidl,
3096 [in] UINT uFlags);
3097
3098 HRESULT BrowseToObject(
3099 [in] IUnknown *punk,
3100 [in] UINT uFlags);
3101
3102 HRESULT FillFromObject(
3103 [in] IUnknown *punk,
3104 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags);
3105
3106 HRESULT RemoveAll();
3107
3108 HRESULT GetCurrentView(
3109 [in] REFIID riid,
3110 [out, iid_is(riid)] void **ppv);
3111}
3112
3113/*****************************************************************************
3114 * INameSpaceTreeControl interface
3115 */
3116[
3117 object,
3118 uuid(028212A3-B627-47E9-8856-C14265554E4F)
3119]
3120interface INameSpaceTreeControl : IUnknown
3121{
3122 [v1_enum] enum _NSTCSTYLE {
3123 NSTCS_HASEXPANDOS = 0x00000001,
3124 NSTCS_HASLINES = 0x00000002,
3125 NSTCS_SINGLECLICKEXPAND = 0x00000004,
3126 NSTCS_FULLROWSELECT = 0x00000008,
3127 NSTCS_SPRINGEXPAND = 0x00000010,
3128 NSTCS_HORIZONTALSCROLL = 0x00000020,
3129 NSTCS_ROOTHASEXPANDO = 0x00000040,
3130 NSTCS_SHOWSELECTIONALWAYS = 0x00000080,
3131 NSTCS_NOINFOTIP = 0x00000200,
3132 NSTCS_EVENHEIGHT = 0x00000400,
3133 NSTCS_NOREPLACEOPEN = 0x00000800,
3134 NSTCS_DISABLEDRAGDROP = 0x00001000,
3135 NSTCS_NOORDERSTREAM = 0x00002000,
3136 NSTCS_RICHTOOLTIP = 0x00004000,
3137 NSTCS_BORDER = 0x00008000,
3138 NSTCS_NOEDITLABELS = 0x00010000,
3139 NSTCS_TABSTOP = 0x00020000,
3140 NSTCS_FAVORITESMODE = 0x00080000,
3141 NSTCS_AUTOHSCROLL = 0x00100000,
3142 NSTCS_FADEINOUTEXPANDOS = 0x00200000,
3143 NSTCS_EMPTYTEXT = 0x00400000,
3144 NSTCS_CHECKBOXES = 0x00800000,
3145 NSTCS_PARTIALCHECKBOXES = 0x01000000,
3146 NSTCS_EXCLUSIONCHECKBOXES = 0x02000000,
3147 NSTCS_DIMMEDCHECKBOXES = 0x04000000,
3148 NSTCS_NOINDENTCHECKS = 0x08000000,
3149 NSTCS_ALLOWJUNCTIONS = 0x10000000,
3150 NSTCS_SHOWTABSBUTTON = 0x20000000,
3151 NSTCS_SHOWDELETEBUTTON = 0x40000000,
3152 NSTCS_SHOWREFRESHBUTTON = (int)0x80000000
3154 typedef DWORD NSTCSTYLE;
3155
3156 [v1_enum] enum _NSTCROOTSTYLE {
3157 NSTCRS_VISIBLE = 0x0000,
3158 NSTCRS_HIDDEN = 0x0001,
3159 NSTCRS_EXPANDED = 0x0002
3161 typedef DWORD NSTCROOTSTYLE;
3162
3163 [v1_enum] enum _NSTCITEMSTATE {
3164 NSTCIS_NONE = 0x0000,
3165 NSTCIS_SELECTED = 0x0001,
3166 NSTCIS_EXPANDED = 0x0002,
3167 NSTCIS_BOLD = 0x0004,
3168 NSTCIS_DISABLED = 0x0008,
3169 NSTCIS_SELECTEDNOEXPAND = 0x0010
3171 typedef DWORD NSTCITEMSTATE;
3172
3173 typedef [v1_enum] enum NSTCGNI {
3174 NSTCGNI_NEXT = 0,
3175 NSTCGNI_NEXTVISIBLE = 1,
3176 NSTCGNI_PREV = 2,
3177 NSTCGNI_PREVVISIBLE = 3,
3178 NSTCGNI_PARENT = 4,
3179 NSTCGNI_CHILD = 5,
3180 NSTCGNI_FIRSTVISIBLE = 6,
3181 NSTCGNI_LASTVISIBLE = 7
3182 } NSTCGNI;
3183
3184 HRESULT Initialize(
3185 [in] HWND hwndParent,
3186 [in, unique] RECT *prc,
3187 [in] NSTCSTYLE nstcsFlags);
3188
3189 HRESULT TreeAdvise(
3190 [in] IUnknown *punk,
3191 [out] DWORD *pdwCookie);
3192
3193 HRESULT TreeUnadvise(
3194 [in] DWORD dwCookie);
3195
3196 HRESULT AppendRoot(
3197 [in] IShellItem *psiRoot,
3198 [in] SHCONTF grfEnumFlags,
3199 [in] NSTCROOTSTYLE grfRootStyle,
3200 [in, unique] IShellItemFilter *pif);
3201
3202 HRESULT InsertRoot(
3203 [in] int iIndex,
3204 [in] IShellItem *psiRoot,
3205 [in] SHCONTF grfEnumFlags,
3206 [in] NSTCROOTSTYLE grfRootStyle,
3207 [in, unique] IShellItemFilter *pif);
3208
3209 HRESULT RemoveRoot(
3210 [in] IShellItem *psiRoot);
3211
3212 HRESULT RemoveAllRoots();
3213
3214 HRESULT GetRootItems(
3215 [out] IShellItemArray **ppsiaRootItems);
3216
3217 HRESULT SetItemState(
3218 [in] IShellItem *psi,
3219 [in] NSTCITEMSTATE nstcisMask,
3220 [in] NSTCITEMSTATE nstcisFlags);
3221
3222 HRESULT GetItemState(
3223 [in] IShellItem *psi,
3224 [in] NSTCITEMSTATE nstcismask,
3225 [out] NSTCITEMSTATE *pnstcisFlags);
3226
3227 HRESULT GetSelectedItems(
3228 [out] IShellItemArray **psiaItems);
3229
3230 HRESULT GetItemCustomState(
3231 [in] IShellItem *psi,
3232 [out] int *piStateNumber);
3233
3234 HRESULT SetItemCustomState(
3235 [in] IShellItem *psi,
3236 [in] int iStateNumber);
3237
3238 HRESULT EnsureItemVisible(
3239 [in] IShellItem *psi);
3240
3241 HRESULT SetTheme(
3242 [in, string] LPCWSTR pszTheme);
3243
3244 HRESULT GetNextItem(
3245 [in, unique] IShellItem *psi,
3246 [in] NSTCGNI nstcgi,
3247 [out] IShellItem **ppsiNext);
3248
3249 HRESULT HitTest(
3250 [in] POINT *ppt,
3251 [out] IShellItem **ppsiOut);
3252
3253 HRESULT GetItemRect(
3254 [in] IShellItem *psi,
3255 [out] RECT *prect);
3256
3257 HRESULT CollapseAll();
3258}
3259
3260/*****************************************************************************
3261 * INameSpaceTreeControl2 interface
3262 */
3263[
3264 object,
3265 uuid(7CC7AED8-290E-49BC-8945-C1401CC9306C)
3266]
3267interface INameSpaceTreeControl2 : INameSpaceTreeControl
3268{
3269 typedef [v1_enum] enum NSTCSTYLE2 {
3270 NSTCS2_DEFAULT = 0x00,
3271 NSTCS2_INTERRUPTNOTIFICATIONS = 0x01,
3272 NSTCS2_SHOWNULLSPACEMENU = 0x02,
3273 NSTCS2_DISPLAYPADDING = 0x04,
3274 NSTCS2_DISPLAYPINNEDONLY = 0x08,
3275 NTSCS2_NOSINGLETONAUTOEXPAND = 0x10, /* The apparent typo here is */
3276 NTSCS2_NEVERINSERTNONENUMERATED = 0x20 /* present also in the Win SDK */
3277 } NSTCSTYLE2;
3278 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(NSTCSTYLE2)")
3279
3280 HRESULT SetControlStyle(
3281 [in] NSTCSTYLE nstcsMask,
3282 [in] NSTCSTYLE nstcsStyle);
3283
3284 HRESULT GetControlStyle(
3285 [in] NSTCSTYLE nstcsMask,
3286 [out] NSTCSTYLE *pnstcsStyle);
3287
3288 HRESULT SetControlStyle2(
3289 [in] NSTCSTYLE2 nstcsMask,
3290 [in] NSTCSTYLE2 nstcsStyle);
3291
3292 HRESULT GetControlStyle2(
3293 [in] NSTCSTYLE2 nstcsMask,
3294 [out] NSTCSTYLE2 *pnstcsStyle);
3295}
3296
3297/*****************************************************************************
3298 * INameSpaceTreeControlEvents interface
3299 */
3300
3301[
3302 object,
3303 uuid(93D77985-B3D8-4484-8318-672CDDA002CE),
3304 local
3305]
3306interface INameSpaceTreeControlEvents : IUnknown
3307{
3308 [v1_enum] enum _NSTCEHITTEST {
3309 NSTCEHT_NOWHERE = 0x0001,
3310 NSTCEHT_ONITEMICON = 0x0002,
3311 NSTCEHT_ONITEMLABEL = 0x0004,
3312 NSTCEHT_ONITEMIDENT = 0x0008,
3313 NSTCEHT_ONITEMBUTTON = 0x0010,
3314 NSTCEHT_ONITEMRIGHT = 0x0020,
3315 NSTCEHT_ONITEMSTATEICON = 0x0040,
3316 NSTCEHT_ONITEM = 0x0046,
3317 NSTCEHT_ONITEMTABBUTTON = 0x1000
3319 typedef DWORD NSTCEHITTEST;
3320
3321 [v1_enum] enum _NSTCECLICKTYPE {
3322 NSTCECT_LBUTTON = 0x1,
3323 NSTCECT_MBUTTON = 0x2,
3324 NSTCECT_RBUTTON = 0x3,
3325 NSTCECT_BUTTON = 0x3,
3326 NSTCECT_DBLCLICK = 0x4
3328 typedef DWORD NSTCECLICKTYPE;
3329
3330 HRESULT OnItemClick(
3331 [in] IShellItem *psi,
3332 [in] NSTCEHITTEST nstceHitTest,
3333 [in] NSTCECLICKTYPE nstceClickType);
3334
3335 HRESULT OnPropertyItemCommit(
3336 [in] IShellItem *psi);
3337
3338 HRESULT OnItemStateChanging(
3339 [in] IShellItem *psi,
3340 [in] NSTCITEMSTATE nstcisMask,
3341 [in] NSTCITEMSTATE nstcisState);
3342
3343 HRESULT OnItemStateChanged(
3344 [in] IShellItem *psi,
3345 [in] NSTCITEMSTATE nstcisMask,
3346 [in] NSTCITEMSTATE nstcisState);
3347
3348 HRESULT OnSelectionChanged(
3349 [in] IShellItemArray *psiaSelection);
3350
3351 HRESULT OnKeyboardInput(
3352 [in] UINT uMsg,
3353 [in] WPARAM wParam,
3354 [in] LPARAM lParam);
3355
3356 HRESULT OnBeforeExpand(
3357 [in] IShellItem *psi);
3358
3359 HRESULT OnAfterExpand(
3360 [in] IShellItem *psi);
3361
3362 HRESULT OnBeginLabelEdit(
3363 [in] IShellItem *psi);
3364
3365 HRESULT OnEndLabelEdit(
3366 [in] IShellItem *psi);
3367
3368 HRESULT OnGetToolTip(
3369 [in] IShellItem *psi,
3370 [out, string, size_is(cchTip)] LPWSTR pszTip,
3371 [in] int cchTip);
3372
3373 HRESULT OnBeforeItemDelete(
3374 [in] IShellItem *psi);
3375
3376 HRESULT OnItemAdded(
3377 [in] IShellItem *psi,
3378 [in] BOOL fIsRoot);
3379
3380 HRESULT OnItemDeleted(
3381 [in] IShellItem *psi,
3382 [in] BOOL fIsRoot);
3383
3384 HRESULT OnBeforeContextMenu(
3385 [in, unique] IShellItem *psi,
3386 [in] REFIID riid,
3387 [out, iid_is(riid)] void **ppv);
3388
3389 HRESULT OnAfterContextMenu(
3390 [in] IShellItem *psi,
3391 [in] IContextMenu *pcmIn,
3392 [in] REFIID riid,
3393 [out, iid_is(riid)] void **ppv);
3394
3395 HRESULT OnBeforeStateImageChange(
3396 [in] IShellItem *psi);
3397
3398 HRESULT OnGetDefaultIconIndex(
3399 [in] IShellItem *psi,
3400 [out] int *piDefaultIcon,
3401 [out] int *piOpenIcon);
3402}
3403
3404/*****************************************************************************
3405 * INameSpaceTreeControlCustomDraw interface
3406 */
3407[
3408 object,
3409 uuid(2D3BA758-33EE-42D5-BB7B-5F3431D86C78),
3410 local
3411]
3412
3413interface INameSpaceTreeControlCustomDraw : IUnknown
3414{
3415 typedef struct NSTCCUSTOMDRAW
3416 {
3417 IShellItem *psi;
3418 UINT uItemState;
3419 NSTCITEMSTATE nstcis;
3420 LPCWSTR pszText;
3421 int iImage;
3422 HIMAGELIST himl;
3423 int iLevel;
3424 int iIndent;
3425 } NSTCCUSTOMDRAW;
3426
3427 HRESULT PrePaint(
3428 [in] HDC hdc,
3429 [in] RECT *prc,
3430 [out] LRESULT *plres);
3431
3432 HRESULT PostPaint(
3433 [in] HDC hdc,
3434 [in] RECT *prc);
3435
3436 HRESULT ItemPrePaint(
3437 [in] HDC hdc,
3438 [in] RECT *prc,
3439 [in, out] COLORREF *pclrText,
3440 [in, out] COLORREF *pclrTextBk,
3441 [out] LRESULT *plres);
3442
3443 HRESULT ItemPostPaint(
3444 [in] HDC hdc,
3445 [in] RECT *prc,
3446 [in] NSTCCUSTOMDRAW *pnstccdItem);
3447}
3448
3449/*****************************************************************************
3450 * INameSpaceTreeControlDropHandler interface
3451 */
3452[
3453 object,
3454 uuid(F9C665D6-C2F2-4C19-BF33-8322D7352F51),
3455 local
3456]
3457interface INameSpaceTreeControlDropHandler : IUnknown
3458{
3459 HRESULT OnDragEnter(
3460 [in, unique] IShellItem *psiOver,
3461 [in] IShellItemArray *psiaData,
3462 [in] BOOL fOutsideSource,
3463 [in] DWORD grfKeyState,
3464 [in, out] DWORD *pdwEffect);
3465
3466 HRESULT OnDragOver(
3467 [in, unique] IShellItem *psiOver,
3468 [in] IShellItemArray *psiaData,
3469 [in] DWORD grfKeyState,
3470 [in, out] DWORD *pdwEffect);
3471
3472 HRESULT OnDragPosition(
3473 [in, unique] IShellItem *psiOver,
3474 [in] IShellItemArray *psiaData,
3475 [in] int iNewPosition,
3476 [in] int iOldPosition);
3477
3478 HRESULT OnDrop(
3479 [in, unique] IShellItem *psiOver,
3480 [in] IShellItemArray *psiaData,
3481 [in] int iPosition,
3482 [in] DWORD grfKeyState,
3483 [in, out] DWORD *pdwEffect);
3484
3485 HRESULT OnDropPosition(
3486 [in, unique] IShellItem *psiOver,
3487 [in] IShellItemArray *psiaData,
3488 [in] int iNewPosition,
3489 [in] int iOldPosition);
3490
3491 HRESULT OnDragLeave(
3492 [in, unique] IShellItem *psiOver);
3493}
3494cpp_quote("#define NSTCDHPOS_ONTOP -1")
3495
3496interface IFileDialog;
3497
3498typedef [v1_enum] enum FDE_OVERWRITE_RESPONSE
3499{
3500 FDEOR_DEFAULT = 0,
3501 FDEOR_ACCEPT = 1,
3502 FDEOR_REFUSE = 2
3503} FDE_OVERWRITE_RESPONSE;
3504
3505typedef [v1_enum] enum FDE_SHAREVIOLATION_RESPONSE
3506{
3507 FDESVR_DEFAULT = 0,
3508 FDESVR_ACCEPT = 1,
3509 FDESVR_REFUSE = 2
3510} FDE_SHAREVIOLATION_RESPONSE;
3511
3512/*****************************************************************************
3513 * IFileDialogEvents interface
3514 */
3515[
3516 object,
3517 uuid(973510DB-7D7F-452B-8975-74A85828D354),
3518 pointer_default(unique)
3519]
3520interface IFileDialogEvents : IUnknown
3521{
3522 HRESULT OnFileOk(
3523 [in] IFileDialog *pfd);
3524
3525 HRESULT OnFolderChanging(
3526 [in] IFileDialog *pfd,
3527 [in] IShellItem *psiFolder);
3528
3529 HRESULT OnFolderChange(
3530 [in] IFileDialog *pfd);
3531
3532 HRESULT OnSelectionChange(
3533 [in] IFileDialog *pfd);
3534
3535 HRESULT OnShareViolation(
3536 [in] IFileDialog *pfd,
3537 [in] IShellItem *psi,
3538 [out] FDE_SHAREVIOLATION_RESPONSE *pResponse);
3539
3540 HRESULT OnTypeChange(
3541 [in] IFileDialog *pfd);
3542
3543 HRESULT OnOverwrite(
3544 [in] IFileDialog *pfd,
3545 [in] IShellItem *psi,
3546 [out] FDE_OVERWRITE_RESPONSE *pResponse);
3547}
3548
3549/*****************************************************************************
3550 * IModalWindow interface
3551 */
3552[
3553 object,
3554 uuid(B4DB1657-70D7-485E-8E3E-6FCB5A5C1802),
3555 pointer_default(unique)
3556]
3557interface IModalWindow : IUnknown
3558{
3559 [local]
3560 HRESULT Show(
3561 [in, unique, annotation("__in_opt")] HWND hwndOwner);
3562
3563 [call_as(Show)]
3564 HRESULT RemoteShow(
3565 [in, unique] HWND hwndOwner);
3566}
3567
3568typedef [v1_enum] enum FDAP
3569{
3570 FDAP_BOTTOM = 0,
3571 FDAP_TOP = 1
3572} FDAP;
3573
3574/*****************************************************************************
3575 * IFileDialog interface
3576 */
3577[
3578 object,
3579 uuid(42F85136-DB7E-439C-85F1-E4075D135FC8),
3580 pointer_default(unique)
3581]
3582interface IFileDialog : IModalWindow
3583{
3584 [v1_enum] enum _FILEOPENDIALOGOPTIONS
3585 {
3586 FOS_OVERWRITEPROMPT = 0x00000002,
3587 FOS_STRICTFILETYPES = 0x00000004,
3588 FOS_NOCHANGEDIR = 0x00000008,
3589 FOS_PICKFOLDERS = 0x00000020,
3590 FOS_FORCEFILESYSTEM = 0x00000040,
3591 FOS_ALLNONSTORAGEITEMS = 0x00000080,
3592 FOS_NOVALIDATE = 0x00000100,
3593 FOS_ALLOWMULTISELECT = 0x00000200,
3594 FOS_PATHMUSTEXIST = 0x00000800,
3595 FOS_FILEMUSTEXIST = 0x00001000,
3596 FOS_CREATEPROMPT = 0x00002000,
3597 FOS_SHAREAWARE = 0x00004000,
3598 FOS_NOREADONLYRETURN = 0x00008000,
3599 FOS_NOTESTFILECREATE = 0x00010000,
3600 FOS_HIDEMRUPLACES = 0x00020000,
3601 FOS_HIDEPINNEDPLACES = 0x00040000,
3602 FOS_NODEREFERENCELINKS = 0x00100000,
3603 FOS_DONTADDTORECENT = 0x02000000,
3604 FOS_FORCESHOWHIDDEN = 0x10000000,
3605 FOS_DEFAULTNOMINIMODE = 0x20000000,
3606 FOS_FORCEPREVIEWPANEON = 0x40000000
3608 typedef DWORD FILEOPENDIALOGOPTIONS;
3609
3610 HRESULT SetFileTypes(
3611 [in] UINT cFileTypes,
3612 [in, size_is(cFileTypes)] const COMDLG_FILTERSPEC *rgFilterSpec);
3613
3614 HRESULT SetFileTypeIndex(
3615 [in] UINT iFileType);
3616
3617 HRESULT GetFileTypeIndex(
3618 [out] UINT *piFileType);
3619
3620 HRESULT Advise(
3621 [in] IFileDialogEvents *pfde,
3622 [out] DWORD *pdwCookie);
3623
3624 HRESULT Unadvise(
3625 [in] DWORD dwCookie);
3626
3627 HRESULT SetOptions(
3628 [in] FILEOPENDIALOGOPTIONS fos);
3629
3630 HRESULT GetOptions(
3631 [in] FILEOPENDIALOGOPTIONS *pfos);
3632
3633 HRESULT SetDefaultFolder(
3634 [in] IShellItem *psi);
3635
3636 HRESULT SetFolder(
3637 [in] IShellItem *psi);
3638
3639 HRESULT GetFolder(
3640 [out] IShellItem **ppsi);
3641
3642 HRESULT GetCurrentSelection(
3643 [out] IShellItem **ppsi);
3644
3645 HRESULT SetFileName(
3646 [in, string] LPCWSTR pszName);
3647
3648 HRESULT GetFileName(
3649 [out, string] LPWSTR *pszName);
3650
3651 HRESULT SetTitle(
3652 [in, string] LPCWSTR pszTitle);
3653
3654 HRESULT SetOkButtonLabel(
3655 [in, string] LPCWSTR pszText);
3656
3657 HRESULT SetFileNameLabel(
3658 [in, string] LPCWSTR pszLabel);
3659
3660 HRESULT GetResult(
3661 [out] IShellItem **ppsi);
3662
3663 HRESULT AddPlace(
3664 [in] IShellItem *psi,
3665 [in] FDAP fdap);
3666
3667 HRESULT SetDefaultExtension(
3668 [in, string] LPCWSTR pszDefaultExtension);
3669
3670 HRESULT Close(
3671 [in] HRESULT hr);
3672
3673 HRESULT SetClientGuid(
3674 [in] REFGUID guid);
3675
3676 HRESULT ClearClientData();
3677
3678 HRESULT SetFilter(
3679 [in] IShellItemFilter *pFilter);
3680}
3681
3682/*****************************************************************************
3683 * IFileDialog2 interface
3684 */
3685[
3686 object,
3687 uuid(61744FC7-85B5-4791-A9B0-272276309B13),
3688 pointer_default(unique)
3689]
3690interface IFileDialog2 : IFileDialog
3691{
3692 HRESULT SetCancelButtonLabel(
3693 [in] LPCWSTR pszLabel);
3694
3695 HRESULT SetNavigationRoot(
3696 [in] IShellItem *psi);
3697}
3698
3699/*****************************************************************************
3700 * IFileOperationProgressSink interface
3701 */
3702[
3703 object,
3704 uuid(04B0F1A7-9490-44BC-96E1-4296A31252E2),
3705 pointer_default(unique)
3706]
3707interface IFileOperationProgressSink : IUnknown
3708{
3709 HRESULT StartOperations();
3710
3711 HRESULT FinishOperations(
3712 [in] HRESULT hrResult);
3713
3714 HRESULT PreRenameItem(
3715 [in] DWORD dwFlags,
3716 [in] IShellItem *psiItem,
3717 [in, unique, string] LPCWSTR pszNewName);
3718
3719 HRESULT PostRenameItem(
3720 [in] DWORD dwFlags,
3721 [in] IShellItem *psiItem,
3722 [in, string] LPCWSTR pszNewName,
3723 [in] HRESULT hrRename,
3724 [in] IShellItem *psiNewlyCreated);
3725
3726 HRESULT PreMoveItem(
3727 [in] DWORD dwFlags,
3728 [in] IShellItem *psiItem,
3729 [in] IShellItem *psiDestinationFolder,
3730 [in, unique, string] LPCWSTR pszNewName);
3731
3732 HRESULT PostMoveItem(
3733 [in] DWORD dwFlags,
3734 [in] IShellItem *psiItem,
3735 [in] IShellItem *psiDestinationFolder,
3736 [in, unique, string] LPCWSTR pszNewName,
3737 [in] HRESULT hrMove,
3738 [in] IShellItem *psiNewlyCreated);
3739
3740 HRESULT PreCopyItem(
3741 [in] DWORD dwFlags,
3742 [in] IShellItem *psiItem,
3743 [in] IShellItem *psiDestinationFolder,
3744 [in, unique, string] LPCWSTR pszNewName);
3745
3746 HRESULT PostCopyItem(
3747 [in] DWORD dwFlags,
3748 [in] IShellItem *psiItem,
3749 [in] IShellItem *psiDestinationFolder,
3750 [in, unique, string] LPCWSTR pszNewName,
3751 [in] HRESULT hrCopy,
3752 [in] IShellItem *psiNewlyCreated);
3753
3754 HRESULT PreDeleteItem(
3755 [in] DWORD dwFlags,
3756 [in] IShellItem *psiItem);
3757
3758 HRESULT PostDeleteItem(
3759 [in] DWORD dwFlags,
3760 [in] IShellItem *psiItem,
3761 [in] HRESULT hrDelete,
3762 [in] IShellItem *psiNewlyCreated);
3763
3764 HRESULT PreNewItem(
3765 [in] DWORD dwFlags,
3766 [in] IShellItem *psiDestinationFolder,
3767 [in, unique, string] LPCWSTR pszNewName);
3768
3769 HRESULT PostNewItem(
3770 [in] DWORD dwFlags,
3771 [in] IShellItem *psiDestinationFolder,
3772 [in, unique, string] LPCWSTR pszNewName,
3773 [in, unique, string] LPCWSTR pszTemplateName,
3774 [in] DWORD dwFileAttributes,
3775 [in] HRESULT hrNew,
3776 [in] IShellItem *psiNewItem);
3777
3778 HRESULT UpdateProgress(
3779 [in] UINT iWorkTotal,
3780 [in] UINT iWorkSoFar);
3781
3782 HRESULT ResetTimer();
3783
3784 HRESULT PauseTimer();
3785
3786 HRESULT ResumeTimer();
3787}
3788
3789/*****************************************************************************
3790 * IFileSaveDialog interface
3791 */
3792[
3793 object,
3794 uuid(84BCCD23-5FDE-4CDB-AEA4-AF64B83D78AB),
3795 pointer_default(unique)
3796]
3797interface IFileSaveDialog : IFileDialog
3798{
3799 HRESULT SetSaveAsItem(
3800 [in] IShellItem *psi);
3801
3802 HRESULT SetProperties(
3803 [in] IPropertyStore *pStore);
3804
3805 HRESULT SetCollectedProperties(
3806 [in] IPropertyDescriptionList *pList,
3807 [in] BOOL fAppendDefault);
3808
3809 HRESULT GetProperties(
3810 [in] IPropertyStore **ppStore);
3811
3812 HRESULT ApplyProperties(
3813 [in] IShellItem *psi,
3814 [in] IPropertyStore *pStore,
3815 [in, unique] HWND hwnd,
3816 [in, unique] IFileOperationProgressSink *pSink);
3817}
3818
3819
3820/*****************************************************************************
3821 * IFileOpenDialog interface
3822 */
3823[
3824 object,
3825 uuid(D57C7288-D4AD-4768-BE02-9D969532D960),
3826 pointer_default(unique)
3827]
3828interface IFileOpenDialog : IFileDialog
3829{
3830 HRESULT GetResults(
3831 [out] IShellItemArray **ppenum);
3832
3833 HRESULT GetSelectedItems(
3834 [out] IShellItemArray **ppsai);
3835}
3836
3837typedef [v1_enum] enum CDCONTROLSTATEF
3838{
3839 CDCS_INACTIVE = 0x0,
3840 CDCS_ENABLED = 0x1,
3841 CDCS_VISIBLE = 0x2,
3842 CDCS_ENABLEDVISIBLE = 0x3
3843} CDCONTROLSTATEF;
3844cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(CDCONTROLSTATEF)")
3845/*****************************************************************************
3846 * IFileDialogCustomize interface
3847 */
3848[
3849 object,
3850 uuid(E6FDD21A-163F-4975-9C8C-A69F1BA37034),
3851 pointer_default(unique)
3852]
3853interface IFileDialogCustomize : IUnknown
3854{
3855 HRESULT EnableOpenDropDown(
3856 [in] DWORD dwIDCtl);
3857
3858 HRESULT AddMenu(
3859 [in] DWORD dwIDCtl,
3860 [in, string] LPCWSTR pszLabel);
3861
3862 HRESULT AddPushButton(
3863 [in] DWORD dwIDCtl,
3864 [in, string] LPCWSTR pszLabel);
3865
3866 HRESULT AddComboBox(
3867 [in] DWORD dwIDCtl);
3868
3869 HRESULT AddRadioButtonList(
3870 [in] DWORD dwIDCtl);
3871
3872 HRESULT AddCheckButton(
3873 [in] DWORD dwIDCtl,
3874 [in, string] LPCWSTR pszLabel,
3875 [in] BOOL bChecked);
3876
3877 HRESULT AddEditBox(
3878 [in] DWORD dwIDCtl,
3879 [in, string] LPCWSTR pszText);
3880
3881 HRESULT AddSeparator(
3882 [in] DWORD dwIDCtl);
3883
3884 HRESULT AddText(
3885 [in] DWORD dwIDCtl,
3886 [in, string] LPCWSTR pszText);
3887
3888 HRESULT SetControlLabel(
3889 [in] DWORD dwIDCtl,
3890 [in, string] LPCWSTR pszLabel);
3891
3892 HRESULT GetControlState(
3893 [in] DWORD dwIDCtl,
3894 [out] CDCONTROLSTATEF *pdwState);
3895
3896 HRESULT SetControlState(
3897 [in] DWORD dwIDCtl,
3898 [in] CDCONTROLSTATEF dwState);
3899
3900 HRESULT GetEditBoxText(
3901 [in] DWORD dwIDCtl,
3902 [out, string] WCHAR **ppszText);
3903
3904 HRESULT SetEditBoxText(
3905 [in] DWORD dwIDCtl,
3906 [in, string] LPCWSTR pszText);
3907
3908 HRESULT GetCheckButtonState(
3909 [in] DWORD dwIDCtl,
3910 [out] BOOL *pbChecked);
3911
3912 HRESULT SetCheckButtonState(
3913 [in] DWORD dwIDCtl,
3914 [in] BOOL bChecked);
3915
3916 HRESULT AddControlItem(
3917 [in] DWORD dwIDCtl,
3918 [in] DWORD dwIDItem,
3919 [in] LPCWSTR pszLabel);
3920
3921 HRESULT RemoveControlItem(
3922 [in] DWORD dwIDCtl,
3923 [in] DWORD dwIDItem);
3924
3925 HRESULT RemoveAllControlItems(
3926 [in] DWORD dwIDCtl);
3927
3928 HRESULT GetControlItemState(
3929 [in] DWORD dwIDCtl,
3930 [in] DWORD dwIDItem,
3931 [out] CDCONTROLSTATEF *pdwState);
3932
3933 HRESULT SetControlItemState(
3934 [in] DWORD dwIDCtl,
3935 [in] DWORD dwIDItem,
3936 [in] CDCONTROLSTATEF dwState);
3937
3938 HRESULT GetSelectedControlItem(
3939 [in] DWORD dwIDCtl,
3940 [out] DWORD *pdwIDItem);
3941
3942 HRESULT SetSelectedControlItem(
3943 [in] DWORD dwIDCtl,
3944 [in] DWORD dwIDItem);
3945
3946 HRESULT StartVisualGroup(
3947 [in] DWORD dwIDCtl,
3948 [in, string] LPCWSTR pszLabel);
3949
3950 HRESULT EndVisualGroup();
3951
3952 HRESULT MakeProminent(
3953 [in] DWORD dwIDCtl);
3954
3955 HRESULT SetControlItemText(
3956 [in] DWORD dwIDCtl,
3957 [in] DWORD dwIDItem,
3958 [in, string] LPCWSTR pszLabel);
3959}
3960
3961/*****************************************************************************
3962 * IFileDialogControlEvents interface
3963 */
3964[
3965 object,
3966 uuid(36116642-D713-4B97-9B83-7484A9D00433),
3967 pointer_default(unique)
3968]
3969interface IFileDialogControlEvents : IUnknown
3970{
3971 HRESULT OnItemSelected(
3972 [in] IFileDialogCustomize *pfdc,
3973 [in] DWORD dwIDCtl,
3974 [in] DWORD dwIDItem);
3975
3976 HRESULT OnButtonClicked(
3977 [in] IFileDialogCustomize *pfdc,
3978 [in] DWORD dwIDCtl);
3979
3980 HRESULT OnCheckButtonToggled(
3981 [in] IFileDialogCustomize *pfdc,
3982 [in] BOOL dwIDCtl,
3983 [in] BOOL bChecked);
3984
3985 HRESULT OnControlActivating(
3986 [in] IFileDialogCustomize *pfdc,
3987 [in] DWORD dwIDCtl);
3988}
3989
3990typedef [v1_enum] enum tagKF_CATEGORY
3991{
3992 KF_CATEGORY_VIRTUAL = 0x00000001,
3993 KF_CATEGORY_FIXED = 0x00000002,
3994 KF_CATEGORY_COMMON = 0x00000003,
3995 KF_CATEGORY_PERUSER = 0x00000004
3996} KF_CATEGORY;
3997
3998typedef [v1_enum] enum tagKF_REDIRECTION_CAPABILITIES
3999{
4000 KF_REDIRECTION_CAPABILITIES_ALLOW_ALL = 0x000000ff,
4001 KF_REDIRECTION_CAPABILITIES_REDIRECTABLE = 0x00000001,
4002 KF_REDIRECTION_CAPABILITIES_DENY_ALL = 0x000fff00,
4003 KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED = 0x00000100,
4004 KF_REDIRECTION_CAPABILITIES_DENY_POLICY = 0x00000200,
4005 KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS = 0x00000400
4006} KF_REDIRECTION_CAPABILITIES;
4007
4008typedef [v1_enum] enum tagKF_DEFINITION_FLAGS
4009{
4010 KFDF_LOCAL_REDIRECT_ONLY = 0x00000002,
4011 KFDF_ROAMABLE = 0x00000004,
4012 KFDF_PRECREATE = 0x00000008,
4013 KFDF_STREAM = 0x00000010,
4014 KFDF_PUBLISHEXPANDEDPATH = 0x00000020
4015} KF_DEFINITION_FLAGS;
4016
4017typedef struct tagKNOWNFOLDER_DEFINITION
4018{
4019 KF_CATEGORY category;
4020 LPWSTR pszName;
4021 LPWSTR pszDescription;
4022 KNOWNFOLDERID fidParent;
4023 LPWSTR pszRelativePath;
4024 LPWSTR pszParsingName;
4025 LPWSTR pszTooltip;
4026 LPWSTR pszLocalizedName;
4027 LPWSTR pszIcon;
4028 LPWSTR pszSecurity;
4029 DWORD dwAttributes;
4030 KF_DEFINITION_FLAGS kfdFlags;
4031 FOLDERTYPEID ftidType;
4032} KNOWNFOLDER_DEFINITION;
4033
4034[
4035 object,
4036 uuid(3aa7af7e-9b36-420C-a8e3-f77d4674a488),
4037 pointer_default(ref)
4038]
4039interface IKnownFolder : IUnknown
4040{
4041 HRESULT GetId(
4042 [out] KNOWNFOLDERID *pkfid);
4043
4044 HRESULT GetCategory(
4045 [out] KF_CATEGORY *pCategory);
4046
4047 HRESULT GetShellItem(
4048 [in] DWORD dwFlags,
4049 [in] REFIID riid,
4050 [out, iid_is(riid)] void **ppv);
4051
4052 HRESULT GetPath(
4053 [in] DWORD dwFlags,
4054 [out, string] LPWSTR *ppszPath);
4055
4056 HRESULT SetPath(
4057 [in] DWORD dwFlags,
4058 [in, string] LPCWSTR pszPath);
4059
4060 HRESULT GetIDList(
4061 [in] DWORD dwFlags,
4062 [out] PIDLIST_ABSOLUTE *ppidl);
4063
4064 HRESULT GetFolderType(
4065 [out] FOLDERTYPEID *pftid);
4066
4067 HRESULT GetRedirectionCapabilities(
4068 [out] KF_REDIRECTION_CAPABILITIES *pCapabilities);
4069
4070 HRESULT GetFolderDefinition(
4071 [out] KNOWNFOLDER_DEFINITION *pKFD);
4072}
4073
4074typedef [v1_enum] enum tagKF_REDIRECT_FLAGS
4075{
4076 KF_REDIRECT_USER_EXCLUSIVE = 0x00000001,
4077 KF_REDIRECT_COPY_SOURCE_DACL = 0x00000002,
4078 KF_REDIRECT_OWNER_USER = 0x00000004,
4079 KF_REDIRECT_SET_OWNER_EXPLICIT = 0x00000008,
4080 KF_REDIRECT_CHECK_ONLY = 0x00000010,
4081 KF_REDIRECT_WITH_UI = 0x00000020,
4082 KF_REDIRECT_UNPIN = 0x00000040,
4083 KF_REDIRECT_PIN = 0x00000080,
4084 KF_REDIRECT_COPY_CONTENTS = 0x00000200,
4085 KF_REDIRECT_DEL_SOURCE_CONTENTS = 0x00000400,
4086 KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS = 0x00000800
4087} KF_REDIRECT_FLAGS;
4088
4089[
4090 object,
4091 uuid(8BE2D872-86AA-4d47-B776-32CCA40C7018),
4092 pointer_default(ref)
4093]
4094interface IKnownFolderManager : IUnknown
4095{
4096 typedef [v1_enum] enum tagFFFP_MODE
4097 {
4098 FFFP_EXACTMATCH,
4099 FFFP_NEARESTPARENTMATCH
4100 } FFFP_MODE;
4101
4102 HRESULT FolderIdFromCsidl(
4103 [in] int nCsidl,
4104 [out] KNOWNFOLDERID *pfid);
4105
4106 HRESULT FolderIdToCsidl(
4107 [in] REFKNOWNFOLDERID rfid,
4108 [out] int *pnCsidl);
4109
4110 HRESULT GetFolderIds(
4111 [out, size_is(, *pCount)] KNOWNFOLDERID **ppKFId,
4112 [in, out] UINT *pCount);
4113
4114 HRESULT GetFolder(
4115 [in] REFKNOWNFOLDERID rfid,
4116 [out] IKnownFolder **ppkf);
4117
4118 HRESULT GetFolderByName(
4119 [in, string] LPCWSTR pszCanonicalName,
4120 [out] IKnownFolder **ppkf);
4121
4122 HRESULT RegisterFolder(
4123 [in] REFKNOWNFOLDERID rfid,
4124 [in] KNOWNFOLDER_DEFINITION const *pKFD);
4125
4126 HRESULT UnregisterFolder(
4127 [in] REFKNOWNFOLDERID rfid);
4128
4129 HRESULT FindFolderFromPath(
4130 [in, string] LPCWSTR pszPath,
4131 [in] FFFP_MODE mode,
4132 [out] IKnownFolder **ppkf);
4133
4134 HRESULT FindFolderFromIDList(
4135 [in] PCIDLIST_ABSOLUTE pidl,
4136 [out] IKnownFolder **ppkf);
4137
4138 HRESULT Redirect(
4139 [in] REFKNOWNFOLDERID rfid,
4140 [in, unique] HWND hwnd,
4141 [in] KF_REDIRECT_FLAGS flags,
4142 [in, unique, string] LPCWSTR pszTargetPath,
4143 [in] UINT cFolders,
4144 [in, size_is(cFolders), unique] KNOWNFOLDERID const *pExclusion,
4145 [out, string] LPWSTR *ppszError);
4146}
4147
4148/* function for releasing structure returned from IKnownFolder::GetFolderDefinition */
4149cpp_quote("static inline void FreeKnownFolderDefinitionFields(KNOWNFOLDER_DEFINITION *pKFD)")
4150cpp_quote("{")
4151cpp_quote(" CoTaskMemFree(pKFD->pszName);")
4152cpp_quote(" CoTaskMemFree(pKFD->pszDescription);")
4153cpp_quote(" CoTaskMemFree(pKFD->pszRelativePath);")
4154cpp_quote(" CoTaskMemFree(pKFD->pszParsingName);")
4155cpp_quote(" CoTaskMemFree(pKFD->pszTooltip);")
4156cpp_quote(" CoTaskMemFree(pKFD->pszLocalizedName);")
4157cpp_quote(" CoTaskMemFree(pKFD->pszIcon);")
4158cpp_quote(" CoTaskMemFree(pKFD->pszSecurity);")
4159cpp_quote("}")
4160
4161typedef [v1_enum] enum ASSOCIATIONLEVEL {
4162 AL_MACHINE,
4163 AL_EFFECTIVE,
4164 AL_USER
4165} ASSOCIATIONLEVEL;
4166
4167typedef [v1_enum] enum ASSOCIATIONTYPE {
4168 AT_FILEEXTENSION,
4169 AT_URLPROTOCOL,
4170 AT_STARTMENUCLIENT,
4171 AT_MIMETYPE
4172} ASSOCIATIONTYPE;
4173
4174[
4175 object,
4176 uuid(4e530b0a-e611-4c77-a3ac-9031d022281b),
4177 pointer_default(unique)
4178]
4179interface IApplicationAssociationRegistration : IUnknown
4180{
4181 HRESULT QueryCurrentDefault(
4182 [in, string] LPCWSTR pszQuery,
4183 [in] ASSOCIATIONTYPE atQueryType,
4184 [in] ASSOCIATIONLEVEL alQueryLevel,
4185 [out, string] LPWSTR *ppszAssociation);
4186
4187 HRESULT QueryAppIsDefault(
4188 [in, string] LPCWSTR pszQuery,
4189 [in] ASSOCIATIONTYPE atQueryType,
4190 [in] ASSOCIATIONLEVEL alQueryLevel,
4191 [in, string] LPCWSTR pszAppRegistryName,
4192 [out] BOOL *pfDefault);
4193
4194 HRESULT QueryAppIsDefaultAll(
4195 [in] ASSOCIATIONLEVEL alQueryLevel,
4196 [in, string] LPCWSTR pszAppRegistryName,
4197 [out] BOOL* pfDefault);
4198
4199 HRESULT SetAppAsDefault(
4200 [in, string] LPCWSTR pszAppRegistryName,
4201 [in, string] LPCWSTR pszSet,
4202 [in] ASSOCIATIONTYPE atSetType);
4203
4204 HRESULT SetAppAsDefaultAll(
4205 [in, string] LPCWSTR pszAppRegistryName);
4206
4207 HRESULT ClearUserAssociations();
4208}
4209
4210[
4211 uuid(6332debf-87b5-4670-90c0-5e57b408a49e),
4212 object,
4213 pointer_default(unique)
4214]
4215interface ICustomDestinationList : IUnknown
4216{
4217 typedef [v1_enum] enum KNOWNDESTCATEGORY {
4218 KDC_FREQUENT = 1,
4219 KDC_RECENT
4220 } KNOWNDESTCATEGORY;
4221
4222 HRESULT SetAppID([in, string] LPCWSTR pszAppID);
4223
4224 HRESULT BeginList(
4225 [out] UINT *pcMinSlots,
4226 [in] REFIID riid,
4227 [out, iid_is(riid)] void **ppv);
4228
4229 HRESULT AppendCategory(
4230 [in, string] LPCWSTR pszCategory,
4231 [in] IObjectArray *poa);
4232
4233 HRESULT AppendKnownCategory([in] KNOWNDESTCATEGORY category);
4234 HRESULT AddUserTasks([in] IObjectArray *poa);
4235 HRESULT CommitList();
4236
4237 HRESULT GetRemovedDestinations(
4238 [in] REFIID riid,
4239 [out, iid_is(riid)] void **ppv);
4240
4241 HRESULT DeleteList([in, unique, string] LPCWSTR pszAppID);
4242 HRESULT AbortList();
4243}
4244
4245[
4246 uuid(ddefe873-6997-4e68-be26-39b633adbe12),
4247 object,
4248 pointer_default(unique)
4249]
4250interface IQueryCancelAutoPlay : IUnknown
4251{
4252 HRESULT AllowAutoPlay([in, string] LPCWSTR path,
4253 [in] DWORD content_type,
4254 [in, string] LPCWSTR label,
4255 [in] DWORD serial_number);
4256}
4257
4258[
4259 uuid(d594d0d8-8da7-457b-b3b4-ce5dbaac0b88),
4260 pointer_default(unique)
4261]
4262interface ITransferAdviseSink : IUnknown
4263{
4264 [v1_enum] enum _TRANSFER_ADVISE_STATE
4265 {
4266 TS_NONE = 0,
4267 TS_PERFORMING = 1,
4268 TS_PREPARING = 2,
4269 TS_INDETERMINATE = 4
4271 typedef DWORD TRANSFER_ADVISE_STATE;
4272
4273 HRESULT UpdateProgress([in] ULONGLONG size_current,
4274 [in] ULONGLONG size_total,
4275 [in] INT files_current,
4276 [in] INT files_total,
4277 [in] INT folders_current,
4278 [in] INT folders_total);
4279 HRESULT UpdateTransferState([in] TRANSFER_ADVISE_STATE state);
4280 HRESULT ConfirmOverwrite([in] IShellItem *source,
4281 [in] IShellItem *dest_parent,
4282 [in, string] LPCWSTR name);
4283 HRESULT ConfirmEncryptLoss([in] IShellItem *source);
4284 HRESULT FileFailure([in] IShellItem *item,
4285 [in, unique, string] LPCWSTR itemname,
4286 [in] HRESULT hr,
4287 [in, out, unique, size_is(crename)] LPWSTR rename,
4288 [in] ULONG crename);
4289 HRESULT SubStreamFailure([in] IShellItem *item,
4290 [in, string] LPCWSTR stream,
4291 [in] HRESULT hr);
4292 HRESULT PropertyFailure([in] IShellItem *item,
4293 [in, unique] const PROPERTYKEY *key,
4294 [in] HRESULT hr);
4295}
4296
4297[v1_enum] enum _TRANSFER_SOURCE_FLAGS
4298{
4299 TSF_NORMAL = 0,
4300 TSF_FAIL_EXIST = 0,
4301 TSF_RENAME_EXIST = 0x1,
4302 TSF_OVERWRITE_EXIST = 0x2,
4303 TSF_ALLOW_DECRYPTION = 0x4,
4304 TSF_NO_SECURITY = 0x8,
4305 TSF_COPY_CREATION_TIME = 0x10,
4306 TSF_COPY_WRITE_TIME = 0x20,
4307 TSF_USE_FULL_ACCESS = 0x40,
4308 TSF_DELETE_RECYCLE_IF_POSSIBLE = 0x80,
4309 TSF_COPY_HARD_LINK = 0x100,
4310 TSF_COPY_LOCALIZED_NAME = 0x200,
4311 TSF_MOVE_AS_COPY_DELETE = 0x400,
4312 TSF_SUSPEND_SHELLEVENTS = 0x800
4314typedef DWORD TRANSFER_SOURCE_FLAGS;
4315
4316[
4317 uuid(00adb003-bde9-45c6-8e29-d09f9353e108),
4318 object,
4319 pointer_default(unique)
4320]
4321interface ITransferSource : IUnknown
4322{
4323 HRESULT Advise([in] ITransferAdviseSink *sink, [out] DWORD *cookie);
4324 HRESULT Unadvise([in] DWORD cookie);
4325 HRESULT SetProperties([in] IPropertyChangeArray *array);
4326 HRESULT OpenItem([in] IShellItem *item,
4327 [in] TRANSFER_SOURCE_FLAGS flags,
4328 [in] REFIID riid,
4329 [out, iid_is(riid)] void **ppv);
4330 HRESULT MoveItem([in] IShellItem *item,
4331 [in] IShellItem *parent_dest,
4332 [in, string] LPCWSTR name_dest,
4333 [in] TRANSFER_SOURCE_FLAGS flags,
4334 [out] IShellItem **newitem);
4335 HRESULT RecycleItem([in] IShellItem *source,
4336 [in] IShellItem *parent_dest,
4337 [in] TRANSFER_SOURCE_FLAGS flags,
4338 [out] IShellItem **new_dest);
4339 HRESULT RemoveItem([in] IShellItem *source, [in] TRANSFER_SOURCE_FLAGS flags);
4340 HRESULT RenameItem([in] IShellItem *source,
4341 [in, string] LPCWSTR newname,
4342 [in] TRANSFER_SOURCE_FLAGS flags,
4343 [out] IShellItem **new_dest);
4344 HRESULT LinkItem([in] IShellItem *source,
4345 [in] IShellItem *parent_dest,
4346 [in, unique, string] LPCWSTR new_name,
4347 [in] TRANSFER_SOURCE_FLAGS flags,
4348 [out] IShellItem **new_dest);
4349 HRESULT ApplyPropertiesToItem([in] IShellItem *source, [out] IShellItem **newitem);
4350 HRESULT GetDefaultDestinationName([in] IShellItem *source,
4351 [in] IShellItem *parent_dest,
4352 [out, string] LPWSTR *dest_name);
4353 HRESULT EnterFolder([in] IShellItem *child_folder);
4354 HRESULT LeaveFolder([in] IShellItem *child_folder);
4355}
4356
4357[
4358 uuid(48addd32-3ca5-4124-abe3-b5a72531b207),
4359 object,
4360 pointer_default(unique)
4361]
4362interface ITransferDestination : IUnknown
4363{
4364 HRESULT Advise([in] ITransferAdviseSink *sink, [out] DWORD *cookie);
4365 HRESULT Unadvise([in] DWORD cookie);
4366 HRESULT CreateItem([in, string] LPCWSTR name,
4367 [in] DWORD attr,
4368 [in] ULONGLONG size,
4369 [in] TRANSFER_SOURCE_FLAGS flags,
4370 [in] REFIID riid,
4371 [out, iid_is(riid)] void **ppv,
4372 [in] REFIID resources,
4373 [out, iid_is(riid)] void **presources);
4374}
4375
4376[
4377 uuid(92218cab-ecaa-4335-8133-807fd234c2ee),
4378 object,
4379 pointer_default(unique)
4380]
4381interface IAssocHandlerInvoker : IUnknown
4382{
4383 HRESULT SupportsSelection();
4384 HRESULT Invoke();
4385}
4386
4387[
4388 uuid(f04061ac-1659-4a3f-a954-775aa57fc083),
4389 object,
4390 pointer_default(unique)
4391]
4392interface IAssocHandler : IUnknown
4393{
4394 HRESULT GetName([out, string] LPWSTR *name);
4395 HRESULT GetUIName([out, string] LPWSTR *uiname);
4396 HRESULT GetIconLocation([out, string] LPWSTR *path,
4397 [out] int *index);
4398 HRESULT IsRecommended();
4399 HRESULT MakeDefault([in, string] LPCWSTR description);
4400 HRESULT Invoke([in] IDataObject *object);
4401 HRESULT CreateInvoker([in] IDataObject *object,
4402 [out] IAssocHandlerInvoker **invoker);
4403}
4404
4405[
4406 uuid(973810ae-9599-4b88-9e4d-6ee98c9552da),
4407 object,
4408 pointer_default(unique)
4409]
4410interface IEnumAssocHandlers : IUnknown
4411{
4412 HRESULT Next([in] ULONG count,
4413 [out, size_is(count), length_is(*fetched)] IAssocHandler **handlers,
4414 [out] ULONG *fetched);
4415}
4416
4417typedef enum ASSOC_FILTER
4418{
4419 ASSOC_FILTER_NONE = 0,
4420 ASSOC_FILTER_RECOMMENDED
4421} ASSOC_FILTER;
4422cpp_quote("HRESULT WINAPI SHAssocEnumHandlers(PCWSTR extra, ASSOC_FILTER filter, IEnumAssocHandlers **handlersenum);")
4423
4424typedef [v1_enum] enum ACTIVATEOPTIONS
4425{
4426 AO_NONE = 0x00000000,
4427 AO_DESIGNMODE = 0x00000001,
4428 AO_NOERRORUI = 0x00000002,
4429 AO_NOSPLASHSCREEN = 0x00000004
4430} ACTIVATEOPTIONS;
4431
4432[
4433 uuid(2e941141-7f97-4756-ba1d-9decde894a3d),
4434 object,
4435 pointer_default(unique)
4436]
4437interface IApplicationActivationManager : IUnknown
4438{
4439 HRESULT ActivateApplication([in] LPCWSTR appusermodelid,
4440 [in, unique] LPCWSTR arguments,
4441 [in] ACTIVATEOPTIONS options,
4442 [out] DWORD *processid);
4443 HRESULT ActivateForFile([in] LPCWSTR appusermodelid,
4444 [in] IShellItemArray *itemarray,
4445 [in, unique] LPCWSTR verb,
4446 [out] DWORD *processid);
4447 HRESULT ActivateForProtocol([in] LPCWSTR appusermodelid,
4448 [in] IShellItemArray *itemarray,
4449 [out] DWORD *processid);
4450}
4451
4452/*****************************************************************************
4453 * ShellObjects typelibrary
4454 */
4455[
4456 uuid(50A7E9B1-70EF-11D1-B75A-00A0C90564FE),
4457 lcid(0x0000),
4458 version(1.0)
4459]
4460library ShellObjects
4461{
4462 [
4463 uuid(71F96385-DDD6-48D3-A0C1-AE06E8B055FB)
4464 ]
4465 coclass ExplorerBrowser
4466 {
4467 interface IExplorerBrowser;
4468 }
4469
4470 [
4471 uuid(DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7)
4472 ]
4473 coclass FileOpenDialog
4474 {
4475 interface IFileOpenDialog;
4476 }
4477
4478 [
4479 uuid(C0B4E2F3-BA21-4773-8DBA-335EC946EB8B)
4480 ]
4481 coclass FileSaveDialog
4482 {
4483 interface IFileSaveDialog;
4484 }
4485
4486 [
4487 uuid(AE054212-3535-4430-83ED-D501AA6680E6)
4488 ]
4489 coclass NamespaceTreeControl
4490 {
4491 interface INameSpaceTreeControl2;
4492 }
4493
4494 [
4495 uuid(4df0c730-df9d-4ae3-9153-aa6b82e9795a)
4496 ]
4497 coclass KnownFolderManager
4498 {
4499 interface IKnownFolderManager;
4500 }
4501
4502 [
4503 uuid(591209c7-767b-42b2-9fba-44ee4615f2c7)
4504 ]
4505 coclass ApplicationAssociationRegistration
4506 {
4507 interface IApplicationAssociationRegistration;
4508 }
4509
4510 [
4511 uuid(00021401-0000-0000-c000-000000000046)
4512 ]
4513 coclass ShellLink
4514 {
4515 interface IShellLinkW;
4516 }
4517
4518 [
4519 uuid(56fdf344-fd6d-11d0-958a-006097c9a090)
4520 ]
4521 coclass TaskbarList
4522 {
4523 interface ITaskbarList4;
4524 }
4525
4526 [
4527 uuid(77f10cf0-3db5-4966-b520-b7c54fd35ed6)
4528 ]
4529 coclass DestinationList {
4530 interface ICustomDestinationList;
4531 }
4532
4533 [
4534 uuid(2d3468c1-36a7-43b6-ac24-d3f02fd9607a)
4535 ]
4536 coclass EnumerableObjectCollection
4537 {
4538 interface IEnumObjects;
4539 }
4540
4541 [
4542 uuid(331f1768-05a9-4ddd-b86e-dae34ddc998a)
4543 ]
4544 coclass QueryCancelAutoPlay
4545 {
4546 interface IQueryCancelAutoPlay;
4547 }
4548
4549 [
4550 uuid(9ac9fbe1-e0a2-4ad6-b4ee-e212013ea917)
4551 ]
4552 coclass ShellItem {
4553 interface IShellItem2;
4554 }
4555
4556 [
4557 uuid(45ba127d-10a8-46ea-8ab7-56ea9078943c)
4558 ]
4559 coclass ApplicationActivationManager
4560 {
4561 interface IApplicationActivationManager;
4562 }
4563
4564#ifdef __REACTOS__
4565 [
4566 uuid(0010890e-8789-413c-adbc-48f5b511b3af)
4567 ]
4568 coclass UserNotification
4569 {
4570 interface IUserNotification;
4571 }
4572#endif // __REACTOS__
4573
4574}
4575
4576enum _OPPROGDLGF
4577{
4578 OPPROGDLG_DEFAULT = 0,
4579 OPPROGDLG_ENABLEPAUSE = 0x80,
4580 OPPROGDLG_ALLOWUNDO = 0x100,
4581 OPPROGDLG_DONTDISPLAYSOURCEPATH = 0x200,
4582 OPPROGDLG_DONTDISPLAYDESTPATH = 0x400,
4583 OPPROGDLG_NOMULTIDAYESTIMATES = 0x800,
4584 OPPROGDLG_DONTDISPLAYLOCATIONS = 0x1000
4586typedef DWORD OPPROGDLGF;
4587
4588enum _PDMODE
4589{
4590 PDM_DEFAULT = 0,
4591 PDM_RUN = 0x1,
4592 PDM_PREFLIGHT = 0x2,
4593 PDM_UNDOING = 0x4,
4594 PDM_ERRORSBLOCKING = 0x8,
4595 PDM_INDETERMINATE = 0x10
4597typedef DWORD PDMODE;
4598
4599typedef enum PDOPSTATUS
4600{
4601 PDOPS_RUNNING = 1,
4602 PDOPS_PAUSED = 2,
4603 PDOPS_CANCELLED = 3,
4604 PDOPS_STOPPED = 4,
4605 PDOPS_ERRORS = 5
4606} PDOPSTATUS;
4607
4608typedef enum _SPACTION
4609{
4610 SPACTION_NONE = 0,
4611 SPACTION_MOVING = 1,
4612 SPACTION_COPYING = 2,
4613 SPACTION_RECYCLING = 3,
4614 SPACTION_APPLYINGATTRIBS = 4,
4615 SPACTION_DOWNLOADING = 5,
4616 SPACTION_SEARCHING_INTERNET = 6,
4617 SPACTION_CALCULATING = 7,
4618 SPACTION_UPLOADING = 8,
4619 SPACTION_SEARCHING_FILES = 9,
4620 SPACTION_DELETING = 10,
4621 SPACTION_RENAMING = 11,
4622 SPACTION_FORMATTING = 12,
4623 SPACTION_COPY_MOVING = 13
4624} SPACTION;
4625
4626[
4627 uuid(0C9FB851-E5C9-43EB-A370-F0677B13874C),
4628 object,
4629 pointer_default(unique)
4630]
4631interface IOperationsProgressDialog : IUnknown
4632{
4633 HRESULT StartProgressDialog(
4634 [in] HWND hwndOwner,
4635 [in] OPPROGDLGF flags);
4636 HRESULT StopProgressDialog();
4637 HRESULT SetOperation(
4638 [in] SPACTION action);
4639 HRESULT SetMode(
4640 [in] PDMODE mode);
4641 HRESULT UpdateProgress(
4642 [in] ULONGLONG ullPointsCurrent,
4643 [in] ULONGLONG ullPointsTotal,
4644 [in] ULONGLONG ullSizeCurrent,
4645 [in] ULONGLONG ullSizeTotal,
4646 [in] ULONGLONG ullItemsCurrent,
4647 [in] ULONGLONG ullItemsTotal);
4648 HRESULT UpdateLocations(
4649 [in, optional] IShellItem *psiSource,
4650 [in, optional] IShellItem *psiTarget,
4651 [in, optional] IShellItem *psiItem);
4652 HRESULT ResetTimer();
4653 HRESULT PauseTimer();
4654 HRESULT ResumeTimer();
4655 HRESULT GetMilliseconds(
4656 [out] ULONGLONG *pullElapsed,
4657 [out] ULONGLONG *pullRemaining);
4658 HRESULT GetOperationStatus(
4659 [out] PDOPSTATUS *popstatus);
4660};
4661
4662[
4663 uuid(947aab5f-0a5c-4c13-b4d6-4bf7836fc9f8),
4664 object,
4665 pointer_default(unique)
4666]
4667interface IFileOperation : IUnknown
4668{
4669 HRESULT Advise(
4670 [in] IFileOperationProgressSink *pfops,
4671 [out] DWORD *pdwCookie);
4672 HRESULT Unadvise(
4673 [in] DWORD dwCookie);
4674 HRESULT SetOperationFlags(
4675 [in] DWORD dwOperationFlags);
4676 HRESULT SetProgressMessage(
4677 [in] LPCWSTR pszMessage);
4678 HRESULT SetProgressDialog(
4679 [in] IOperationsProgressDialog *popd);
4680 HRESULT SetProperties(
4681 [in] IPropertyChangeArray *pproparray);
4682 HRESULT SetOwnerWindow(
4683 [in] HWND hwndOwner);
4684 HRESULT ApplyPropertiesToItem(
4685 [in] IShellItem *psiItem);
4686 HRESULT ApplyPropertiesToItems(
4687 [in] IUnknown *punkItems);
4688 HRESULT RenameItem(
4689 [in] IShellItem *psiItem,
4690 [in] LPCWSTR pszNewName,
4691 [in] IFileOperationProgressSink *pfopsItem);
4692 HRESULT RenameItems(
4693 [in] IUnknown *pUnkItems,
4694 [in] LPCWSTR pszNewName);
4695 HRESULT MoveItem(
4696 [in] IShellItem *psiItem,
4697 [in] IShellItem *psiDestinationFolder,
4698 [in] LPCWSTR pszNewName,
4699 [in] IFileOperationProgressSink *pfopsItem);
4700 HRESULT MoveItems(
4701 [in] IUnknown *punkItems,
4702 [in] IShellItem *psiDestinationFolder);
4703 HRESULT CopyItem(
4704 [in] IShellItem *psiItem,
4705 [in] IShellItem *psiDestinationFolder,
4706 [in] LPCWSTR pszCopyName,
4707 [in] IFileOperationProgressSink *pfopsItem);
4708 HRESULT CopyItems(
4709 [in] IUnknown *punkItems,
4710 [in] IShellItem *psiDestinationFolder);
4711 HRESULT DeleteItem(
4712 [in] IShellItem *psiItem,
4713 [in] IFileOperationProgressSink *pfopsItem);
4714 HRESULT DeleteItems(
4715 [in] IUnknown *punkItems);
4716 HRESULT NewItem(
4717 [in] IShellItem *psiDestinationFolder,
4718 [in] DWORD dwFileAttributes,
4719 [in] LPCWSTR pszName,
4720 [in] LPCWSTR pszTemplateName,
4721 [in] IFileOperationProgressSink *pfopsItem);
4722 HRESULT PerformOperations();
4723 HRESULT GetAnyOperationsAborted(
4724 [out] BOOL *pfAnyOperationsAborted);
4725};
4726
4727[
4728 uuid(6CCB7BE0-6807-11d0-B810-00C04FD706EC),
4729 object,
4730 local,
4731 pointer_default(unique)
4732]
4733interface IShellTaskScheduler : IUnknown
4734{
4735 HRESULT AddTask(
4736 [in] IRunnableTask *pTask,
4737 [in] REFGUID rtoid,
4738 [in] DWORD_PTR lParam,
4739 [in] DWORD dwPriority);
4740 HRESULT RemoveTasks(
4741 [in] REFGUID rtoid,
4742 [in] DWORD_PTR lParam,
4743 [in] BOOL fWaitIfRunning);
4744 UINT CountTasks(
4745 [in] REFGUID rtoid);
4746 HRESULT Status(
4747 [in] DWORD dwReleaseStatus,
4748 [in] DWORD dwThreadTimeout);
4749}
4750
4751
4752[
4753 uuid(47c01f95-e185-412c-b5c5-4f27df965aea),
4754 object,
4755 pointer_default(unique)
4756]
4757interface IFolderBandPriv : IUnknown
4758{
4759 HRESULT SetCascade([in] BOOL fCascade);
4760
4761 HRESULT SetAccelerators([in] BOOL fAccelerators);
4762
4763 HRESULT SetNoIcons([in] BOOL fNoIcons);
4764
4765 HRESULT SetNoText([in] BOOL fNoText);
4766}
4767
4768
4769#ifdef __REACTOS__
4770/*****************************************************************************
4771 * IQueryContinue interface
4772 */
4773
4774[
4775 uuid(7307055c-b24a-486b-9f25-163e597a28a9),
4776 object,
4777 pointer_default(unique)
4778]
4779interface IQueryContinue : IUnknown
4780{
4781 // Returns S_OK if the operation should continue, and S_FALSE if not.
4782 HRESULT QueryContinue();
4783}
4784
4785
4786/*****************************************************************************
4787 * IUserNotification interface
4788 */
4789
4790[
4791 uuid(ba9711ba-5893-4787-a7e1-41277151550b),
4792 object,
4793 pointer_default(unique)
4794]
4795interface IUserNotification : IUnknown
4796{
4797 HRESULT SetBalloonInfo(
4798 [in, unique, string] LPCWSTR pszTitle,
4799 [in, unique, string] LPCWSTR pszText,
4800 [in] DWORD dwInfoFlags);
4801
4802 HRESULT SetBalloonRetry(
4803 [in] DWORD dwShowTime, // Time intervals in milliseconds
4804 [in] DWORD dwInterval,
4805 [in] UINT cRetryCount);
4806
4807 HRESULT SetIconInfo(
4808 [in, unique] HICON hIcon,
4809 [in, unique, string] LPCWSTR pszToolTip);
4810
4811 // Blocks until the notification times out.
4812 HRESULT Show(
4813 [in, unique] IQueryContinue *pqc,
4814 [in] DWORD dwContinuePollInterval);
4815
4816 HRESULT PlaySound(
4817 [in, string] LPCWSTR pszSoundName);
4818};
4819
4820
4821/*****************************************************************************
4822 * IUserNotificationCallback interface (Vista+)
4823 */
4824
4825[
4826 uuid(19108294-0441-4aff-8013-fa0a730b0bea),
4827 object
4828]
4829interface IUserNotificationCallback : IUnknown
4830{
4831 HRESULT OnBalloonUserClick([in] POINT * pt);
4832 HRESULT OnLeftClick([in] POINT * pt);
4833 HRESULT OnContextMenu([in] POINT * pt);
4834};
4835
4836
4837/*****************************************************************************
4838 * IUserNotification2 interface (Vista+)
4839 */
4840
4841[
4842 uuid(215913cc-57eb-4fab-ab5a-e5fa7bea2a6c),
4843 object,
4844 pointer_default(unique)
4845]
4846interface IUserNotification2 : IUnknown
4847{
4848 HRESULT SetBalloonInfo(
4849 [in, unique, string] LPCWSTR pszTitle,
4850 [in, unique, string] LPCWSTR pszText,
4851 [in] DWORD dwInfoFlags);
4852
4853 HRESULT SetBalloonRetry(
4854 [in] DWORD dwShowTime, // Time intervals in milliseconds
4855 [in] DWORD dwInterval,
4856 [in] UINT cRetryCount);
4857
4858 HRESULT SetIconInfo(
4859 [in, unique] HICON hIcon,
4860 [in, unique, string] LPCWSTR pszToolTip);
4861
4862 // Blocks until the notification times out.
4863 HRESULT Show(
4864 [in, unique] IQueryContinue *pqc,
4865 [in] DWORD dwContinuePollInterval,
4866 [in, unique] IUserNotificationCallback *pSink);
4867
4868 HRESULT PlaySound(
4869 [in, string] LPCWSTR pszSoundName);
4870};
4871
4872/*****************************************************************************
4873 * IItemNameLimits interface
4874 */
4875
4876[
4877 uuid(1df0d7f1-b267-4d28-8b10-12e23202a5c4)
4878]
4879interface IItemNameLimits : IUnknown
4880{
4881 HRESULT GetValidCharacters(
4882 [out, string] LPWSTR *ppwszValidChars,
4883 [out, string] LPWSTR *ppwszInvalidChars);
4884
4885 HRESULT GetMaxLength(
4886 [in, string] LPCWSTR pszName,
4887 [out] int *piMaxNameLen);
4888};
4889
4890/*****************************************************************************
4891 * IUserAssist interface
4892 */
4893[
4894 uuid(dd313e05-feff-11d1-8ecd-0000f87a470c),
4895 object,
4896 local,
4897 pointer_default(unique)
4898]
4899interface IUserAssist : IUnknown
4900{
4901 HRESULT FireEvent(
4902 GUID const *guid,
4903 INT param1,
4904 ULONG param2,
4905 WPARAM wparam,
4906 LPARAM lparam);
4907
4908 HRESULT QueryEvent(
4909 GUID const *guid,
4910 INT param,
4911 WPARAM wparam,
4912 LPARAM lparam,
4913 PVOID ptr);
4914
4915 HRESULT SetEvent(
4916 GUID const *guid,
4917 INT param,
4918 WPARAM wparam,
4919 LPARAM lparam,
4920 PVOID ptr);
4921
4922 HRESULT Enable(
4923 BOOL bEnable);
4924};
4925
4926#endif // __REACTOS__
BOOL fullscreen
Definition: 3dtext.c:43
EXTERN_C HRESULT WINAPI SHCreateShellItemArrayFromDataObject(_In_ IDataObject *pdo, _In_ REFIID riid, _Out_ void **ppv)
Definition: CShellItem.cpp:429
static VOID SetParameters(OUT PULONG_PTR Parameters, IN INT Count,...)
Definition: ExHardError.c:15
@ optional
Definition: SystemMenu.c:34
static INT Execute(LPTSTR Full, LPTSTR First, LPTSTR Rest, PARSED_COMMAND *Cmd)
Definition: cmd.c:347
#define interface
Definition: basetyps.h:61
Definition: ehthrow.cxx:93
Definition: ehthrow.cxx:54
LPARAM lParam
Definition: combotst.c:139
static const WCHAR wszFriendlyName[]
Definition: createdevenum.c:51
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const
Definition: d3d10.idl:491
coclass PSFactoryBuffer pointer_default(unique)] interface ObjectRpcBaseTypes
Definition: dcom.idl:35
UINT uFlags
Definition: api.c:59
#define pt(x, y)
Definition: drawing.c:79
static IShellFolder IShellItem **static IBindCtx LPITEMIDLIST SFGAOF
Definition: ebrowser.c:83
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
#define C0
#define local
Definition: zutil.h:30
return pTarget GetState()
return pList GetCount()
GLuint in
Definition: glext.h:9616
GLbitfield flags
Definition: glext.h:7161
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
IEnumExtraSearch * LPENUMEXTRASEARCH
Definition: shobjidl.idl:307
HRESULT Next([in] ULONG celt, [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt, [out] ULONG *pceltFetched)
struct IEnumExtraSearch::EXTRASEARCH * LPEXTRASEARCH
HRESULT Clone([out] IEnumExtraSearch **ppenum)
HRESULT Skip([in] ULONG celt)
HRESULT Skip([in] ULONG celt)
HRESULT Clone([out] IEnumShellItems **ppenum)
HRESULT Reset()
HRESULT Next([in] ULONG celt, [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt, [out] ULONG *pceltFetched)
HRESULT RemoteNext([in] ULONG celt, [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt, [out] ULONG *pceltFetched)
HRESULT SetFindData([in] const WIN32_FIND_DATAW *pfd)
HRESULT GetFindData([out] WIN32_FIND_DATAW *pfd)
HRESULT EvaluateNewWindow([in, string] LPCWSTR pszUrl, [in, string] LPCWSTR pszName, [in, string] LPCWSTR pszUrlContext, [in, string] LPCWSTR pszFeatures, [in] BOOL fReplace, [in] DWORD dwFlags, [in] DWORD dwUserActionTime)
HRESULT GetDetailsOf([in] PCUITEMID_CHILD pidl, [in] UINT iColumn, [out] SHELLDETAILS *psd)
struct IShellFolder2::SHCOLUMNID * LPSHCOLUMNID
HRESULT GetDefaultSearchGUID([out] GUID *lpguid)
HRESULT MapColumnToSCID([in] UINT iColumn, [in] SHCOLUMNID *pscid)
HRESULT EnumSearches([out] IEnumExtraSearch **ppenum)
HRESULT GetDefaultColumn([in] DWORD dwReserved, [out] ULONG *pSort, [out] ULONG *pDisplay)
HRESULT GetDetailsEx([in] PCUITEMID_CHILD pidl, [in] const SHCOLUMNID *pscid, [out] VARIANT *pv)
HRESULT GetDefaultColumnState([in] UINT iColumn, [out] SHCOLSTATEF *pcsFlags)
const SHCOLUMNID * LPCSHCOLUMNID
Definition: shobjidl.idl:351
HRESULT CreateViewObject([in] HWND hwndOwner, [in] REFIID riid, [out, iid_is(riid)] void **ppvOut)
ULONG SFGAOF
Definition: shobjidl.idl:222
HRESULT GetUIObjectOf([in] HWND hwndOwner, [in] UINT cidl, [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl, [in] REFIID riid, [in, out, unique] UINT *prgfInOut, [out, iid_is(riid)] void **ppvOut)
HRESULT ParseDisplayName([in] HWND hwndOwner, [in] LPBC pbcReserved, [in, string] LPOLESTR lpszDisplayName, [out] ULONG *pchEaten, [out] PIDLIST_RELATIVE *ppidl, [in, out, unique] ULONG *pdwAttributes)
HRESULT EnumObjects([in] HWND hwndOwner, [in] SHCONTF grfFlags, [out] IEnumIDList **ppenumIDList)
HRESULT BindToObject([in] PCUIDLIST_RELATIVE pidl, [in] LPBC pbcReserved, [in] REFIID riid, [out, iid_is(riid)] void **ppvOut)
HRESULT SetNameOf([in] HWND hwnd, [in] PCUITEMID_CHILD pidl, [in, string] LPCOLESTR lpszName, [in] SHGDNF uFlags, [out] PITEMID_CHILD *ppidlOut)
HRESULT GetDisplayNameOf([in] PCUITEMID_CHILD pidl, [in] SHGDNF uFlags, [out] STRRET *lpName)
HRESULT CompareIDs([in] LPARAM lParam, [in] PCUIDLIST_RELATIVE pidl1, [in] PCUIDLIST_RELATIVE pidl2)
HRESULT BindToStorage([in] PCUIDLIST_RELATIVE pidl, [in] LPBC pbcReserved, [in] REFIID riid, [out, iid_is(riid)] void **ppvObj)
HRESULT GetAttributesOf([in] UINT cidl, [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl, [in, out] SFGAOF *rgfInOut)
DWORD SHGDNF
Definition: shobjidl.idl:169
DWORD SHCONTF
Definition: shobjidl.idl:187
HRESULT GetIconOf([in] PCUITEMID_CHILD pidl, [in] UINT flags, [out] int *pIconIndex)
HRESULT IncludeItem([in] IShellItem *psi)
HRESULT GetEnumFlagsForItem([in] IShellItem *psi, [out] SHCONTF *pgrfFlags)
@ SICHINT_TEST_FILESYSPATH_IF_NOT_EQUAL
Definition: shobjidl.idl:388
@ SICHINT_DISPLAY
Definition: shobjidl.idl:386
@ SICHINT_ALLFIELDS
Definition: shobjidl.idl:389
@ SICHINT_CANONICAL
Definition: shobjidl.idl:387
HRESULT GetDisplayName([in] SIGDN sigdnName, [out] LPWSTR *ppszName)
HRESULT BindToHandler([in] IBindCtx *pbc, [in] REFGUID rbhid, [in] REFIID riid, [out, iid_is(riid)] void **ppvOut)
@ SIGDN_DESKTOPABSOLUTEPARSING
Definition: shobjidl.idl:375
@ SIGDN_PARENTRELATIVEFORADDRESSBAR
Definition: shobjidl.idl:380
@ SIGDN_NORMALDISPLAY
Definition: shobjidl.idl:373
@ SIGDN_PARENTRELATIVEPARSING
Definition: shobjidl.idl:374
@ SIGDN_DESKTOPABSOLUTEEDITING
Definition: shobjidl.idl:377
@ SIGDN_FILESYSPATH
Definition: shobjidl.idl:378
@ SIGDN_PARENTRELATIVE
Definition: shobjidl.idl:381
@ SIGDN_PARENTRELATIVEEDITING
Definition: shobjidl.idl:376
HRESULT GetAttributes([in] SFGAOF sfgaoMask, [out] SFGAOF *psfgaoAttribs)
HRESULT GetParent([out] IShellItem **ppsi)
HRESULT Compare([in] IShellItem *psi, [in] SICHINTF hint, [out] int *piOrder)
DWORD SICHINTF
Definition: shobjidl.idl:391
IShellView * LPSHELLVIEW
Definition: shobjidl.idl:725
HRESULT MarkFullscreenWindow([in] HWND hwnd, [in] BOOL fullscreen)
HRESULT ActivateTab([in] HWND hwnd)
HRESULT AddTab([in] HWND hwnd)
HRESULT HrInit()
HRESULT DeleteTab([in] HWND hwnd)
HRESULT SetActiveAlt([in] HWND hwnd)
HRESULT GetProperty([in] REFPROPERTYKEY key, [out] PROPVARIANT *ppropvar)
HRESULT GetInt32([in] REFPROPERTYKEY key, [out] int *pi)
HRESULT GetPropertyStore([in] GETPROPERTYSTOREFLAGS flags, [in] REFIID riid, [out, iid_is(riid)] void **ppv)
HRESULT GetFileTime([in] REFPROPERTYKEY key, [out] FILETIME *pft)
HRESULT GetUInt64([in] REFPROPERTYKEY key, [out] ULONGLONG *pull)
HRESULT GetPropertyStoreForKeys([in, size_is(cKeys)] const PROPERTYKEY *rgKeys, [in] UINT cKeys, [in] GETPROPERTYSTOREFLAGS flags, [in] REFIID riid, [out, iid_is(riid)] void **ppv)
HRESULT GetCLSID([in] REFPROPERTYKEY key, [out] CLSID *pclsid)
HRESULT GetPropertyDescriptionList([in] REFPROPERTYKEY keyType, [in] REFIID riid, [out, iid_is(riid)] void **ppv)
HRESULT Update([in, unique] IBindCtx *pbc)
HRESULT GetPropertyStoreWithCreateObject([in] GETPROPERTYSTOREFLAGS flags, [in] IUnknown *punkCreateObject, [in] REFIID riid, [out, iid_is(riid)] void **ppv)
HRESULT GetBool([in] REFPROPERTYKEY key, [out] BOOL *pf)
HRESULT GetString([in] REFPROPERTYKEY key, [out, string] LPWSTR *ppsz)
HRESULT GetUInt32([in] REFPROPERTYKEY key, [out] ULONG *pui)
Definition: msctf.idl:550
#define d
Definition: ke_i.h:81
#define Open
Definition: syshdrs.h:62
static PMONITORUI pui
Definition: localui.c:42
static LPOLESTR
Definition: stg_prop.c:27
static refpint_t pi[]
Definition: server.c:96
static SHCONTF
Definition: ordinal.c:64
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:95
unsigned int UINT
Definition: ndis.h:50
#define L(x)
Definition: ntvdm.h:50
interface IBindCtx * LPBC
Definition: objfwd.h:18
HRESULT WINAPI SHGetIDListFromObject(IUnknown *punk, PIDLIST_ABSOLUTE *ppidl)
Definition: pidl.c:1525
HRESULT WINAPI SHGetNameFromIDList(PCIDLIST_ABSOLUTE pidl, SIGDN sigdnName, PWSTR *ppszName)
Definition: pidl.c:1462
PROPERTYKEY * REFPROPERTYKEY
Definition: propsys.idl:34
#define REFIID
Definition: guiddef.h:118
static FILE * out
Definition: regtests2xml.c:44
#define F(x, y, z)
Definition: md5.c:51
#define SEE_MASK_FLAG_LOG_USAGE
Definition: shellapi.h:59
#define SEE_MASK_ICON
Definition: shellapi.h:29
#define SEE_MASK_FLAG_SEPVDM
Definition: shellapi.h:50
#define SEE_MASK_HOTKEY
Definition: shellapi.h:30
#define SEE_MASK_UNICODE
Definition: shellapi.h:37
#define SEE_MASK_ASYNCOK
Definition: shellapi.h:54
#define SEE_MASK_HASTITLE
Definition: shellapi.h:52
#define SEE_MASK_NOASYNC
Definition: shellapi.h:33
#define SEE_MASK_NOZONECHECKS
Definition: shellapi.h:56
#define SEE_MASK_FLAG_NO_UI
Definition: shellapi.h:36
#define SEE_MASK_NO_CONSOLE
Definition: shellapi.h:38
#define SEE_MASK_HASLINKNAME
Definition: shellapi.h:49
static SIGDN
Definition: shelldispatch.c:49
static IBindCtx void **static IBindCtx void **static void **static IShellFolder IShellItem **static IShellFolder LPCITEMIDLIST IShellItemArray **static PCIDLIST_ABSOLUTE IShellItemArray **static void **static void **static PWSTR *static PWSTR *static DATAOBJ_GET_ITEM_FLAGS
Definition: shlfolder.c:60
struct FOLDERSETTINGS * PFOLDERSETTINGS
HRESULT WINAPI SHCreateItemFromIDList(PCIDLIST_ABSOLUTE pidl, REFIID riid, void **ppv)
HRESULT WINAPI SHCreateItemFromParsingName(PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv)
FOLDERFLAGS
Definition: shobjidl.idl:641
@ FWF_HIDEFILENAMES
Definition: shobjidl.idl:659
@ FWF_SNAPTOGRID
Definition: shobjidl.idl:644
@ FWF_AUTOARRANGE
Definition: shobjidl.idl:642
@ FWF_NOGROUPING
Definition: shobjidl.idl:662
@ FWF_ALIGNLEFT
Definition: shobjidl.idl:653
@ FWF_AUTOCHECKSELECT
Definition: shobjidl.idl:669
@ FWF_NOWEBVIEW
Definition: shobjidl.idl:658
@ FWF_ABBREVIATEDNAMES
Definition: shobjidl.idl:643
@ FWF_NOSCROLL
Definition: shobjidl.idl:652
@ FWF_ALLOWRTLREADING
Definition: shobjidl.idl:673
@ FWF_NOHEADERINALLVIEWS
Definition: shobjidl.idl:666
@ FWF_SINGLECLICKACTIVATE
Definition: shobjidl.idl:657
@ FWF_OWNERDATA
Definition: shobjidl.idl:645
@ FWF_FULLROWSELECT
Definition: shobjidl.idl:663
@ FWF_NOENUMREFRESH
Definition: shobjidl.idl:661
@ FWF_EXTENDEDTILES
Definition: shobjidl.idl:667
@ FWF_NOBROWSERVIEWSTATE
Definition: shobjidl.idl:670
@ FWF_CHECKSELECT
Definition: shobjidl.idl:660
@ FWF_NOCLIENTEDGE
Definition: shobjidl.idl:651
@ FWF_NOICONS
Definition: shobjidl.idl:654
@ FWF_TRANSPARENT
Definition: shobjidl.idl:650
@ FWF_SINGLESEL
Definition: shobjidl.idl:648
@ FWF_TRICHECKSELECT
Definition: shobjidl.idl:668
@ FWF_NOVISIBLE
Definition: shobjidl.idl:656
@ FWF_USESEARCHFOLDER
Definition: shobjidl.idl:672
@ FWF_SUBSETGROUPS
Definition: shobjidl.idl:671
@ FWF_NOCOLUMNHEADER
Definition: shobjidl.idl:665
@ FWF_BESTFITWINDOW
Definition: shobjidl.idl:646
@ FWF_NOFILTERS
Definition: shobjidl.idl:664
@ FWF_SHOWSELALWAYS
Definition: shobjidl.idl:655
@ FWF_DESKTOP
Definition: shobjidl.idl:647
@ FWF_NOSUBFOLDERS
Definition: shobjidl.idl:649
FOLDERVIEWMODE
Definition: shobjidl.idl:677
@ FVM_SMALLICON
Definition: shobjidl.idl:681
@ FVM_AUTO
Definition: shobjidl.idl:678
@ FVM_LIST
Definition: shobjidl.idl:682
@ FVM_TILE
Definition: shobjidl.idl:685
@ FVM_THUMBNAIL
Definition: shobjidl.idl:684
@ FVM_LAST
Definition: shobjidl.idl:688
@ FVM_CONTENT
Definition: shobjidl.idl:687
@ FVM_THUMBSTRIP
Definition: shobjidl.idl:686
@ FVM_ICON
Definition: shobjidl.idl:679
@ FVM_DETAILS
Definition: shobjidl.idl:683
@ FVM_FIRST
Definition: shobjidl.idl:680
HRESULT WINAPI SHCreateShellItemArrayFromIDLists(UINT cidl, PCIDLIST_ABSOLUTE_ARRAY pidl_array, IShellItemArray **psia)
struct FOLDERSETTINGS * LPFOLDERSETTINGS
SIGDN PWSTR * ppszName
Definition: shobjidl.idl:606
HRESULT WINAPI SHCreateShellItemArray(PCIDLIST_ABSOLUTE pidlParent, IShellFolder *psf, UINT cidl, PCUITEMID_CHILD_ARRAY ppidl, IShellItemArray **ppsiItemArray)
HRESULT WINAPI SHGetItemFromDataObject(IDataObject *pdtobj, DATAOBJ_GET_ITEM_FLAGS dwFlags, REFIID riid, void **ppv)
HRESULT WINAPI SHCreateShellItemArrayFromShellItem(IShellItem *psi, REFIID riid, void **ppv)
const FOLDERSETTINGS * LPCFOLDERSETTINGS
Definition: shobjidl.idl:696
SIGDN sigdnName
Definition: shobjidl.idl:606
HRESULT WINAPI SHGetItemFromObject(IUnknown *punk, REFIID riid, void **ppv)
char * LPVIEWSETTINGS
Definition: shobjidl.idl:638
const PCUITEMID_CHILD * PCUITEMID_CHILD_ARRAY
Definition: shtypes.idl:71
const ITEMID_CHILD UNALIGNED * PCUITEMID_CHILD
Definition: shtypes.idl:70
const ITEMIDLIST_RELATIVE UNALIGNED * PCUIDLIST_RELATIVE
Definition: shtypes.idl:57
DWORD SHCOLSTATEF
Definition: shtypes.idl:142
static PIXELFORMATDESCRIPTOR pfd
Definition: ssstars.c:67
Definition: scsiwmi.h:51
Definition: copy.c:22
uint16_t * PWSTR
Definition: typedefs.h:56
const uint16_t * PCWSTR
Definition: typedefs.h:57
uint32_t ULONG
Definition: typedefs.h:59
uint64_t ULONGLONG
Definition: typedefs.h:67
DWORD hint
Definition: vfdcmd.c:88
_In_ LPCSTR lpName
Definition: winbase.h:2789
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
#define WINELIB_NAME_AW(func)
Definition: windef.h:394
#define WINAPI
Definition: msvc.h:6
int WINAPI GetPath(_In_ HDC hdc, _Out_writes_opt_(cpt) LPPOINT apt, _Out_writes_opt_(cpt) LPBYTE aj, int cpt)
static void Initialize()
Definition: xlate.c:212
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define const
Definition: zconf.h:233