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