- Add IShellView2 and IShellView3 COM interfaces
[reactos.git] / reactos / include / psdk / shobjidl.idl
1 /*
2 * COM interfaces for shell objects
3 *
4 * Copyright (C) 1999 Juergen Schmied
5 * Copyright (C) 2003 Alexandre Julliard
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 */
21
22 import "objidl.idl";
23 import "oleidl.idl";
24 import "oaidl.idl";
25 import "shtypes.idl";
26 import "servprov.idl";
27 import "comcat.idl";
28 import "propidl.idl";
29 /*import "prsht.idl";*/
30 /*import "msxml.idl";*/
31
32
33 /*****************************************************************************
34 * IPersistFolder interface
35 */
36 [
37 object,
38 uuid(000214ea-0000-0000-c000-000000000046),
39 pointer_default(unique)
40 ]
41 interface IPersistFolder : IPersist
42 {
43 typedef IPersistFolder *LPPERSISTFOLDER;
44
45 HRESULT Initialize( [in] LPCITEMIDLIST pidl );
46 }
47
48
49 /*****************************************************************************
50 * IPersistFolder2 interface
51 */
52 [
53 object,
54 uuid(1ac3d9f0-175c-11d1-95be-00609797ea4f),
55 pointer_default(unique)
56 ]
57 interface IPersistFolder2 : IPersistFolder
58 {
59 typedef IPersistFolder2 *LPPERSISTFOLDER2;
60
61 HRESULT GetCurFolder( [out] LPITEMIDLIST *ppidl );
62 }
63
64
65 /*****************************************************************************
66 * IEnumIDList interface
67 */
68 [
69 object,
70 uuid(000214f2-0000-0000-c000-000000000046),
71 pointer_default(unique)
72 ]
73 interface IEnumIDList : IUnknown
74 {
75 typedef IEnumIDList *LPENUMIDLIST;
76
77 HRESULT Next(
78 [in] ULONG celt,
79 [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
80 [out] ULONG *pceltFetched);
81
82 HRESULT Skip( [in] ULONG celt );
83 HRESULT Reset();
84 HRESULT Clone( [out] IEnumIDList **ppenum );
85 }
86
87 /*****************************************************************************
88 * IShellPropSheetExt interface
89 */
90 cpp_quote("#if 0")
91 typedef LPARAM LPFNSVADDPROPSHEETPAGE;
92 cpp_quote("#else")
93 cpp_quote("#include <prsht.h>")
94 cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
95 cpp_quote("#endif")
96
97 [
98 object,
99 uuid(000214E9-0000-0000-C000-000000000046),
100 pointer_default(unique)
101 ]
102 interface IShellPropSheetExt : IUnknown
103 {
104 enum tagSHELLPROPSHEETEXTPAGEID {
105 EXPPS_FILETYPES = 0x1
106 };
107
108 typedef UINT EXPPS;
109
110 HRESULT AddPages(
111 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
112 [in] LPARAM lParam);
113 HRESULT ReplacePage(
114 [in] EXPPS uPageID,
115 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
116 [in] LPARAM lParam);
117 }
118 typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
119
120 /*****************************************************************************
121 * IShellFolder interface
122 */
123 [
124 object,
125 uuid(000214e6-0000-0000-c000-000000000046),
126 pointer_default(unique)
127 ]
128 interface IShellFolder : IUnknown
129 {
130 typedef IShellFolder * LPSHELLFOLDER;
131
132 typedef enum tagSHGDN
133 {
134 SHGDN_NORMAL = 0,
135 SHGDN_INFOLDER = 1,
136 SHGDN_FOREDITING = 0x1000,
137 SHGDN_INCLUDE_NONFILESYS = 0x2000,
138 SHGDN_FORADDRESSBAR = 0x4000,
139 SHGDN_FORPARSING = 0x8000
140 } SHGNO;
141
142 typedef DWORD SHGDNF;
143
144 enum tagSHCONTF
145 {
146 SHCONTF_FOLDERS = 32,
147 SHCONTF_NONFOLDERS = 64,
148 SHCONTF_INCLUDEHIDDEN = 128,
149 SHCONTF_INIT_ON_FIRST_NEXT = 256,
150 SHCONTF_NETPRINTERSRCH = 512,
151 SHCONTF_SHAREABLE = 1024,
152 SHCONTF_STORAGE = 2048
153 };
154
155 typedef DWORD SHCONTF;
156
157 cpp_quote("#define SHCIDS_ALLFIELDS 0x80000000L")
158 cpp_quote("#define SHCIDS_CANONICALONLY 0x10000000L")
159 cpp_quote("#define SHCIDS_BITMASK 0xFFFF0000L")
160 cpp_quote("#define SHCIDS_COLUMNMASK 0x0000FFFFL")
161 cpp_quote("#define SFGAO_CANCOPY DROPEFFECT_COPY")
162 cpp_quote("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
163 cpp_quote("#define SFGAO_CANLINK DROPEFFECT_LINK")
164 cpp_quote("#define SFGAO_STORAGE 0x00000008L")
165 cpp_quote("#define SFGAO_CANRENAME 0x00000010L")
166 cpp_quote("#define SFGAO_CANDELETE 0x00000020L")
167 cpp_quote("#define SFGAO_HASPROPSHEET 0x00000040L")
168 cpp_quote("#define SFGAO_DROPTARGET 0x00000100L")
169 cpp_quote("#define SFGAO_CAPABILITYMASK 0x00000177L")
170 cpp_quote("#define SFGAO_ENCRYPTED 0x00002000L")
171 cpp_quote("#define SFGAO_ISSLOW 0x00004000L")
172 cpp_quote("#define SFGAO_GHOSTED 0x00008000L")
173 cpp_quote("#define SFGAO_LINK 0x00010000L")
174 cpp_quote("#define SFGAO_SHARE 0x00020000L")
175 cpp_quote("#define SFGAO_READONLY 0x00040000L")
176 cpp_quote("#define SFGAO_HIDDEN 0x00080000L")
177 cpp_quote("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
178 cpp_quote("#define SFGAO_FILESYSANCESTOR 0x10000000L")
179 cpp_quote("#define SFGAO_FOLDER 0x20000000L")
180 cpp_quote("#define SFGAO_FILESYSTEM 0x40000000L")
181 cpp_quote("#define SFGAO_HASSUBFOLDER 0x80000000L")
182 cpp_quote("#define SFGAO_CONTENTSMASK 0x80000000L")
183 cpp_quote("#define SFGAO_VALIDATE 0x01000000L")
184 cpp_quote("#define SFGAO_REMOVABLE 0x02000000L")
185 cpp_quote("#define SFGAO_COMPRESSED 0x04000000L")
186 cpp_quote("#define SFGAO_BROWSABLE 0x08000000L")
187 cpp_quote("#define SFGAO_NONENUMERATED 0x00100000L")
188 cpp_quote("#define SFGAO_NEWCONTENT 0x00200000L")
189 cpp_quote("#define SFGAO_STREAM 0x00400000L")
190 cpp_quote("#define SFGAO_STORAGEANCESTOR 0x00800000L")
191
192 typedef ULONG SFGAOF;
193
194 HRESULT ParseDisplayName(
195 [in] HWND hwndOwner,
196 [in] LPBC pbcReserved,
197 [in, string] LPOLESTR lpszDisplayName,
198 [out] ULONG *pchEaten,
199 [out] LPITEMIDLIST *ppidl,
200 [in, out, unique] ULONG *pdwAttributes);
201
202 HRESULT EnumObjects(
203 [in] HWND hwndOwner,
204 [in] SHCONTF grfFlags,
205 [out] IEnumIDList **ppenumIDList);
206
207 HRESULT BindToObject(
208 [in] LPCITEMIDLIST pidl,
209 [in] LPBC pbcReserved,
210 [in] REFIID riid,
211 [out, iid_is(riid)] void **ppvOut);
212
213 HRESULT BindToStorage(
214 [in] LPCITEMIDLIST pidl,
215 [in] LPBC pbcReserved,
216 [in] REFIID riid,
217 [out, iid_is(riid)] void **ppvObj);
218
219 HRESULT CompareIDs(
220 [in] LPARAM lParam,
221 [in] LPCITEMIDLIST pidl1,
222 [in] LPCITEMIDLIST pidl2);
223
224 HRESULT CreateViewObject(
225 [in] HWND hwndOwner,
226 [in] REFIID riid,
227 [out, iid_is(riid)] void **ppvOut);
228
229 HRESULT GetAttributesOf(
230 [in] UINT cidl,
231 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
232 [in, out] SFGAOF *rgfInOut);
233
234 HRESULT GetUIObjectOf(
235 [in] HWND hwndOwner,
236 [in] UINT cidl,
237 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
238 [in] REFIID riid,
239 [in, out, unique] UINT *prgfInOut,
240 [out, iid_is(riid)] void **ppvOut);
241
242 HRESULT GetDisplayNameOf(
243 [in] LPCITEMIDLIST pidl,
244 [in] SHGDNF uFlags,
245 [out] STRRET *lpName);
246
247 HRESULT SetNameOf(
248 [in] HWND hwnd,
249 [in] LPCITEMIDLIST pidl,
250 [in, string] LPCOLESTR lpszName,
251 [in] SHGDNF uFlags,
252 [out] LPITEMIDLIST *ppidlOut);
253 }
254
255
256 /*****************************************************************************
257 * IEnumExtraSearch interface
258 */
259 [
260 object,
261 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
262 pointer_default(unique)
263 ]
264 interface IEnumExtraSearch : IUnknown
265 {
266 typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
267
268 typedef struct
269 {
270 GUID guidSearch;
271 WCHAR wszFriendlyName[80];
272 /*
273 *WCHAR wszMenuText[80];
274 *WCHAR wszHelpText[MAX_PATH];
275 */
276 WCHAR wszUrl[2084];
277 /*
278 *WCHAR wszIcon[MAX_PATH+10];
279 *WCHAR wszGreyIcon[MAX_PATH+10];
280 *WCHAR wszClrIcon[MAX_PATH+10];
281 */
282 } EXTRASEARCH, *LPEXTRASEARCH;
283
284 HRESULT Next(
285 [in] ULONG celt,
286 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
287 [out] ULONG *pceltFetched);
288
289 HRESULT Skip( [in] ULONG celt );
290 HRESULT Reset();
291 HRESULT Clone( [out] IEnumExtraSearch **ppenum );
292 }
293
294
295 /*****************************************************************************
296 * IShellFolder2 interface
297 */
298 [
299 object,
300 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
301 pointer_default(unique)
302 ]
303 interface IShellFolder2 : IShellFolder
304 {
305 typedef enum
306 {
307 SHCOLSTATE_TYPE_STR = 0x00000001,
308 SHCOLSTATE_TYPE_INT = 0x00000002,
309 SHCOLSTATE_TYPE_DATE = 0x00000003,
310 SHCOLSTATE_TYPEMASK = 0x0000000f,
311 SHCOLSTATE_ONBYDEFAULT = 0x00000010,
312 SHCOLSTATE_SLOW = 0x00000020,
313 SHCOLSTATE_EXTENDED = 0x00000040,
314 SHCOLSTATE_SECONDARYUI = 0x00000080,
315 SHCOLSTATE_HIDDEN = 0x00000100,
316 SHCOLSTATE_PREFER_VARCMP = 0x00000200
317 } SHCOLSTATE;
318
319 typedef DWORD SHCOLSTATEF;
320
321 typedef struct
322 {
323 GUID fmtid;
324 DWORD pid;
325 } SHCOLUMNID, *LPSHCOLUMNID;
326 typedef const SHCOLUMNID *LPCSHCOLUMNID;
327
328 HRESULT GetDefaultSearchGUID( [out] GUID *lpguid );
329 HRESULT EnumSearches( [out] IEnumExtraSearch **ppenum );
330 HRESULT GetDefaultColumn( [in] DWORD dwReserved, [out] ULONG *pSort, [out] ULONG *pDisplay );
331 HRESULT GetDefaultColumnState( [in] UINT iColumn, [out] SHCOLSTATEF *pcsFlags );
332 HRESULT GetDetailsEx( [in] LPCITEMIDLIST pidl, [in] const SHCOLUMNID *pscid, [out] VARIANT *pv);
333 HRESULT GetDetailsOf( [in] LPCITEMIDLIST pidl, [in] UINT iColumn, [out] SHELLDETAILS *psd);
334 HRESULT MapColumnToSCID( [in] UINT iColumn, [in] SHCOLUMNID *pscid );
335 }
336
337
338
339 /*****************************************************************************
340 * FOLDERSETTINGS
341 */
342 typedef char *LPVIEWSETTINGS;
343
344 typedef enum
345 {
346 FWF_AUTOARRANGE = 0x00000001,
347 FWF_ABBREVIATEDNAMES = 0x00000002,
348 FWF_SNAPTOGRID = 0x00000004,
349 FWF_OWNERDATA = 0x00000008,
350 FWF_BESTFITWINDOW = 0x00000010,
351 FWF_DESKTOP = 0x00000020,
352 FWF_SINGLESEL = 0x00000040,
353 FWF_NOSUBFOLDERS = 0x00000080,
354 FWF_TRANSPARENT = 0x00000100,
355 FWF_NOCLIENTEDGE = 0x00000200,
356 FWF_NOSCROLL = 0x00000400,
357 FWF_ALIGNLEFT = 0x00000800,
358 FWF_NOICONS = 0x00001000,
359 FWF_SHOWSELALWAYS = 0x00002000,
360 FWF_NOVISIBLE = 0x00004000,
361 FWF_SINGLECLICKACTIVATE = 0x00008000,
362 FWF_NOWEBVIEW = 0x00010000,
363 FWF_HIDEFILENAMES = 0x00020000,
364 FWF_CHECKSELECT = 0x00040000
365 } FOLDERFLAGS;
366
367 typedef enum
368 {
369 FVM_ICON = 1,
370 FVM_FIRST = FVM_ICON,
371 FVM_SMALLICON = 2,
372 FVM_LIST = 3,
373 FVM_DETAILS = 4,
374 FVM_THUMBNAIL = 5,
375 FVM_TILE = 6,
376 FVM_THUMBSTRIP = 7,
377 FVM_LAST = FVM_THUMBSTRIP
378 } FOLDERVIEWMODE;
379
380 typedef struct
381 {
382 UINT ViewMode;
383 UINT fFlags;
384 } FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
385 typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
386
387
388 /*****************************************************************************
389 * IShellView interface
390 */
391 interface IShellBrowser;
392 [
393 object,
394 uuid(000214e3-0000-0000-c000-000000000046),
395 pointer_default(unique)
396 ]
397 interface IShellView : IOleWindow
398 {
399 typedef IShellView *LPSHELLVIEW;
400
401 cpp_quote("#define SVSI_DESELECT 0x00000000")
402 cpp_quote("#define SVSI_SELECT 0x00000001")
403 cpp_quote("#define SVSI_EDIT 0x00000003")
404 cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
405 cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
406 cpp_quote("#define SVSI_FOCUSED 0x00000010")
407 cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
408 cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
409 cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
410 cpp_quote("#define SVSI_CHECK 0x00000100")
411 cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
412
413 typedef UINT SVSIF;
414
415 typedef enum tagSVGIO
416 {
417 SVGIO_BACKGROUND = 0x00000000,
418 SVGIO_SELECTION = 0x00000001,
419 SVGIO_ALLVIEW = 0x00000002,
420 SVGIO_CHECKED = 0x00000003,
421 SVGIO_TYPE_MASK = 0x0000000f,
422 SVGIO_FLAG_VIEWORDER = 0x80000000,
423 } SVGIO;
424
425 typedef enum tagSVUIA_STATUS
426 {
427 SVUIA_DEACTIVATE = 0,
428 SVUIA_ACTIVATE_NOFOCUS = 1,
429 SVUIA_ACTIVATE_FOCUS = 2,
430 SVUIA_INPLACEACTIVATE = 3
431 } SVUIA_STATUS;
432
433 HRESULT TranslateAccelerator( [in] MSG *pmsg );
434 HRESULT EnableModeless( [in] BOOL fEnable );
435 HRESULT UIActivate( [in] UINT uState );
436 HRESULT Refresh();
437 HRESULT CreateViewWindow(
438 [in] IShellView *psvPrevious,
439 [in] LPCFOLDERSETTINGS lpfs,
440 [in] IShellBrowser *psb,
441 [out] RECT *prcView,
442 [out] HWND *phWnd);
443
444 HRESULT DestroyViewWindow();
445 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
446
447 [local] HRESULT AddPropertySheetPages(
448 [in] DWORD dwReserved,
449 [in] LPFNSVADDPROPSHEETPAGE pfn,
450 [in] LPARAM lparam);
451
452 HRESULT SaveViewState();
453 HRESULT SelectItem(
454 [in] LPCITEMIDLIST pidlItem,
455 [in] SVSIF uFlags);
456 HRESULT GetItemObject(
457 [in] UINT uItem,
458 [in] REFIID riid,
459 [out, iid_is(riid)] void **ppv);
460 }
461
462
463 [
464 uuid(88E39E80-3578-11CF-AE69-08002B2E1262),
465 object,
466 pointer_default(unique)
467 ]
468 interface IShellView2 : IShellView
469 {
470 typedef GUID SHELLVIEWID;
471
472 cpp_quote("#define SV2GV_CURRENTVIEW ((UINT)-1)")
473 cpp_quote("#define SV2GV_DEFAULTVIEW ((UINT)-2)")
474
475 cpp_quote("#include <pshpack8.h>")
476 typedef struct _SV2CVW2_PARAMS
477 {
478 DWORD cbSize;
479
480 IShellView *psvPrev;
481 LPCFOLDERSETTINGS pfs;
482 IShellBrowser *psbOwner;
483 RECT *prcView;
484 SHELLVIEWID const *pvid;
485 HWND hwndView;
486
487 } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
488
489 cpp_quote("#include <poppack.h>")
490
491 HRESULT GetView(
492 [in, out] SHELLVIEWID* pvid,
493 [in] ULONG uView);
494
495 HRESULT CreateViewWindow2(
496 [in] LPSV2CVW2_PARAMS lpParams);
497
498 HRESULT HandleRename(
499 [in, unique] PCUITEMID_CHILD pidlNew);
500
501 HRESULT SelectAndPositionItem(
502 [in] PCUITEMID_CHILD pidlItem,
503 [in] UINT uFlags,
504 [in, unique] POINT *ppt);
505 }
506
507
508 [
509 uuid(ec39fa88-f8af-41c5-8421-38bed28f4673),
510 object,
511 pointer_default(unique)
512 ]
513 interface IShellView3 : IShellView2
514 {
515 enum tagSV3CVW3
516 {
517 SV3CVW3_DEFAULT = 0x00000000,
518 SV3CVW3_NONINTERACTIVE = 0x00000001,
519 SV3CVW3_FORCEVIEWMODE = 0x00000002,
520 SV3CVW3_FORCEFOLDERFLAGS = 0x00000004,
521 };
522 typedef DWORD SV3CVW3_FLAGS;
523
524 HRESULT CreateViewWindow3(
525 [in] IShellBrowser *psbOwner,
526 [in, unique] IShellView *psvPrev,
527 [in] SV3CVW3_FLAGS dwViewFlags,
528 [in] FOLDERFLAGS dwMask,
529 [in] FOLDERFLAGS dwFlags,
530 [in] FOLDERVIEWMODE fvMode,
531 [in, unique] const SHELLVIEWID *pvid,
532 [in] const RECT *prcView,
533 [out] HWND *phwndView);
534 }
535
536
537 /*****************************************************************************
538 * IShellBrowser interface
539 */
540 [
541 object,
542 uuid(000214e2-0000-0000-c000-000000000046),
543 pointer_default(unique)
544 ]
545 interface IShellBrowser : IOleWindow
546 {
547 typedef IShellBrowser *LPSHELLBROWSER;
548
549 cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
550 cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
551 cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
552 cpp_quote("#define SBSP_DEFMODE 0x00000000")
553 cpp_quote("#define SBSP_OPENMODE 0x00000010")
554 cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
555 cpp_quote("#define SBSP_HELPMODE 0x00000040")
556 cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
557 cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
558 cpp_quote("#define SBSP_RELATIVE 0x00001000")
559 cpp_quote("#define SBSP_PARENT 0x00002000")
560 cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
561 cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
562 cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
563 cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
564 cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
565 cpp_quote("#define SBSP_REDIRECT 0x40000000")
566 cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
567
568 cpp_quote("#define FCW_STATUS 0x0001")
569 cpp_quote("#define FCW_TOOLBAR 0x0002")
570 cpp_quote("#define FCW_TREE 0x0003")
571 cpp_quote("#define FCW_INTERNETBAR 0x0006")
572 cpp_quote("#define FCW_PROGRESS 0x0008")
573
574 cpp_quote("#define FCT_MERGE 0x0001")
575 cpp_quote("#define FCT_CONFIGABLE 0x0002")
576 cpp_quote("#define FCT_ADDTOEND 0x0004")
577
578 cpp_quote("#if 0")
579 typedef LPARAM LPTBBUTTONSB;
580 cpp_quote("#else")
581 cpp_quote("#include <commctrl.h>")
582 cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
583 cpp_quote("#endif")
584
585 HRESULT InsertMenusSB(
586 [in] HMENU hmenuShared,
587 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
588
589 HRESULT SetMenuSB(
590 [in] HMENU hmenuShared,
591 [in] HOLEMENU holemenuReserved,
592 [in] HWND hwndActiveObject);
593
594 HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
595 HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
596 HRESULT EnableModelessSB( [in] BOOL fEnable );
597 HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
598
599 HRESULT BrowseObject(
600 [in] LPCITEMIDLIST pidl,
601 [in] UINT wFlags);
602
603 HRESULT GetViewStateStream(
604 [in] DWORD grfMode,
605 [out] IStream **ppStrm);
606
607 HRESULT GetControlWindow(
608 [in] UINT id,
609 [out] HWND *phwnd);
610
611 [local] HRESULT SendControlMsg(
612 [in] UINT id,
613 [in] UINT uMsg,
614 [in] WPARAM wParam,
615 [in] LPARAM lParam,
616 [in] LRESULT *pret);
617
618 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
619 HRESULT OnViewWindowActive( [in] IShellView *pshv );
620
621 [local]
622 HRESULT SetToolbarItems(
623 [in] LPTBBUTTONSB lpButtons,
624 [in] UINT nButtons,
625 [in] UINT uFlags);
626 }
627
628
629 /*****************************************************************************
630 * IShellLinkA interface
631 */
632 [
633 object,
634 uuid(000214ee-0000-0000-c000-000000000046),
635 pointer_default(unique)
636 ]
637 interface IShellLinkA : IUnknown
638 {
639 typedef enum
640 {
641 SLR_NO_UI = 0x0001,
642 SLR_ANY_MATCH = 0x0002,
643 SLR_UPDATE = 0x0004,
644 SLR_NOUPDATE = 0x0008,
645 SLR_NOSEARCH = 0x0010,
646 SLR_NOTRACK = 0x0020,
647 SLR_NOLINKINFO = 0x0040,
648 SLR_INVOKE_MSI = 0x0080,
649 SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
650 } SLR_FLAGS;
651
652 typedef enum
653 {
654 SLGP_SHORTPATH = 0x0001,
655 SLGP_UNCPRIORITY = 0x0002,
656 SLGP_RAWPATH = 0x0004,
657 } SLGP_FLAGS;
658
659 HRESULT GetPath(
660 [out, size_is(cch)] LPSTR pszFile,
661 [in] int cch,
662 [in, out] WIN32_FIND_DATAA *pfd,
663 [in] DWORD fFlags);
664
665 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
666
667 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
668
669 HRESULT GetDescription(
670 [out, size_is(cch)] LPSTR pszName,
671 [in] int cch);
672
673 HRESULT SetDescription( [in] LPCSTR pszName );
674
675 HRESULT GetWorkingDirectory(
676 [out, size_is(cch)] LPSTR pszDir,
677 [in] int cch);
678
679 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
680
681 HRESULT GetArguments(
682 [out, size_is(cch)] LPSTR pszArgs,
683 [in] int cch);
684
685 HRESULT SetArguments( [in] LPCSTR pszArgs );
686
687 HRESULT GetHotkey( [out] WORD *pwHotkey );
688
689 HRESULT SetHotkey( [in] WORD wHotkey );
690
691 HRESULT GetShowCmd( [out] int *piShowCmd );
692
693 HRESULT SetShowCmd( [in] int iShowCmd );
694
695 HRESULT GetIconLocation(
696 [out, size_is(cch)] LPSTR pszIconPath,
697 [in] int cch,
698 [out] int *piIcon);
699
700 HRESULT SetIconLocation(
701 [in] LPCSTR pszIconPath,
702 [in] int iIcon);
703
704 HRESULT SetRelativePath(
705 [in] LPCSTR pszPathRel,
706 [in] DWORD dwReserved);
707
708 HRESULT Resolve(
709 [in] HWND hwnd,
710 [in] DWORD fFlags);
711
712 HRESULT SetPath( [in] LPCSTR pszFile );
713 }
714
715
716 /*****************************************************************************
717 * IShellLinkW interface
718 */
719 [
720 object,
721 uuid(000214f9-0000-0000-c000-000000000046),
722 pointer_default(unique)
723 ]
724 interface IShellLinkW : IUnknown
725 {
726 HRESULT GetPath(
727 [out, size_is(cch)] LPWSTR pszFile,
728 [in] int cch,
729 [in, out] WIN32_FIND_DATAW *pfd,
730 [in] DWORD fFlags);
731
732 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
733
734 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
735
736 HRESULT GetDescription(
737 [out, size_is(cch)] LPWSTR pszName,
738 [in] int cch);
739
740 HRESULT SetDescription( [in] LPCWSTR pszName );
741
742 HRESULT GetWorkingDirectory(
743 [out, size_is(cch)] LPWSTR pszDir,
744 [in] int cch);
745
746 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
747
748 HRESULT GetArguments(
749 [out, size_is(cch)] LPWSTR pszArgs,
750 [in] int cch);
751
752 HRESULT SetArguments( [in] LPCWSTR pszArgs );
753
754 HRESULT GetHotkey( [out] WORD *pwHotkey );
755
756 HRESULT SetHotkey( [in] WORD wHotkey );
757
758 HRESULT GetShowCmd( [out] int *piShowCmd );
759
760 HRESULT SetShowCmd( [in] int iShowCmd );
761
762 HRESULT GetIconLocation(
763 [out, size_is(cch)] LPWSTR pszIconPath,
764 [in] int cch,
765 [out] int *piIcon);
766
767 HRESULT SetIconLocation(
768 [in] LPCWSTR pszIconPath,
769 [in] int iIcon);
770
771 HRESULT SetRelativePath(
772 [in] LPCWSTR pszPathRel,
773 [in] DWORD dwReserved);
774
775 HRESULT Resolve(
776 [in] HWND hwnd,
777 [in] DWORD fFlags);
778
779 HRESULT SetPath( [in] LPCWSTR pszFile );
780 }
781
782 cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
783
784
785 /*****************************************************************************
786 * IShellExtInit interface
787 */
788 [
789 object,
790 uuid(000214e8-0000-0000-c000-000000000046),
791 pointer_default(unique)
792 ]
793 interface IShellExtInit : IUnknown
794 {
795 typedef IShellExtInit *LPSHELLEXTINIT;
796
797 HRESULT Initialize(
798 [in] LPCITEMIDLIST pidlFolder,
799 [in] IDataObject *pdtobj,
800 [in] HKEY hkeyProgID);
801 }
802
803
804 /*******************************************************************************/
805 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
806 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
807 /* them here anyway. */
808 /*******************************************************************************/
809
810 #ifndef MAX_PATH
811 #define MAX_PATH 260
812 #endif
813
814
815 /*****************************************************************************
816 * IPersistFolder3 interface
817 */
818 [
819 object,
820 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
821 pointer_default(unique)
822 ]
823 interface IPersistFolder3 : IPersistFolder2
824 {
825 typedef struct
826 {
827 LPITEMIDLIST pidlTargetFolder;
828 WCHAR szTargetParsingName[MAX_PATH];
829 WCHAR szNetworkProvider[MAX_PATH];
830 DWORD dwAttributes;
831 int csidl;
832 } PERSIST_FOLDER_TARGET_INFO;
833
834 HRESULT InitializeEx(
835 [in] IBindCtx *pbc,
836 [in] LPCITEMIDLIST pidlRoot,
837 [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
838
839 HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
840 }
841
842
843 /*****************************************************************************
844 * IExtractIconA interface
845 */
846 [
847 object,
848 uuid(000214eb-0000-0000-c000-000000000046),
849 pointer_default(unique)
850 ]
851 interface IExtractIconA : IUnknown
852 {
853 cpp_quote("#define GIL_OPENICON 0x0001")
854 cpp_quote("#define GIL_FORSHELL 0x0002")
855 cpp_quote("#define GIL_ASYNC 0x0020")
856 cpp_quote("#define GIL_DEFAULTICON 0x0040")
857 cpp_quote("#define GIL_FORSHORTCUT 0x0080")
858
859 cpp_quote("#define GIL_SIMULATEDOC 0x0001")
860 cpp_quote("#define GIL_PERINSTANCE 0x0002")
861 cpp_quote("#define GIL_PERCLASS 0x0004")
862 cpp_quote("#define GIL_NOTFILENAME 0x0008")
863 cpp_quote("#define GIL_DONTCACHE 0x0010")
864
865 typedef IExtractIconA *LPEXTRACTICONA;
866
867 HRESULT GetIconLocation(
868 [in] UINT uFlags,
869 [out, size_is(cchMax)] LPSTR szIconFile,
870 [in] UINT cchMax,
871 [out] INT *piIndex,
872 [out] UINT *pwFlags);
873
874 HRESULT Extract(
875 [in] LPCSTR pszFile,
876 [in] UINT nIconIndex,
877 [out] HICON *phiconLarge,
878 [out] HICON *phiconSmall,
879 [in] UINT nIconSize );
880 }
881
882
883 /*****************************************************************************
884 * IExtractIconW interface
885 */
886 [
887 object,
888 uuid(000214fa-0000-0000-c000-000000000046),
889 pointer_default(unique)
890 ]
891 interface IExtractIconW : IUnknown
892 {
893 typedef IExtractIconW *LPEXTRACTICONW;
894
895 HRESULT GetIconLocation(
896 [in] UINT uFlags,
897 [out, size_is(cchMax)] LPWSTR szIconFile,
898 [in] UINT cchMax,
899 [out] INT *piIndex,
900 [out] UINT *pwFlags);
901
902 HRESULT Extract(
903 [in] LPCWSTR pszFile,
904 [in] UINT nIconIndex,
905 [out] HICON *phiconLarge,
906 [out] HICON *phiconSmall,
907 [in] UINT nIconSize );
908 }
909
910 cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
911 cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
912
913
914 /*****************************************************************************
915 * ICommDlgBrowser interface
916 */
917 [
918 object,
919 uuid(000214f1-0000-0000-c000-000000000046),
920 pointer_default(unique)
921 ]
922 interface ICommDlgBrowser : IUnknown
923 {
924 cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
925 cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
926 cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
927 cpp_quote("#define CDBOSC_RENAME 0x00000003")
928 cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
929
930 typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
931
932 HRESULT OnDefaultCommand( [in] IShellView *shv );
933 HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
934 HRESULT IncludeObject( [in] IShellView *shv, [in] LPCITEMIDLIST pidl );
935 }
936
937
938 /*****************************************************************************
939 * IDockingWindowFrame interface
940 */
941 [
942 object,
943 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
944 pointer_default(unique)
945 ]
946 interface IDockingWindowFrame : IOleWindow
947 {
948 cpp_quote("#define DWFRF_NORMAL 0x0000")
949 cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
950 cpp_quote("#define DWFAF_HIDDEN 0x0001")
951
952 HRESULT AddToolbar(
953 [in] IUnknown *punkSrc,
954 [in] LPCWSTR pwszItem,
955 [in] DWORD dwAddFlags);
956
957 HRESULT RemoveToolbar(
958 [in] IUnknown *punkSrc,
959 [in] DWORD dwRemoveFlags);
960
961 HRESULT FindToolbar(
962 [in] LPCWSTR pwszItem,
963 [in] REFIID riid,
964 [out] LPVOID *ppvObj);
965 }
966
967
968 /*****************************************************************************
969 * IDragSourceHelper interface
970 */
971 [
972 object,
973 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
974 pointer_default(unique)
975 ]
976 interface IDragSourceHelper : IUnknown
977 {
978 typedef struct
979 {
980 SIZE sizeDragImage;
981 POINT ptOffset;
982 HBITMAP hbmpDragImage;
983 COLORREF crColorKey;
984 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
985
986 HRESULT InitializeFromBitmap(
987 [in] LPSHDRAGIMAGE pshdi,
988 [in] IDataObject *pDataObject);
989
990 HRESULT InitializeFromWindow(
991 [in] HWND hwnd,
992 [in] POINT *ppt,
993 [in] IDataObject *pDataObject);
994 }
995
996
997 /*****************************************************************************
998 * IDropTargetHelper interface
999 */
1000 [
1001 object,
1002 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
1003 pointer_default(unique)
1004 ]
1005 interface IDropTargetHelper : IUnknown
1006 {
1007 HRESULT DragEnter(
1008 [in] HWND hwndTarget,
1009 [in] IDataObject *pDataObject,
1010 [in] POINT *ppt,
1011 [in] DWORD dwEffect);
1012
1013 HRESULT DragLeave();
1014
1015 HRESULT DragOver(
1016 [in] POINT *ppt,
1017 [in] DWORD dwEffect);
1018
1019 HRESULT Drop(
1020 [in] IDataObject *pDataObject,
1021 [in] POINT *ppt,
1022 [in] DWORD dwEffect);
1023
1024 HRESULT Show( [in] BOOL fShow );
1025 }
1026
1027
1028 /*****************************************************************************
1029 * IContextMenu interface
1030 */
1031 [
1032 object,
1033 uuid(000214e4-0000-0000-c000-000000000046),
1034 pointer_default(unique)
1035 ]
1036 interface IContextMenu : IUnknown
1037 {
1038 cpp_quote("#define CMF_NORMAL 0x00000000")
1039 cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
1040 cpp_quote("#define CMF_VERBSONLY 0x00000002")
1041 cpp_quote("#define CMF_EXPLORE 0x00000004")
1042 cpp_quote("#define CMF_NOVERBS 0x00000008")
1043 cpp_quote("#define CMF_CANRENAME 0x00000010")
1044 cpp_quote("#define CMF_NODEFAULT 0x00000020")
1045 cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
1046 cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
1047 cpp_quote("#define CMF_RESERVED 0xffff0000")
1048
1049 cpp_quote("#define GCS_VERBA 0x00000000")
1050 cpp_quote("#define GCS_HELPTEXTA 0x00000001")
1051 cpp_quote("#define GCS_VALIDATEA 0x00000002")
1052 cpp_quote("#define GCS_VERBW 0x00000004")
1053 cpp_quote("#define GCS_HELPTEXTW 0x00000005")
1054 cpp_quote("#define GCS_VALIDATEW 0x00000006")
1055 cpp_quote("#define GCS_UNICODE 0x00000004")
1056 cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1057 cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1058 cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1059
1060 cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1061 cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
1062 cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1063 cpp_quote("#if defined(__GNUC__)")
1064 cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1065 cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1066 cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1067 cpp_quote("#elif defined(_MSC_VER)")
1068 cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1069 cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1070 cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1071 cpp_quote("#else")
1072 cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1073 cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1074 cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1075 cpp_quote("#endif")
1076 cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1077 cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1078 cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1079
1080 cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1081 cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
1082 cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1083 cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1084 cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1085 cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1086 cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1087 cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1088 cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1089 cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1090 cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
1091 cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1092 cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1093 cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1094
1095 typedef IContextMenu *LPCONTEXTMENU;
1096
1097 typedef struct tagCMINVOKECOMMANDINFO
1098 {
1099 DWORD cbSize;
1100 DWORD fMask;
1101 HWND hwnd;
1102 LPCSTR lpVerb;
1103 LPCSTR lpParameters;
1104 LPCSTR lpDirectory;
1105 INT nShow;
1106 DWORD dwHotKey;
1107 HANDLE hIcon;
1108 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1109
1110 typedef struct tagCMInvokeCommandInfoEx
1111 {
1112 DWORD cbSize;
1113 DWORD fMask;
1114 HWND hwnd;
1115 LPCSTR lpVerb;
1116 LPCSTR lpParameters;
1117 LPCSTR lpDirectory;
1118 INT nShow;
1119 DWORD dwHotKey;
1120 HANDLE hIcon;
1121 LPCSTR lpTitle;
1122 LPCWSTR lpVerbW;
1123 LPCWSTR lpParametersW;
1124 LPCWSTR lpDirectoryW;
1125 LPCWSTR lpTitleW;
1126 POINT ptInvoke;
1127 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1128
1129 HRESULT QueryContextMenu(
1130 [in] HMENU hmenu,
1131 [in] UINT indexMenu,
1132 [in] UINT idCmdFirst,
1133 [in] UINT idCmdLast,
1134 [in] UINT uFlags);
1135
1136 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1137
1138 HRESULT GetCommandString(
1139 [in] UINT_PTR idCmd,
1140 [in] UINT uType,
1141 [out] UINT *pwReserved,
1142 [out, size_is(cchMax)] LPSTR pszName,
1143 [in] UINT cchMax);
1144 }
1145
1146
1147 /*****************************************************************************
1148 * IContextMenu2 interface
1149 */
1150 [
1151 object,
1152 uuid(000214f4-0000-0000-c000-000000000046),
1153 pointer_default(unique)
1154 ]
1155 interface IContextMenu2 : IContextMenu
1156 {
1157 typedef IContextMenu2 *LPCONTEXTMENU2;
1158
1159 HRESULT HandleMenuMsg(
1160 [in] UINT uMsg,
1161 [in] WPARAM wParam,
1162 [in] LPARAM lParam);
1163 }
1164
1165
1166 /*****************************************************************************
1167 * IContextMenu3 interface
1168 */
1169 [
1170 object,
1171 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1172 pointer_default(unique)
1173 ]
1174 interface IContextMenu3 : IContextMenu2
1175 {
1176 typedef IContextMenu3 *LPCONTEXTMENU3;
1177
1178 HRESULT HandleMenuMsg2(
1179 [in] UINT uMsg,
1180 [in] WPARAM wParam,
1181 [in] LPARAM lParam,
1182 [out] LRESULT *plResult);
1183 }
1184
1185
1186 /*****************************************************************************
1187 * IShellExecuteHookA interface
1188 */
1189 [
1190 object,
1191 uuid(000214f5-0000-0000-c000-000000000046),
1192 pointer_default(unique)
1193 ]
1194 interface IShellExecuteHookA : IUnknown
1195 {
1196 cpp_quote("struct _SHELLEXECUTEINFOA;")
1197 HRESULT Execute(
1198 [in, out] struct _SHELLEXECUTEINFOA* pei);
1199 }
1200
1201
1202 /*****************************************************************************
1203 * IShellExecuteHookW interface
1204 */
1205 [
1206 object,
1207 uuid(000214fb-0000-0000-c000-000000000046),
1208 pointer_default(unique)
1209 ]
1210 interface IShellExecuteHookW : IUnknown
1211 {
1212 cpp_quote("struct _SHELLEXECUTEINFOW;")
1213 HRESULT Execute(
1214 [in, out] struct _SHELLEXECUTEINFOW* pei);
1215 }
1216
1217 /*****************************************************************************
1218 * IShellLinkDataList interface
1219 */
1220 [
1221 object,
1222 uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
1223 pointer_default(unique)
1224 ]
1225 interface IShellLinkDataList : IUnknown
1226 {
1227 HRESULT AddDataBlock(
1228 [in] void *pDataBlock);
1229 HRESULT CopyDataBlock(
1230 [in] DWORD dwSig,
1231 [out] void **ppDataBlock);
1232 HRESULT RemoveDataBlock(
1233 [in] DWORD dwSig);
1234 HRESULT GetFlags(
1235 [out] DWORD *pdwFlags);
1236 HRESULT SetFlags(
1237 [in] DWORD dwFlags);
1238 }
1239
1240
1241 /*****************************************************************************
1242 * IResolveShellLink interface
1243 */
1244 [
1245 object,
1246 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1247 pointer_default(unique)
1248 ]
1249 interface IResolveShellLink : IUnknown
1250 {
1251 HRESULT ResolveShellLink(
1252 [in] IUnknown *punk,
1253 [in] HWND hwnd,
1254 [in] DWORD fFlags);
1255 }
1256
1257
1258 /*****************************************************************************
1259 * IURLSearchHook interface
1260 */
1261 [
1262 object,
1263 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1264 pointer_default(unique)
1265 ]
1266 interface IURLSearchHook : IUnknown
1267 {
1268 HRESULT Translate(
1269 [in, out] LPWSTR lpwszSearchURL,
1270 [in] DWORD cchBufferSize);
1271 }
1272
1273
1274 /*****************************************************************************
1275 * ISearchContext interface
1276 */
1277 [
1278 object,
1279 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1280 pointer_default(unique)
1281 ]
1282 interface ISearchContext : IUnknown
1283 {
1284 HRESULT GetSearchUrl(
1285 [in] BSTR *pbstrSearchUrl);
1286 HRESULT GetSearchText(
1287 [in] BSTR *pbstrSearchText);
1288 HRESULT GetSearchStyle(
1289 [in] BSTR *pdwSearchStyle);
1290 }
1291
1292
1293 /*****************************************************************************
1294 * IURLSearchHook2 interface
1295 */
1296 [
1297 object,
1298 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1299 pointer_default(unique)
1300 ]
1301 interface IURLSearchHook2 : IURLSearchHook
1302 {
1303 HRESULT TranslateWithSearchContext(
1304 [in, out] LPWSTR lpwszSearchURL,
1305 [in] DWORD cchBufferSize,
1306 [in] ISearchContext *pSearchContext);
1307 }
1308
1309
1310 cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1311
1312 /*****************************************************************************
1313 * INewShortcutHookA interface
1314 */
1315 [
1316 object,
1317 uuid(000214e1-0000-0000-c000-000000000046),
1318 pointer_default(unique)
1319 ]
1320 interface INewShortcutHookA : IUnknown
1321 {
1322 HRESULT SetReferent(
1323 [in] LPCSTR pcszReferent,
1324 [in] HWND hwnd);
1325 HRESULT GetReferent(
1326 [out] LPCSTR pcszReferent,
1327 [in] int cchReferent);
1328 HRESULT SetFolder(
1329 [in] LPCSTR pcszReferent);
1330 HRESULT GetFolder(
1331 [out] LPSTR pcszReferent,
1332 [in] int cchFolder);
1333 HRESULT GetName(
1334 [out] LPSTR pszName,
1335 [in] int cchName);
1336 HRESULT GetExtension(
1337 [out] LPSTR pszExtension,
1338 [in] int cchExtension);
1339 }
1340
1341
1342 /*****************************************************************************
1343 * INewShortcutHookW interface
1344 */
1345 [
1346 object,
1347 uuid(000214f7-0000-0000-c000-000000000046),
1348 pointer_default(unique)
1349 ]
1350 interface INewShortcutHookW : IUnknown
1351 {
1352 HRESULT SetReferent(
1353 [in] LPCWSTR pcszReferent,
1354 [in] HWND hwnd);
1355 HRESULT GetReferent(
1356 [out] LPCWSTR pcszReferent,
1357 [in] int cchReferent);
1358 HRESULT SetFolder(
1359 [in] LPCWSTR pcszReferent);
1360 HRESULT GetFolder(
1361 [out] LPWSTR pcszReferent,
1362 [in] int cchFolder);
1363 HRESULT GetName(
1364 [out] LPWSTR pszName,
1365 [in] int cchName);
1366 HRESULT GetExtension(
1367 [out] LPWSTR pszExtension,
1368 [in] int cchExtension);
1369 }
1370
1371
1372 /*****************************************************************************
1373 * IShellChangeNotify interface
1374 */
1375 [
1376 object,
1377 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
1378 pointer_default(unique)
1379 ]
1380 interface IShellChangeNotify : IUnknown
1381 {
1382 HRESULT OnChange(
1383 [in] LONG lEvent,
1384 [in] LPCITEMIDLIST pidl1,
1385 [in] LPCITEMIDLIST pidl2);
1386 }
1387
1388 /*****************************************************************************
1389 * IFileSystemBindData interface
1390 */
1391 [
1392 object,
1393 uuid(01e18d10-4d8b-11d2-855d-006008059367),
1394 pointer_default(unique)
1395 ]
1396 interface IFileSystemBindData : IUnknown
1397 {
1398 HRESULT SetFindData(
1399 [in] const WIN32_FIND_DATAW *pfd);
1400 HRESULT GetFindData(
1401 [out] WIN32_FIND_DATAW *pfd);
1402 }
1403
1404 /*****************************************************************************
1405 * IContextMenuCB interface
1406 */
1407
1408 [
1409 object,
1410 uuid(3409e930-5a39-11d1-83fa-00a0c90dc849),
1411 pointer_default(unique)
1412 ]
1413 interface IContextMenuCB : IUnknown
1414 {
1415 HRESULT CallBack(
1416 [in] IShellFolder *psf,
1417 [in] HWND hwndOwner,
1418 [in] IDataObject *pdtobj,
1419 [in] UINT uMsg,
1420 [in] WPARAM wParam,
1421 [in] LPARAM lParam);
1422 }
1423
1424 /*****************************************************************************
1425 * IDefaultExtractIconInit interface
1426 */
1427
1428 [
1429 object,
1430 uuid(800AB0B8-F5FA-4e72-8FF3-B1A243B87BD9), /* FIXME: wrong value! */
1431 pointer_default(unique)
1432 ]
1433 interface IDefaultExtractIconInit : IUnknown
1434 {
1435 HRESULT SetDefaultIcon(
1436 [in] LPCWSTR pszFile,
1437 [in] int iIcon);
1438 HRESULT SetFlags(
1439 [in] UINT uFlags);
1440 HRESULT SetKey(
1441 [in] HKEY hkey);
1442 HRESULT SetNormalIcon(
1443 [in] LPCWSTR pszFile,
1444 [in] int iIcon);
1445 HRESULT SetOpenIcon(
1446 [in] LPCWSTR pszFile,
1447 [in] int iIcon);
1448 HRESULT SetShortcutIcon(
1449 [in] LPCWSTR pszFile,
1450 [in] int iIcon);
1451 }
1452
1453
1454 /*****************************************************************************
1455 * IDockingWindow interface
1456 */
1457 [
1458 uuid(012dd920-7b26-11d0-8ca9-00a0c92dbfe8),
1459 object
1460 ]
1461 interface IDockingWindow : IOleWindow
1462 {
1463 HRESULT ShowDW([in] BOOL fShow);
1464
1465 HRESULT CloseDW([in] DWORD dwReserved);
1466
1467 HRESULT ResizeBorderDW(
1468 [in] LPCRECT prcBorder,
1469 [in] IUnknown* punkToolbarSite,
1470 [in] BOOL fReserved);
1471 }
1472
1473
1474 /*****************************************************************************
1475 * IDeskBand interface
1476 */
1477 cpp_quote("#define DBIM_MINSIZE 0x0001")
1478 cpp_quote("#define DBIM_MAXSIZE 0x0002")
1479 cpp_quote("#define DBIM_INTEGRAL 0x0004")
1480 cpp_quote("#define DBIM_ACTUAL 0x0008")
1481 cpp_quote("#define DBIM_TITLE 0x0010")
1482 cpp_quote("#define DBIM_MODEFLAGS 0x0020")
1483 cpp_quote("#define DBIM_BKCOLOR 0x0040")
1484
1485 cpp_quote("#include <pshpack8.h>")
1486
1487 typedef struct tagDESKBANDINFO
1488 {
1489 DWORD dwMask;
1490 POINTL ptMinSize;
1491 POINTL ptMaxSize;
1492 POINTL ptIntegral;
1493 POINTL ptActual;
1494 WCHAR wszTitle[256];
1495 DWORD dwModeFlags;
1496 COLORREF crBkgnd;
1497 } DESKBANDINFO;
1498
1499 cpp_quote("#include <poppack.h>")
1500
1501 cpp_quote("#define DBIMF_NORMAL 0x0000")
1502 cpp_quote("#define DBIMF_FIXED 0x0001")
1503 cpp_quote("#define DBIMF_FIXEDBMP 0x0004 // a fixed background bitmap (if supported)")
1504 cpp_quote("#define DBIMF_VARIABLEHEIGHT 0x0008")
1505 cpp_quote("#define DBIMF_UNDELETEABLE 0x0010")
1506 cpp_quote("#define DBIMF_DEBOSSED 0x0020")
1507 cpp_quote("#define DBIMF_BKCOLOR 0x0040")
1508 cpp_quote("#define DBIMF_USECHEVRON 0x0080")
1509 cpp_quote("#define DBIMF_BREAK 0x0100")
1510 cpp_quote("#define DBIMF_ADDTOFRONT 0x0200")
1511 cpp_quote("#define DBIMF_TOPALIGN 0x0400")
1512 cpp_quote("#if (NTDDI_VERSION >= NTDDI_LONGHORN)")
1513 cpp_quote("#define DBIMF_NOGRIPPER 0x0800")
1514 cpp_quote("#define DBIMF_ALWAYSGRIPPER 0x1000")
1515 cpp_quote("#define DBIMF_NOMARGINS 0x2000")
1516 cpp_quote("#endif // NTDDI_LONGHORN")
1517
1518 cpp_quote("#define DBIF_VIEWMODE_NORMAL 0x0000")
1519 cpp_quote("#define DBIF_VIEWMODE_VERTICAL 0x0001")
1520 cpp_quote("#define DBIF_VIEWMODE_FLOATING 0x0002")
1521 cpp_quote("#define DBIF_VIEWMODE_TRANSPARENT 0x0004")
1522
1523 enum tagDESKBANDCID {
1524 DBID_BANDINFOCHANGED = 0,
1525 DBID_SHOWONLY = 1,
1526 DBID_MAXIMIZEBAND = 2,
1527 DBID_PUSHCHEVRON = 3,
1528 DBID_DELAYINIT = 4,
1529 DBID_FINISHINIT = 5,
1530 DBID_SETWINDOWTHEME = 6,
1531 DBID_PERMITAUTOHIDE = 7,
1532 };
1533
1534 cpp_quote("#define DBPC_SELECTFIRST (DWORD)-1")
1535 cpp_quote("#define DBPC_SELECTLAST (DWORD)-2")
1536
1537 cpp_quote("#define CGID_DeskBand IID_IDeskBand")
1538
1539 [
1540 uuid(EB0FE172-1A3A-11D0-89B3-00A0C90A90AC),
1541 object,
1542 ]
1543 interface IDeskBand : IDockingWindow
1544 {
1545 HRESULT GetBandInfo(
1546 [in] DWORD dwBandID,
1547 [in] DWORD dwViewMode,
1548 [in, out] DESKBANDINFO* pdbi);
1549 }
1550
1551 cpp_quote("#if (NTDDI_VERSION >= NTDDI_LONGHORN)")
1552
1553 /*****************************************************************************
1554 * IDeskBandInfo interface
1555 */
1556 [
1557 uuid(77E425FC-CBF9-4307-BA6A-BB5727745661),
1558 object,
1559 ]
1560 interface IDeskBandInfo : IUnknown
1561 {
1562 HRESULT GetDefaultBandWidth(
1563 [in] DWORD dwBandID,
1564 [in] DWORD dwViewMode,
1565 [out] int *pnWidth);
1566 }
1567
1568
1569 /*****************************************************************************
1570 * IDeskBand2 interface
1571 */
1572 [
1573 uuid(79D16DE4-ABEE-4021-8D9D-9169B261D657),
1574 object,
1575 ]
1576 interface IDeskBand2 : IDeskBand
1577 {
1578 HRESULT CanRenderComposited([out] BOOL *pfCanRenderComposited);
1579
1580 HRESULT SetCompositionState([in] BOOL fCompositionEnabled);
1581
1582 HRESULT GetCompositionState([out] BOOL *pfCompositionEnabled);
1583 }
1584
1585 cpp_quote("#endif // NTDDI_LONGHORN")
1586
1587
1588
1589 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60)")
1590
1591 [
1592 uuid(EB0FE173-1A3A-11D0-89B3-00A0C90A90AC),
1593 object,
1594 pointer_default(unique),
1595 local
1596 ]
1597 interface IDeskBar : IOleWindow
1598 {
1599 HRESULT SetClient([in] IUnknown* punkClient);
1600
1601 HRESULT GetClient([out] IUnknown** ppunkClient);
1602
1603 HRESULT OnPosRectChangeDB([in] RECT *prc);
1604 }
1605
1606
1607 /*****************************************************************************
1608 * IMenuPopup interface
1609 */
1610 [
1611 uuid(D1E7AFEB-6A2E-11d0-8C78-00C04FD918B4),
1612 object,
1613 pointer_default(unique),
1614 local
1615 ]
1616 interface IMenuPopup : IDeskBar
1617 {
1618 enum tagMENUPOPUPSELECT
1619 {
1620 MPOS_EXECUTE = 0,
1621 MPOS_FULLCANCEL,
1622 MPOS_CANCELLEVEL,
1623 MPOS_SELECTLEFT,
1624 MPOS_SELECTRIGHT,
1625 MPOS_CHILDTRACKING
1626 };
1627
1628 enum tagMENUPOPUPPOPUPFLAGS
1629 {
1630 MPPF_SETFOCUS = 0x00000001,
1631 MPPF_INITIALSELECT = 0x00000002,
1632 MPPF_NOANIMATE = 0x00000004,
1633 MPPF_KEYBOARD = 0x00000010,
1634 MPPF_REPOSITION = 0x00000020,
1635 MPPF_FORCEZORDER = 0x00000040,
1636 MPPF_FINALSELECT = 0x00000080,
1637 MPPF_TOP = 0x20000000,
1638 MPPF_LEFT = 0x40000000,
1639 MPPF_RIGHT = 0x60000000,
1640 MPPF_BOTTOM = 0x80000000,
1641 MPPF_POS_MASK = 0xE0000000,
1642 MPPF_ALIGN_LEFT = 0x02000000,
1643 MPPF_ALIGN_RIGHT = 0x04000000
1644 };
1645 typedef int MP_POPUPFLAGS;
1646
1647 HRESULT Popup(
1648 [in] POINTL *ppt,
1649 [in] RECTL *prcExclude,
1650 [in] MP_POPUPFLAGS dwFlags);
1651
1652 HRESULT OnSelect([in] DWORD dwSelectType);
1653
1654 HRESULT SetSubMenu(
1655 [in] IMenuPopup* pmp,
1656 [in] BOOL fSet);
1657 }
1658
1659 cpp_quote("#endif /* _WIN32_IE_IE60 */")
1660
1661 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE40)")
1662
1663 /*****************************************************************************
1664 * IBandSite interface
1665 */
1666 cpp_quote("#include <pshpack8.h>")
1667
1668 typedef struct tagBANDSITEINFO
1669 {
1670 DWORD dwMask;
1671 DWORD dwState;
1672 DWORD dwStyle;
1673 } BANDSITEINFO;
1674
1675 cpp_quote("#include <poppack.h>")
1676
1677
1678 enum tagBANDSITECID {
1679 BSID_BANDADDED,
1680 BSID_BANDREMOVED,
1681 };
1682
1683 cpp_quote("#define BSIM_STATE 0x00000001")
1684 cpp_quote("#define BSIM_STYLE 0x00000002")
1685
1686 cpp_quote("#define BSSF_VISIBLE 0x00000001")
1687 cpp_quote("#define BSSF_NOTITLE 0x00000002")
1688 cpp_quote("#define BSSF_UNDELETEABLE 0x00001000")
1689
1690 cpp_quote("#define BSIS_AUTOGRIPPER 0x00000000")
1691 cpp_quote("#define BSIS_NOGRIPPER 0x00000001")
1692 cpp_quote("#define BSIS_ALWAYSGRIPPER 0x00000002")
1693 cpp_quote("#define BSIS_LEFTALIGN 0x00000004")
1694 cpp_quote("#define BSIS_SINGLECLICK 0x00000008")
1695 cpp_quote("#define BSIS_NOCONTEXTMENU 0x00000010")
1696 cpp_quote("#define BSIS_NODROPTARGET 0x00000020")
1697 cpp_quote("#define BSIS_NOCAPTION 0x00000040")
1698 cpp_quote("#define BSIS_PREFERNOLINEBREAK 0x00000080")
1699 cpp_quote("#define BSIS_LOCKED 0x00000100")
1700 cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
1701 cpp_quote("#define BSIS_PRESERVEORDERDURINGLAYOUT 0x00000200")
1702 cpp_quote("#endif /* _WIN32_IE_IE70 */")
1703
1704 cpp_quote("#define SID_SBandSite IID_IBandSite")
1705 cpp_quote("#define CGID_BandSite IID_IBandSite")
1706
1707 [
1708 object,
1709 uuid(4CF504B0-DE96-11D0-8B3F-00A0C911E8E5)
1710 ]
1711 interface IBandSite : IUnknown
1712 {
1713 HRESULT AddBand([in] IUnknown* punk);
1714
1715 HRESULT EnumBands(
1716 [in] UINT uBand,
1717 [out] DWORD* pdwBandID);
1718
1719 HRESULT QueryBand(
1720 [in] DWORD dwBandID,
1721 [out] IDeskBand** ppstb,
1722 [out] DWORD* pdwState,
1723 [out, string, size_is(cchName)] LPWSTR pszName,
1724 [in] int cchName);
1725
1726 HRESULT SetBandState(
1727 [in] DWORD dwBandID,
1728 [in] DWORD dwMask,
1729 [in] DWORD dwState);
1730
1731 HRESULT RemoveBand([in] DWORD dwBandID);
1732
1733 HRESULT GetBandObject(
1734 [in] DWORD dwBandID,
1735 [in] REFIID riid,
1736 [out, iid_is(riid)] void **ppv);
1737
1738 HRESULT SetBandSiteInfo([in] const BANDSITEINFO *pbsinfo);
1739
1740 HRESULT GetBandSiteInfo([in, out] BANDSITEINFO *pbsinfo);
1741 }
1742
1743 cpp_quote("#endif /* _WIN32_IE_IE40 */")
1744
1745
1746
1747