VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/shobjidl.idl@ 27512

Last change on this file since 27512 was 25949, checked in by vboxsync, 15 years ago

crOpenGL: update to wine 1.1.36 and disable unnecessary fbo state poll

  • Property svn:eol-style set to native
File size: 40.5 KB
Line 
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/*
23 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
24 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
25 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
26 * a choice of LGPL license versions is made available with the language indicating
27 * that LGPLv2 or any later version may be used, or where a choice of which version
28 * of the LGPL is applied is otherwise unspecified.
29 */
30
31import "objidl.idl";
32import "oleidl.idl";
33import "oaidl.idl";
34import "docobj.idl";
35import "shtypes.idl";
36import "servprov.idl";
37import "comcat.idl";
38import "propidl.idl";
39/* FIXME: import "prsht.idl";*/
40import "msxml.idl";
41import "wtypes.idl";
42/* FIXME: import "propsys.idl"; */
43/* FIXME: import "structuredquery.idl"; */
44
45cpp_quote("/* FIXME: #include <sherrors.h> */")
46
47
48/*****************************************************************************
49 * IPersistFolder interface
50 */
51[
52 object,
53 uuid(000214ea-0000-0000-c000-000000000046),
54 pointer_default(unique)
55]
56interface IPersistFolder : IPersist
57{
58 typedef IPersistFolder *LPPERSISTFOLDER;
59
60 HRESULT Initialize( [in] LPCITEMIDLIST pidl );
61}
62
63
64/*****************************************************************************
65 * IPersistFolder2 interface
66 */
67[
68 object,
69 uuid(1ac3d9f0-175c-11d1-95be-00609797ea4f),
70 pointer_default(unique)
71]
72interface IPersistFolder2 : IPersistFolder
73{
74 typedef IPersistFolder2 *LPPERSISTFOLDER2;
75
76 HRESULT GetCurFolder( [out] LPITEMIDLIST *ppidl );
77}
78
79
80/*****************************************************************************
81 * IPersistIDList interface
82 */
83[
84 object,
85 uuid(1079acfc-29bd-11d3-8e0d-00c04f6837d5),
86 pointer_default(unique)
87]
88interface IPersistIDList : IPersist
89{
90 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
91 HRESULT GetIDList( [out] LPITEMIDLIST *ppidl );
92}
93
94
95/*****************************************************************************
96 * IEnumIDList interface
97 */
98[
99 object,
100 uuid(000214f2-0000-0000-c000-000000000046),
101 pointer_default(unique)
102]
103interface IEnumIDList : IUnknown
104{
105 typedef IEnumIDList *LPENUMIDLIST;
106
107 HRESULT Next(
108 [in] ULONG celt,
109 [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
110 [out] ULONG *pceltFetched);
111
112 HRESULT Skip( [in] ULONG celt );
113 HRESULT Reset();
114 HRESULT Clone( [out] IEnumIDList **ppenum );
115}
116
117/*****************************************************************************
118 * IShellPropSheetExt interface
119 */
120cpp_quote("#if 0")
121 typedef LPARAM LPFNSVADDPROPSHEETPAGE;
122cpp_quote("#else")
123cpp_quote("#include <prsht.h>")
124cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
125cpp_quote("#endif")
126
127[
128 object,
129 uuid(000214E9-0000-0000-C000-000000000046),
130 pointer_default(unique),
131 local
132]
133interface IShellPropSheetExt : IUnknown
134{
135 enum tagSHELLPROPSHEETEXTPAGEID {
136 EXPPS_FILETYPES = 0x1
137 };
138
139 typedef UINT EXPPS;
140
141 HRESULT AddPages(
142 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
143 [in] LPARAM lParam);
144 HRESULT ReplacePage(
145 [in] EXPPS uPageID,
146 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
147 [in] LPARAM lParam);
148}
149typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
150
151/*****************************************************************************
152 * IShellFolder interface
153 */
154[
155 object,
156 uuid(000214e6-0000-0000-c000-000000000046),
157 pointer_default(unique)
158]
159interface IShellFolder : IUnknown
160{
161 typedef IShellFolder * LPSHELLFOLDER;
162
163 typedef enum tagSHGDN
164 {
165 SHGDN_NORMAL = 0,
166 SHGDN_INFOLDER = 1,
167 SHGDN_FOREDITING = 0x1000,
168 SHGDN_INCLUDE_NONFILESYS = 0x2000,
169 SHGDN_FORADDRESSBAR = 0x4000,
170 SHGDN_FORPARSING = 0x8000
171 } SHGNO;
172
173 typedef DWORD SHGDNF;
174
175 enum tagSHCONTF
176 {
177 SHCONTF_FOLDERS = 32,
178 SHCONTF_NONFOLDERS = 64,
179 SHCONTF_INCLUDEHIDDEN = 128,
180 SHCONTF_INIT_ON_FIRST_NEXT = 256,
181 SHCONTF_NETPRINTERSRCH = 512,
182 SHCONTF_SHAREABLE = 1024,
183 SHCONTF_STORAGE = 2048
184 };
185
186 typedef DWORD SHCONTF;
187
188 cpp_quote("#define SFGAO_CANCOPY DROPEFFECT_COPY")
189 cpp_quote("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
190 cpp_quote("#define SFGAO_CANLINK DROPEFFECT_LINK")
191 cpp_quote("#define SFGAO_STORAGE 0x00000008L")
192 cpp_quote("#define SFGAO_CANRENAME 0x00000010L")
193 cpp_quote("#define SFGAO_CANDELETE 0x00000020L")
194 cpp_quote("#define SFGAO_HASPROPSHEET 0x00000040L")
195 cpp_quote("#define SFGAO_DROPTARGET 0x00000100L")
196 cpp_quote("#define SFGAO_CAPABILITYMASK 0x00000177L")
197 cpp_quote("#define SFGAO_ENCRYPTED 0x00002000L")
198 cpp_quote("#define SFGAO_ISSLOW 0x00004000L")
199 cpp_quote("#define SFGAO_GHOSTED 0x00008000L")
200 cpp_quote("#define SFGAO_LINK 0x00010000L")
201 cpp_quote("#define SFGAO_SHARE 0x00020000L")
202 cpp_quote("#define SFGAO_READONLY 0x00040000L")
203 cpp_quote("#define SFGAO_HIDDEN 0x00080000L")
204 cpp_quote("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
205 cpp_quote("#define SFGAO_FILESYSANCESTOR 0x10000000L")
206 cpp_quote("#define SFGAO_FOLDER 0x20000000L")
207 cpp_quote("#define SFGAO_FILESYSTEM 0x40000000L")
208 cpp_quote("#define SFGAO_HASSUBFOLDER 0x80000000L")
209 cpp_quote("#define SFGAO_CONTENTSMASK 0x80000000L")
210 cpp_quote("#define SFGAO_VALIDATE 0x01000000L")
211 cpp_quote("#define SFGAO_REMOVABLE 0x02000000L")
212 cpp_quote("#define SFGAO_COMPRESSED 0x04000000L")
213 cpp_quote("#define SFGAO_BROWSABLE 0x08000000L")
214 cpp_quote("#define SFGAO_NONENUMERATED 0x00100000L")
215 cpp_quote("#define SFGAO_NEWCONTENT 0x00200000L")
216 cpp_quote("#define SFGAO_STREAM 0x00400000L")
217 cpp_quote("#define SFGAO_STORAGEANCESTOR 0x00800000L")
218
219 typedef ULONG SFGAOF;
220
221 HRESULT ParseDisplayName(
222 [in] HWND hwndOwner,
223 [in] LPBC pbcReserved,
224 [in, string] LPOLESTR lpszDisplayName,
225 [out] ULONG *pchEaten,
226 [out] LPITEMIDLIST *ppidl,
227 [in, out, unique] ULONG *pdwAttributes);
228
229 HRESULT EnumObjects(
230 [in] HWND hwndOwner,
231 [in] SHCONTF grfFlags,
232 [out] IEnumIDList **ppenumIDList);
233
234 HRESULT BindToObject(
235 [in] LPCITEMIDLIST pidl,
236 [in] LPBC pbcReserved,
237 [in] REFIID riid,
238 [out, iid_is(riid)] void **ppvOut);
239
240 HRESULT BindToStorage(
241 [in] LPCITEMIDLIST pidl,
242 [in] LPBC pbcReserved,
243 [in] REFIID riid,
244 [out, iid_is(riid)] void **ppvObj);
245
246 HRESULT CompareIDs(
247 [in] LPARAM lParam,
248 [in] LPCITEMIDLIST pidl1,
249 [in] LPCITEMIDLIST pidl2);
250
251 HRESULT CreateViewObject(
252 [in] HWND hwndOwner,
253 [in] REFIID riid,
254 [out, iid_is(riid)] void **ppvOut);
255
256 HRESULT GetAttributesOf(
257 [in] UINT cidl,
258 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
259 [in, out] SFGAOF *rgfInOut);
260
261 HRESULT GetUIObjectOf(
262 [in] HWND hwndOwner,
263 [in] UINT cidl,
264 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
265 [in] REFIID riid,
266 [in, out, unique] UINT *prgfInOut,
267 [out, iid_is(riid)] void **ppvOut);
268
269 HRESULT GetDisplayNameOf(
270 [in] LPCITEMIDLIST pidl,
271 [in] SHGDNF uFlags,
272 [out] STRRET *lpName);
273
274 HRESULT SetNameOf(
275 [in] HWND hwnd,
276 [in] LPCITEMIDLIST pidl,
277 [in, string] LPCOLESTR lpszName,
278 [in] SHGDNF uFlags,
279 [out] LPITEMIDLIST *ppidlOut);
280}
281
282
283/*****************************************************************************
284 * IEnumExtraSearch interface
285 */
286[
287 object,
288 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
289 pointer_default(unique)
290]
291interface IEnumExtraSearch : IUnknown
292{
293 typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
294
295 typedef struct
296 {
297 GUID guidSearch;
298 WCHAR wszFriendlyName[80];
299 /*
300 *WCHAR wszMenuText[80];
301 *WCHAR wszHelpText[MAX_PATH];
302 */
303 WCHAR wszUrl[2084];
304 /*
305 *WCHAR wszIcon[MAX_PATH+10];
306 *WCHAR wszGreyIcon[MAX_PATH+10];
307 *WCHAR wszClrIcon[MAX_PATH+10];
308 */
309 } EXTRASEARCH, *LPEXTRASEARCH;
310
311 HRESULT Next(
312 [in] ULONG celt,
313 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
314 [out] ULONG *pceltFetched);
315
316 HRESULT Skip( [in] ULONG celt );
317 HRESULT Reset();
318 HRESULT Clone( [out] IEnumExtraSearch **ppenum );
319}
320
321
322/*****************************************************************************
323 * IShellFolder2 interface
324 */
325[
326 object,
327 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
328 pointer_default(unique)
329]
330interface IShellFolder2 : IShellFolder
331{
332 typedef struct
333 {
334 GUID fmtid;
335 DWORD pid;
336 } SHCOLUMNID, *LPSHCOLUMNID;
337 typedef const SHCOLUMNID *LPCSHCOLUMNID;
338
339 HRESULT GetDefaultSearchGUID( [out] GUID *lpguid );
340 HRESULT EnumSearches( [out] IEnumExtraSearch **ppenum );
341 HRESULT GetDefaultColumn( [in] DWORD dwReserved, [out] ULONG *pSort, [out] ULONG *pDisplay );
342 HRESULT GetDefaultColumnState( [in] UINT iColumn, [out] SHCOLSTATEF *pcsFlags );
343 HRESULT GetDetailsEx( [in] LPCITEMIDLIST pidl, [in] const SHCOLUMNID *pscid, [out] VARIANT *pv);
344 HRESULT GetDetailsOf( [in] LPCITEMIDLIST pidl, [in] UINT iColumn, [out] SHELLDETAILS *psd);
345 HRESULT MapColumnToSCID( [in] UINT iColumn, [in] SHCOLUMNID *pscid );
346}
347
348/*****************************************************************************
349 * IShellItem interface
350 */
351[
352 object,
353 uuid(43826d1e-e718-42ee-bc55-a1e261c37bfe),
354 pointer_default(unique)
355]
356interface IShellItem : IUnknown
357{
358 typedef DWORD SIGDN;
359
360 typedef DWORD SICHINTF;
361
362 HRESULT BindToHandler(
363 [in] IBindCtx *pbc,
364 [in] REFGUID rbhid,
365 [in] REFIID riid,
366 [out, iid_is(riid)] void **ppvOut);
367
368 HRESULT GetParent( [out] IShellItem **ppsi );
369
370 HRESULT GetDisplayName(
371 [in] SIGDN sigdnName,
372 [out] LPWSTR *ppszName);
373
374 HRESULT GetAttributes(
375 [in] SFGAOF sfgaoMask,
376 [out] SFGAOF *psfgaoAttribs);
377
378 HRESULT Compare(
379 [in] IShellItem *psi,
380 [in] SICHINTF hint,
381 [out] int *piOrder);
382}
383
384
385
386/*****************************************************************************
387 * FOLDERSETTINGS
388 */
389typedef char *LPVIEWSETTINGS;
390
391typedef enum
392{
393 FWF_AUTOARRANGE = 0x00000001,
394 FWF_ABBREVIATEDNAMES = 0x00000002,
395 FWF_SNAPTOGRID = 0x00000004,
396 FWF_OWNERDATA = 0x00000008,
397 FWF_BESTFITWINDOW = 0x00000010,
398 FWF_DESKTOP = 0x00000020,
399 FWF_SINGLESEL = 0x00000040,
400 FWF_NOSUBFOLDERS = 0x00000080,
401 FWF_TRANSPARENT = 0x00000100,
402 FWF_NOCLIENTEDGE = 0x00000200,
403 FWF_NOSCROLL = 0x00000400,
404 FWF_ALIGNLEFT = 0x00000800,
405 FWF_NOICONS = 0x00001000,
406 FWF_SHOWSELALWAYS = 0x00002000,
407 FWF_NOVISIBLE = 0x00004000,
408 FWF_SINGLECLICKACTIVATE = 0x00008000,
409 FWF_NOWEBVIEW = 0x00010000,
410 FWF_HIDEFILENAMES = 0x00020000,
411 FWF_CHECKSELECT = 0x00040000
412} FOLDERFLAGS;
413
414typedef enum
415{
416 FVM_ICON = 1,
417 FVM_FIRST = FVM_ICON,
418 FVM_SMALLICON = 2,
419 FVM_LIST = 3,
420 FVM_DETAILS = 4,
421 FVM_THUMBNAIL = 5,
422 FVM_TILE = 6,
423 FVM_THUMBSTRIP = 7,
424 FVM_LAST = FVM_THUMBSTRIP
425} FOLDERVIEWMODE;
426
427typedef struct
428{
429 UINT ViewMode;
430 UINT fFlags;
431} FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
432typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
433
434
435/*****************************************************************************
436 * IShellView interface
437 */
438interface IShellBrowser; /* forward declaration */
439[
440 object,
441 uuid(000214e3-0000-0000-c000-000000000046),
442 pointer_default(unique)
443]
444interface IShellView : IOleWindow
445{
446 typedef IShellView *LPSHELLVIEW;
447
448 cpp_quote("#define SVSI_DESELECT 0x00000000")
449 cpp_quote("#define SVSI_SELECT 0x00000001")
450 cpp_quote("#define SVSI_EDIT 0x00000003")
451 cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
452 cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
453 cpp_quote("#define SVSI_FOCUSED 0x00000010")
454 cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
455 cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
456 cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
457 cpp_quote("#define SVSI_CHECK 0x00000100")
458 cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
459
460 typedef UINT SVSIF;
461
462 typedef enum
463 {
464 SVGIO_BACKGROUND = 0x00000000,
465 SVGIO_SELECTION = 0x00000001,
466 SVGIO_ALLVIEW = 0x00000002,
467 SVGIO_CHECKED = 0x00000003,
468 SVGIO_TYPE_MASK = 0x0000000f,
469 SVGIO_FLAG_VIEWORDER = 0x80000000,
470 } SVGIO;
471
472 typedef enum
473 {
474 SVUIA_DEACTIVATE = 0,
475 SVUIA_ACTIVATE_NOFOCUS = 1,
476 SVUIA_ACTIVATE_FOCUS = 2,
477 SVUIA_INPLACEACTIVATE = 3
478 } SVUIA_STATUS;
479
480 HRESULT TranslateAccelerator( [in] MSG *pmsg );
481 HRESULT EnableModeless( [in] BOOL fEnable );
482 HRESULT UIActivate( [in] UINT uState );
483 HRESULT Refresh();
484 HRESULT CreateViewWindow(
485 [in] IShellView *psvPrevious,
486 [in] LPCFOLDERSETTINGS lpfs,
487 [in] IShellBrowser *psb,
488 [out] RECT *prcView,
489 [out] HWND *phWnd);
490
491 HRESULT DestroyViewWindow();
492 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
493
494 [local] HRESULT AddPropertySheetPages(
495 [in] DWORD dwReserved,
496 [in] LPFNSVADDPROPSHEETPAGE pfn,
497 [in] LPARAM lparam);
498
499 HRESULT SaveViewState();
500 HRESULT SelectItem(
501 [in] LPCITEMIDLIST pidlItem,
502 [in] SVSIF uFlags);
503 HRESULT GetItemObject(
504 [in] UINT uItem,
505 [in] REFIID riid,
506 [out, iid_is(riid)] void **ppv);
507}
508
509[
510 object,
511 uuid(88e39e80-3578-11cf-ae69-08002b2e1262),
512 pointer_default(unique)
513]
514interface IShellView2 : IShellView
515{
516 typedef GUID SHELLVIEWID;
517cpp_quote("#include <pshpack8.h>")
518 typedef struct _SV2CVW2_PARAMS
519 {
520 DWORD cbSize;
521 IShellView *psvPrev;
522 LPCFOLDERSETTINGS pfs;
523 IShellBrowser *psbOwner;
524 RECT *prcView;
525 SHELLVIEWID const *pvid;
526 HWND hwndView;
527 } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
528cpp_quote("#include <poppack.h>")
529
530 HRESULT GetView(
531 [in, out] SHELLVIEWID *view_guid,
532 [in] ULONG view_type
533 );
534 HRESULT CreateViewWindow2(
535 [in] LPSV2CVW2_PARAMS view_params
536 );
537 HRESULT HandleRename(
538 [in] LPCITEMIDLIST new_pidl
539 );
540 HRESULT SelectAndPositionItem(
541 [in] LPCITEMIDLIST item,
542 [in] UINT flags,
543 [in] POINT *point
544 );
545}
546
547
548/*****************************************************************************
549 * IShellBrowser interface
550 */
551[
552 object,
553 uuid(000214e2-0000-0000-c000-000000000046),
554 pointer_default(unique)
555]
556interface IShellBrowser : IOleWindow
557{
558 typedef IShellBrowser *LPSHELLBROWSER;
559
560cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
561cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
562cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
563cpp_quote("#define SBSP_DEFMODE 0x00000000")
564cpp_quote("#define SBSP_OPENMODE 0x00000010")
565cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
566cpp_quote("#define SBSP_HELPMODE 0x00000040")
567cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
568cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
569cpp_quote("#define SBSP_RELATIVE 0x00001000")
570cpp_quote("#define SBSP_PARENT 0x00002000")
571cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
572cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
573cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
574cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
575cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
576cpp_quote("#define SBSP_REDIRECT 0x40000000")
577cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
578
579cpp_quote("#define FCW_STATUS 0x0001")
580cpp_quote("#define FCW_TOOLBAR 0x0002")
581cpp_quote("#define FCW_TREE 0x0003")
582cpp_quote("#define FCW_INTERNETBAR 0x0006")
583cpp_quote("#define FCW_PROGRESS 0x0008")
584
585cpp_quote("#define FCT_MERGE 0x0001")
586cpp_quote("#define FCT_CONFIGABLE 0x0002")
587cpp_quote("#define FCT_ADDTOEND 0x0004")
588
589cpp_quote("#if 0")
590 typedef LPARAM LPTBBUTTONSB;
591cpp_quote("#else")
592cpp_quote("#include <commctrl.h>")
593cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
594cpp_quote("#endif")
595
596 HRESULT InsertMenusSB(
597 [in] HMENU hmenuShared,
598 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
599
600 HRESULT SetMenuSB(
601 [in] HMENU hmenuShared,
602 [in] HOLEMENU holemenuReserved,
603 [in] HWND hwndActiveObject);
604
605 HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
606 HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
607 HRESULT EnableModelessSB( [in] BOOL fEnable );
608 HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
609
610 HRESULT BrowseObject(
611 [in] LPCITEMIDLIST pidl,
612 [in] UINT wFlags);
613
614 HRESULT GetViewStateStream(
615 [in] DWORD grfMode,
616 [out] IStream **ppStrm);
617
618 HRESULT GetControlWindow(
619 [in] UINT id,
620 [out] HWND *phwnd);
621
622 [local] HRESULT SendControlMsg(
623 [in] UINT id,
624 [in] UINT uMsg,
625 [in] WPARAM wParam,
626 [in] LPARAM lParam,
627 [in] LRESULT *pret);
628
629 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
630 HRESULT OnViewWindowActive( [in] IShellView *pshv );
631
632 [local]
633 HRESULT SetToolbarItems(
634 [in] LPTBBUTTONSB lpButtons,
635 [in] UINT nButtons,
636 [in] UINT uFlags);
637}
638
639
640/*****************************************************************************
641 * IShellLinkA interface
642 */
643[
644 object,
645 uuid(000214ee-0000-0000-c000-000000000046),
646 pointer_default(unique)
647]
648interface IShellLinkA : IUnknown
649{
650 typedef enum
651 {
652 SLR_NO_UI = 0x0001,
653 SLR_ANY_MATCH = 0x0002,
654 SLR_UPDATE = 0x0004,
655 SLR_NOUPDATE = 0x0008,
656 SLR_NOSEARCH = 0x0010,
657 SLR_NOTRACK = 0x0020,
658 SLR_NOLINKINFO = 0x0040,
659 SLR_INVOKE_MSI = 0x0080,
660 SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
661 } SLR_FLAGS;
662
663 typedef enum
664 {
665 SLGP_SHORTPATH = 0x0001,
666 SLGP_UNCPRIORITY = 0x0002,
667 SLGP_RAWPATH = 0x0004,
668 } SLGP_FLAGS;
669
670 HRESULT GetPath(
671 [out, size_is(cch)] LPSTR pszFile,
672 [in] int cch,
673 [in, out, unique] WIN32_FIND_DATAA *pfd,
674 [in] DWORD fFlags);
675
676 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
677
678 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
679
680 HRESULT GetDescription(
681 [out, size_is(cch)] LPSTR pszName,
682 [in] int cch);
683
684 HRESULT SetDescription( [in] LPCSTR pszName );
685
686 HRESULT GetWorkingDirectory(
687 [out, size_is(cch)] LPSTR pszDir,
688 [in] int cch);
689
690 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
691
692 HRESULT GetArguments(
693 [out, size_is(cch)] LPSTR pszArgs,
694 [in] int cch);
695
696 HRESULT SetArguments( [in] LPCSTR pszArgs );
697
698 HRESULT GetHotkey( [out] WORD *pwHotkey );
699
700 HRESULT SetHotkey( [in] WORD wHotkey );
701
702 HRESULT GetShowCmd( [out] int *piShowCmd );
703
704 HRESULT SetShowCmd( [in] int iShowCmd );
705
706 HRESULT GetIconLocation(
707 [out, size_is(cch)] LPSTR pszIconPath,
708 [in] int cch,
709 [out] int *piIcon);
710
711 HRESULT SetIconLocation(
712 [in] LPCSTR pszIconPath,
713 [in] int iIcon);
714
715 HRESULT SetRelativePath(
716 [in] LPCSTR pszPathRel,
717 [in] DWORD dwReserved);
718
719 HRESULT Resolve(
720 [in] HWND hwnd,
721 [in] DWORD fFlags);
722
723 HRESULT SetPath( [in] LPCSTR pszFile );
724}
725
726
727/*****************************************************************************
728 * IShellLinkW interface
729 */
730[
731 object,
732 uuid(000214f9-0000-0000-c000-000000000046),
733 pointer_default(unique)
734]
735interface IShellLinkW : IUnknown
736{
737 HRESULT GetPath(
738 [out, size_is(cch)] LPWSTR pszFile,
739 [in] int cch,
740 [in, out] WIN32_FIND_DATAW *pfd,
741 [in] DWORD fFlags);
742
743 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
744
745 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
746
747 HRESULT GetDescription(
748 [out, size_is(cch)] LPWSTR pszName,
749 [in] int cch);
750
751 HRESULT SetDescription( [in] LPCWSTR pszName );
752
753 HRESULT GetWorkingDirectory(
754 [out, size_is(cch)] LPWSTR pszDir,
755 [in] int cch);
756
757 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
758
759 HRESULT GetArguments(
760 [out, size_is(cch)] LPWSTR pszArgs,
761 [in] int cch);
762
763 HRESULT SetArguments( [in] LPCWSTR pszArgs );
764
765 HRESULT GetHotkey( [out] WORD *pwHotkey );
766
767 HRESULT SetHotkey( [in] WORD wHotkey );
768
769 HRESULT GetShowCmd( [out] int *piShowCmd );
770
771 HRESULT SetShowCmd( [in] int iShowCmd );
772
773 HRESULT GetIconLocation(
774 [out, size_is(cch)] LPWSTR pszIconPath,
775 [in] int cch,
776 [out] int *piIcon);
777
778 HRESULT SetIconLocation(
779 [in] LPCWSTR pszIconPath,
780 [in] int iIcon);
781
782 HRESULT SetRelativePath(
783 [in] LPCWSTR pszPathRel,
784 [in] DWORD dwReserved);
785
786 HRESULT Resolve(
787 [in] HWND hwnd,
788 [in] DWORD fFlags);
789
790 HRESULT SetPath( [in] LPCWSTR pszFile );
791}
792
793cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
794
795
796/*****************************************************************************
797 * IShellExtInit interface
798 */
799[
800 object,
801 uuid(000214e8-0000-0000-c000-000000000046),
802 pointer_default(unique),
803 local
804]
805interface IShellExtInit : IUnknown
806{
807 typedef IShellExtInit *LPSHELLEXTINIT;
808
809 HRESULT Initialize(
810 [in] LPCITEMIDLIST pidlFolder,
811 [in] IDataObject *pdtobj,
812 [in] HKEY hkeyProgID);
813}
814
815
816/*******************************************************************************/
817/* Note: the following interfaces are not in shobjidl.idl under Windows, they */
818/* are declared directly in shlobj.h. It hopefully won't break anything to put */
819/* them here anyway. */
820/*******************************************************************************/
821
822#ifndef MAX_PATH
823#define MAX_PATH 260
824#endif
825
826
827/*****************************************************************************
828 * IPersistFolder3 interface
829 */
830[
831 object,
832 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
833 pointer_default(unique)
834]
835interface IPersistFolder3 : IPersistFolder2
836{
837 typedef struct
838 {
839 LPITEMIDLIST pidlTargetFolder;
840 WCHAR szTargetParsingName[MAX_PATH];
841 WCHAR szNetworkProvider[MAX_PATH];
842 DWORD dwAttributes;
843 int csidl;
844 } PERSIST_FOLDER_TARGET_INFO;
845
846 HRESULT InitializeEx(
847 [in] IBindCtx *pbc,
848 [in] LPCITEMIDLIST pidlRoot,
849 [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
850
851 HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
852}
853
854
855/*****************************************************************************
856 * IExtractIconA interface
857 */
858[
859 object,
860 uuid(000214eb-0000-0000-c000-000000000046),
861 pointer_default(unique),
862 local
863]
864interface IExtractIconA : IUnknown
865{
866cpp_quote("#define GIL_OPENICON 0x0001")
867cpp_quote("#define GIL_FORSHELL 0x0002")
868cpp_quote("#define GIL_ASYNC 0x0020")
869cpp_quote("#define GIL_DEFAULTICON 0x0040")
870cpp_quote("#define GIL_FORSHORTCUT 0x0080")
871
872cpp_quote("#define GIL_SIMULATEDOC 0x0001")
873cpp_quote("#define GIL_PERINSTANCE 0x0002")
874cpp_quote("#define GIL_PERCLASS 0x0004")
875cpp_quote("#define GIL_NOTFILENAME 0x0008")
876cpp_quote("#define GIL_DONTCACHE 0x0010")
877
878 typedef IExtractIconA *LPEXTRACTICONA;
879
880 HRESULT GetIconLocation(
881 [in] UINT uFlags,
882 [out, size_is(cchMax)] LPSTR szIconFile,
883 [in] UINT cchMax,
884 [out] INT *piIndex,
885 [out] UINT *pwFlags);
886
887 HRESULT Extract(
888 [in] LPCSTR pszFile,
889 [in] UINT nIconIndex,
890 [out] HICON *phiconLarge,
891 [out] HICON *phiconSmall,
892 [in] UINT nIconSize );
893}
894
895
896/*****************************************************************************
897 * IExtractIconW interface
898 */
899[
900 object,
901 uuid(000214fa-0000-0000-c000-000000000046),
902 pointer_default(unique),
903 local
904]
905interface IExtractIconW : IUnknown
906{
907 typedef IExtractIconW *LPEXTRACTICONW;
908
909 HRESULT GetIconLocation(
910 [in] UINT uFlags,
911 [out, size_is(cchMax)] LPWSTR szIconFile,
912 [in] UINT cchMax,
913 [out] INT *piIndex,
914 [out] UINT *pwFlags);
915
916 HRESULT Extract(
917 [in] LPCWSTR pszFile,
918 [in] UINT nIconIndex,
919 [out] HICON *phiconLarge,
920 [out] HICON *phiconSmall,
921 [in] UINT nIconSize );
922}
923
924cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
925cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
926
927
928/*****************************************************************************
929 * ICommDlgBrowser interface
930 */
931[
932 object,
933 uuid(000214f1-0000-0000-c000-000000000046),
934 pointer_default(unique)
935]
936interface ICommDlgBrowser : IUnknown
937{
938cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
939cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
940cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
941cpp_quote("#define CDBOSC_RENAME 0x00000003")
942cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
943
944 typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
945
946 HRESULT OnDefaultCommand( [in] IShellView *shv );
947 HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
948 HRESULT IncludeObject( [in] IShellView *shv, [in] LPCITEMIDLIST pidl );
949}
950
951
952/*****************************************************************************
953 * IDockingWindowFrame interface
954 */
955[
956 object,
957 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
958 pointer_default(unique),
959 local
960]
961interface IDockingWindowFrame : IOleWindow
962{
963cpp_quote("#define DWFRF_NORMAL 0x0000")
964cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
965cpp_quote("#define DWFAF_HIDDEN 0x0001")
966
967 HRESULT AddToolbar(
968 [in] IUnknown *punkSrc,
969 [in] LPCWSTR pwszItem,
970 [in] DWORD dwAddFlags);
971
972 HRESULT RemoveToolbar(
973 [in] IUnknown *punkSrc,
974 [in] DWORD dwRemoveFlags);
975
976 HRESULT FindToolbar(
977 [in] LPCWSTR pwszItem,
978 [in] REFIID riid,
979 [out] LPVOID *ppvObj);
980}
981
982
983/*****************************************************************************
984 * IDragSourceHelper interface
985 */
986[
987 object,
988 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
989 pointer_default(unique),
990 local
991]
992interface IDragSourceHelper : IUnknown
993{
994 typedef struct
995 {
996 SIZE sizeDragImage;
997 POINT ptOffset;
998 HBITMAP hbmpDragImage;
999 COLORREF crColorKey;
1000 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
1001
1002 HRESULT InitializeFromBitmap(
1003 [in] LPSHDRAGIMAGE pshdi,
1004 [in] IDataObject *pDataObject);
1005
1006 HRESULT InitializeFromWindow(
1007 [in] HWND hwnd,
1008 [in] POINT *ppt,
1009 [in] IDataObject *pDataObject);
1010}
1011
1012
1013/*****************************************************************************
1014 * IDropTargetHelper interface
1015 */
1016[
1017 object,
1018 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
1019 pointer_default(unique),
1020 local
1021]
1022interface IDropTargetHelper : IUnknown
1023{
1024 HRESULT DragEnter(
1025 [in] HWND hwndTarget,
1026 [in] IDataObject *pDataObject,
1027 [in] POINT *ppt,
1028 [in] DWORD dwEffect);
1029
1030 HRESULT DragLeave();
1031
1032 HRESULT DragOver(
1033 [in] POINT *ppt,
1034 [in] DWORD dwEffect);
1035
1036 HRESULT Drop(
1037 [in] IDataObject *pDataObject,
1038 [in] POINT *ppt,
1039 [in] DWORD dwEffect);
1040
1041 HRESULT Show( [in] BOOL fShow );
1042}
1043
1044
1045/*****************************************************************************
1046 * IContextMenu interface
1047 */
1048[
1049 object,
1050 uuid(000214e4-0000-0000-c000-000000000046),
1051 pointer_default(unique),
1052 local
1053]
1054interface IContextMenu : IUnknown
1055{
1056cpp_quote("#define CMF_NORMAL 0x00000000")
1057cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
1058cpp_quote("#define CMF_VERBSONLY 0x00000002")
1059cpp_quote("#define CMF_EXPLORE 0x00000004")
1060cpp_quote("#define CMF_NOVERBS 0x00000008")
1061cpp_quote("#define CMF_CANRENAME 0x00000010")
1062cpp_quote("#define CMF_NODEFAULT 0x00000020")
1063cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
1064cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
1065cpp_quote("#define CMF_RESERVED 0xffff0000")
1066
1067cpp_quote("#define GCS_VERBA 0x00000000")
1068cpp_quote("#define GCS_HELPTEXTA 0x00000001")
1069cpp_quote("#define GCS_VALIDATEA 0x00000002")
1070cpp_quote("#define GCS_VERBW 0x00000004")
1071cpp_quote("#define GCS_HELPTEXTW 0x00000005")
1072cpp_quote("#define GCS_VALIDATEW 0x00000006")
1073cpp_quote("#define GCS_UNICODE 0x00000004")
1074cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1075cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1076cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1077
1078cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1079cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
1080cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1081cpp_quote("#if defined(__GNUC__)")
1082cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1083cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1084cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1085cpp_quote("#elif defined(_MSC_VER)")
1086cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1087cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1088cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1089cpp_quote("#else")
1090cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1091cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1092cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1093cpp_quote("#endif")
1094cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1095cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1096cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1097
1098cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1099cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
1100cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1101cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1102cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1103cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1104cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1105cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1106cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1107cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1108cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
1109cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1110cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1111cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1112
1113 typedef IContextMenu *LPCONTEXTMENU;
1114
1115 typedef struct tagCMINVOKECOMMANDINFO
1116 {
1117 DWORD cbSize;
1118 DWORD fMask;
1119 HWND hwnd;
1120 LPCSTR lpVerb;
1121 LPCSTR lpParameters;
1122 LPCSTR lpDirectory;
1123 INT nShow;
1124 DWORD dwHotKey;
1125 HANDLE hIcon;
1126 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1127
1128 typedef struct tagCMInvokeCommandInfoEx
1129 {
1130 DWORD cbSize;
1131 DWORD fMask;
1132 HWND hwnd;
1133 LPCSTR lpVerb;
1134 LPCSTR lpParameters;
1135 LPCSTR lpDirectory;
1136 INT nShow;
1137 DWORD dwHotKey;
1138 HANDLE hIcon;
1139 LPCSTR lpTitle;
1140 LPCWSTR lpVerbW;
1141 LPCWSTR lpParametersW;
1142 LPCWSTR lpDirectoryW;
1143 LPCWSTR lpTitleW;
1144 POINT ptInvoke;
1145 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1146
1147 HRESULT QueryContextMenu(
1148 [in] HMENU hmenu,
1149 [in] UINT indexMenu,
1150 [in] UINT idCmdFirst,
1151 [in] UINT idCmdLast,
1152 [in] UINT uFlags);
1153
1154 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1155
1156 HRESULT GetCommandString(
1157 [in] UINT_PTR idCmd,
1158 [in] UINT uType,
1159 [out] UINT *pwReserved,
1160 [out, size_is(cchMax)] LPSTR pszName,
1161 [in] UINT cchMax);
1162}
1163
1164
1165/*****************************************************************************
1166 * IContextMenu2 interface
1167 */
1168[
1169 object,
1170 uuid(000214f4-0000-0000-c000-000000000046),
1171 pointer_default(unique),
1172 local
1173]
1174interface IContextMenu2 : IContextMenu
1175{
1176 typedef IContextMenu2 *LPCONTEXTMENU2;
1177
1178 HRESULT HandleMenuMsg(
1179 [in] UINT uMsg,
1180 [in] WPARAM wParam,
1181 [in] LPARAM lParam);
1182}
1183
1184
1185/*****************************************************************************
1186 * IContextMenu3 interface
1187 */
1188[
1189 object,
1190 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1191 pointer_default(unique),
1192 local
1193]
1194interface IContextMenu3 : IContextMenu2
1195{
1196 typedef IContextMenu3 *LPCONTEXTMENU3;
1197
1198 HRESULT HandleMenuMsg2(
1199 [in] UINT uMsg,
1200 [in] WPARAM wParam,
1201 [in] LPARAM lParam,
1202 [out] LRESULT *plResult);
1203}
1204
1205
1206/*****************************************************************************
1207 * IShellExecuteHookA interface
1208 */
1209[
1210 object,
1211 uuid(000214f5-0000-0000-c000-000000000046),
1212 pointer_default(unique),
1213 local
1214]
1215interface IShellExecuteHookA : IUnknown
1216{
1217 cpp_quote("struct _SHELLEXECUTEINFOA;")
1218 HRESULT Execute(
1219 [in, out] struct _SHELLEXECUTEINFOA* pei);
1220}
1221
1222
1223/*****************************************************************************
1224 * IShellExecuteHookW interface
1225 */
1226[
1227 object,
1228 uuid(000214fb-0000-0000-c000-000000000046),
1229 pointer_default(unique),
1230 local
1231]
1232interface IShellExecuteHookW : IUnknown
1233{
1234 cpp_quote("struct _SHELLEXECUTEINFOW;")
1235 HRESULT Execute(
1236 [in, out] struct _SHELLEXECUTEINFOW* pei);
1237}
1238
1239/*****************************************************************************
1240 * IShellLinkDataList interface
1241 */
1242[
1243 object,
1244 uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
1245 pointer_default(unique)
1246]
1247interface IShellLinkDataList : IUnknown
1248{
1249 [local] HRESULT AddDataBlock(
1250 [in] void *pDataBlock);
1251 [local] HRESULT CopyDataBlock(
1252 [in] DWORD dwSig,
1253 [out] void **ppDataBlock);
1254 HRESULT RemoveDataBlock(
1255 [in] DWORD dwSig);
1256 HRESULT GetFlags(
1257 [out] DWORD *pdwFlags);
1258 HRESULT SetFlags(
1259 [in] DWORD dwFlags);
1260}
1261
1262
1263/*****************************************************************************
1264 * IResolveShellLink interface
1265 */
1266[
1267 object,
1268 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1269 pointer_default(unique)
1270]
1271interface IResolveShellLink : IUnknown
1272{
1273 HRESULT ResolveShellLink(
1274 [in] IUnknown *punk,
1275 [in] HWND hwnd,
1276 [in] DWORD fFlags);
1277}
1278
1279
1280/*****************************************************************************
1281 * IURLSearchHook interface
1282 */
1283[
1284 object,
1285 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1286 pointer_default(unique),
1287 local
1288]
1289interface IURLSearchHook : IUnknown
1290{
1291 HRESULT Translate(
1292 [in, out] LPWSTR lpwszSearchURL,
1293 [in] DWORD cchBufferSize);
1294}
1295
1296
1297/*****************************************************************************
1298 * ISearchContext interface
1299 */
1300[
1301 object,
1302 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1303 pointer_default(unique),
1304 local
1305]
1306interface ISearchContext : IUnknown
1307{
1308 HRESULT GetSearchUrl(
1309 [in] BSTR *pbstrSearchUrl);
1310 HRESULT GetSearchText(
1311 [in] BSTR *pbstrSearchText);
1312 HRESULT GetSearchStyle(
1313 [in] BSTR *pdwSearchStyle);
1314}
1315
1316
1317/*****************************************************************************
1318 * IURLSearchHook2 interface
1319 */
1320[
1321 object,
1322 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1323 pointer_default(unique),
1324 local
1325]
1326interface IURLSearchHook2 : IURLSearchHook
1327{
1328 HRESULT TranslateWithSearchContext(
1329 [in, out] LPWSTR lpwszSearchURL,
1330 [in] DWORD cchBufferSize,
1331 [in] ISearchContext *pSearchContext);
1332}
1333
1334
1335cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1336
1337/*****************************************************************************
1338 * INewShortcutHookA interface
1339 */
1340[
1341 object,
1342 uuid(000214e1-0000-0000-c000-000000000046),
1343 pointer_default(unique),
1344 local
1345]
1346interface INewShortcutHookA : IUnknown
1347{
1348 HRESULT SetReferent(
1349 [in] LPCSTR pcszReferent,
1350 [in] HWND hwnd);
1351 HRESULT GetReferent(
1352 [out] LPSTR pcszReferent,
1353 [in] int cchReferent);
1354 HRESULT SetFolder(
1355 [in] LPCSTR pcszReferent);
1356 HRESULT GetFolder(
1357 [out] LPSTR pcszReferent,
1358 [in] int cchFolder);
1359 HRESULT GetName(
1360 [out] LPSTR pszName,
1361 [in] int cchName);
1362 HRESULT GetExtension(
1363 [out] LPSTR pszExtension,
1364 [in] int cchExtension);
1365}
1366
1367
1368/*****************************************************************************
1369 * INewShortcutHookW interface
1370 */
1371[
1372 object,
1373 uuid(000214f7-0000-0000-c000-000000000046),
1374 pointer_default(unique),
1375 local
1376]
1377interface INewShortcutHookW : IUnknown
1378{
1379 HRESULT SetReferent(
1380 [in] LPCWSTR pcszReferent,
1381 [in] HWND hwnd);
1382 HRESULT GetReferent(
1383 [out] LPWSTR pcszReferent,
1384 [in] int cchReferent);
1385 HRESULT SetFolder(
1386 [in] LPCWSTR pcszReferent);
1387 HRESULT GetFolder(
1388 [out] LPWSTR pcszReferent,
1389 [in] int cchFolder);
1390 HRESULT GetName(
1391 [out] LPWSTR pszName,
1392 [in] int cchName);
1393 HRESULT GetExtension(
1394 [out] LPWSTR pszExtension,
1395 [in] int cchExtension);
1396}
1397
1398/*****************************************************************************
1399 * IRunnableTask interface
1400 */
1401[
1402 object,
1403 uuid(85788d00-6807-11d0-b810-00c04fd706ec),
1404 pointer_default(unique),
1405 local
1406]
1407interface IRunnableTask : IUnknown
1408{
1409 HRESULT Run();
1410 HRESULT Kill([in] BOOL fWait);
1411 HRESULT Suspend();
1412 HRESULT Resume();
1413 ULONG IsRunning();
1414}
1415
1416/*****************************************************************************
1417 * IShellChangeNotify interface
1418 */
1419[
1420 object,
1421 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
1422 pointer_default(unique),
1423 local
1424]
1425interface IShellChangeNotify : IUnknown
1426{
1427 HRESULT OnChange(
1428 [in] LONG lEvent,
1429 [in] LPCITEMIDLIST pidl1,
1430 [in] LPCITEMIDLIST pidl2);
1431}
1432
1433/*****************************************************************************
1434 * IFileSystemBindData interface
1435 */
1436[
1437 object,
1438 uuid(01e18d10-4d8b-11d2-855d-006008059367),
1439 pointer_default(unique),
1440 local
1441]
1442interface IFileSystemBindData : IUnknown
1443{
1444 HRESULT SetFindData(
1445 [in] const WIN32_FIND_DATAW *pfd);
1446 HRESULT GetFindData(
1447 [out] WIN32_FIND_DATAW *pfd);
1448}
1449
1450/*****************************************************************************
1451 * ITaskbarList interface
1452 */
1453[
1454 object,
1455 uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
1456 pointer_default(unique)
1457]
1458interface ITaskbarList : IUnknown
1459{
1460 HRESULT HrInit();
1461
1462 HRESULT AddTab(
1463 [in] HWND hwnd);
1464
1465 HRESULT DeleteTab(
1466 [in] HWND hwnd);
1467
1468 HRESULT ActivateTab(
1469 [in] HWND hwnd);
1470
1471 HRESULT SetActiveAlt(
1472 [in] HWND hwnd);
1473}
1474
1475cpp_quote("EXTERN_C const CLSID CLSID_TaskbarList;")
1476
1477/*****************************************************************************
1478 * IAutoCompleteDropDown interface
1479 */
1480[
1481 object,
1482 uuid(3CD141F4-3C6A-11d2-BCAA-00C04FD929DB),
1483 pointer_default(unique)
1484]
1485interface IAutoCompleteDropDown : IUnknown
1486{
1487cpp_quote("#define ACDD_VISIBLE 0x0001")
1488
1489 HRESULT GetDropDownStatus(
1490 [out] DWORD *pdwFlags,
1491 [out, string] LPWSTR *ppwszString);
1492
1493 HRESULT ResetEnumerator();
1494}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette