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