oleaut32/typelib: Fix ITypeInfo_Invoke with restricted keyword.
[wine/multimedia.git] / include / shobjidl.idl
blob5ad5bf408b5eddbd17c7e86ac3dd371e0d3f0c7d
1 /*
2 * COM interfaces for shell objects
4 * Copyright (C) 1999 Juergen Schmied
5 * Copyright (C) 2003 Alexandre Julliard
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.
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.
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
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"; */
36 cpp_quote("/* FIXME: #include <sherrors.h> */")
39 /*****************************************************************************
40 * IPersistFolder interface
43 object,
44 uuid(000214ea-0000-0000-c000-000000000046),
45 pointer_default(unique)
47 interface IPersistFolder : IPersist
49 typedef IPersistFolder *LPPERSISTFOLDER;
51 HRESULT Initialize( [in] LPCITEMIDLIST pidl );
55 /*****************************************************************************
56 * IPersistFolder2 interface
59 object,
60 uuid(1ac3d9f0-175c-11d1-95be-00609797ea4f),
61 pointer_default(unique)
63 interface IPersistFolder2 : IPersistFolder
65 typedef IPersistFolder2 *LPPERSISTFOLDER2;
67 HRESULT GetCurFolder( [out] LPITEMIDLIST *ppidl );
71 /*****************************************************************************
72 * IPersistIDList interface
75 object,
76 uuid(1079acfc-29bd-11d3-8e0d-00c04f6837d5),
77 pointer_default(unique)
79 interface IPersistIDList : IPersist
81 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
82 HRESULT GetIDList( [out] LPITEMIDLIST *ppidl );
86 /*****************************************************************************
87 * IEnumIDList interface
90 object,
91 uuid(000214f2-0000-0000-c000-000000000046),
92 pointer_default(unique)
94 interface IEnumIDList : IUnknown
96 typedef IEnumIDList *LPENUMIDLIST;
98 HRESULT Next(
99 [in] ULONG celt,
100 [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
101 [out] ULONG *pceltFetched);
103 HRESULT Skip( [in] ULONG celt );
104 HRESULT Reset();
105 HRESULT Clone( [out] IEnumIDList **ppenum );
108 /*****************************************************************************
109 * IShellPropSheetExt interface
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")
119 object,
120 uuid(000214E9-0000-0000-C000-000000000046),
121 pointer_default(unique),
122 local
124 interface IShellPropSheetExt : IUnknown
126 enum tagSHELLPROPSHEETEXTPAGEID {
127 EXPPS_FILETYPES = 0x1
130 typedef UINT EXPPS;
132 HRESULT AddPages(
133 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
134 [in] LPARAM lParam);
135 HRESULT ReplacePage(
136 [in] EXPPS uPageID,
137 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
138 [in] LPARAM lParam);
140 typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
142 /*****************************************************************************
143 * IShellFolder interface
146 object,
147 uuid(000214e6-0000-0000-c000-000000000046),
148 pointer_default(unique)
150 interface IShellFolder : IUnknown
152 typedef IShellFolder * LPSHELLFOLDER;
154 typedef enum tagSHGDN
156 SHGDN_NORMAL = 0,
157 SHGDN_INFOLDER = 1,
158 SHGDN_FOREDITING = 0x1000,
159 SHGDN_INCLUDE_NONFILESYS = 0x2000,
160 SHGDN_FORADDRESSBAR = 0x4000,
161 SHGDN_FORPARSING = 0x8000
162 } SHGNO;
164 typedef DWORD SHGDNF;
166 enum tagSHCONTF
168 SHCONTF_FOLDERS = 32,
169 SHCONTF_NONFOLDERS = 64,
170 SHCONTF_INCLUDEHIDDEN = 128,
171 SHCONTF_INIT_ON_FIRST_NEXT = 256,
172 SHCONTF_NETPRINTERSRCH = 512,
173 SHCONTF_SHAREABLE = 1024,
174 SHCONTF_STORAGE = 2048
177 typedef DWORD SHCONTF;
179 cpp_quote("#define SFGAO_CANCOPY DROPEFFECT_COPY")
180 cpp_quote("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
181 cpp_quote("#define SFGAO_CANLINK DROPEFFECT_LINK")
182 cpp_quote("#define SFGAO_STORAGE 0x00000008L")
183 cpp_quote("#define SFGAO_CANRENAME 0x00000010L")
184 cpp_quote("#define SFGAO_CANDELETE 0x00000020L")
185 cpp_quote("#define SFGAO_HASPROPSHEET 0x00000040L")
186 cpp_quote("#define SFGAO_DROPTARGET 0x00000100L")
187 cpp_quote("#define SFGAO_CAPABILITYMASK 0x00000177L")
188 cpp_quote("#define SFGAO_ENCRYPTED 0x00002000L")
189 cpp_quote("#define SFGAO_ISSLOW 0x00004000L")
190 cpp_quote("#define SFGAO_GHOSTED 0x00008000L")
191 cpp_quote("#define SFGAO_LINK 0x00010000L")
192 cpp_quote("#define SFGAO_SHARE 0x00020000L")
193 cpp_quote("#define SFGAO_READONLY 0x00040000L")
194 cpp_quote("#define SFGAO_HIDDEN 0x00080000L")
195 cpp_quote("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
196 cpp_quote("#define SFGAO_FILESYSANCESTOR 0x10000000L")
197 cpp_quote("#define SFGAO_FOLDER 0x20000000L")
198 cpp_quote("#define SFGAO_FILESYSTEM 0x40000000L")
199 cpp_quote("#define SFGAO_HASSUBFOLDER 0x80000000L")
200 cpp_quote("#define SFGAO_CONTENTSMASK 0x80000000L")
201 cpp_quote("#define SFGAO_VALIDATE 0x01000000L")
202 cpp_quote("#define SFGAO_REMOVABLE 0x02000000L")
203 cpp_quote("#define SFGAO_COMPRESSED 0x04000000L")
204 cpp_quote("#define SFGAO_BROWSABLE 0x08000000L")
205 cpp_quote("#define SFGAO_NONENUMERATED 0x00100000L")
206 cpp_quote("#define SFGAO_NEWCONTENT 0x00200000L")
207 cpp_quote("#define SFGAO_STREAM 0x00400000L")
208 cpp_quote("#define SFGAO_STORAGEANCESTOR 0x00800000L")
210 typedef ULONG SFGAOF;
212 HRESULT ParseDisplayName(
213 [in] HWND hwndOwner,
214 [in] LPBC pbcReserved,
215 [in, string] LPOLESTR lpszDisplayName,
216 [out] ULONG *pchEaten,
217 [out] LPITEMIDLIST *ppidl,
218 [in, out, unique] ULONG *pdwAttributes);
220 HRESULT EnumObjects(
221 [in] HWND hwndOwner,
222 [in] SHCONTF grfFlags,
223 [out] IEnumIDList **ppenumIDList);
225 HRESULT BindToObject(
226 [in] LPCITEMIDLIST pidl,
227 [in] LPBC pbcReserved,
228 [in] REFIID riid,
229 [out, iid_is(riid)] void **ppvOut);
231 HRESULT BindToStorage(
232 [in] LPCITEMIDLIST pidl,
233 [in] LPBC pbcReserved,
234 [in] REFIID riid,
235 [out, iid_is(riid)] void **ppvObj);
237 HRESULT CompareIDs(
238 [in] LPARAM lParam,
239 [in] LPCITEMIDLIST pidl1,
240 [in] LPCITEMIDLIST pidl2);
242 HRESULT CreateViewObject(
243 [in] HWND hwndOwner,
244 [in] REFIID riid,
245 [out, iid_is(riid)] void **ppvOut);
247 HRESULT GetAttributesOf(
248 [in] UINT cidl,
249 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
250 [in, out] SFGAOF *rgfInOut);
252 HRESULT GetUIObjectOf(
253 [in] HWND hwndOwner,
254 [in] UINT cidl,
255 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
256 [in] REFIID riid,
257 [in, out, unique] UINT *prgfInOut,
258 [out, iid_is(riid)] void **ppvOut);
260 HRESULT GetDisplayNameOf(
261 [in] LPCITEMIDLIST pidl,
262 [in] SHGDNF uFlags,
263 [out] STRRET *lpName);
265 HRESULT SetNameOf(
266 [in] HWND hwnd,
267 [in] LPCITEMIDLIST pidl,
268 [in, string] LPCOLESTR lpszName,
269 [in] SHGDNF uFlags,
270 [out] LPITEMIDLIST *ppidlOut);
274 /*****************************************************************************
275 * IEnumExtraSearch interface
278 object,
279 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
280 pointer_default(unique)
282 interface IEnumExtraSearch : IUnknown
284 typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
286 typedef struct
288 GUID guidSearch;
289 WCHAR wszFriendlyName[80];
291 *WCHAR wszMenuText[80];
292 *WCHAR wszHelpText[MAX_PATH];
294 WCHAR wszUrl[2084];
296 *WCHAR wszIcon[MAX_PATH+10];
297 *WCHAR wszGreyIcon[MAX_PATH+10];
298 *WCHAR wszClrIcon[MAX_PATH+10];
300 } EXTRASEARCH, *LPEXTRASEARCH;
302 HRESULT Next(
303 [in] ULONG celt,
304 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
305 [out] ULONG *pceltFetched);
307 HRESULT Skip( [in] ULONG celt );
308 HRESULT Reset();
309 HRESULT Clone( [out] IEnumExtraSearch **ppenum );
313 /*****************************************************************************
314 * IShellFolder2 interface
317 object,
318 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
319 pointer_default(unique)
321 interface IShellFolder2 : IShellFolder
323 typedef struct
325 GUID fmtid;
326 DWORD pid;
327 } SHCOLUMNID, *LPSHCOLUMNID;
328 typedef const SHCOLUMNID *LPCSHCOLUMNID;
330 HRESULT GetDefaultSearchGUID( [out] GUID *lpguid );
331 HRESULT EnumSearches( [out] IEnumExtraSearch **ppenum );
332 HRESULT GetDefaultColumn( [in] DWORD dwReserved, [out] ULONG *pSort, [out] ULONG *pDisplay );
333 HRESULT GetDefaultColumnState( [in] UINT iColumn, [out] SHCOLSTATEF *pcsFlags );
334 HRESULT GetDetailsEx( [in] LPCITEMIDLIST pidl, [in] const SHCOLUMNID *pscid, [out] VARIANT *pv);
335 HRESULT GetDetailsOf( [in] LPCITEMIDLIST pidl, [in] UINT iColumn, [out] SHELLDETAILS *psd);
336 HRESULT MapColumnToSCID( [in] UINT iColumn, [in] SHCOLUMNID *pscid );
339 /*****************************************************************************
340 * IShellItem interface
343 object,
344 uuid(43826d1e-e718-42ee-bc55-a1e261c37bfe),
345 pointer_default(unique)
347 interface IShellItem : IUnknown
349 typedef [v1_enum] enum {
350 SIGDN_NORMALDISPLAY = 0,
351 SIGDN_PARENTRELATIVEPARSING = 0x80018001,
352 SIGDN_DESKTOPABSOLUTEPARSING = 0x80028000,
353 SIGDN_PARENTRELATIVEEDITING = 0x80031001,
354 SIGDN_DESKTOPABSOLUTEEDITING = 0x8004c000,
355 SIGDN_FILESYSPATH = 0x80058000,
356 SIGDN_URL = 0x80068000,
357 SIGDN_PARENTRELATIVEFORADDRESSBAR = 0x8007c001,
358 SIGDN_PARENTRELATIVE = 0x80080001
359 } SIGDN; /* & 0xFFFF => SHGDN */
361 typedef DWORD SICHINTF;
363 HRESULT BindToHandler(
364 [in] IBindCtx *pbc,
365 [in] REFGUID rbhid,
366 [in] REFIID riid,
367 [out, iid_is(riid)] void **ppvOut);
369 HRESULT GetParent( [out] IShellItem **ppsi );
371 HRESULT GetDisplayName(
372 [in] SIGDN sigdnName,
373 [out] LPWSTR *ppszName);
375 HRESULT GetAttributes(
376 [in] SFGAOF sfgaoMask,
377 [out] SFGAOF *psfgaoAttribs);
379 HRESULT Compare(
380 [in] IShellItem *psi,
381 [in] SICHINTF hint,
382 [out] int *piOrder);
385 typedef enum tagNWMF {
386 NWMF_UNLOADING = 0x0001,
387 NWMF_USERINITED = 0x0002,
388 NWMF_FIRST = 0x0004,
389 NWMF_OVERRIDEKEY = 0x0008,
390 NWMF_SHOWHELP = 0x0010,
391 NWMF_HTMLDIALOG = 0x0020,
392 NWMF_FROMDIALOGCHILD = 0x0040,
393 NWMF_USERREQUESTED = 0x0080,
394 NWMF_USERALLOWED = 0x0100
395 } NWMF;
398 uuid(d2bc4c84-3f72-4a52-a604-7bcbf3982cbb),
399 object,
400 pointer_default(unique)
402 interface INewWindowManager : IUnknown
404 HRESULT EvaluateNewWindow(
405 [in, string] LPCWSTR pszUrl,
406 [in, string] LPCWSTR pszName,
407 [in, string] LPCWSTR pszUrlContext,
408 [in, string] LPCWSTR pszFeatures,
409 [in] BOOL fReplace,
410 [in] DWORD dwFlags,
411 [in] DWORD dwUserActionTime);
414 cpp_quote("#define SID_SNewWindowManager IID_INewWindowManager")
416 /*****************************************************************************
417 * FOLDERSETTINGS
419 typedef char *LPVIEWSETTINGS;
421 typedef enum
423 FWF_AUTOARRANGE = 0x00000001,
424 FWF_ABBREVIATEDNAMES = 0x00000002,
425 FWF_SNAPTOGRID = 0x00000004,
426 FWF_OWNERDATA = 0x00000008,
427 FWF_BESTFITWINDOW = 0x00000010,
428 FWF_DESKTOP = 0x00000020,
429 FWF_SINGLESEL = 0x00000040,
430 FWF_NOSUBFOLDERS = 0x00000080,
431 FWF_TRANSPARENT = 0x00000100,
432 FWF_NOCLIENTEDGE = 0x00000200,
433 FWF_NOSCROLL = 0x00000400,
434 FWF_ALIGNLEFT = 0x00000800,
435 FWF_NOICONS = 0x00001000,
436 FWF_SHOWSELALWAYS = 0x00002000,
437 FWF_NOVISIBLE = 0x00004000,
438 FWF_SINGLECLICKACTIVATE = 0x00008000,
439 FWF_NOWEBVIEW = 0x00010000,
440 FWF_HIDEFILENAMES = 0x00020000,
441 FWF_CHECKSELECT = 0x00040000,
442 FWF_NOENUMREFRESH = 0x00080000,
443 FWF_NOGROUPING = 0x00100000,
444 FWF_FULLROWSELECT = 0x00200000,
445 FWF_NOFILTERS = 0x00400000,
446 FWF_NOCOLUMNHEADER = 0x00800000,
447 FWF_NOHEADERINALLVIEWS = 0x01000000,
448 FWF_EXTENDEDTILES = 0x02000000,
449 FWF_TRICHECKSELECT = 0x04000000,
450 FWF_AUTOCHECKSELECT = 0x08000000,
451 FWF_NOBROWSERVIEWSTATE = 0x10000000,
452 FWF_SUBSETGROUPS = 0x20000000,
453 FWF_USESEARCHFOLDER = 0x40000000,
454 FWF_ALLOWRTLREADING = 0x80000000
455 } FOLDERFLAGS;
457 typedef enum
459 FVM_AUTO =-1,
460 FVM_ICON = 1,
461 FVM_FIRST = FVM_ICON,
462 FVM_SMALLICON = 2,
463 FVM_LIST = 3,
464 FVM_DETAILS = 4,
465 FVM_THUMBNAIL = 5,
466 FVM_TILE = 6,
467 FVM_THUMBSTRIP = 7,
468 FVM_CONTENT = 8,
469 FVM_LAST = FVM_CONTENT
470 } FOLDERVIEWMODE;
472 typedef struct
474 UINT ViewMode;
475 UINT fFlags;
476 } FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
477 typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
479 /*****************************************************************************
480 * IShellIcon interface
483 uuid(000214e5-0000-0000-c000-000000000046),
484 object,
485 pointer_default(unique)
487 interface IShellIcon : IUnknown
489 HRESULT GetIconOf(
490 [in] PCUITEMID_CHILD pidl,
491 [in] UINT flags,
492 [out] int *pIconIndex);
495 /*****************************************************************************
496 * IShellView interface
498 interface IShellBrowser; /* forward declaration */
500 object,
501 uuid(000214e3-0000-0000-c000-000000000046),
502 pointer_default(unique)
504 interface IShellView : IOleWindow
506 typedef IShellView *LPSHELLVIEW;
508 cpp_quote("#define SVSI_DESELECT 0x00000000")
509 cpp_quote("#define SVSI_SELECT 0x00000001")
510 cpp_quote("#define SVSI_EDIT 0x00000003")
511 cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
512 cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
513 cpp_quote("#define SVSI_FOCUSED 0x00000010")
514 cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
515 cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
516 cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
517 cpp_quote("#define SVSI_CHECK 0x00000100")
518 cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
520 typedef UINT SVSIF;
522 typedef enum
524 SVGIO_BACKGROUND = 0x00000000,
525 SVGIO_SELECTION = 0x00000001,
526 SVGIO_ALLVIEW = 0x00000002,
527 SVGIO_CHECKED = 0x00000003,
528 SVGIO_TYPE_MASK = 0x0000000f,
529 SVGIO_FLAG_VIEWORDER = 0x80000000,
530 } SVGIO;
532 typedef enum
534 SVUIA_DEACTIVATE = 0,
535 SVUIA_ACTIVATE_NOFOCUS = 1,
536 SVUIA_ACTIVATE_FOCUS = 2,
537 SVUIA_INPLACEACTIVATE = 3
538 } SVUIA_STATUS;
540 HRESULT TranslateAccelerator( [in] MSG *pmsg );
541 HRESULT EnableModeless( [in] BOOL fEnable );
542 HRESULT UIActivate( [in] UINT uState );
543 HRESULT Refresh();
544 HRESULT CreateViewWindow(
545 [in] IShellView *psvPrevious,
546 [in] LPCFOLDERSETTINGS lpfs,
547 [in] IShellBrowser *psb,
548 [out] RECT *prcView,
549 [out] HWND *phWnd);
551 HRESULT DestroyViewWindow();
552 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
554 [local] HRESULT AddPropertySheetPages(
555 [in] DWORD dwReserved,
556 [in] LPFNSVADDPROPSHEETPAGE pfn,
557 [in] LPARAM lparam);
559 HRESULT SaveViewState();
560 HRESULT SelectItem(
561 [in] LPCITEMIDLIST pidlItem,
562 [in] SVSIF uFlags);
563 HRESULT GetItemObject(
564 [in] UINT uItem,
565 [in] REFIID riid,
566 [out, iid_is(riid)] void **ppv);
570 object,
571 uuid(88e39e80-3578-11cf-ae69-08002b2e1262),
572 pointer_default(unique)
574 interface IShellView2 : IShellView
576 typedef GUID SHELLVIEWID;
577 cpp_quote("#include <pshpack8.h>")
578 typedef struct _SV2CVW2_PARAMS
580 DWORD cbSize;
581 IShellView *psvPrev;
582 LPCFOLDERSETTINGS pfs;
583 IShellBrowser *psbOwner;
584 RECT *prcView;
585 SHELLVIEWID const *pvid;
586 HWND hwndView;
587 } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
588 cpp_quote("#include <poppack.h>")
590 HRESULT GetView(
591 [in, out] SHELLVIEWID *view_guid,
592 [in] ULONG view_type
594 HRESULT CreateViewWindow2(
595 [in] LPSV2CVW2_PARAMS view_params
597 HRESULT HandleRename(
598 [in] LPCITEMIDLIST new_pidl
600 HRESULT SelectAndPositionItem(
601 [in] LPCITEMIDLIST item,
602 [in] UINT flags,
603 [in] POINT *point
607 /*****************************************************************************
608 * IFolderView interface
611 uuid(cde725b0-ccc9-4519-917e-325d72fab4ce),
612 object,
613 pointer_default(unique)
615 interface IFolderView : IUnknown
617 HRESULT GetCurrentViewMode( [out] UINT *mode );
618 HRESULT SetCurrentViewMode( [in] UINT mode );
619 HRESULT GetFolder( [in] REFIID riid, [out, iid_is(riid)] void **ppv );
620 HRESULT Item(
621 [in] int index,
622 [out] PITEMID_CHILD *ppidl
624 HRESULT ItemCount(
625 [in] UINT flags,
626 [out] int *items
628 HRESULT Items(
629 [in] UINT flags,
630 [in] REFIID riid,
631 [out, iid_is(riid)] void **ppv
633 HRESULT GetSelectionMarkedItem( [out] int *item );
634 HRESULT GetFocusedItem( [out] int *item );
635 HRESULT GetItemPosition(
636 [in] PCUITEMID_CHILD pidl,
637 [out] POINT* ppt
639 HRESULT GetSpacing( [in, out, unique] POINT* pt );
640 HRESULT GetDefaultSpacing( [out] POINT* pt );
641 HRESULT GetAutoArrange();
642 HRESULT SelectItem(
643 [in] int item,
644 [in] DWORD flags
646 HRESULT SelectAndPositionItems(
647 [in] UINT cidl,
648 [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl,
649 [in, unique, size_is(cidl)] POINT* apt,
650 [in] DWORD flags
654 /*****************************************************************************
655 * IShellBrowser interface
658 object,
659 uuid(000214e2-0000-0000-c000-000000000046),
660 pointer_default(unique)
662 interface IShellBrowser : IOleWindow
664 typedef IShellBrowser *LPSHELLBROWSER;
666 cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
667 cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
668 cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
669 cpp_quote("#define SBSP_DEFMODE 0x00000000")
670 cpp_quote("#define SBSP_OPENMODE 0x00000010")
671 cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
672 cpp_quote("#define SBSP_HELPMODE 0x00000040")
673 cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
674 cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
675 cpp_quote("#define SBSP_RELATIVE 0x00001000")
676 cpp_quote("#define SBSP_PARENT 0x00002000")
677 cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
678 cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
679 cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
680 cpp_quote("#define SBSP_KEEPSAMETEMPLATE 0x00020000")
681 cpp_quote("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")
682 cpp_quote("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")
683 cpp_quote("#define SBSP_CREATENOHISTORY 0x00100000")
684 cpp_quote("#define SBSP_PLAYNOSOUND 0x00200000")
685 cpp_quote("#define SBSP_CALLERUNTURUSTED 0x00800000")
686 cpp_quote("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
687 cpp_quote("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
688 cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
689 cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
690 cpp_quote("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
691 cpp_quote("#define SBSP_FEEDNAVIGATION 0x20000000")
692 cpp_quote("#define SBSP_REDIRECT 0x40000000")
693 cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
695 cpp_quote("#define FCW_STATUS 0x0001")
696 cpp_quote("#define FCW_TOOLBAR 0x0002")
697 cpp_quote("#define FCW_TREE 0x0003")
698 cpp_quote("#define FCW_INTERNETBAR 0x0006")
699 cpp_quote("#define FCW_PROGRESS 0x0008")
701 cpp_quote("#define FCT_MERGE 0x0001")
702 cpp_quote("#define FCT_CONFIGABLE 0x0002")
703 cpp_quote("#define FCT_ADDTOEND 0x0004")
705 cpp_quote("#if 0")
706 typedef LPARAM LPTBBUTTONSB;
707 cpp_quote("#else")
708 cpp_quote("#include <commctrl.h>")
709 cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
710 cpp_quote("#endif")
712 HRESULT InsertMenusSB(
713 [in] HMENU hmenuShared,
714 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
716 HRESULT SetMenuSB(
717 [in] HMENU hmenuShared,
718 [in] HOLEMENU holemenuReserved,
719 [in] HWND hwndActiveObject);
721 HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
722 HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
723 HRESULT EnableModelessSB( [in] BOOL fEnable );
724 HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
726 HRESULT BrowseObject(
727 [in] LPCITEMIDLIST pidl,
728 [in] UINT wFlags);
730 HRESULT GetViewStateStream(
731 [in] DWORD grfMode,
732 [out] IStream **ppStrm);
734 HRESULT GetControlWindow(
735 [in] UINT id,
736 [out] HWND *phwnd);
738 [local] HRESULT SendControlMsg(
739 [in] UINT id,
740 [in] UINT uMsg,
741 [in] WPARAM wParam,
742 [in] LPARAM lParam,
743 [in] LRESULT *pret);
745 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
746 HRESULT OnViewWindowActive( [in] IShellView *pshv );
748 [local]
749 HRESULT SetToolbarItems(
750 [in] LPTBBUTTONSB lpButtons,
751 [in] UINT nButtons,
752 [in] UINT uFlags);
756 /*****************************************************************************
757 * IShellLinkA interface
760 object,
761 uuid(000214ee-0000-0000-c000-000000000046),
762 pointer_default(unique)
764 interface IShellLinkA : IUnknown
766 typedef enum
768 SLR_NO_UI = 0x0001,
769 SLR_ANY_MATCH = 0x0002,
770 SLR_UPDATE = 0x0004,
771 SLR_NOUPDATE = 0x0008,
772 SLR_NOSEARCH = 0x0010,
773 SLR_NOTRACK = 0x0020,
774 SLR_NOLINKINFO = 0x0040,
775 SLR_INVOKE_MSI = 0x0080,
776 SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
777 } SLR_FLAGS;
779 typedef enum
781 SLGP_SHORTPATH = 0x0001,
782 SLGP_UNCPRIORITY = 0x0002,
783 SLGP_RAWPATH = 0x0004,
784 } SLGP_FLAGS;
786 HRESULT GetPath(
787 [out, size_is(cch)] LPSTR pszFile,
788 [in] int cch,
789 [in, out, unique] WIN32_FIND_DATAA *pfd,
790 [in] DWORD fFlags);
792 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
794 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
796 HRESULT GetDescription(
797 [out, size_is(cch)] LPSTR pszName,
798 [in] int cch);
800 HRESULT SetDescription( [in] LPCSTR pszName );
802 HRESULT GetWorkingDirectory(
803 [out, size_is(cch)] LPSTR pszDir,
804 [in] int cch);
806 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
808 HRESULT GetArguments(
809 [out, size_is(cch)] LPSTR pszArgs,
810 [in] int cch);
812 HRESULT SetArguments( [in] LPCSTR pszArgs );
814 HRESULT GetHotkey( [out] WORD *pwHotkey );
816 HRESULT SetHotkey( [in] WORD wHotkey );
818 HRESULT GetShowCmd( [out] int *piShowCmd );
820 HRESULT SetShowCmd( [in] int iShowCmd );
822 HRESULT GetIconLocation(
823 [out, size_is(cch)] LPSTR pszIconPath,
824 [in] int cch,
825 [out] int *piIcon);
827 HRESULT SetIconLocation(
828 [in] LPCSTR pszIconPath,
829 [in] int iIcon);
831 HRESULT SetRelativePath(
832 [in] LPCSTR pszPathRel,
833 [in] DWORD dwReserved);
835 HRESULT Resolve(
836 [in] HWND hwnd,
837 [in] DWORD fFlags);
839 HRESULT SetPath( [in] LPCSTR pszFile );
843 /*****************************************************************************
844 * IShellLinkW interface
847 object,
848 uuid(000214f9-0000-0000-c000-000000000046),
849 pointer_default(unique)
851 interface IShellLinkW : IUnknown
853 HRESULT GetPath(
854 [out, size_is(cch)] LPWSTR pszFile,
855 [in] int cch,
856 [in, out] WIN32_FIND_DATAW *pfd,
857 [in] DWORD fFlags);
859 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
861 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
863 HRESULT GetDescription(
864 [out, size_is(cch)] LPWSTR pszName,
865 [in] int cch);
867 HRESULT SetDescription( [in] LPCWSTR pszName );
869 HRESULT GetWorkingDirectory(
870 [out, size_is(cch)] LPWSTR pszDir,
871 [in] int cch);
873 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
875 HRESULT GetArguments(
876 [out, size_is(cch)] LPWSTR pszArgs,
877 [in] int cch);
879 HRESULT SetArguments( [in] LPCWSTR pszArgs );
881 HRESULT GetHotkey( [out] WORD *pwHotkey );
883 HRESULT SetHotkey( [in] WORD wHotkey );
885 HRESULT GetShowCmd( [out] int *piShowCmd );
887 HRESULT SetShowCmd( [in] int iShowCmd );
889 HRESULT GetIconLocation(
890 [out, size_is(cch)] LPWSTR pszIconPath,
891 [in] int cch,
892 [out] int *piIcon);
894 HRESULT SetIconLocation(
895 [in] LPCWSTR pszIconPath,
896 [in] int iIcon);
898 HRESULT SetRelativePath(
899 [in] LPCWSTR pszPathRel,
900 [in] DWORD dwReserved);
902 HRESULT Resolve(
903 [in] HWND hwnd,
904 [in] DWORD fFlags);
906 HRESULT SetPath( [in] LPCWSTR pszFile );
909 cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
912 /*****************************************************************************
913 * IShellExtInit interface
916 object,
917 uuid(000214e8-0000-0000-c000-000000000046),
918 pointer_default(unique),
919 local
921 interface IShellExtInit : IUnknown
923 typedef IShellExtInit *LPSHELLEXTINIT;
925 HRESULT Initialize(
926 [in] LPCITEMIDLIST pidlFolder,
927 [in] IDataObject *pdtobj,
928 [in] HKEY hkeyProgID);
932 /*******************************************************************************/
933 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
934 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
935 /* them here anyway. */
936 /*******************************************************************************/
938 #ifndef MAX_PATH
939 #define MAX_PATH 260
940 #endif
943 /*****************************************************************************
944 * IPersistFolder3 interface
947 object,
948 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
949 pointer_default(unique)
951 interface IPersistFolder3 : IPersistFolder2
953 typedef struct
955 LPITEMIDLIST pidlTargetFolder;
956 WCHAR szTargetParsingName[MAX_PATH];
957 WCHAR szNetworkProvider[MAX_PATH];
958 DWORD dwAttributes;
959 int csidl;
960 } PERSIST_FOLDER_TARGET_INFO;
962 HRESULT InitializeEx(
963 [in] IBindCtx *pbc,
964 [in] LPCITEMIDLIST pidlRoot,
965 [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
967 HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
971 /*****************************************************************************
972 * IExtractIconA interface
975 object,
976 uuid(000214eb-0000-0000-c000-000000000046),
977 pointer_default(unique),
978 local
980 interface IExtractIconA : IUnknown
982 cpp_quote("#define GIL_OPENICON 0x0001")
983 cpp_quote("#define GIL_FORSHELL 0x0002")
984 cpp_quote("#define GIL_ASYNC 0x0020")
985 cpp_quote("#define GIL_DEFAULTICON 0x0040")
986 cpp_quote("#define GIL_FORSHORTCUT 0x0080")
988 cpp_quote("#define GIL_SIMULATEDOC 0x0001")
989 cpp_quote("#define GIL_PERINSTANCE 0x0002")
990 cpp_quote("#define GIL_PERCLASS 0x0004")
991 cpp_quote("#define GIL_NOTFILENAME 0x0008")
992 cpp_quote("#define GIL_DONTCACHE 0x0010")
994 typedef IExtractIconA *LPEXTRACTICONA;
996 HRESULT GetIconLocation(
997 [in] UINT uFlags,
998 [out, size_is(cchMax)] LPSTR szIconFile,
999 [in] UINT cchMax,
1000 [out] INT *piIndex,
1001 [out] UINT *pwFlags);
1003 HRESULT Extract(
1004 [in] LPCSTR pszFile,
1005 [in] UINT nIconIndex,
1006 [out] HICON *phiconLarge,
1007 [out] HICON *phiconSmall,
1008 [in] UINT nIconSize );
1012 /*****************************************************************************
1013 * IExtractIconW interface
1016 object,
1017 uuid(000214fa-0000-0000-c000-000000000046),
1018 pointer_default(unique),
1019 local
1021 interface IExtractIconW : IUnknown
1023 typedef IExtractIconW *LPEXTRACTICONW;
1025 HRESULT GetIconLocation(
1026 [in] UINT uFlags,
1027 [out, size_is(cchMax)] LPWSTR szIconFile,
1028 [in] UINT cchMax,
1029 [out] INT *piIndex,
1030 [out] UINT *pwFlags);
1032 HRESULT Extract(
1033 [in] LPCWSTR pszFile,
1034 [in] UINT nIconIndex,
1035 [out] HICON *phiconLarge,
1036 [out] HICON *phiconSmall,
1037 [in] UINT nIconSize );
1040 cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
1041 cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
1044 /*****************************************************************************
1045 * ICommDlgBrowser interface
1048 object,
1049 uuid(000214f1-0000-0000-c000-000000000046),
1050 pointer_default(unique)
1052 interface ICommDlgBrowser : IUnknown
1054 cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
1055 cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
1056 cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
1057 cpp_quote("#define CDBOSC_RENAME 0x00000003")
1058 cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
1060 typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
1062 HRESULT OnDefaultCommand( [in] IShellView *shv );
1063 HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
1064 HRESULT IncludeObject( [in] IShellView *shv, [in] LPCITEMIDLIST pidl );
1068 /*****************************************************************************
1069 * ICommDlgBrowser2 interface
1072 object,
1073 uuid(10339516-2894-11D2-9039-00C04F8EEB3E),
1074 pointer_default(unique)
1076 interface ICommDlgBrowser2 : ICommDlgBrowser
1079 HRESULT Notify(
1080 [in] IShellView *ppshv,
1081 [in] DWORD dwNotifyType);
1083 HRESULT GetDefaultMenuText(
1084 [in] IShellView *ppshv,
1085 [out, string, size_is(cchMax)] LPWSTR pszText,
1086 [in] int cchMax);
1088 HRESULT GetViewFlags(
1089 [out] DWORD *pdwFlags);
1093 /*****************************************************************************
1094 * ICommDlgBrowser3 interface
1097 object,
1098 uuid(C8AD25A1-3294-41EE-8165-71174BD01C57),
1099 pointer_default(unique)
1101 interface ICommDlgBrowser3 : ICommDlgBrowser2
1104 HRESULT OnColumnClicked(
1105 [in] IShellView *ppshv,
1106 [in] int iColumn);
1108 HRESULT GetCurrentFilter(
1109 [out, string, size_is(cchFileSpec)] LPWSTR pszFileSpec,
1110 [in] int cchFileSpec);
1112 HRESULT OnPreviewCreated(
1113 [in] IShellView *ppshv);
1117 /*****************************************************************************
1118 * IDockingWindowFrame interface
1121 object,
1122 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
1123 pointer_default(unique),
1124 local
1126 interface IDockingWindowFrame : IOleWindow
1128 cpp_quote("#define DWFRF_NORMAL 0x0000")
1129 cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
1130 cpp_quote("#define DWFAF_HIDDEN 0x0001")
1132 HRESULT AddToolbar(
1133 [in] IUnknown *punkSrc,
1134 [in] LPCWSTR pwszItem,
1135 [in] DWORD dwAddFlags);
1137 HRESULT RemoveToolbar(
1138 [in] IUnknown *punkSrc,
1139 [in] DWORD dwRemoveFlags);
1141 HRESULT FindToolbar(
1142 [in] LPCWSTR pwszItem,
1143 [in] REFIID riid,
1144 [out] LPVOID *ppvObj);
1148 /*****************************************************************************
1149 * IDragSourceHelper interface
1152 object,
1153 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
1154 pointer_default(unique),
1155 local
1157 interface IDragSourceHelper : IUnknown
1159 typedef struct
1161 SIZE sizeDragImage;
1162 POINT ptOffset;
1163 HBITMAP hbmpDragImage;
1164 COLORREF crColorKey;
1165 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
1167 HRESULT InitializeFromBitmap(
1168 [in] LPSHDRAGIMAGE pshdi,
1169 [in] IDataObject *pDataObject);
1171 HRESULT InitializeFromWindow(
1172 [in] HWND hwnd,
1173 [in] POINT *ppt,
1174 [in] IDataObject *pDataObject);
1178 /*****************************************************************************
1179 * IDropTargetHelper interface
1182 object,
1183 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
1184 pointer_default(unique),
1185 local
1187 interface IDropTargetHelper : IUnknown
1189 HRESULT DragEnter(
1190 [in] HWND hwndTarget,
1191 [in] IDataObject *pDataObject,
1192 [in] POINT *ppt,
1193 [in] DWORD dwEffect);
1195 HRESULT DragLeave();
1197 HRESULT DragOver(
1198 [in] POINT *ppt,
1199 [in] DWORD dwEffect);
1201 HRESULT Drop(
1202 [in] IDataObject *pDataObject,
1203 [in] POINT *ppt,
1204 [in] DWORD dwEffect);
1206 HRESULT Show( [in] BOOL fShow );
1210 /*****************************************************************************
1211 * IContextMenu interface
1214 object,
1215 uuid(000214e4-0000-0000-c000-000000000046),
1216 pointer_default(unique),
1217 local
1219 interface IContextMenu : IUnknown
1221 cpp_quote("#define CMF_NORMAL 0x00000000")
1222 cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
1223 cpp_quote("#define CMF_VERBSONLY 0x00000002")
1224 cpp_quote("#define CMF_EXPLORE 0x00000004")
1225 cpp_quote("#define CMF_NOVERBS 0x00000008")
1226 cpp_quote("#define CMF_CANRENAME 0x00000010")
1227 cpp_quote("#define CMF_NODEFAULT 0x00000020")
1228 cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
1229 cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
1230 cpp_quote("#define CMF_RESERVED 0xffff0000")
1232 cpp_quote("#define GCS_VERBA 0x00000000")
1233 cpp_quote("#define GCS_HELPTEXTA 0x00000001")
1234 cpp_quote("#define GCS_VALIDATEA 0x00000002")
1235 cpp_quote("#define GCS_VERBW 0x00000004")
1236 cpp_quote("#define GCS_HELPTEXTW 0x00000005")
1237 cpp_quote("#define GCS_VALIDATEW 0x00000006")
1238 cpp_quote("#define GCS_UNICODE 0x00000004")
1239 cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1240 cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1241 cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1243 cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1244 cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
1245 cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1246 cpp_quote("#if defined(__GNUC__)")
1247 cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1248 cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1249 cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1250 cpp_quote("#elif defined(_MSC_VER)")
1251 cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1252 cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1253 cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1254 cpp_quote("#else")
1255 cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1256 cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1257 cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1258 cpp_quote("#endif")
1259 cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1260 cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1261 cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1263 cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1264 cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
1265 cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1266 cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1267 cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1268 cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1269 cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1270 cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1271 cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1272 cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1273 cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
1274 cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1275 cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1276 cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1278 typedef IContextMenu *LPCONTEXTMENU;
1280 typedef struct tagCMINVOKECOMMANDINFO
1282 DWORD cbSize;
1283 DWORD fMask;
1284 HWND hwnd;
1285 LPCSTR lpVerb;
1286 LPCSTR lpParameters;
1287 LPCSTR lpDirectory;
1288 INT nShow;
1289 DWORD dwHotKey;
1290 HANDLE hIcon;
1291 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1293 typedef struct tagCMInvokeCommandInfoEx
1295 DWORD cbSize;
1296 DWORD fMask;
1297 HWND hwnd;
1298 LPCSTR lpVerb;
1299 LPCSTR lpParameters;
1300 LPCSTR lpDirectory;
1301 INT nShow;
1302 DWORD dwHotKey;
1303 HANDLE hIcon;
1304 LPCSTR lpTitle;
1305 LPCWSTR lpVerbW;
1306 LPCWSTR lpParametersW;
1307 LPCWSTR lpDirectoryW;
1308 LPCWSTR lpTitleW;
1309 POINT ptInvoke;
1310 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1312 HRESULT QueryContextMenu(
1313 [in] HMENU hmenu,
1314 [in] UINT indexMenu,
1315 [in] UINT idCmdFirst,
1316 [in] UINT idCmdLast,
1317 [in] UINT uFlags);
1319 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1321 HRESULT GetCommandString(
1322 [in] UINT_PTR idCmd,
1323 [in] UINT uType,
1324 [out] UINT *pwReserved,
1325 [out, size_is(cchMax)] LPSTR pszName,
1326 [in] UINT cchMax);
1330 /*****************************************************************************
1331 * IContextMenu2 interface
1334 object,
1335 uuid(000214f4-0000-0000-c000-000000000046),
1336 pointer_default(unique),
1337 local
1339 interface IContextMenu2 : IContextMenu
1341 typedef IContextMenu2 *LPCONTEXTMENU2;
1343 HRESULT HandleMenuMsg(
1344 [in] UINT uMsg,
1345 [in] WPARAM wParam,
1346 [in] LPARAM lParam);
1350 /*****************************************************************************
1351 * IContextMenu3 interface
1354 object,
1355 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1356 pointer_default(unique),
1357 local
1359 interface IContextMenu3 : IContextMenu2
1361 typedef IContextMenu3 *LPCONTEXTMENU3;
1363 HRESULT HandleMenuMsg2(
1364 [in] UINT uMsg,
1365 [in] WPARAM wParam,
1366 [in] LPARAM lParam,
1367 [out] LRESULT *plResult);
1371 /*****************************************************************************
1372 * IShellExecuteHookA interface
1375 object,
1376 uuid(000214f5-0000-0000-c000-000000000046),
1377 pointer_default(unique),
1378 local
1380 interface IShellExecuteHookA : IUnknown
1382 cpp_quote("struct _SHELLEXECUTEINFOA;")
1383 HRESULT Execute(
1384 [in, out] struct _SHELLEXECUTEINFOA* pei);
1388 /*****************************************************************************
1389 * IShellExecuteHookW interface
1392 object,
1393 uuid(000214fb-0000-0000-c000-000000000046),
1394 pointer_default(unique),
1395 local
1397 interface IShellExecuteHookW : IUnknown
1399 cpp_quote("struct _SHELLEXECUTEINFOW;")
1400 HRESULT Execute(
1401 [in, out] struct _SHELLEXECUTEINFOW* pei);
1404 /*****************************************************************************
1405 * IShellLinkDataList interface
1408 object,
1409 uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
1410 pointer_default(unique)
1412 interface IShellLinkDataList : IUnknown
1414 [local] HRESULT AddDataBlock(
1415 [in] void *pDataBlock);
1416 [local] HRESULT CopyDataBlock(
1417 [in] DWORD dwSig,
1418 [out] void **ppDataBlock);
1419 HRESULT RemoveDataBlock(
1420 [in] DWORD dwSig);
1421 HRESULT GetFlags(
1422 [out] DWORD *pdwFlags);
1423 HRESULT SetFlags(
1424 [in] DWORD dwFlags);
1428 /*****************************************************************************
1429 * IResolveShellLink interface
1432 object,
1433 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1434 pointer_default(unique)
1436 interface IResolveShellLink : IUnknown
1438 HRESULT ResolveShellLink(
1439 [in] IUnknown *punk,
1440 [in] HWND hwnd,
1441 [in] DWORD fFlags);
1445 /*****************************************************************************
1446 * IURLSearchHook interface
1449 object,
1450 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1451 pointer_default(unique),
1452 local
1454 interface IURLSearchHook : IUnknown
1456 HRESULT Translate(
1457 [in, out] LPWSTR lpwszSearchURL,
1458 [in] DWORD cchBufferSize);
1462 /*****************************************************************************
1463 * ISearchContext interface
1466 object,
1467 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1468 pointer_default(unique),
1469 local
1471 interface ISearchContext : IUnknown
1473 HRESULT GetSearchUrl(
1474 [in] BSTR *pbstrSearchUrl);
1475 HRESULT GetSearchText(
1476 [in] BSTR *pbstrSearchText);
1477 HRESULT GetSearchStyle(
1478 [in] BSTR *pdwSearchStyle);
1482 /*****************************************************************************
1483 * IURLSearchHook2 interface
1486 object,
1487 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1488 pointer_default(unique),
1489 local
1491 interface IURLSearchHook2 : IURLSearchHook
1493 HRESULT TranslateWithSearchContext(
1494 [in, out] LPWSTR lpwszSearchURL,
1495 [in] DWORD cchBufferSize,
1496 [in] ISearchContext *pSearchContext);
1500 cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1502 /*****************************************************************************
1503 * INewShortcutHookA interface
1506 object,
1507 uuid(000214e1-0000-0000-c000-000000000046),
1508 pointer_default(unique),
1509 local
1511 interface INewShortcutHookA : IUnknown
1513 HRESULT SetReferent(
1514 [in] LPCSTR pcszReferent,
1515 [in] HWND hwnd);
1516 HRESULT GetReferent(
1517 [out] LPSTR pcszReferent,
1518 [in] int cchReferent);
1519 HRESULT SetFolder(
1520 [in] LPCSTR pcszReferent);
1521 HRESULT GetFolder(
1522 [out] LPSTR pcszReferent,
1523 [in] int cchFolder);
1524 HRESULT GetName(
1525 [out] LPSTR pszName,
1526 [in] int cchName);
1527 HRESULT GetExtension(
1528 [out] LPSTR pszExtension,
1529 [in] int cchExtension);
1533 /*****************************************************************************
1534 * INewShortcutHookW interface
1537 object,
1538 uuid(000214f7-0000-0000-c000-000000000046),
1539 pointer_default(unique),
1540 local
1542 interface INewShortcutHookW : IUnknown
1544 HRESULT SetReferent(
1545 [in] LPCWSTR pcszReferent,
1546 [in] HWND hwnd);
1547 HRESULT GetReferent(
1548 [out] LPWSTR pcszReferent,
1549 [in] int cchReferent);
1550 HRESULT SetFolder(
1551 [in] LPCWSTR pcszReferent);
1552 HRESULT GetFolder(
1553 [out] LPWSTR pcszReferent,
1554 [in] int cchFolder);
1555 HRESULT GetName(
1556 [out] LPWSTR pszName,
1557 [in] int cchName);
1558 HRESULT GetExtension(
1559 [out] LPWSTR pszExtension,
1560 [in] int cchExtension);
1563 /*****************************************************************************
1564 * IRunnableTask interface
1567 object,
1568 uuid(85788d00-6807-11d0-b810-00c04fd706ec),
1569 pointer_default(unique),
1570 local
1572 interface IRunnableTask : IUnknown
1574 HRESULT Run();
1575 HRESULT Kill([in] BOOL fWait);
1576 HRESULT Suspend();
1577 HRESULT Resume();
1578 ULONG IsRunning();
1581 /*****************************************************************************
1582 * IShellChangeNotify interface
1585 object,
1586 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
1587 pointer_default(unique),
1588 local
1590 interface IShellChangeNotify : IUnknown
1592 HRESULT OnChange(
1593 [in] LONG lEvent,
1594 [in] LPCITEMIDLIST pidl1,
1595 [in] LPCITEMIDLIST pidl2);
1598 /*****************************************************************************
1599 * IFileSystemBindData interface
1602 object,
1603 uuid(01e18d10-4d8b-11d2-855d-006008059367),
1604 pointer_default(unique),
1605 local
1607 interface IFileSystemBindData : IUnknown
1609 HRESULT SetFindData(
1610 [in] const WIN32_FIND_DATAW *pfd);
1611 HRESULT GetFindData(
1612 [out] WIN32_FIND_DATAW *pfd);
1615 /*****************************************************************************
1616 * ITaskbarList interface
1619 object,
1620 uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
1621 pointer_default(unique)
1623 interface ITaskbarList : IUnknown
1625 HRESULT HrInit();
1627 HRESULT AddTab(
1628 [in] HWND hwnd);
1630 HRESULT DeleteTab(
1631 [in] HWND hwnd);
1633 HRESULT ActivateTab(
1634 [in] HWND hwnd);
1636 HRESULT SetActiveAlt(
1637 [in] HWND hwnd);
1640 cpp_quote("EXTERN_C const CLSID CLSID_TaskbarList;")
1642 /*****************************************************************************
1643 * IAutoCompleteDropDown interface
1646 object,
1647 uuid(3CD141F4-3C6A-11d2-BCAA-00C04FD929DB),
1648 pointer_default(unique)
1650 interface IAutoCompleteDropDown : IUnknown
1652 cpp_quote("#define ACDD_VISIBLE 0x0001")
1654 HRESULT GetDropDownStatus(
1655 [out] DWORD *pdwFlags,
1656 [out, string] LPWSTR *ppwszString);
1658 HRESULT ResetEnumerator();
1662 object,
1663 uuid(cb728b20-f786-11ce-92ad-00aa00a74cd0),
1664 pointer_default(unique)
1666 interface IProfferService : IUnknown
1668 HRESULT ProfferService(
1669 [in] REFGUID service,
1670 [in] IServiceProvider *pService,
1671 [out] DWORD *pCookie);
1673 HRESULT RevokeService([in] DWORD cookie);
1676 /*****************************************************************************
1677 * IExplorerBrowserEvents interface
1680 object,
1681 uuid(361BBDC7-E6EE-4E13-BE58-58E2240C810F)
1683 interface IExplorerBrowserEvents : IUnknown
1685 HRESULT OnNavigationPending(
1686 [in] PCIDLIST_ABSOLUTE pidlFolder);
1688 HRESULT OnViewCreated(
1689 [in] IShellView *psv);
1691 HRESULT OnNavigationComplete(
1692 [in] PCIDLIST_ABSOLUTE pidlFolder);
1694 HRESULT OnNavigationFailed(
1695 [in] PCIDLIST_ABSOLUTE pidlFolder);
1698 typedef GUID EXPLORERPANE;
1699 typedef EXPLORERPANE *REFEXPLORERPANE;
1701 cpp_quote("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")
1703 /*****************************************************************************
1704 * IExplorerPaneVisibility interface
1707 object,
1708 uuid(E07010EC-BC17-44C0-97B0-46C7C95B9EDC)
1710 interface IExplorerPaneVisibility : IUnknown
1712 typedef enum tagEXPLORERPANESTATE {
1713 EPS_DONTCARE = 0x0,
1714 EPS_DEFAULT_ON = 0x1,
1715 EPS_DEFAULT_OFF = 0x2,
1716 EPS_STATE_MASK = 0xffff,
1717 EPS_INITIALSTATE = 0x10000,
1718 EPS_FORCE = 0x20000
1719 } EXPLORERPANESTATE;
1721 HRESULT GetPaneState(
1722 [in] REFEXPLORERPANE ep,
1723 [out] EXPLORERPANESTATE *peps);
1726 typedef [v1_enum] enum tagEXPLORER_BROWSER_FILL_FLAGS {
1727 EBF_NONE = 0,
1728 EBF_SELECTFROMDATAOBJECT = 0x100,
1729 EBF_NODROPTARGET = 0x200
1730 } EXPLORER_BROWSER_FILL_FLAGS;
1732 typedef [v1_enum] enum tagEXPLORER_BROWSER_OPTIONS {
1733 EBO_NONE = 0x00,
1734 EBO_NAVIGATEONCE = 0x01,
1735 EBO_SHOWFRAMES = 0x02,
1736 EBO_ALWAYSNAVIGATE = 0x04,
1737 EBO_NOTRAVELLOG = 0x08,
1738 EBO_NOWRAPPERWINDOW = 0x10,
1739 EBO_HTMLSHAREPOINTVIEW = 0x20
1740 } EXPLORER_BROWSER_OPTIONS;
1742 cpp_quote("#define SID_SExplorerBrowserFrame IID_ICommDlgBrowser")
1744 /*****************************************************************************
1745 * IExplorerBrowser interface
1748 object,
1749 uuid(DFD3B6B5-C10C-4BE9-85F6-A66969F402F6),
1750 pointer_default(unique)
1752 interface IExplorerBrowser : IUnknown
1755 [local] HRESULT Initialize(
1756 [in] HWND hwndParent,
1757 [in] const RECT *prc,
1758 [in, unique] const FOLDERSETTINGS *pfs);
1760 HRESULT Destroy();
1762 [local] HRESULT SetRect(
1763 [in,out,unique] HDWP *phdwp,
1764 [in] RECT rcBrowser);
1766 HRESULT SetPropertyBag(
1767 [in, string] LPCWSTR pszPropertyBag);
1769 HRESULT SetEmptyText(
1770 [in, string] LPCWSTR pszEmptyText);
1772 HRESULT SetFolderSettings(
1773 [in] const FOLDERSETTINGS *pfs);
1775 HRESULT Advise(
1776 [in] IExplorerBrowserEvents *psbe,
1777 [out] DWORD *pdwCookie);
1779 HRESULT Unadvise(
1780 [in] DWORD dwCookie);
1782 HRESULT SetOptions(
1783 [in] EXPLORER_BROWSER_OPTIONS dwFlag);
1785 HRESULT GetOptions(
1786 [out] EXPLORER_BROWSER_OPTIONS *pdwFlag);
1788 HRESULT BrowseToIDList(
1789 [in] PCUIDLIST_RELATIVE pidl,
1790 [in] UINT uFlags);
1792 HRESULT BrowseToObject(
1793 [in] IUnknown *punk,
1794 [in] UINT uFlags);
1796 HRESULT FillFromObject(
1797 [in] IUnknown *punk,
1798 [in] EXPLORER_BROWSER_FILL_FLAGS dwFlags);
1800 HRESULT RemoveAll();
1802 HRESULT GetCurrentView(
1803 [in] REFIID riid,
1804 [out, iid_is(riid)] void **ppv);