VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/hlink.idl@ 78046

Last change on this file since 78046 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 12.9 KB
Line 
1/*
2 * Copyright 2005 Jacek Caban
3 *
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.
8 *
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.
13 *
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
17 */
18
19/*
20 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28import "urlmon.idl";
29
30interface IHlink;
31interface IHlinkSite;
32interface IHlinkFrame;
33interface IHlinkBrowseContext;
34
35cpp_quote("HRESULT WINAPI HlinkCreateFromMoniker(IMoniker*, LPCWSTR, LPCWSTR, IHlinkSite*, DWORD, IUnknown*, REFIID, void**);")
36cpp_quote("HRESULT WINAPI HlinkCreateFromString(LPCWSTR, LPCWSTR, LPCWSTR, IHlinkSite*, DWORD, IUnknown*, REFIID, void**);")
37cpp_quote("HRESULT WINAPI HlinkCreateFromData(IDataObject*, IHlinkSite*, DWORD dwSiteData, IUnknown*, REFIID, void**);")
38cpp_quote("HRESULT WINAPI HlinkCreateExtensionServices(LPCWSTR, HWND, LPCWSTR, LPCWSTR, IUnknown*, REFIID, void**);")
39cpp_quote("HRESULT WINAPI HlinkQueryCreateFromData(IDataObject*);")
40cpp_quote("HRESULT WINAPI HlinkClone(IHlink*, REFIID, IHlinkSite*, DWORD, void **);")
41cpp_quote("HRESULT WINAPI HlinkCreateBrowseContext(IUnknown*, REFIID, void **);")
42cpp_quote("HRESULT WINAPI HlinkNavigateToStringReference(LPCWSTR, LPCWSTR, IHlinkSite*, DWORD, IHlinkFrame*, DWORD, LPBC, IBindStatusCallback*, IHlinkBrowseContext*);")
43cpp_quote("HRESULT WINAPI HlinkNavigate(IHlink*, IHlinkFrame*, DWORD, LPBC, IBindStatusCallback*, IHlinkBrowseContext*);")
44cpp_quote("HRESULT WINAPI HlinkOnNavigate(IHlinkFrame*, IHlinkBrowseContext*, DWORD, IMoniker*, LPCWSTR, LPCWSTR, ULONG*);")
45cpp_quote("HRESULT WINAPI HlinkIsShortcut(LPCWSTR);")
46cpp_quote("HRESULT WINAPI HlinkTranslateURL(LPCWSTR,DWORD,LPWSTR*);")
47cpp_quote("HRESULT WINAPI HlinkParseDisplayName(LPBC,LPCWSTR,BOOL,ULONG*,IMoniker**);")
48cpp_quote("HRESULT WINAPI HlinkResolveMonikerForData(LPMONIKER,DWORD,LPBC,ULONG,FORMATETC*,IBindStatusCallback*,LPMONIKER);")
49cpp_quote("HRESULT WINAPI HlinkUpdateStackItem(IHlinkFrame*, IHlinkBrowseContext*, ULONG, IMoniker*, LPCWSTR, LPCWSTR);")
50
51typedef enum _HLSR_NOREDEF10 {
52 HLSR_HOME,
53 HLSR_SEARCHPAGE,
54 HLSR_HISTORYFOLDER
55} HLSR;
56
57cpp_quote("HRESULT WINAPI HlinkSetSpecialReference(ULONG uReference, LPCWSTR pwzReference);")
58cpp_quote("HRESULT WINAPI HlinkGetSpecialReference(ULONG uReference, LPWSTR *ppwzReference);")
59
60cpp_quote("#define SID_SHlinkFrame IID_IHlinkFrame")
61
62/*****************************************************************************
63 * IHlink interface
64 */
65[
66 object,
67 uuid(79EAC9C3-BAF9-11CE-8C82-00AA004BA90B),
68 pointer_default(unique)
69]
70interface IHlink: IUnknown
71{
72 typedef [unique] IHlink *LPHLINK;
73
74 typedef enum {
75 HLNF_INTERNALJUMP = 0x00000001,
76 HLNF_OPENINNEWWINDOW = 0x00000002,
77 HLNF_NAVIGATINGBACK = 0x00000004,
78 HLNF_NAVIGATINGFORWARD = 0x00000008,
79 HLNF_NAVIGATINGTOSTACKITEM = 0x00000010,
80 HLNF_CREATENOHISTORY = 0x00000020
81 } HLNF;
82
83 typedef enum {
84 HLINKGETREF_DEFAULT = 0,
85 HLINKGETREF_ABSOLUTE = 1,
86 HLINKGETREF_RELATIVE = 2,
87 } HLINKGETREF;
88
89 typedef enum {
90 HLFNAMEF_DEFAULT = 0x00000000,
91 HLFNAMEF_TRYCACHE = 0x00000001,
92 HLFNAMEF_TRYPRETTYTARGET = 0x00000002,
93 HLFNAMEF_TRYFULLTARGET = 0x00000004,
94 HLFNAMEF_TRYWIN95SHORTCUT = 0x00000008
95 } HLFNAMEF;
96
97 typedef enum {
98 HLINKMISC_RELATIVE = 0x00000001,
99 } HLINKMISC;
100
101 typedef enum {
102 HLINKSETF_TARGET = 0x00000001,
103 HLINKSETF_LOCATION = 0x00000002
104 } HLINKSETF;
105
106 HRESULT SetHlinkSite(
107 [in, unique] IHlinkSite *pihlSite,
108 [in] DWORD dwSiteData);
109
110 HRESULT GetHlinkSite(
111 [out] IHlinkSite **ppihlSite,
112 [out] DWORD *pdwSiteData);
113
114 HRESULT SetMonikerReference(
115 [in] DWORD grfHLSETF,
116 [in, unique] IMoniker *pimkTarget,
117 [in, unique] LPCWSTR pwzLocation);
118
119 HRESULT GetMonikerReference(
120 [in] DWORD dwWhichRef,
121 [out] IMoniker **ppimkTarget,
122 [out] LPWSTR *ppwzLocation);
123
124 HRESULT SetStringReference(
125 [in] DWORD grfHLSETF,
126 [in, unique] LPCWSTR pwzTarget,
127 [in, unique] LPCWSTR pwzLocation);
128
129 HRESULT GetStringReference(
130 [in] DWORD dwWhichRef,
131 [out] LPWSTR *ppwzTarget,
132 [out] LPWSTR *ppwzLocation);
133
134 HRESULT SetFriendlyName(
135 [in, unique] LPCWSTR pwzFriendlyName);
136
137 HRESULT GetFriendlyName(
138 [in] DWORD grfHLFNAMEF,
139 [out] LPWSTR *ppwzFriendlyName);
140
141 HRESULT SetTargetFrameName(
142 [in, unique] LPCWSTR pwzTargetFrameName);
143
144 HRESULT GetTargetFrameName(
145 [out] LPWSTR *ppwzTargetFrameName);
146
147 HRESULT GetMiscStatus(
148 [out] DWORD *pdwStatus);
149
150 HRESULT Navigate(
151 [in] DWORD grfHLNF,
152 [in, unique] LPBC pibc,
153 [in, unique] IBindStatusCallback *pibsc,
154 [in, unique] IHlinkBrowseContext *pihlbc);
155
156 HRESULT SetAdditionalParams(
157 [in, unique] LPCWSTR pwzAdditionalParams);
158
159 HRESULT GetAdditionalParams(
160 [out] LPWSTR *ppwzAdditionalParams);
161}
162
163/*****************************************************************************
164 * IHlinkSite interface
165 */
166[
167 object,
168 uuid(79EAC9C2-BAF9-11CE-8C82-00AA004BA90B),
169 pointer_default(unique)
170]
171interface IHlinkSite: IUnknown
172{
173 typedef [unique] IHlinkSite *LPHLINKSITE;
174
175 typedef enum {
176 HLINKWHICHMK_CONTAINER = 1,
177 HLINKWHICHMK_BASE = 2,
178 } HLINKWHICHMK;
179
180 HRESULT QueryService(
181 [in] DWORD dwSiteData,
182 [in] REFGUID guidService,
183 [in] REFIID riid,
184 [out, iid_is(riid)] IUnknown **ppiunk);
185
186 HRESULT GetMoniker(
187 [in] DWORD dwSiteData,
188 [in] DWORD dwAssign,
189 [in] DWORD dwWhich,
190 [out] IMoniker **ppimk);
191
192 HRESULT ReadyToNavigate(
193 [in] DWORD dwSiteData,
194 [in] DWORD dwReserved);
195
196 HRESULT OnNavigationComplete(
197 [in] DWORD dwSiteData,
198 [in] DWORD dwreserved,
199 [in] HRESULT hrError,
200 [in, unique] LPCWSTR pwzError);
201}
202
203/*****************************************************************************
204 * IEnumHLITEM interface
205 */
206[
207 local,
208 object,
209 uuid(79EAC9C6-BAF9-11CE-8C82-00AA004BA90B),
210 pointer_default(unique)
211]
212interface IEnumHLITEM : IUnknown
213{
214 typedef [unique] IEnumHLITEM *LPENUMHLITEM;
215
216 typedef struct tagHLITEM {
217 ULONG uHLID;
218 LPWSTR pwzFriendlyName;
219 } HLITEM;
220 typedef [unique] HLITEM *LPHLITEM;
221
222 HRESULT Next(
223 [in] ULONG celt,
224 [out] HLITEM *rgelt,
225 [out] ULONG *pceltFetched);
226
227 HRESULT Skip(
228 [in] ULONG celt);
229
230 HRESULT Reset();
231
232 HRESULT Clone(
233 [out] IEnumHLITEM **ppienumhlitem);
234}
235
236/*****************************************************************************
237 * IHlinkBrowseContext interface
238 */
239[
240 local,
241 object,
242 uuid(79EAC9C7-BAF9-11CE-8C82-00AA004BA90B),
243 pointer_default(unique)
244]
245interface IHlinkBrowseContext : IUnknown
246{
247 typedef [unique] IHlinkBrowseContext *LPHLINKBROWSECONTEXT;
248
249 enum {
250 HLTB_DOCKEDLEFT = 0,
251 HLTB_DOCKEDTOP = 1,
252 HLTB_DOCKEDRIGHT = 2,
253 HLTB_DOCKEDBOTTOM = 3,
254 HLTB_FLOATING = 4
255 };
256
257 typedef struct _tagHLTBINFO {
258 ULONG uDockType;
259 RECT rcTbPos;
260 } HLTBINFO;
261
262 enum {
263 HLBWIF_HASFRAMEWNDINFO = 0x00000001,
264 HLBWIF_HASDOCWNDINFO = 0x00000002,
265 HLBWIF_FRAMEWNDMAXIMIZED = 0x00000004,
266 HLBWIF_DOCWNDMAXIMIZED = 0x00000008,
267 HLBWIF_HASWEBTOOLBARINFO = 0x00000010,
268 HLBWIF_WEBTOOLBARHIDDEN = 0x00000020
269 };
270
271 typedef struct _tagHLBWINFO {
272 ULONG cbSize;
273 DWORD grfHLBWIF;
274 RECT rcFramePos;
275 RECT rcDocPos;
276 HLTBINFO hltbinfo;
277 } HLBWINFO;
278
279 typedef [unique] HLBWINFO *LPHLBWINFO;
280
281 enum {
282 HLID_INVALID = 0x00000000,
283 HLID_PREVIOUS = 0xFFFFFFFF,
284 HLID_NEXT = 0xFFFFFFFE,
285 HLID_CURRENT = 0xFFFFFFFD,
286 HLID_STACKBOTTOM = 0xFFFFFFFC,
287 HLID_STACKTOP = 0xFFFFFFFB
288 };
289
290 enum {
291 HLQF_ISVALID = 0x00000001,
292 HLQF_ISCURRENT = 0x00000002
293 };
294
295 HRESULT Register(
296 [in] DWORD reserved,
297 [in, unique] IUnknown *piunk,
298 [in, unique] IMoniker *pimk,
299 [out] DWORD *pdwRegister);
300
301cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
302cpp_quote("#undef GetObject")
303cpp_quote("#endif")
304
305 HRESULT GetObject(
306 [in, unique] IMoniker *pimk,
307 [in] BOOL fBindIfRootRegistered,
308 [out] IUnknown **ppiunk);
309
310 HRESULT Revoke(
311 [in] DWORD dwRegister);
312
313 HRESULT SetBrowseWindowInfo(
314 [in, unique] HLBWINFO *phlbwi);
315
316 HRESULT GetBrowseWindowInfo(
317 [out] HLBWINFO *phlbwi);
318
319 HRESULT SetInitialHlink(
320 [in, unique] IMoniker * pimkTarget,
321 [in, unique] LPCWSTR pwzLocation,
322 [in, unique] LPCWSTR pwzFriendlyName);
323
324 HRESULT OnNavigateHlink(
325 [in] DWORD grfHLNF,
326 [in, unique] IMoniker *pimkTarget,
327 [in, unique] LPCWSTR pwzLocation,
328 [in, unique] LPCWSTR pwzFriendlyName,
329 [out] ULONG *puHLID);
330
331 HRESULT UpdateHlink(
332 [in] ULONG uHLID,
333 [in, unique] IMoniker *pimkTarget,
334 [in, unique] LPCWSTR pwzLocation,
335 [in, unique] LPCWSTR pwzFriendlyName);
336
337 HRESULT EnumNavigationStack(
338 [in] DWORD dwReserved,
339 [in] DWORD grfHLFNAMEF,
340 [out] IEnumHLITEM **ppienumhlitem);
341
342 HRESULT QueryHlink(
343 [in] DWORD grfHLQF,
344 [in] ULONG uHLID);
345
346 HRESULT GetHlink(
347 [in] ULONG uHLID,
348 [out] IHlink **ppihl);
349
350 HRESULT SetCurrentHlink(
351 [in] ULONG uHLID);
352
353 HRESULT Clone(
354 [in, unique] IUnknown *piunkOuter,
355 [in] REFIID riid,
356 [out, iid_is(riid)] IUnknown **ppiunkObj);
357
358 HRESULT Close(
359 [in] DWORD reserved);
360}
361
362
363/*****************************************************************************
364 * IHlinkTarget interface
365 */
366[
367 object,
368 uuid(79EAC9C4-BAF9-11CE-8C82-00AA004BA90B),
369 pointer_default(unique)
370]
371interface IHlinkTarget : IUnknown
372{
373 typedef [unique] IHlinkTarget *LPHLINKTARGET;
374
375 HRESULT SetBrowseContext(
376 [in, unique] IHlinkBrowseContext *pihlbc);
377
378 HRESULT GetBrowseContext(
379 [out] IHlinkBrowseContext **ppihlbc);
380
381 HRESULT Navigate(
382 [in] DWORD grfHLNF,
383 [in, unique] LPCWSTR pwzJumpLocation);
384
385 HRESULT GetMoniker(
386 [in,unique] LPCWSTR pwzLocation,
387 [in] DWORD dwAssign,
388 [out] IMoniker **ppimkLocation);
389
390 HRESULT GetFriendlyName(
391 [in,unique] LPCWSTR pwzLocation,
392 [out] LPWSTR *ppwzFriendlyName);
393}
394
395/*****************************************************************************
396 * IHlinkFrame interface
397 */
398[
399 object,
400 uuid(79eac9c5-baf9-11ce-8c82-00aa004ba90b),
401 pointer_default(unique)
402]
403
404interface IHlinkFrame : IUnknown
405{
406 typedef IHlinkFrame *LPHLINKFRAME;
407
408 HRESULT SetBrowseContext(
409 [in, unique] IHlinkBrowseContext * pihlbc);
410 HRESULT GetBrowseContext(
411 [out] IHlinkBrowseContext ** ppihlbc);
412 HRESULT Navigate(
413 [in] DWORD grfHLNF,
414 [in, unique] LPBC pbc,
415 [in, unique] IBindStatusCallback *pibsc,
416 [in, unique] IHlink *pihlNavigate);
417 HRESULT OnNavigate(
418 [in] DWORD grfHLNF,
419 [in, unique] IMoniker *pimkTarget,
420 [in, unique] LPCWSTR pwzLocation,
421 [in, unique] LPCWSTR pwzFriendlyName,
422 [in] DWORD dwreserved);
423 HRESULT UpdateHlink(
424 [in] ULONG uHLID,
425 [in, unique] IMoniker *pimkTarget,
426 [in, unique] LPCWSTR pwzLocation,
427 [in, unique] LPCWSTR pwzFriendlyName);
428}
429
430/*****************************************************************************
431 * IExtensionServices interface
432 */
433[
434 object,
435 uuid(79eac9cb-baf9-11ce-8c82-00aa004ba90b),
436 pointer_default(unique)
437]
438
439interface IExtensionServices: IUnknown
440{
441 typedef IExtensionServices *LPEXTENSIONSERVICES;
442
443 HRESULT SetAdditionalHeaders(
444 [in] LPCWSTR pwzAdditionalHeaders);
445
446 HRESULT SetAuthenticateData(
447 [in] HWND phwnd,
448 [in] LPCWSTR pwzUsername,
449 [in] LPCWSTR pwzPassword);
450}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette