d3d10: Implement GetConstantBufferByName.
[wine/multimedia.git] / include / shobjidl.idl
blob5acd30245e8d55d912b13968a33aa7be05923c0e
1 /*
2 * COM interfaces for shell objects
4 * Copyright (C) 1999 Juergen Schmied
5 * Copyright (C) 2003 Alexandre Julliard
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 import "objidl.idl";
23 import "oleidl.idl";
24 import "oaidl.idl";
25 import "docobj.idl";
26 import "shtypes.idl";
27 import "servprov.idl";
28 import "comcat.idl";
29 import "propidl.idl";
30 /* FIXME: import "prsht.idl";*/
31 import "msxml.idl";
32 import "wtypes.idl";
33 /* FIXME: import "propsys.idl"; */
34 /* FIXME: import "structuredquery.idl"; */
36 cpp_quote("/* FIXME: #include <sherrors.h> */")
39 /*****************************************************************************
40 * IPersistFolder interface
43 object,
44 uuid(000214ea-0000-0000-c000-000000000046),
45 pointer_default(unique)
47 interface IPersistFolder : IPersist
49 typedef IPersistFolder *LPPERSISTFOLDER;
51 HRESULT Initialize( [in] LPCITEMIDLIST pidl );
55 /*****************************************************************************
56 * IPersistFolder2 interface
59 object,
60 uuid(1ac3d9f0-175c-11d1-95be-00609797ea4f),
61 pointer_default(unique)
63 interface IPersistFolder2 : IPersistFolder
65 typedef IPersistFolder2 *LPPERSISTFOLDER2;
67 HRESULT GetCurFolder( [out] LPITEMIDLIST *ppidl );
71 /*****************************************************************************
72 * IPersistIDList interface
75 object,
76 uuid(1079acfc-29bd-11d3-8e0d-00c04f6837d5),
77 pointer_default(unique)
79 interface IPersistIDList : IPersist
81 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
82 HRESULT GetIDList( [out] LPITEMIDLIST *ppidl );
86 /*****************************************************************************
87 * IEnumIDList interface
90 object,
91 uuid(000214f2-0000-0000-c000-000000000046),
92 pointer_default(unique)
94 interface IEnumIDList : IUnknown
96 typedef IEnumIDList *LPENUMIDLIST;
98 HRESULT Next(
99 [in] ULONG celt,
100 [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
101 [out] ULONG *pceltFetched);
103 HRESULT Skip( [in] ULONG celt );
104 HRESULT Reset();
105 HRESULT Clone( [out] IEnumIDList **ppenum );
108 /*****************************************************************************
109 * IShellPropSheetExt interface
111 cpp_quote("#if 0")
112 typedef LPARAM LPFNSVADDPROPSHEETPAGE;
113 cpp_quote("#else")
114 cpp_quote("#include <prsht.h>")
115 cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
116 cpp_quote("#endif")
119 object,
120 uuid(000214E9-0000-0000-C000-000000000046),
121 pointer_default(unique),
122 local
124 interface IShellPropSheetExt : IUnknown
126 enum tagSHELLPROPSHEETEXTPAGEID {
127 EXPPS_FILETYPES = 0x1
130 typedef UINT EXPPS;
132 HRESULT AddPages(
133 [in] LPFNSVADDPROPSHEETPAGE pfnAddPage,
134 [in] LPARAM lParam);
135 HRESULT ReplacePage(
136 [in] EXPPS uPageID,
137 [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith,
138 [in] LPARAM lParam);
140 typedef IShellPropSheetExt *LPSHELLPROPSHEETEXT;
142 /*****************************************************************************
143 * IShellFolder interface
146 object,
147 uuid(000214e6-0000-0000-c000-000000000046),
148 pointer_default(unique)
150 interface IShellFolder : IUnknown
152 typedef IShellFolder * LPSHELLFOLDER;
154 typedef enum tagSHGDN
156 SHGDN_NORMAL = 0,
157 SHGDN_INFOLDER = 1,
158 SHGDN_FOREDITING = 0x1000,
159 SHGDN_INCLUDE_NONFILESYS = 0x2000,
160 SHGDN_FORADDRESSBAR = 0x4000,
161 SHGDN_FORPARSING = 0x8000
162 } SHGNO;
164 typedef DWORD SHGDNF;
166 enum tagSHCONTF
168 SHCONTF_FOLDERS = 32,
169 SHCONTF_NONFOLDERS = 64,
170 SHCONTF_INCLUDEHIDDEN = 128,
171 SHCONTF_INIT_ON_FIRST_NEXT = 256,
172 SHCONTF_NETPRINTERSRCH = 512,
173 SHCONTF_SHAREABLE = 1024,
174 SHCONTF_STORAGE = 2048
177 typedef DWORD SHCONTF;
179 cpp_quote("#define SFGAO_CANCOPY DROPEFFECT_COPY")
180 cpp_quote("#define SFGAO_CANMOVE DROPEFFECT_MOVE")
181 cpp_quote("#define SFGAO_CANLINK DROPEFFECT_LINK")
182 cpp_quote("#define SFGAO_STORAGE 0x00000008L")
183 cpp_quote("#define SFGAO_CANRENAME 0x00000010L")
184 cpp_quote("#define SFGAO_CANDELETE 0x00000020L")
185 cpp_quote("#define SFGAO_HASPROPSHEET 0x00000040L")
186 cpp_quote("#define SFGAO_DROPTARGET 0x00000100L")
187 cpp_quote("#define SFGAO_CAPABILITYMASK 0x00000177L")
188 cpp_quote("#define SFGAO_ENCRYPTED 0x00002000L")
189 cpp_quote("#define SFGAO_ISSLOW 0x00004000L")
190 cpp_quote("#define SFGAO_GHOSTED 0x00008000L")
191 cpp_quote("#define SFGAO_LINK 0x00010000L")
192 cpp_quote("#define SFGAO_SHARE 0x00020000L")
193 cpp_quote("#define SFGAO_READONLY 0x00040000L")
194 cpp_quote("#define SFGAO_HIDDEN 0x00080000L")
195 cpp_quote("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
196 cpp_quote("#define SFGAO_FILESYSANCESTOR 0x10000000L")
197 cpp_quote("#define SFGAO_FOLDER 0x20000000L")
198 cpp_quote("#define SFGAO_FILESYSTEM 0x40000000L")
199 cpp_quote("#define SFGAO_HASSUBFOLDER 0x80000000L")
200 cpp_quote("#define SFGAO_CONTENTSMASK 0x80000000L")
201 cpp_quote("#define SFGAO_VALIDATE 0x01000000L")
202 cpp_quote("#define SFGAO_REMOVABLE 0x02000000L")
203 cpp_quote("#define SFGAO_COMPRESSED 0x04000000L")
204 cpp_quote("#define SFGAO_BROWSABLE 0x08000000L")
205 cpp_quote("#define SFGAO_NONENUMERATED 0x00100000L")
206 cpp_quote("#define SFGAO_NEWCONTENT 0x00200000L")
207 cpp_quote("#define SFGAO_STREAM 0x00400000L")
208 cpp_quote("#define SFGAO_STORAGEANCESTOR 0x00800000L")
210 typedef ULONG SFGAOF;
212 HRESULT ParseDisplayName(
213 [in] HWND hwndOwner,
214 [in] LPBC pbcReserved,
215 [in, string] LPOLESTR lpszDisplayName,
216 [out] ULONG *pchEaten,
217 [out] LPITEMIDLIST *ppidl,
218 [in, out, unique] ULONG *pdwAttributes);
220 HRESULT EnumObjects(
221 [in] HWND hwndOwner,
222 [in] SHCONTF grfFlags,
223 [out] IEnumIDList **ppenumIDList);
225 HRESULT BindToObject(
226 [in] LPCITEMIDLIST pidl,
227 [in] LPBC pbcReserved,
228 [in] REFIID riid,
229 [out, iid_is(riid)] void **ppvOut);
231 HRESULT BindToStorage(
232 [in] LPCITEMIDLIST pidl,
233 [in] LPBC pbcReserved,
234 [in] REFIID riid,
235 [out, iid_is(riid)] void **ppvObj);
237 HRESULT CompareIDs(
238 [in] LPARAM lParam,
239 [in] LPCITEMIDLIST pidl1,
240 [in] LPCITEMIDLIST pidl2);
242 HRESULT CreateViewObject(
243 [in] HWND hwndOwner,
244 [in] REFIID riid,
245 [out, iid_is(riid)] void **ppvOut);
247 HRESULT GetAttributesOf(
248 [in] UINT cidl,
249 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
250 [in, out] SFGAOF *rgfInOut);
252 HRESULT GetUIObjectOf(
253 [in] HWND hwndOwner,
254 [in] UINT cidl,
255 [in, size_is(cidl)] LPCITEMIDLIST *apidl,
256 [in] REFIID riid,
257 [in, out, unique] UINT *prgfInOut,
258 [out, iid_is(riid)] void **ppvOut);
260 HRESULT GetDisplayNameOf(
261 [in] LPCITEMIDLIST pidl,
262 [in] SHGDNF uFlags,
263 [out] STRRET *lpName);
265 HRESULT SetNameOf(
266 [in] HWND hwnd,
267 [in] LPCITEMIDLIST pidl,
268 [in, string] LPCOLESTR lpszName,
269 [in] SHGDNF uFlags,
270 [out] LPITEMIDLIST *ppidlOut);
274 /*****************************************************************************
275 * IEnumExtraSearch interface
278 object,
279 uuid(0e700be1-9db6-11d1-a1ce-00c04fd75d13),
280 pointer_default(unique)
282 interface IEnumExtraSearch : IUnknown
284 typedef IEnumExtraSearch *LPENUMEXTRASEARCH;
286 typedef struct
288 GUID guidSearch;
289 WCHAR wszFriendlyName[80];
291 *WCHAR wszMenuText[80];
292 *WCHAR wszHelpText[MAX_PATH];
294 WCHAR wszUrl[2084];
296 *WCHAR wszIcon[MAX_PATH+10];
297 *WCHAR wszGreyIcon[MAX_PATH+10];
298 *WCHAR wszClrIcon[MAX_PATH+10];
300 } EXTRASEARCH, *LPEXTRASEARCH;
302 HRESULT Next(
303 [in] ULONG celt,
304 [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
305 [out] ULONG *pceltFetched);
307 HRESULT Skip( [in] ULONG celt );
308 HRESULT Reset();
309 HRESULT Clone( [out] IEnumExtraSearch **ppenum );
313 /*****************************************************************************
314 * IShellFolder2 interface
317 object,
318 uuid(93f2f68c-1d1b-11d3-a30e-00c04f79abd1),
319 pointer_default(unique)
321 interface IShellFolder2 : IShellFolder
323 typedef enum
325 SHCOLSTATE_TYPE_STR = 0x00000001,
326 SHCOLSTATE_TYPE_INT = 0x00000002,
327 SHCOLSTATE_TYPE_DATE = 0x00000003,
328 SHCOLSTATE_TYPEMASK = 0x0000000f,
329 SHCOLSTATE_ONBYDEFAULT = 0x00000010,
330 SHCOLSTATE_SLOW = 0x00000020,
331 SHCOLSTATE_EXTENDED = 0x00000040,
332 SHCOLSTATE_SECONDARYUI = 0x00000080,
333 SHCOLSTATE_HIDDEN = 0x00000100,
334 SHCOLSTATE_PREFER_VARCMP = 0x00000200
335 } SHCOLSTATE;
337 typedef DWORD SHCOLSTATEF;
339 typedef struct
341 GUID fmtid;
342 DWORD pid;
343 } SHCOLUMNID, *LPSHCOLUMNID;
344 typedef const SHCOLUMNID *LPCSHCOLUMNID;
346 HRESULT GetDefaultSearchGUID( [out] GUID *lpguid );
347 HRESULT EnumSearches( [out] IEnumExtraSearch **ppenum );
348 HRESULT GetDefaultColumn( [in] DWORD dwReserved, [out] ULONG *pSort, [out] ULONG *pDisplay );
349 HRESULT GetDefaultColumnState( [in] UINT iColumn, [out] SHCOLSTATEF *pcsFlags );
350 HRESULT GetDetailsEx( [in] LPCITEMIDLIST pidl, [in] const SHCOLUMNID *pscid, [out] VARIANT *pv);
351 HRESULT GetDetailsOf( [in] LPCITEMIDLIST pidl, [in] UINT iColumn, [out] SHELLDETAILS *psd);
352 HRESULT MapColumnToSCID( [in] UINT iColumn, [in] SHCOLUMNID *pscid );
355 /*****************************************************************************
356 * IShellItem interface
359 object,
360 uuid(43826d1e-e718-42ee-bc55-a1e261c37bfe),
361 pointer_default(unique)
363 interface IShellItem : IUnknown
365 typedef DWORD SIGDN;
367 typedef DWORD SICHINTF;
369 HRESULT BindToHandler(
370 [in] IBindCtx *pbc,
371 [in] REFGUID rbhid,
372 [in] REFIID riid,
373 [out, iid_is(riid)] void **ppvOut);
375 HRESULT GetParent( [out] IShellItem **ppsi );
377 HRESULT GetDisplayName(
378 [in] SIGDN sigdnName,
379 [out] LPWSTR *ppszName);
381 HRESULT GetAttributes(
382 [in] SFGAOF sfgaoMask,
383 [out] SFGAOF *psfgaoAttribs);
385 HRESULT Compare(
386 [in] IShellItem *psi,
387 [in] SICHINTF hint,
388 [out] int *piOrder);
393 /*****************************************************************************
394 * FOLDERSETTINGS
396 typedef char *LPVIEWSETTINGS;
398 typedef enum
400 FWF_AUTOARRANGE = 0x00000001,
401 FWF_ABBREVIATEDNAMES = 0x00000002,
402 FWF_SNAPTOGRID = 0x00000004,
403 FWF_OWNERDATA = 0x00000008,
404 FWF_BESTFITWINDOW = 0x00000010,
405 FWF_DESKTOP = 0x00000020,
406 FWF_SINGLESEL = 0x00000040,
407 FWF_NOSUBFOLDERS = 0x00000080,
408 FWF_TRANSPARENT = 0x00000100,
409 FWF_NOCLIENTEDGE = 0x00000200,
410 FWF_NOSCROLL = 0x00000400,
411 FWF_ALIGNLEFT = 0x00000800,
412 FWF_NOICONS = 0x00001000,
413 FWF_SHOWSELALWAYS = 0x00002000,
414 FWF_NOVISIBLE = 0x00004000,
415 FWF_SINGLECLICKACTIVATE = 0x00008000,
416 FWF_NOWEBVIEW = 0x00010000,
417 FWF_HIDEFILENAMES = 0x00020000,
418 FWF_CHECKSELECT = 0x00040000
419 } FOLDERFLAGS;
421 typedef enum
423 FVM_ICON = 1,
424 FVM_FIRST = FVM_ICON,
425 FVM_SMALLICON = 2,
426 FVM_LIST = 3,
427 FVM_DETAILS = 4,
428 FVM_THUMBNAIL = 5,
429 FVM_TILE = 6,
430 FVM_THUMBSTRIP = 7,
431 FVM_LAST = FVM_THUMBSTRIP
432 } FOLDERVIEWMODE;
434 typedef struct
436 UINT ViewMode;
437 UINT fFlags;
438 } FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
439 typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
442 /*****************************************************************************
443 * IShellView interface
445 interface IShellBrowser; /* forward declaration */
447 object,
448 uuid(000214e3-0000-0000-c000-000000000046),
449 pointer_default(unique)
451 interface IShellView : IOleWindow
453 typedef IShellView *LPSHELLVIEW;
455 cpp_quote("#define SVSI_DESELECT 0x00000000")
456 cpp_quote("#define SVSI_SELECT 0x00000001")
457 cpp_quote("#define SVSI_EDIT 0x00000003")
458 cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
459 cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
460 cpp_quote("#define SVSI_FOCUSED 0x00000010")
461 cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
462 cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
463 cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
464 cpp_quote("#define SVSI_CHECK 0x00000100")
465 cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
467 typedef UINT SVSIF;
469 typedef enum
471 SVGIO_BACKGROUND = 0x00000000,
472 SVGIO_SELECTION = 0x00000001,
473 SVGIO_ALLVIEW = 0x00000002,
474 SVGIO_CHECKED = 0x00000003,
475 SVGIO_TYPE_MASK = 0x0000000f,
476 SVGIO_FLAG_VIEWORDER = 0x80000000,
477 } SVGIO;
479 typedef enum
481 SVUIA_DEACTIVATE = 0,
482 SVUIA_ACTIVATE_NOFOCUS = 1,
483 SVUIA_ACTIVATE_FOCUS = 2,
484 SVUIA_INPLACEACTIVATE = 3
485 } SVUIA_STATUS;
487 HRESULT TranslateAccelerator( [in] MSG *pmsg );
488 HRESULT EnableModeless( [in] BOOL fEnable );
489 HRESULT UIActivate( [in] UINT uState );
490 HRESULT Refresh();
491 HRESULT CreateViewWindow(
492 [in] IShellView *psvPrevious,
493 [in] LPCFOLDERSETTINGS lpfs,
494 [in] IShellBrowser *psb,
495 [out] RECT *prcView,
496 [out] HWND *phWnd);
498 HRESULT DestroyViewWindow();
499 HRESULT GetCurrentInfo( [out] LPFOLDERSETTINGS lpfs );
501 [local] HRESULT AddPropertySheetPages(
502 [in] DWORD dwReserved,
503 [in] LPFNSVADDPROPSHEETPAGE pfn,
504 [in] LPARAM lparam);
506 HRESULT SaveViewState();
507 HRESULT SelectItem(
508 [in] LPCITEMIDLIST pidlItem,
509 [in] SVSIF uFlags);
510 HRESULT GetItemObject(
511 [in] UINT uItem,
512 [in] REFIID riid,
513 [out, iid_is(riid)] void **ppv);
517 object,
518 uuid(88e39e80-3578-11cf-ae69-08002b2e1262),
519 pointer_default(unique)
521 interface IShellView2 : IShellView
523 typedef GUID SHELLVIEWID;
524 cpp_quote("#include <pshpack8.h>")
525 typedef struct _SV2CVW2_PARAMS
527 DWORD cbSize;
528 IShellView *psvPrev;
529 LPCFOLDERSETTINGS pfs;
530 IShellBrowser *psbOwner;
531 RECT *prcView;
532 SHELLVIEWID const *pvid;
533 HWND hwndView;
534 } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
535 cpp_quote("#include <poppack.h>")
537 HRESULT GetView(
538 [in, out] SHELLVIEWID *view_guid,
539 [in] ULONG view_type
541 HRESULT CreateViewWindow2(
542 [in] LPSV2CVW2_PARAMS view_params
544 HRESULT HandleRename(
545 [in] LPCITEMIDLIST new_pidl
547 HRESULT SelectAndPositionItem(
548 [in] LPCITEMIDLIST item,
549 [in] UINT flags,
550 [in] POINT *point
555 /*****************************************************************************
556 * IShellBrowser interface
559 object,
560 uuid(000214e2-0000-0000-c000-000000000046),
561 pointer_default(unique)
563 interface IShellBrowser : IOleWindow
565 typedef IShellBrowser *LPSHELLBROWSER;
567 cpp_quote("#define SBSP_DEFBROWSER 0x00000000")
568 cpp_quote("#define SBSP_SAMEBROWSER 0x00000001")
569 cpp_quote("#define SBSP_NEWBROWSER 0x00000002")
570 cpp_quote("#define SBSP_DEFMODE 0x00000000")
571 cpp_quote("#define SBSP_OPENMODE 0x00000010")
572 cpp_quote("#define SBSP_EXPLOREMODE 0x00000020")
573 cpp_quote("#define SBSP_HELPMODE 0x00000040")
574 cpp_quote("#define SBSP_NOTRANSFERHIST 0x00000080")
575 cpp_quote("#define SBSP_ABSOLUTE 0x00000000")
576 cpp_quote("#define SBSP_RELATIVE 0x00001000")
577 cpp_quote("#define SBSP_PARENT 0x00002000")
578 cpp_quote("#define SBSP_NAVIGATEBACK 0x00004000")
579 cpp_quote("#define SBSP_NAVIGATEFORWARD 0x00008000")
580 cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")
581 cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
582 cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
583 cpp_quote("#define SBSP_REDIRECT 0x40000000")
584 cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
586 cpp_quote("#define FCW_STATUS 0x0001")
587 cpp_quote("#define FCW_TOOLBAR 0x0002")
588 cpp_quote("#define FCW_TREE 0x0003")
589 cpp_quote("#define FCW_INTERNETBAR 0x0006")
590 cpp_quote("#define FCW_PROGRESS 0x0008")
592 cpp_quote("#define FCT_MERGE 0x0001")
593 cpp_quote("#define FCT_CONFIGABLE 0x0002")
594 cpp_quote("#define FCT_ADDTOEND 0x0004")
596 cpp_quote("#if 0")
597 typedef LPARAM LPTBBUTTONSB;
598 cpp_quote("#else")
599 cpp_quote("#include <commctrl.h>")
600 cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
601 cpp_quote("#endif")
603 HRESULT InsertMenusSB(
604 [in] HMENU hmenuShared,
605 [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
607 HRESULT SetMenuSB(
608 [in] HMENU hmenuShared,
609 [in] HOLEMENU holemenuReserved,
610 [in] HWND hwndActiveObject);
612 HRESULT RemoveMenusSB( [in] HMENU hmenuShared );
613 HRESULT SetStatusTextSB( [in, unique] LPCOLESTR pszStatusText );
614 HRESULT EnableModelessSB( [in] BOOL fEnable );
615 HRESULT TranslateAcceleratorSB( [in] MSG *pmsg, [in] WORD wID );
617 HRESULT BrowseObject(
618 [in] LPCITEMIDLIST pidl,
619 [in] UINT wFlags);
621 HRESULT GetViewStateStream(
622 [in] DWORD grfMode,
623 [out] IStream **ppStrm);
625 HRESULT GetControlWindow(
626 [in] UINT id,
627 [out] HWND *phwnd);
629 [local] HRESULT SendControlMsg(
630 [in] UINT id,
631 [in] UINT uMsg,
632 [in] WPARAM wParam,
633 [in] LPARAM lParam,
634 [in] LRESULT *pret);
636 HRESULT QueryActiveShellView( [out] IShellView **ppshv );
637 HRESULT OnViewWindowActive( [in] IShellView *pshv );
639 [local]
640 HRESULT SetToolbarItems(
641 [in] LPTBBUTTONSB lpButtons,
642 [in] UINT nButtons,
643 [in] UINT uFlags);
647 /*****************************************************************************
648 * IShellLinkA interface
651 object,
652 uuid(000214ee-0000-0000-c000-000000000046),
653 pointer_default(unique)
655 interface IShellLinkA : IUnknown
657 typedef enum
659 SLR_NO_UI = 0x0001,
660 SLR_ANY_MATCH = 0x0002,
661 SLR_UPDATE = 0x0004,
662 SLR_NOUPDATE = 0x0008,
663 SLR_NOSEARCH = 0x0010,
664 SLR_NOTRACK = 0x0020,
665 SLR_NOLINKINFO = 0x0040,
666 SLR_INVOKE_MSI = 0x0080,
667 SLR_NO_UI_WITH_MSG_PUMP = 0x0101,
668 } SLR_FLAGS;
670 typedef enum
672 SLGP_SHORTPATH = 0x0001,
673 SLGP_UNCPRIORITY = 0x0002,
674 SLGP_RAWPATH = 0x0004,
675 } SLGP_FLAGS;
677 HRESULT GetPath(
678 [out, size_is(cch)] LPSTR pszFile,
679 [in] int cch,
680 [in, out, unique] WIN32_FIND_DATAA *pfd,
681 [in] DWORD fFlags);
683 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
685 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
687 HRESULT GetDescription(
688 [out, size_is(cch)] LPSTR pszName,
689 [in] int cch);
691 HRESULT SetDescription( [in] LPCSTR pszName );
693 HRESULT GetWorkingDirectory(
694 [out, size_is(cch)] LPSTR pszDir,
695 [in] int cch);
697 HRESULT SetWorkingDirectory( [in] LPCSTR pszDir );
699 HRESULT GetArguments(
700 [out, size_is(cch)] LPSTR pszArgs,
701 [in] int cch);
703 HRESULT SetArguments( [in] LPCSTR pszArgs );
705 HRESULT GetHotkey( [out] WORD *pwHotkey );
707 HRESULT SetHotkey( [in] WORD wHotkey );
709 HRESULT GetShowCmd( [out] int *piShowCmd );
711 HRESULT SetShowCmd( [in] int iShowCmd );
713 HRESULT GetIconLocation(
714 [out, size_is(cch)] LPSTR pszIconPath,
715 [in] int cch,
716 [out] int *piIcon);
718 HRESULT SetIconLocation(
719 [in] LPCSTR pszIconPath,
720 [in] int iIcon);
722 HRESULT SetRelativePath(
723 [in] LPCSTR pszPathRel,
724 [in] DWORD dwReserved);
726 HRESULT Resolve(
727 [in] HWND hwnd,
728 [in] DWORD fFlags);
730 HRESULT SetPath( [in] LPCSTR pszFile );
734 /*****************************************************************************
735 * IShellLinkW interface
738 object,
739 uuid(000214f9-0000-0000-c000-000000000046),
740 pointer_default(unique)
742 interface IShellLinkW : IUnknown
744 HRESULT GetPath(
745 [out, size_is(cch)] LPWSTR pszFile,
746 [in] int cch,
747 [in, out] WIN32_FIND_DATAW *pfd,
748 [in] DWORD fFlags);
750 HRESULT GetIDList( [out] LPITEMIDLIST * ppidl );
752 HRESULT SetIDList( [in] LPCITEMIDLIST pidl );
754 HRESULT GetDescription(
755 [out, size_is(cch)] LPWSTR pszName,
756 [in] int cch);
758 HRESULT SetDescription( [in] LPCWSTR pszName );
760 HRESULT GetWorkingDirectory(
761 [out, size_is(cch)] LPWSTR pszDir,
762 [in] int cch);
764 HRESULT SetWorkingDirectory( [in] LPCWSTR pszDir );
766 HRESULT GetArguments(
767 [out, size_is(cch)] LPWSTR pszArgs,
768 [in] int cch);
770 HRESULT SetArguments( [in] LPCWSTR pszArgs );
772 HRESULT GetHotkey( [out] WORD *pwHotkey );
774 HRESULT SetHotkey( [in] WORD wHotkey );
776 HRESULT GetShowCmd( [out] int *piShowCmd );
778 HRESULT SetShowCmd( [in] int iShowCmd );
780 HRESULT GetIconLocation(
781 [out, size_is(cch)] LPWSTR pszIconPath,
782 [in] int cch,
783 [out] int *piIcon);
785 HRESULT SetIconLocation(
786 [in] LPCWSTR pszIconPath,
787 [in] int iIcon);
789 HRESULT SetRelativePath(
790 [in] LPCWSTR pszPathRel,
791 [in] DWORD dwReserved);
793 HRESULT Resolve(
794 [in] HWND hwnd,
795 [in] DWORD fFlags);
797 HRESULT SetPath( [in] LPCWSTR pszFile );
800 cpp_quote("#define IShellLink WINELIB_NAME_AW(IShellLink)")
803 /*****************************************************************************
804 * IShellExtInit interface
807 object,
808 uuid(000214e8-0000-0000-c000-000000000046),
809 pointer_default(unique),
810 local
812 interface IShellExtInit : IUnknown
814 typedef IShellExtInit *LPSHELLEXTINIT;
816 HRESULT Initialize(
817 [in] LPCITEMIDLIST pidlFolder,
818 [in] IDataObject *pdtobj,
819 [in] HKEY hkeyProgID);
823 /*******************************************************************************/
824 /* Note: the following interfaces are not in shobjidl.idl under Windows, they */
825 /* are declared directly in shlobj.h. It hopefully won't break anything to put */
826 /* them here anyway. */
827 /*******************************************************************************/
829 #ifndef MAX_PATH
830 #define MAX_PATH 260
831 #endif
834 /*****************************************************************************
835 * IPersistFolder3 interface
838 object,
839 uuid(cef04fdf-fe72-11d2-87a5-00c04f6837cf),
840 pointer_default(unique)
842 interface IPersistFolder3 : IPersistFolder2
844 typedef struct
846 LPITEMIDLIST pidlTargetFolder;
847 WCHAR szTargetParsingName[MAX_PATH];
848 WCHAR szNetworkProvider[MAX_PATH];
849 DWORD dwAttributes;
850 int csidl;
851 } PERSIST_FOLDER_TARGET_INFO;
853 HRESULT InitializeEx(
854 [in] IBindCtx *pbc,
855 [in] LPCITEMIDLIST pidlRoot,
856 [in] const PERSIST_FOLDER_TARGET_INFO *ppfti);
858 HRESULT GetFolderTargetInfo( [out] PERSIST_FOLDER_TARGET_INFO *ppfti );
862 /*****************************************************************************
863 * IExtractIconA interface
866 object,
867 uuid(000214eb-0000-0000-c000-000000000046),
868 pointer_default(unique),
869 local
871 interface IExtractIconA : IUnknown
873 cpp_quote("#define GIL_OPENICON 0x0001")
874 cpp_quote("#define GIL_FORSHELL 0x0002")
875 cpp_quote("#define GIL_ASYNC 0x0020")
876 cpp_quote("#define GIL_DEFAULTICON 0x0040")
877 cpp_quote("#define GIL_FORSHORTCUT 0x0080")
879 cpp_quote("#define GIL_SIMULATEDOC 0x0001")
880 cpp_quote("#define GIL_PERINSTANCE 0x0002")
881 cpp_quote("#define GIL_PERCLASS 0x0004")
882 cpp_quote("#define GIL_NOTFILENAME 0x0008")
883 cpp_quote("#define GIL_DONTCACHE 0x0010")
885 typedef IExtractIconA *LPEXTRACTICONA;
887 HRESULT GetIconLocation(
888 [in] UINT uFlags,
889 [out, size_is(cchMax)] LPSTR szIconFile,
890 [in] UINT cchMax,
891 [out] INT *piIndex,
892 [out] UINT *pwFlags);
894 HRESULT Extract(
895 [in] LPCSTR pszFile,
896 [in] UINT nIconIndex,
897 [out] HICON *phiconLarge,
898 [out] HICON *phiconSmall,
899 [in] UINT nIconSize );
903 /*****************************************************************************
904 * IExtractIconW interface
907 object,
908 uuid(000214fa-0000-0000-c000-000000000046),
909 pointer_default(unique),
910 local
912 interface IExtractIconW : IUnknown
914 typedef IExtractIconW *LPEXTRACTICONW;
916 HRESULT GetIconLocation(
917 [in] UINT uFlags,
918 [out, size_is(cchMax)] LPWSTR szIconFile,
919 [in] UINT cchMax,
920 [out] INT *piIndex,
921 [out] UINT *pwFlags);
923 HRESULT Extract(
924 [in] LPCWSTR pszFile,
925 [in] UINT nIconIndex,
926 [out] HICON *phiconLarge,
927 [out] HICON *phiconSmall,
928 [in] UINT nIconSize );
931 cpp_quote("#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)")
932 cpp_quote("#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)")
935 /*****************************************************************************
936 * ICommDlgBrowser interface
939 object,
940 uuid(000214f1-0000-0000-c000-000000000046),
941 pointer_default(unique)
943 interface ICommDlgBrowser : IUnknown
945 cpp_quote("#define CDBOSC_SETFOCUS 0x00000000")
946 cpp_quote("#define CDBOSC_KILLFOCUS 0x00000001")
947 cpp_quote("#define CDBOSC_SELCHANGE 0x00000002")
948 cpp_quote("#define CDBOSC_RENAME 0x00000003")
949 cpp_quote("#define CDBOSC_STATECHANGE 0x00000004")
951 typedef ICommDlgBrowser *LPCOMMDLGBROWSER;
953 HRESULT OnDefaultCommand( [in] IShellView *shv );
954 HRESULT OnStateChange( [in] IShellView *shv, [in] ULONG uChange );
955 HRESULT IncludeObject( [in] IShellView *shv, [in] LPCITEMIDLIST pidl );
959 /*****************************************************************************
960 * IDockingWindowFrame interface
963 object,
964 uuid(47d2657a-7b27-11d0-8ca9-00a0c92dbfe8),
965 pointer_default(unique),
966 local
968 interface IDockingWindowFrame : IOleWindow
970 cpp_quote("#define DWFRF_NORMAL 0x0000")
971 cpp_quote("#define DWFRF_DELETECONFIGDATA 0x0001")
972 cpp_quote("#define DWFAF_HIDDEN 0x0001")
974 HRESULT AddToolbar(
975 [in] IUnknown *punkSrc,
976 [in] LPCWSTR pwszItem,
977 [in] DWORD dwAddFlags);
979 HRESULT RemoveToolbar(
980 [in] IUnknown *punkSrc,
981 [in] DWORD dwRemoveFlags);
983 HRESULT FindToolbar(
984 [in] LPCWSTR pwszItem,
985 [in] REFIID riid,
986 [out] LPVOID *ppvObj);
990 /*****************************************************************************
991 * IDragSourceHelper interface
994 object,
995 uuid(de5bf786-477a-11d2-839d-00c04fd918d0),
996 pointer_default(unique),
997 local
999 interface IDragSourceHelper : IUnknown
1001 typedef struct
1003 SIZE sizeDragImage;
1004 POINT ptOffset;
1005 HBITMAP hbmpDragImage;
1006 COLORREF crColorKey;
1007 } SHDRAGIMAGE, *LPSHDRAGIMAGE;
1009 HRESULT InitializeFromBitmap(
1010 [in] LPSHDRAGIMAGE pshdi,
1011 [in] IDataObject *pDataObject);
1013 HRESULT InitializeFromWindow(
1014 [in] HWND hwnd,
1015 [in] POINT *ppt,
1016 [in] IDataObject *pDataObject);
1020 /*****************************************************************************
1021 * IDropTargetHelper interface
1024 object,
1025 uuid(4657278b-411b-11d2-839a-00c04fd918d0),
1026 pointer_default(unique),
1027 local
1029 interface IDropTargetHelper : IUnknown
1031 HRESULT DragEnter(
1032 [in] HWND hwndTarget,
1033 [in] IDataObject *pDataObject,
1034 [in] POINT *ppt,
1035 [in] DWORD dwEffect);
1037 HRESULT DragLeave();
1039 HRESULT DragOver(
1040 [in] POINT *ppt,
1041 [in] DWORD dwEffect);
1043 HRESULT Drop(
1044 [in] IDataObject *pDataObject,
1045 [in] POINT *ppt,
1046 [in] DWORD dwEffect);
1048 HRESULT Show( [in] BOOL fShow );
1052 /*****************************************************************************
1053 * IContextMenu interface
1056 object,
1057 uuid(000214e4-0000-0000-c000-000000000046),
1058 pointer_default(unique),
1059 local
1061 interface IContextMenu : IUnknown
1063 cpp_quote("#define CMF_NORMAL 0x00000000")
1064 cpp_quote("#define CMF_DEFAULTONLY 0x00000001")
1065 cpp_quote("#define CMF_VERBSONLY 0x00000002")
1066 cpp_quote("#define CMF_EXPLORE 0x00000004")
1067 cpp_quote("#define CMF_NOVERBS 0x00000008")
1068 cpp_quote("#define CMF_CANRENAME 0x00000010")
1069 cpp_quote("#define CMF_NODEFAULT 0x00000020")
1070 cpp_quote("#define CMF_INCLUDESTATIC 0x00000040")
1071 cpp_quote("#define CMF_EXTENDEDVERBS 0x00000100")
1072 cpp_quote("#define CMF_RESERVED 0xffff0000")
1074 cpp_quote("#define GCS_VERBA 0x00000000")
1075 cpp_quote("#define GCS_HELPTEXTA 0x00000001")
1076 cpp_quote("#define GCS_VALIDATEA 0x00000002")
1077 cpp_quote("#define GCS_VERBW 0x00000004")
1078 cpp_quote("#define GCS_HELPTEXTW 0x00000005")
1079 cpp_quote("#define GCS_VALIDATEW 0x00000006")
1080 cpp_quote("#define GCS_UNICODE 0x00000004")
1081 cpp_quote("#define GCS_VERB WINELIB_NAME_AW(GCS_VERB)")
1082 cpp_quote("#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT)")
1083 cpp_quote("#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE)")
1085 cpp_quote("#define CMDSTR_NEWFOLDERA \"NewFolder\"")
1086 cpp_quote("#define CMDSTR_VIEWLISTA \"ViewList\"")
1087 cpp_quote("#define CMDSTR_VIEWDETAILSA \"ViewDetails\"")
1088 cpp_quote("#if defined(__GNUC__)")
1089 cpp_quote("# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 }")
1090 cpp_quote("# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 }")
1091 cpp_quote("# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 }")
1092 cpp_quote("#elif defined(_MSC_VER)")
1093 cpp_quote("# define CMDSTR_NEWFOLDERW L\"NewFolder\"")
1094 cpp_quote("# define CMDSTR_VIEWLISTW L\"ViewList\"")
1095 cpp_quote("# define CMDSTR_VIEWDETAILSW L\"ViewDetails\"")
1096 cpp_quote("#else")
1097 cpp_quote("static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0};")
1098 cpp_quote("static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0};")
1099 cpp_quote("static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0};")
1100 cpp_quote("#endif")
1101 cpp_quote("#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER)")
1102 cpp_quote("#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST)")
1103 cpp_quote("#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS)")
1105 cpp_quote("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")
1106 cpp_quote("#define CMIC_MASK_ICON SEE_MASK_ICON")
1107 cpp_quote("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")
1108 cpp_quote("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")
1109 cpp_quote("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")
1110 cpp_quote("#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME")
1111 cpp_quote("#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM")
1112 cpp_quote("#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE")
1113 cpp_quote("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")
1114 cpp_quote("#define CMIC_MASK_SHIFT_DOWN 0x10000000")
1115 cpp_quote("#define CMIC_MASK_PTINVOKE 0x20000000")
1116 cpp_quote("#define CMIC_MASK_CONTROL_DOWN 0x40000000")
1117 cpp_quote("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")
1118 cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
1120 typedef IContextMenu *LPCONTEXTMENU;
1122 typedef struct tagCMINVOKECOMMANDINFO
1124 DWORD cbSize;
1125 DWORD fMask;
1126 HWND hwnd;
1127 LPCSTR lpVerb;
1128 LPCSTR lpParameters;
1129 LPCSTR lpDirectory;
1130 INT nShow;
1131 DWORD dwHotKey;
1132 HANDLE hIcon;
1133 } CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
1135 typedef struct tagCMInvokeCommandInfoEx
1137 DWORD cbSize;
1138 DWORD fMask;
1139 HWND hwnd;
1140 LPCSTR lpVerb;
1141 LPCSTR lpParameters;
1142 LPCSTR lpDirectory;
1143 INT nShow;
1144 DWORD dwHotKey;
1145 HANDLE hIcon;
1146 LPCSTR lpTitle;
1147 LPCWSTR lpVerbW;
1148 LPCWSTR lpParametersW;
1149 LPCWSTR lpDirectoryW;
1150 LPCWSTR lpTitleW;
1151 POINT ptInvoke;
1152 } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX;
1154 HRESULT QueryContextMenu(
1155 [in] HMENU hmenu,
1156 [in] UINT indexMenu,
1157 [in] UINT idCmdFirst,
1158 [in] UINT idCmdLast,
1159 [in] UINT uFlags);
1161 HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
1163 HRESULT GetCommandString(
1164 [in] UINT_PTR idCmd,
1165 [in] UINT uType,
1166 [out] UINT *pwReserved,
1167 [out, size_is(cchMax)] LPSTR pszName,
1168 [in] UINT cchMax);
1172 /*****************************************************************************
1173 * IContextMenu2 interface
1176 object,
1177 uuid(000214f4-0000-0000-c000-000000000046),
1178 pointer_default(unique),
1179 local
1181 interface IContextMenu2 : IContextMenu
1183 typedef IContextMenu2 *LPCONTEXTMENU2;
1185 HRESULT HandleMenuMsg(
1186 [in] UINT uMsg,
1187 [in] WPARAM wParam,
1188 [in] LPARAM lParam);
1192 /*****************************************************************************
1193 * IContextMenu3 interface
1196 object,
1197 uuid(bcfce0a0-ec17-11d0-8d10-00a0c90f2719),
1198 pointer_default(unique),
1199 local
1201 interface IContextMenu3 : IContextMenu2
1203 typedef IContextMenu3 *LPCONTEXTMENU3;
1205 HRESULT HandleMenuMsg2(
1206 [in] UINT uMsg,
1207 [in] WPARAM wParam,
1208 [in] LPARAM lParam,
1209 [out] LRESULT *plResult);
1213 /*****************************************************************************
1214 * IShellExecuteHookA interface
1217 object,
1218 uuid(000214f5-0000-0000-c000-000000000046),
1219 pointer_default(unique),
1220 local
1222 interface IShellExecuteHookA : IUnknown
1224 cpp_quote("struct _SHELLEXECUTEINFOA;")
1225 HRESULT Execute(
1226 [in, out] struct _SHELLEXECUTEINFOA* pei);
1230 /*****************************************************************************
1231 * IShellExecuteHookW interface
1234 object,
1235 uuid(000214fb-0000-0000-c000-000000000046),
1236 pointer_default(unique),
1237 local
1239 interface IShellExecuteHookW : IUnknown
1241 cpp_quote("struct _SHELLEXECUTEINFOW;")
1242 HRESULT Execute(
1243 [in, out] struct _SHELLEXECUTEINFOW* pei);
1246 /*****************************************************************************
1247 * IShellLinkDataList interface
1250 object,
1251 uuid(45e2b4ae-b1c3-11d0-b92f-00a0c90312e1),
1252 pointer_default(unique)
1254 interface IShellLinkDataList : IUnknown
1256 [local] HRESULT AddDataBlock(
1257 [in] void *pDataBlock);
1258 [local] HRESULT CopyDataBlock(
1259 [in] DWORD dwSig,
1260 [out] void **ppDataBlock);
1261 HRESULT RemoveDataBlock(
1262 [in] DWORD dwSig);
1263 HRESULT GetFlags(
1264 [out] DWORD *pdwFlags);
1265 HRESULT SetFlags(
1266 [in] DWORD dwFlags);
1270 /*****************************************************************************
1271 * IResolveShellLink interface
1274 object,
1275 uuid(5cd52983-9449-11d2-963a-00c04f79adf0),
1276 pointer_default(unique)
1278 interface IResolveShellLink : IUnknown
1280 HRESULT ResolveShellLink(
1281 [in] IUnknown *punk,
1282 [in] HWND hwnd,
1283 [in] DWORD fFlags);
1287 /*****************************************************************************
1288 * IURLSearchHook interface
1291 object,
1292 uuid(ac60f6a0-0fd9-11d0-99cb-00c04fd64497),
1293 pointer_default(unique),
1294 local
1296 interface IURLSearchHook : IUnknown
1298 HRESULT Translate(
1299 [in, out] LPWSTR lpwszSearchURL,
1300 [in] DWORD cchBufferSize);
1304 /*****************************************************************************
1305 * ISearchContext interface
1308 object,
1309 uuid(09f656a2-41af-480c-88f7-16cc0d164615),
1310 pointer_default(unique),
1311 local
1313 interface ISearchContext : IUnknown
1315 HRESULT GetSearchUrl(
1316 [in] BSTR *pbstrSearchUrl);
1317 HRESULT GetSearchText(
1318 [in] BSTR *pbstrSearchText);
1319 HRESULT GetSearchStyle(
1320 [in] BSTR *pdwSearchStyle);
1324 /*****************************************************************************
1325 * IURLSearchHook2 interface
1328 object,
1329 uuid(5ee44da4-6d32-46e3-86bc-07540dedd0e0),
1330 pointer_default(unique),
1331 local
1333 interface IURLSearchHook2 : IURLSearchHook
1335 HRESULT TranslateWithSearchContext(
1336 [in, out] LPWSTR lpwszSearchURL,
1337 [in] DWORD cchBufferSize,
1338 [in] ISearchContext *pSearchContext);
1342 cpp_quote("#define INewShortcutHook WINELIB_NAME_AW(INewShortcutHook)")
1344 /*****************************************************************************
1345 * INewShortcutHookA interface
1348 object,
1349 uuid(000214e1-0000-0000-c000-000000000046),
1350 pointer_default(unique),
1351 local
1353 interface INewShortcutHookA : IUnknown
1355 HRESULT SetReferent(
1356 [in] LPCSTR pcszReferent,
1357 [in] HWND hwnd);
1358 HRESULT GetReferent(
1359 [out] LPSTR pcszReferent,
1360 [in] int cchReferent);
1361 HRESULT SetFolder(
1362 [in] LPCSTR pcszReferent);
1363 HRESULT GetFolder(
1364 [out] LPSTR pcszReferent,
1365 [in] int cchFolder);
1366 HRESULT GetName(
1367 [out] LPSTR pszName,
1368 [in] int cchName);
1369 HRESULT GetExtension(
1370 [out] LPSTR pszExtension,
1371 [in] int cchExtension);
1375 /*****************************************************************************
1376 * INewShortcutHookW interface
1379 object,
1380 uuid(000214f7-0000-0000-c000-000000000046),
1381 pointer_default(unique),
1382 local
1384 interface INewShortcutHookW : IUnknown
1386 HRESULT SetReferent(
1387 [in] LPCWSTR pcszReferent,
1388 [in] HWND hwnd);
1389 HRESULT GetReferent(
1390 [out] LPWSTR pcszReferent,
1391 [in] int cchReferent);
1392 HRESULT SetFolder(
1393 [in] LPCWSTR pcszReferent);
1394 HRESULT GetFolder(
1395 [out] LPWSTR pcszReferent,
1396 [in] int cchFolder);
1397 HRESULT GetName(
1398 [out] LPWSTR pszName,
1399 [in] int cchName);
1400 HRESULT GetExtension(
1401 [out] LPWSTR pszExtension,
1402 [in] int cchExtension);
1405 /*****************************************************************************
1406 * IRunnableTask interface
1409 object,
1410 uuid(85788d00-6807-11d0-b810-00c04fd706ec),
1411 pointer_default(unique),
1412 local
1414 interface IRunnableTask : IUnknown
1416 HRESULT Run();
1417 HRESULT Kill([in] BOOL fWait);
1418 HRESULT Suspend();
1419 HRESULT Resume();
1420 ULONG IsRunning();
1423 /*****************************************************************************
1424 * IShellChangeNotify interface
1427 object,
1428 uuid(d82be2b1-5764-11d0-a96e-00c04fd705a2),
1429 pointer_default(unique),
1430 local
1432 interface IShellChangeNotify : IUnknown
1434 HRESULT OnChange(
1435 [in] LONG lEvent,
1436 [in] LPCITEMIDLIST pidl1,
1437 [in] LPCITEMIDLIST pidl2);
1440 /*****************************************************************************
1441 * IFileSystemBindData interface
1444 object,
1445 uuid(01e18d10-4d8b-11d2-855d-006008059367),
1446 pointer_default(unique),
1447 local
1449 interface IFileSystemBindData : IUnknown
1451 HRESULT SetFindData(
1452 [in] const WIN32_FIND_DATAW *pfd);
1453 HRESULT GetFindData(
1454 [out] WIN32_FIND_DATAW *pfd);
1457 /*****************************************************************************
1458 * ITaskbarList interface
1461 object,
1462 uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
1463 pointer_default(unique)
1465 interface ITaskbarList : IUnknown
1467 HRESULT HrInit();
1469 HRESULT AddTab(
1470 [in] HWND hwnd);
1472 HRESULT DeleteTab(
1473 [in] HWND hwnd);
1475 HRESULT ActivateTab(
1476 [in] HWND hwnd);
1478 HRESULT SetActiveAlt(
1479 [in] HWND hwnd);
1482 cpp_quote("EXTERN_C const CLSID CLSID_TaskbarList;")
1484 /*****************************************************************************
1485 * IAutoCompleteDropDown interface
1488 object,
1489 uuid(3CD141F4-3C6A-11d2-BCAA-00C04FD929DB),
1490 pointer_default(unique)
1492 interface IAutoCompleteDropDown : IUnknown
1494 cpp_quote("#define ACDD_VISIBLE 0x0001")
1496 HRESULT GetDropDownStatus(
1497 [out] DWORD *pdwFlags,
1498 [out, string] LPWSTR *ppwszString);
1500 HRESULT ResetEnumerator();