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