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