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*);")
38 cpp_quote
("HRESULT WINAPI HlinkParseDisplayName(LPBC,LPCWSTR,BOOL,ULONG*,IMoniker**);");
39 cpp_quote
("HRESULT WINAPI HlinkResolveMonikerForData(LPMONIKER,DWORD,LPBC,ULONG,FORMATETC*,IBindStatusCallback*,LPMONIKER);")
41 typedef enum _HLSR_NOREDEF10
{
47 cpp_quote
("HRESULT WINAPI HlinkSetSpecialReference(ULONG uReference, LPCWSTR pwzReference);")
48 cpp_quote
("HRESULT WINAPI HlinkGetSpecialReference(ULONG uReference, LPWSTR *ppwzReference);")
50 cpp_quote
("#define SID_SHlinkFrame IID_IHlinkFrame")
52 /*****************************************************************************
57 uuid(79EAC9C3
-BAF9
-11CE
-8C82
-00AA004BA90B
),
58 pointer_default(unique)
60 interface IHlink
: IUnknown
62 typedef [unique] IHlink
*LPHLINK
;
65 HLNF_INTERNALJUMP
= 0x00000001,
66 HLNF_OPENINNEWWINDOW
= 0x00000002,
67 HLNF_NAVIGATINGBACK
= 0x00000004,
68 HLNF_NAVIGATINGFORWARD
= 0x00000008,
69 HLNF_NAVIGATINGTOSTACKITEM
= 0x00000010,
70 HLNF_CREATENOHISTORY
= 0x00000020
74 HLINKGETREF_DEFAULT
= 0,
75 HLINKGETREF_ABSOLUTE
= 1,
76 HLINKGETREF_RELATIVE
= 2,
80 HLFNAMEF_DEFAULT
= 0x00000000,
81 HLFNAMEF_TRYCACHE
= 0x00000001,
82 HLFNAMEF_TRYPRETTYTARGET
= 0x00000002,
83 HLFNAMEF_TRYFULLTARGET
= 0x00000004,
84 HLFNAMEF_TRYWIN95SHORTCUT
= 0x00000008
88 HLINKMISC_RELATIVE
= 0x00000001,
92 HLINKSETF_TARGET
= 0x00000001,
93 HLINKSETF_LOCATION
= 0x00000002
97 [in, unique] IHlinkSite
*pihlSite
,
98 [in] DWORD dwSiteData
);
100 HRESULT GetHlinkSite
(
101 [out] IHlinkSite
**ppihlSite
,
102 [out] DWORD
*pdwSiteData
);
104 HRESULT SetMonikerReference
(
105 [in] DWORD grfHLSETF
,
106 [in, unique] IMoniker
*pimkTarget
,
107 [in, unique] LPCWSTR pwzLocation
);
109 HRESULT GetMonikerReference
(
110 [in] DWORD dwWhichRef
,
111 [out] IMoniker
**ppimkTarget
,
112 [out] LPWSTR
*ppwzLocation
);
114 HRESULT SetStringReference
(
115 [in] DWORD grfHLSETF
,
116 [in, unique] LPCWSTR pwzTarget
,
117 [in, unique] LPCWSTR pwzLocation
);
119 HRESULT GetStringReference
(
120 [in] DWORD dwWhichRef
,
121 [out] LPWSTR
*ppwzTarget
,
122 [out] LPWSTR
*ppwzLocation
);
124 HRESULT SetFriendlyName
(
125 [in, unique] LPCWSTR pwzFriendlyName
);
127 HRESULT GetFriendlyName
(
128 [in] DWORD grfHLFNAMEF
,
129 [out] LPWSTR
*ppwzFriendlyName
);
131 HRESULT SetTargetFrameName
(
132 [in, unique] LPCWSTR pwzTargetFrameName
);
134 HRESULT GetTargetFrameName
(
135 [out] LPWSTR
*ppwzTargetFrameName
);
137 HRESULT GetMiscStatus
(
138 [out] DWORD
*pdwStatus
);
142 [in, unique] LPBC pibc
,
143 [in, unique] IBindStatusCallback
*pibsc
,
144 [in, unique] IHlinkBrowseContext
*pihlbc
);
146 HRESULT SetAdditionalParams
(
147 [in, unique] LPCWSTR pwzAdditionalParams
);
149 HRESULT GetAdditionalParams
(
150 [out] LPWSTR
*ppwzAdditionalParams
);
153 /*****************************************************************************
158 uuid(79EAC9C2
-BAF9
-11CE
-8C82
-00AA004BA90B
),
159 pointer_default(unique)
161 interface IHlinkSite
: IUnknown
163 typedef [unique] IHlinkSite
*LPHLINKSITE
;
166 HLINKWHICHMK_CONTAINER
= 1,
167 HLINKWHICHMK_BASE
= 2,
170 HRESULT QueryService
(
171 [in] DWORD dwSiteData
,
172 [in] REFGUID guidService
,
174 [out, iid_is(riid
)] IUnknown
**ppiunk
);
177 [in] DWORD dwSiteData
,
180 [out] IMoniker
**ppimk
);
182 HRESULT ReadyToNavigate
(
183 [in] DWORD dwSiteData
,
184 [in] DWORD dwReserved
);
186 HRESULT OnNavigationComplete
(
187 [in] DWORD dwSiteData
,
188 [in] DWORD dwreserved
,
189 [in] HRESULT hrError
,
190 [in, unique] LPCWSTR pwzError
);
193 /*****************************************************************************
194 * IEnumHLITEM interface
199 uuid(79EAC9C6
-BAF9
-11CE
-8C82
-00AA004BA90B
),
200 pointer_default(unique)
202 interface IEnumHLITEM
: IUnknown
204 typedef [unique] IEnumHLITEM
*LPENUMHLITEM
;
206 typedef struct tagHLITEM
{
208 LPWSTR pwzFriendlyName
;
210 typedef [unique] HLITEM
*LPHLITEM
;
215 [out] ULONG
*pceltFetched
);
223 [out] IEnumHLITEM
**ppienumhlitem
);
226 /*****************************************************************************
227 * IHlinkBrowseContext interface
232 uuid(79EAC9C7
-BAF9
-11CE
-8C82
-00AA004BA90B
),
233 pointer_default(unique)
235 interface IHlinkBrowseContext
: IUnknown
237 typedef [unique] IHlinkBrowseContext
*LPHLINKBROWSECONTEXT
;
242 HLTB_DOCKEDRIGHT
= 2,
243 HLTB_DOCKEDBOTTOM
= 3,
247 typedef struct _tagHLTBINFO
{
253 HLBWIF_HASFRAMEWNDINFO
= 0x00000001,
254 HLBWIF_HASDOCWNDINFO
= 0x00000002,
255 HLBWIF_FRAMEWNDMAXIMIZED
= 0x00000004,
256 HLBWIF_DOCWNDMAXIMIZED
= 0x00000008,
257 HLBWIF_HASWEBTOOLBARINFO
= 0x00000010,
258 HLBWIF_WEBTOOLBARHIDDEN
= 0x00000020
261 typedef struct _tagHLBWINFO
{
269 typedef [unique] HLBWINFO
*LPHLBWINFO
;
272 HLID_INVALID
= 0x00000000,
273 HLID_PREVIOUS
= 0xFFFFFFFF,
274 HLID_NEXT
= 0xFFFFFFFE,
275 HLID_CURRENT
= 0xFFFFFFFD,
276 HLID_STACKBOTTOM
= 0xFFFFFFFC,
277 HLID_STACKTOP
= 0xFFFFFFFB
281 HLQF_ISVALID
= 0x00000001,
282 HLQF_ISCURRENT
= 0x00000002
287 [in, unique] IUnknown
*piunk
,
288 [in, unique] IMoniker
*pimk
,
289 [out] DWORD
*pdwRegister
);
291 cpp_quote
("#ifdef WINE_NO_UNICODE_MACROS")
292 cpp_quote
("#undef GetObject")
296 [in, unique] IMoniker
*pimk
,
297 [in] BOOL fBindIfRootRegistered
,
298 [out] IUnknown
**ppiunk
);
301 [in] DWORD dwRegister
);
303 HRESULT SetBrowseWindowInfo
(
304 [in, unique] HLBWINFO
*phlbwi
);
306 HRESULT GetBrowseWindowInfo
(
307 [out] HLBWINFO
*phlbwi
);
309 HRESULT SetInitialHlink
(
310 [in, unique] IMoniker
* pimkTarget
,
311 [in, unique] LPCWSTR pwzLocation
,
312 [in, unique] LPCWSTR pwzFriendlyName
);
314 HRESULT OnNavigateHlink
(
316 [in, unique] IMoniker
*pimkTarget
,
317 [in, unique] LPCWSTR pwzLocation
,
318 [in, unique] LPCWSTR pwzFriendlyName
,
319 [out] ULONG
*puHLID
);
323 [in, unique] IMoniker
*pimkTarget
,
324 [in, unique] LPCWSTR pwzLocation
,
325 [in, unique] LPCWSTR pwzFriendlyName
);
327 HRESULT EnumNavigationStack
(
328 [in] DWORD dwReserved
,
329 [in] DWORD grfHLFNAMEF
,
330 [out] IEnumHLITEM
**ppienumhlitem
);
338 [out] IHlink
**ppihl
);
340 HRESULT SetCurrentHlink
(
344 [in, unique] IUnknown
*piunkOuter
,
346 [out, iid_is(riid
)] IUnknown
**ppiunkObj
);
349 [in] DWORD reserved
);
353 /*****************************************************************************
354 * IHlinkTarget interface
358 uuid(79EAC9C4
-BAF9
-11CE
-8C82
-00AA004BA90B
),
359 pointer_default(unique)
361 interface IHlinkTarget
: IUnknown
363 typedef [unique] IHlinkTarget
*LPHLINKTARGET
;
365 HRESULT SetBrowseContext
(
366 [in, unique] IHlinkBrowseContext
*pihlbc
);
368 HRESULT GetBrowseContext
(
369 [out] IHlinkBrowseContext
**ppihlbc
);
373 [in, unique] LPCWSTR pwzJumpLocation
);
376 [in,unique] LPCWSTR pwzLocation
,
378 [out] IMoniker
**ppimkLocation
);
380 HRESULT GetFriendlyName
(
381 [in,unique] LPCWSTR pwzLocation
,
382 [out] LPWSTR
*ppwzFriendlyName
);
385 /*****************************************************************************
386 * IHlinkFrame interface
390 uuid(79eac9c5
-baf9
-11ce
-8c82
-00aa004ba90b
),
391 pointer_default(unique)
394 interface IHlinkFrame
: IUnknown
396 typedef IHlinkFrame
*LPHLINKFRAME
;
398 HRESULT SetBrowseContext
(
399 [in, unique] IHlinkBrowseContext
* pihlbc
);
400 HRESULT GetBrowseContext
(
401 [out] IHlinkBrowseContext
** ppihlbc
);
404 [in, unique] LPBC pbc
,
405 [in, unique] IBindStatusCallback
*pibsc
,
406 [in, unique] IHlink
*pihlNavigate
);
409 [in, unique] IMoniker
*pimkTarget
,
410 [in, unique] LPCWSTR pwzLocation
,
411 [in, unique] LPCWSTR pwzFriendlyName
,
412 [in] DWORD dwreserved
);
415 [in, unique] IMoniker
*pimkTarget
,
416 [in, unique] LPCWSTR pwzLocation
,
417 [in, unique] LPCWSTR pwzFriendlyName
);