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