2 * Copyright 2005 Jacek Caban
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 interface IHlinkFrame;
24 interface IHlinkBrowseContext;
26 cpp_quote("HRESULT WINAPI HlinkCreateFromMoniker(IMoniker*, LPCWSTR, LPCWSTR, IHlinkSite*, DWORD, IUnknown*, REFIID, void**);")
27 cpp_quote("HRESULT WINAPI HlinkCreateFromString(LPCWSTR, LPCWSTR, LPCWSTR, IHlinkSite*, DWORD, IUnknown*, REFIID, void**);")
28 cpp_quote("HRESULT WINAPI HlinkCreateFromData(IDataObject*, IHlinkSite*, DWORD dwSiteData, IUnknown*, REFIID, void**);")
29 cpp_quote("HRESULT WINAPI HlinkCreateExtensionServices(LPCWSTR, HWND, LPCWSTR, LPCWSTR, IUnknown*, REFIID, void**);")
30 cpp_quote("HRESULT WINAPI HlinkQueryCreateFromData(IDataObject*);")
31 cpp_quote("HRESULT WINAPI HlinkClone(IHlink*, REFIID, IHlinkSite*, DWORD, void **);")
32 cpp_quote("HRESULT WINAPI HlinkCreateBrowseContext(IUnknown*, REFIID, void **);")
33 cpp_quote("HRESULT WINAPI HlinkNavigateToStringReference(LPCWSTR, LPCWSTR, IHlinkSite*, DWORD, IHlinkFrame*, DWORD, LPBC, IBindStatusCallback*, IHlinkBrowseContext*);")
34 cpp_quote("HRESULT WINAPI HlinkNavigate(IHlink*, IHlinkFrame*, DWORD, LPBC, IBindStatusCallback*, IHlinkBrowseContext*);")
35 cpp_quote("HRESULT WINAPI HlinkOnNavigate(IHlinkFrame*, IHlinkBrowseContext*, DWORD, IMoniker*, LPCWSTR, LPCWSTR, ULONG*);")
36 cpp_quote("HRESULT WINAPI HlinkIsShortcut(LPCWSTR);")
37 cpp_quote("HRESULT WINAPI HlinkTranslateURL(LPCWSTR,DWORD,LPWSTR*);")
39 /*****************************************************************************
44 uuid(79EAC9C3-BAF9-11CE-8C82-00AA004BA90B),
45 pointer_default(unique)
47 interface IHlink: IUnknown
49 typedef [unique] IHlink *LPHLINK;
52 HLNF_INTERNALJUMP = 0x00000001,
53 HLNF_OPENINNEWWINDOW = 0x00000002,
54 HLNF_NAVIGATINGBACK = 0x00000004,
55 HLNF_NAVIGATINGFORWARD = 0x00000008,
56 HLNF_NAVIGATINGTOSTACKITEM = 0x00000010,
57 HLNF_CREATENOHISTORY = 0x00000020
61 HLINKGETREF_DEFAULT = 0,
62 HLINKGETREF_ABSOLUTE = 1,
63 HLINKGETREF_RELATIVE = 2,
67 HLFNAMEF_DEFAULT = 0x00000000,
68 HLFNAMEF_TRYCACHE = 0x00000001,
69 HLFNAMEF_TRYPRETTYTARGET = 0x00000002,
70 HLFNAMEF_TRYFULLTARGET = 0x00000004,
71 HLFNAMEF_TRYWIN95SHORTCUT = 0x00000008
75 HLINKMISC_RELATIVE = 0x00000001,
79 HLINKSETF_TARGET = 0x00000001,
80 HLINKSETF_LOCATION = 0x00000002
84 [in, unique] IHlinkSite *pihlSite,
85 [in] DWORD dwSiteData);
88 [out] IHlinkSite **ppihlSite,
89 [out] DWORD *pdwSiteData);
91 HRESULT SetMonikerReference(
93 [in, unique] IMoniker *pimkTarget,
94 [in, unique] LPCWSTR pwzLocation);
96 HRESULT GetMonikerReference(
97 [in] DWORD dwWhichRef,
98 [out] IMoniker **ppimkTarget,
99 [out] LPWSTR *ppwzLocation);
101 HRESULT SetStringReference(
102 [in] DWORD grfHLSETF,
103 [in, unique] LPCWSTR pwzTarget,
104 [in, unique] LPCWSTR pwzLocation);
106 HRESULT GetStringReference(
107 [in] DWORD dwWhichRef,
108 [out] LPWSTR *ppwzTarget,
109 [out] LPWSTR *ppwzLocation);
111 HRESULT SetFriendlyName(
112 [in, unique] LPCWSTR pwzFriendlyName);
114 HRESULT GetFriendlyName(
115 [in] DWORD grfHLFNAMEF,
116 [out] LPWSTR *ppwzFriendlyName);
118 HRESULT SetTargetFrameName(
119 [in, unique] LPCWSTR pwzTargetFrameName);
121 HRESULT GetTargetFrameName(
122 [out] LPWSTR *ppwzTargetFrameName);
124 HRESULT GetMiscStatus(
125 [out] DWORD *pdwStatus);
129 [in, unique] LPBC pibc,
130 [in, unique] IBindStatusCallback *pibsc,
131 [in, unique] IHlinkBrowseContext *pihlbc);
133 HRESULT SetAdditionalParams(
134 [in, unique] LPCWSTR pwzAdditionalParams);
136 HRESULT GetAdditionalParams(
137 [out] LPWSTR *ppwzAdditionalParams);
140 /*****************************************************************************
145 uuid(79EAC9C2-BAF9-11CE-8C82-00AA004BA90B),
146 pointer_default(unique)
148 interface IHlinkSite: IUnknown
150 typedef [unique] IHlinkSite *LPHLINKSITE;
153 HLINKWHICHMK_CONTAINER = 1,
154 HLINKWHICHMK_BASE = 2,
157 HRESULT QueryService(
158 [in] DWORD dwSiteData,
159 [in] REFGUID guidService,
161 [out, iid_is(riid)] IUnknown **ppiunk);
164 [in] DWORD dwSiteData,
167 [out] IMoniker **ppimk);
169 HRESULT ReadyToNavigate(
170 [in] DWORD dwSiteData,
171 [in] DWORD dwReserved);
173 HRESULT OnNavigationComplete(
174 [in] DWORD dwSiteData,
175 [in] DWORD dwreserved,
176 [in] HRESULT hrError,
177 [in, unique] LPCWSTR pwzError);
180 /*****************************************************************************
181 * IEnumHLITEM interface
186 uuid(79EAC9C6-BAF9-11CE-8C82-00AA004BA90B),
187 pointer_default(unique)
189 interface IEnumHLITEM : IUnknown
191 typedef [unique] IEnumHLITEM *LPENUMHLITEM;
193 typedef struct tagHLITEM {
195 LPWSTR pwzFriendlyName;
197 typedef [unique] HLITEM *LPHLITEM;
202 [out] ULONG *pceltFetched);
210 [out] IEnumHLITEM **ppienumhlitem);
213 /*****************************************************************************
214 * IHlinkBrowseContext interface
219 uuid(79EAC9C7-BAF9-11CE-8C82-00AA004BA90B),
220 pointer_default(unique)
222 interface IHlinkBrowseContext : IUnknown
224 typedef [unique] IHlinkBrowseContext *LPHLINKBROWSECONTEXT;
229 HLTB_DOCKEDRIGHT = 2,
230 HLTB_DOCKEDBOTTOM = 3,
234 typedef struct _tagHLTBINFO {
240 HLBWIF_HASFRAMEWNDINFO = 0x00000001,
241 HLBWIF_HASDOCWNDINFO = 0x00000002,
242 HLBWIF_FRAMEWNDMAXIMIZED = 0x00000004,
243 HLBWIF_DOCWNDMAXIMIZED = 0x00000008,
244 HLBWIF_HASWEBTOOLBARINFO = 0x00000010,
245 HLBWIF_WEBTOOLBARHIDDEN = 0x00000020
248 typedef struct _tagHLBWINFO {
256 typedef [unique] HLBWINFO *LPHLBWINFO;
259 HLID_INVALID = 0x00000000,
260 HLID_PREVIOUS = 0xFFFFFFFF,
261 HLID_NEXT = 0xFFFFFFFE,
262 HLID_CURRENT = 0xFFFFFFFD,
263 HLID_STACKBOTTOM = 0xFFFFFFFC,
264 HLID_STACKTOP = 0xFFFFFFFB
268 HLQF_ISVALID = 0x00000001,
269 HLQF_ISCURRENT = 0x00000002
274 [in, unique] IUnknown *piunk,
275 [in, unique] IMoniker *pimk,
276 [out] DWORD *pdwRegister);
279 [in, unique] IMoniker *pimk,
280 [in] BOOL fBindIfRootRegistered,
281 [out] IUnknown **ppiunk);
284 [in] DWORD dwRegister);
286 HRESULT SetBrowseWindowInfo(
287 [in, unique] HLBWINFO *phlbwi);
289 HRESULT GetBrowseWindowInfo(
290 [out] HLBWINFO *phlbwi);
292 HRESULT SetInitialHlink(
293 [in, unique] IMoniker * pimkTarget,
294 [in, unique] LPCWSTR pwzLocation,
295 [in, unique] LPCWSTR pwzFriendlyName);
297 HRESULT OnNavigateHlink(
299 [in, unique] IMoniker *pimkTarget,
300 [in, unique] LPCWSTR pwzLocation,
301 [in, unique] LPCWSTR pwzFriendlyName,
302 [out] ULONG *puHLID);
306 [in, unique] IMoniker *pimkTarget,
307 [in, unique] LPCWSTR pwzLocation,
308 [in, unique] LPCWSTR pwzFriendlyName);
310 HRESULT EnumNavigationStack(
311 [in] DWORD dwReserved,
312 [in] DWORD grfHLFNAMEF,
313 [out] IEnumHLITEM **ppienumhlitem);
321 [out] IHlink **ppihl);
323 HRESULT SetCurrentHlink(
327 [in, unique] IUnknown *piunkOuter,
329 [out, iid_is(riid)] IUnknown **ppiunkObj);
332 [in] DWORD reserved);
336 /*****************************************************************************
337 * IHlinkTarget interface
341 uuid(79EAC9C4-BAF9-11CE-8C82-00AA004BA90B),
342 pointer_default(unique)
344 interface IHlinkTarget : IUnknown
346 typedef [unique] IHlinkTarget *LPHLINKTARGET;
348 HRESULT SetBrowseContext(
349 [in, unique] IHlinkBrowseContext *pihlbc);
351 HRESULT GetBrowseContext(
352 [out] IHlinkBrowseContext **ppihlbc);
356 [in, unique] LPCWSTR pwzJumpLocation);
359 [in,unique] LPCWSTR pwzLocation,
361 [out] IMoniker **ppimkLocation);
363 HRESULT GetFriendlyName(
364 [in,unique] LPCWSTR pwzLocation,
365 [out] LPWSTR *ppwzFriendlyName);
368 /*****************************************************************************
369 * IHlinkFrame interface
373 uuid(79eac9c5-baf9-11ce-8c82-00aa004ba90b),
374 pointer_default(unique)
377 interface IHlinkFrame : IUnknown
379 typedef IHlinkFrame *LPHLINKFRAME;
381 HRESULT SetBrowseContext(
382 [in, unique] IHlinkBrowseContext * pihlbc);
383 HRESULT GetBrowseContext(
384 [out] IHlinkBrowseContext ** ppihlbc);
387 [in, unique] LPBC pbc,
388 [in, unique] IBindStatusCallback *pibsc,
389 [in, unique] IHlink *pihlNavigate);
392 [in, unique] IMoniker *pimkTarget,
393 [in, unique] LPCWSTR pwzLocation,
394 [in, unique] LPCWSTR pwzFriendlyName,
395 [in] DWORD dwreserved);
398 [in, unique] IMoniker *pimkTarget,
399 [in, unique] LPCWSTR pwzLocation,
400 [in, unique] LPCWSTR pwzFriendlyName);