VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/urlmon.idl@ 41283

Last change on this file since 41283 was 33656, checked in by vboxsync, 14 years ago

*: rebrand Sun (L)GPL disclaimers

  • Property svn:eol-style set to native
File size: 62.2 KB
Line 
1/*
2 * Copyright (C) 2000 Ulrich Czekalla
3 * Copyright (C) 2003 Alexandre Julliard
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20/*
21 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
22 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
23 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
24 * a choice of LGPL license versions is made available with the language indicating
25 * that LGPLv2 or any later version may be used, or where a choice of which version
26 * of the LGPL is applied is otherwise unspecified.
27 */
28
29import "objidl.idl";
30import "oleidl.idl";
31import "servprov.idl";
32import "msxml.idl";
33
34cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
35cpp_quote("#undef GetUserName")
36cpp_quote("#undef SetPort")
37cpp_quote("#endif")
38
39interface IInternetProtocolSink;
40
41/*****************************************************************************
42 * IInternet interface
43 */
44[
45 object,
46 uuid(79eac9e0-baf9-11ce-8c82-00aa004ba90b),
47 pointer_default(unique),
48 local
49]
50interface IInternet : IUnknown
51{
52 typedef [unique] IInternet *LPIINTERNET;
53}
54
55/*****************************************************************************
56 * IBinding interface
57 */
58[
59 object,
60 uuid(79eac9c0-baf9-11ce-8c82-00aa004ba90b),
61 pointer_default(unique)
62]
63interface IBinding : IUnknown
64{
65 typedef [unique] IBinding *LPBINDING;
66
67 HRESULT Abort();
68 HRESULT Suspend();
69 HRESULT Resume();
70
71 HRESULT SetPriority(
72 [in] LONG nPriority);
73
74 HRESULT GetPriority(
75 [out] LONG * pnPriority);
76
77 [local]
78 HRESULT GetBindResult(
79 [out] CLSID *pclsidProtocol,
80 [out] DWORD *pdwResult,
81 [out] LPOLESTR *pszResult,
82 [in, out] DWORD *pdwReserved);
83
84 [call_as(GetBindResult)]
85 HRESULT RemoteGetBindResult(
86 [out] CLSID *pclsidProtocol,
87 [out] DWORD *pdwResult,
88 [out] LPOLESTR *pszResult,
89 [in] DWORD dwReserved);
90}
91
92
93/*****************************************************************************
94 * IBindStatusCallback interface
95 */
96[
97 object,
98 uuid(79eac9c1-baf9-11ce-8c82-00aa004ba90b),
99 pointer_default(unique)
100]
101interface IBindStatusCallback : IUnknown
102{
103 typedef [unique] IBindStatusCallback *LPBINDSTATUSCALLBACK;
104
105 typedef enum
106 {
107 BINDVERB_GET = 0x00000000,
108 BINDVERB_POST = 0x00000001,
109 BINDVERB_PUT = 0x00000002,
110 BINDVERB_CUSTOM = 0x00000003
111 } BINDVERB;
112
113 typedef enum
114 {
115 BINDINFOF_URLENCODESTGMEDDATA = 0x00000001,
116 BINDINFOF_URLENCODEDEXTRAINFO = 0x00000002
117 } BINDINFOF;
118
119 typedef enum
120 {
121 BINDF_ASYNCHRONOUS = 0x00000001,
122 BINDF_ASYNCSTORAGE = 0x00000002,
123 BINDF_NOPROGRESSIVERENDERING = 0x00000004,
124 BINDF_OFFLINEOPERATION = 0x00000008,
125 BINDF_GETNEWESTVERSION = 0x00000010,
126 BINDF_NOWRITECACHE = 0x00000020,
127 BINDF_NEEDFILE = 0x00000040,
128 BINDF_PULLDATA = 0x00000080,
129 BINDF_IGNORESECURITYPROBLEM = 0x00000100,
130 BINDF_RESYNCHRONIZE = 0x00000200,
131 BINDF_HYPERLINK = 0x00000400,
132 BINDF_NO_UI = 0x00000800,
133 BINDF_SILENTOPERATION = 0x00001000,
134 BINDF_PRAGMA_NO_CACHE = 0x00002000,
135 BINDF_GETCLASSOBJECT = 0x00004000,
136 BINDF_RESERVED_1 = 0x00008000,
137 BINDF_FREE_THREADED = 0x00010000,
138 BINDF_DIRECT_READ = 0x00020000,
139 BINDF_FORMS_SUBMIT = 0x00040000,
140 BINDF_GETFROMCACHE_IF_NET_FAIL = 0x00080000,
141 BINDF_FROMURLMON = 0x00100000,
142 BINDF_FWD_BACK = 0x00200000,
143 BINDF_PREFERDEFAULTHANDLER = 0x00400000,
144 BINDF_ENFORCERESTRICTED = 0x00800000
145 } BINDF;
146
147 typedef enum
148 {
149 URL_ENCODING_NONE = 0x00000000,
150 URL_ENCODING_ENABLE_UTF8 = 0x10000000,
151 URL_ENCODING_DISABLE_UTF8 = 0x20000000
152 } URL_ENCODING;
153
154 typedef struct _tagBINDINFO
155 {
156 ULONG cbSize;
157 LPWSTR szExtraInfo;
158 STGMEDIUM stgmedData;
159 DWORD grfBindInfoF;
160 DWORD dwBindVerb;
161 LPWSTR szCustomVerb;
162 DWORD cbstgmedData;
163 DWORD dwOptions;
164 DWORD dwOptionsFlags;
165 DWORD dwCodePage;
166 SECURITY_ATTRIBUTES securityAttributes;
167 IID iid;
168 IUnknown *pUnk;
169 DWORD dwReserved;
170 } BINDINFO;
171
172 typedef struct _REMSECURITY_ATTRIBUTES
173 {
174 DWORD nLength;
175 DWORD lpSecurityDescriptor;
176 BOOL bInheritHandle;
177 } REMSECURITY_ATTRIBUTES, *PREMSECURITY_ATTRIBUTES, *LPREMSECURITY_ATTRIBUTES;
178
179 typedef struct _tagRemBINDINFO
180 {
181 ULONG cbSize;
182 LPWSTR szExtraInfo;
183 DWORD grfBindInfoF;
184 DWORD dwBindVerb;
185 LPWSTR szCustomVerb;
186 DWORD cbstgmedData;
187 DWORD dwOptions;
188 DWORD dwOptionsFlags;
189 DWORD dwCodePage;
190 REMSECURITY_ATTRIBUTES securityAttributes;
191 IID iid;
192 IUnknown *pUnk;
193 DWORD dwReserved;
194 } RemBINDINFO;
195
196 typedef struct tagRemFORMATETC
197 {
198 DWORD cfFormat;
199 DWORD ptd;
200 DWORD dwAspect;
201 LONG lindex;
202 DWORD tymed;
203 } RemFORMATETC, *LPREMFORMATETC;
204
205 typedef enum
206 {
207 BSCF_FIRSTDATANOTIFICATION = 0x01,
208 BSCF_INTERMEDIATEDATANOTIFICATION = 0x02,
209 BSCF_LASTDATANOTIFICATION = 0x04,
210 BSCF_DATAFULLYAVAILABLE = 0x08,
211 BSCF_AVAILABLEDATASIZEUNKNOWN = 0x10,
212 BSCF_SKIPDRAINDATAFORFILEURLS = 0x20,
213 BSCF_64BITLENGTHDOWNLOAD = 0x40
214 } BSCF;
215
216 typedef enum BINDSTATUS
217 {
218 BINDSTATUS_FINDINGRESOURCE = 1,
219 BINDSTATUS_CONNECTING,
220 BINDSTATUS_REDIRECTING,
221 BINDSTATUS_BEGINDOWNLOADDATA,
222 BINDSTATUS_DOWNLOADINGDATA,
223 BINDSTATUS_ENDDOWNLOADDATA,
224 BINDSTATUS_BEGINDOWNLOADCOMPONENTS,
225 BINDSTATUS_INSTALLINGCOMPONENTS,
226 BINDSTATUS_ENDDOWNLOADCOMPONENTS,
227 BINDSTATUS_USINGCACHEDCOPY,
228 BINDSTATUS_SENDINGREQUEST,
229 BINDSTATUS_CLASSIDAVAILABLE,
230 BINDSTATUS_MIMETYPEAVAILABLE,
231 BINDSTATUS_CACHEFILENAMEAVAILABLE,
232 BINDSTATUS_BEGINSYNCOPERATION,
233 BINDSTATUS_ENDSYNCOPERATION,
234 BINDSTATUS_BEGINUPLOADDATA,
235 BINDSTATUS_UPLOADINGDATA,
236 BINDSTATUS_ENDUPLOADINGDATA,
237 BINDSTATUS_PROTOCOLCLASSID,
238 BINDSTATUS_ENCODING,
239 BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE,
240 BINDSTATUS_CLASSINSTALLLOCATION,
241 BINDSTATUS_DECODING,
242 BINDSTATUS_LOADINGMIMEHANDLER,
243 BINDSTATUS_CONTENTDISPOSITIONATTACH,
244 BINDSTATUS_FILTERREPORTMIMETYPE,
245 BINDSTATUS_CLSIDCANINSTANTIATE,
246 BINDSTATUS_IUNKNOWNAVAILABLE,
247 BINDSTATUS_DIRECTBIND,
248 BINDSTATUS_RAWMIMETYPE,
249 BINDSTATUS_PROXYDETECTING,
250 BINDSTATUS_ACCEPTRANGES,
251 BINDSTATUS_COOKIE_SENT,
252 BINDSTATUS_COMPACT_POLICY_RECEIVED,
253 BINDSTATUS_COOKIE_SUPPRESSED,
254 BINDSTATUS_COOKIE_STATE_UNKNOWN,
255 BINDSTATUS_COOKIE_STATE_ACCEPT,
256 BINDSTATUS_COOKIE_STATE_REJECT,
257 BINDSTATUS_COOKIE_STATE_PROMPT,
258 BINDSTATUS_COOKIE_STATE_LEASH,
259 BINDSTATUS_COOKIE_STATE_DOWNGRADE,
260 BINDSTATUS_POLICY_HREF,
261 BINDSTATUS_P3P_HEADER,
262 BINDSTATUS_SESSION_COOKIE_RECEIVED,
263 BINDSTATUS_PERSISTENT_COOKIE_RECEIVED,
264 BINDSTATUS_SESSION_COOKIES_ALLOWED,
265 BINDSTATUS_CACHECONTROL,
266 BINDSTATUS_CONTENTDISPOSITIONFILENAME,
267 BINDSTATUS_MIMETEXTPLAINMISMATCH,
268 BINDSTATUS_PUBLISHERAVAILABLE,
269 BINDSTATUS_DISPLAYNAMEAVAILABLE
270 } BINDSTATUS;
271
272
273 HRESULT OnStartBinding(
274 [in] DWORD dwReserved,
275 [in] IBinding * pib);
276
277 HRESULT GetPriority(
278 [out] LONG * pnPriority);
279
280 HRESULT OnLowResource(
281 [in] DWORD reserved);
282
283 HRESULT OnProgress(
284 [in] ULONG ulProgress,
285 [in] ULONG ulProgressMax,
286 [in] ULONG ulStatusCode,
287 [in] LPCWSTR szStatusText);
288
289 HRESULT OnStopBinding(
290 [in] HRESULT hresult,
291 [in, unique] LPCWSTR szError);
292
293 [local]
294 HRESULT GetBindInfo(
295 [out] DWORD *grfBINDF,
296 [in, out, unique] BINDINFO * pbindinfo);
297
298 [call_as(GetBindInfo)]
299 HRESULT RemoteGetBindInfo(
300 [out] DWORD *grfBINDF,
301 [in, out, unique] RemBINDINFO * pbindinfo,
302 [in, out, unique] RemSTGMEDIUM* pstgmed);
303
304 [local]
305 HRESULT OnDataAvailable(
306 [in] DWORD grfBSCF,
307 [in] DWORD dwSize,
308 [in] FORMATETC* pformatetc,
309 [in] STGMEDIUM* pstgmed);
310
311 [call_as(OnDataAvailable)]
312 HRESULT RemoteOnDataAvailable(
313 [in] DWORD grfBSCF,
314 [in] DWORD dwSize,
315 [in] RemFORMATETC *pformatetc,
316 [in] RemSTGMEDIUM* pstgmed);
317
318 HRESULT OnObjectAvailable(
319 [in] REFIID riid,
320 [in, iid_is(riid)] IUnknown* punk);
321}
322
323/*****************************************************************************
324 * IBindStatusCallbackEx interface
325 */
326[
327 object,
328 uuid(aaa74ef9-8ee7-4659-88d9-f8c504da73cc),
329 pointer_default(unique)
330]
331interface IBindStatusCallbackEx : IBindStatusCallback
332{
333 typedef [unique] IBindStatusCallbackEx *LPBINDSTATUSCALLBACKEX;
334
335 typedef enum {
336 BINDF2_DISABLEBASICOVERHTTP = 0x00000001,
337 BINDF2_DISABLEAUTOCOOKIEHANDLING = 0x00000002,
338 BINDF2_READ_DATA_GREATER_THAN_4GB = 0x00000004,
339 BINDF2_DISABLE_HTTP_REDIRECT_XSECURITYID = 0x00000008,
340 BINDF2_RESERVED_3 = 0x20000000,
341 BINDF2_RESERVED_2 = 0x40000000,
342 BINDF2_RESERVED_1 = 0x80000000,
343 } BINDF2;
344
345 [local]
346 HRESULT GetBindInfoEx(
347 [out] DWORD *grfBINDF,
348 [in, out, unique] BINDINFO *pbindinfo,
349 [out] DWORD *grfBINDF2,
350 [out] DWORD *pdwReserved);
351
352 [call_as(GetBindInfoEx)]
353 HRESULT RemoteGetBindInfoEx(
354 [out] DWORD *grfBINDF,
355 [in, out, unique] RemBINDINFO *pbindinfo,
356 [in, out, unique] RemSTGMEDIUM *pstgmed,
357 [out] DWORD *grfBINDF2,
358 [out] DWORD *pdwReserved);
359}
360
361
362/*****************************************************************************
363 * IAuthenticate interface
364 */
365[
366 local,
367 object,
368 uuid(79EAC9D0-BAf9-11CE-8C82-00AA004BA90B),
369 pointer_default(unique)
370]
371interface IAuthenticate : IUnknown
372{
373 typedef [unique] IAuthenticate *LPAUTHENTICATION;
374
375 HRESULT Authenticate(
376 [out] HWND* phwnd,
377 [out] LPWSTR *pszUsername,
378 [out] LPWSTR *pszPassword);
379}
380
381/*****************************************************************************
382 * IHttpNegotiate interface
383 */
384[
385 object,
386 uuid(79EAC9D2-BAF9-11CE-8C82-00AA004BA90B),
387 pointer_default(unique)
388]
389interface IHttpNegotiate : IUnknown
390{
391 typedef [unique] IHttpNegotiate *LPHTTPNEGOTIATE;
392
393 HRESULT BeginningTransaction(
394 [in] LPCWSTR szURL,
395 [in, unique] LPCWSTR szHeaders,
396 [in] DWORD dwReserved,
397 [out] LPWSTR *pszAdditionalHeaders);
398
399 HRESULT OnResponse(
400 [in] DWORD dwResponseCode,
401 [in, unique] LPCWSTR szResponseHeaders,
402 [in, unique] LPCWSTR szRequestHeaders,
403 [out] LPWSTR *pszAdditionalRequestHeaders);
404}
405
406/*****************************************************************************
407 * IHttpNegotiate2 interface
408 */
409[
410 object,
411 uuid(4F9F9FCB-E0F4-48eb-B7AB-FA2EA9365CB4),
412 pointer_default(unique)
413]
414interface IHttpNegotiate2 : IHttpNegotiate
415{
416 typedef [unique] IHttpNegotiate2 *LPHTTPNEGOTIATE2;
417
418 HRESULT GetRootSecurityId(
419 [out, size_is(*pcbSecurityId)] BYTE *pbSecurityId,
420 [in, out] DWORD *pcbSecurityId,
421 [in] DWORD_PTR dwReserved);
422}
423
424/*****************************************************************************
425 * IBindHost interface
426 */
427cpp_quote("#define SID_IBindHost IID_IBindHost")
428cpp_quote("#define SID_SBindHost IID_IBindHost")
429[
430 object,
431 uuid(fc4801a1-2ba9-11cf-a229-00aa003d7352),
432 pointer_default(unique)
433]
434interface IBindHost : IUnknown
435{
436 typedef [unique] IBindHost *LPBINDHOST;
437
438 HRESULT CreateMoniker(
439 [in] LPOLESTR szName,
440 [in] IBindCtx *pBC,
441 [out] IMoniker** ppmk,
442 [in] DWORD dwReserved);
443
444 [local]
445 HRESULT MonikerBindToStorage(
446 [in] IMoniker *pMk,
447 [in] IBindCtx *pBC,
448 [in] IBindStatusCallback *pBSC,
449 [in] REFIID riid,
450 [out] void **ppvObj);
451
452 [call_as(MonikerBindToStorage)]
453 HRESULT RemoteMonikerBindToStorage(
454 [in, unique] IMoniker *pMk,
455 [in, unique] IBindCtx *pBC,
456 [in, unique] IBindStatusCallback *pBSC,
457 [in] REFIID riid,
458 [out, iid_is(riid)] IUnknown **ppvObj);
459
460 [local]
461 HRESULT MonikerBindToObject(
462 [in] IMoniker *pMk,
463 [in] IBindCtx *pBC,
464 [in] IBindStatusCallback *pBSC,
465 [in] REFIID riid,
466 [out] void **ppvObj);
467
468 [call_as(MonikerBindToObject)]
469 HRESULT RemoteMonikerBindToObject(
470 [in, unique] IMoniker *pMk,
471 [in, unique] IBindCtx *pBC,
472 [in, unique] IBindStatusCallback *pBSC,
473 [in] REFIID riid,
474 [out, iid_is(riid)] IUnknown **ppvObj);
475}
476
477
478/*****************************************************************************
479 * IWinInetInfo interface
480 */
481[
482 object,
483 uuid(79eac9d6-bafa-11ce-8c82-00aa004ba90b),
484 pointer_default(unique)
485]
486interface IWinInetInfo : IUnknown
487{
488 typedef [unique] IWinInetInfo *LPWININETINFO;
489
490 [local]
491 HRESULT QueryOption(
492 [in] DWORD dwOption,
493 [in, out, size_is(*pcbBuf)] LPVOID pBuffer,
494 [in, out] DWORD *pcbBuf);
495
496 [call_as(QueryOption)]
497 HRESULT RemoteQueryOption(
498 [in] DWORD dwOption,
499 [in, out, size_is(*pcbBuf)] BYTE *pBuffer,
500 [in, out] DWORD *pcbBuf);
501}
502
503
504
505/*****************************************************************************
506 * IWinInetHttpInfo interface
507 */
508[
509 object,
510 uuid(79eac9d8-bafa-11ce-8c82-00aa004ba90b),
511 pointer_default(unique)
512]
513interface IWinInetHttpInfo : IWinInetInfo
514{
515 typedef [unique] IWinInetHttpInfo *LPWININETHTTPINFO;
516
517 [local]
518 HRESULT QueryInfo(
519 [in] DWORD dwOption,
520 [in, out,size_is(*pcbBuf)] LPVOID pBuffer,
521 [in, out] DWORD *pcbBuf,
522 [in, out] DWORD *pdwFlags,
523 [in, out] DWORD *pdwReserved);
524
525 [call_as(QueryInfo)]
526 HRESULT RemoteQueryInfo(
527 [in] DWORD dwOption,
528 [in,out,size_is(*pcbBuf)] BYTE *pBuffer,
529 [in, out] DWORD *pcbBuf,
530 [in, out] DWORD *pdwFlags,
531 [in, out] DWORD *pdwReserved);
532}
533
534/*****************************************************************************
535 * IWindowForBindingUI interface
536 */
537[
538 local,
539 object,
540 uuid(79eac9d5-bafa-11ce-8c82-00aa004ba90b),
541 pointer_default(unique)
542]
543interface IWindowForBindingUI : IUnknown
544{
545 typedef [unique] IWindowForBindingUI *LPWINDOWFORBINDINGUI;
546
547 HRESULT GetWindow(
548 [in] REFGUID rguidReason,
549 [out] HWND *phwnd);
550}
551
552/*****************************************************************************
553 * IHttpSecurity interface
554 */
555[
556 object,
557 uuid(79eac9d7-bafa-11ce-8c82-00aa004ba90b),
558 pointer_default(unique)
559]
560interface IHttpSecurity : IWindowForBindingUI
561{
562 typedef [unique] IHttpSecurity *LPHTTPSECURITY;
563
564 HRESULT OnSecurityProblem(
565 [in] DWORD dwProblem);
566}
567
568
569/*****************************************************************************
570 * IPersistMoniker interface
571 */
572[
573 object,
574 uuid(79eac9c9-baf9-11ce-8c82-00aa004ba90b),
575 pointer_default(unique)
576]
577interface IPersistMoniker : IUnknown
578{
579 typedef [unique] IPersistMoniker *LPPERSISTMONIKER;
580
581 HRESULT GetClassID(
582 [out] CLSID *pClassID);
583
584 HRESULT IsDirty();
585
586 HRESULT Load(
587 [in] BOOL fFullyAvailable,
588 [in] IMoniker *pimkName,
589 [in] LPBC pibc,
590 [in] DWORD grfMode);
591
592 HRESULT Save(
593 [in] IMoniker *pimkName,
594 [in] LPBC pbc,
595 [in] BOOL fRemember);
596
597 HRESULT SaveCompleted(
598 [in] IMoniker *pimkName,
599 [in] LPBC pibc);
600
601 HRESULT GetCurMoniker(
602 [out] IMoniker **ppimkName);
603}
604
605/*****************************************************************************
606 * IMonikerProp interface
607 */
608[
609 object,
610 uuid(A5CA5F7F-1847-4D87-9C5B-918509F7511D),
611 pointer_default(unique)
612]
613interface IMonikerProp : IUnknown
614{
615 typedef [unique] IMonikerProp *LPMONIKERPROP;
616
617 typedef enum {
618 MIMETYPEPROP = 0,
619 USE_SRC_URL = 1,
620 CLASSIDPROP = 2,
621 TRUSTEDDOWNLOADPROP = 3,
622 POPUPLEVELPROP = 4
623 } MONIKERPROPERTY;
624
625 HRESULT PutProperty(
626 [in] MONIKERPROPERTY mkp,
627 [in] LPCWSTR val);
628}
629
630cpp_quote("#ifndef _LPBINDPROTOCOL_DEFINED")
631cpp_quote("#define _LPBINDPROTOCOL_DEFINED")
632
633/*****************************************************************************
634 * IBindProtocol interface
635 */
636[
637 local,
638 object,
639 uuid(79EAC9CD-BAF9-11CE-8C82-00AA004BA90B),
640 pointer_default(unique)
641]
642interface IBindProtocol : IUnknown
643{
644 typedef [unique] IBindProtocol *LPBINDPROTOCOL;
645
646 HRESULT CreateBinding(
647 [in] LPCWSTR szUrl,
648 [in] IBindCtx *pbc,
649 [out] IBinding **ppb);
650}
651
652cpp_quote("#endif /* !defined _LPBINDPROTOCOL_DEFINED */")
653
654/*****************************************************************************
655 * IInternetBindInfo interface
656 */
657[
658 local,
659 object,
660 uuid(79EAC9E1-BAF9-11CE-8C82-00AA004BA90B),
661 pointer_default(unique)
662]
663interface IInternetBindInfo : IUnknown
664{
665 typedef [unique] IInternetBindInfo *LPIINTERNETBINDINFO;
666
667 typedef enum tagBINDSTRING
668 {
669 BINDSTRING_HEADERS = 1,
670 BINDSTRING_ACCEPT_MIMES,
671 BINDSTRING_EXTRA_URL,
672 BINDSTRING_LANGUAGE,
673 BINDSTRING_USERNAME,
674 BINDSTRING_PASSWORD,
675 BINDSTRING_UA_PIXELS,
676 BINDSTRING_UA_COLOR,
677 BINDSTRING_OS,
678 BINDSTRING_USER_AGENT,
679 BINDSTRING_ACCEPT_ENCODINGS,
680 BINDSTRING_POST_COOKIE,
681 BINDSTRING_POST_DATA_MIME,
682 BINDSTRING_URL,
683 BINDSTRING_IID,
684 BINDSTRING_FLAG_BIND_TO_OBJECT,
685 BINDSTRING_PTR_BIND_CONTEXT
686 } BINDSTRING;
687
688 HRESULT GetBindInfo(
689 [out] DWORD *grfBINDF,
690 [in, out, unique] BINDINFO *pbindinfo);
691
692 HRESULT GetBindString(
693 [in] ULONG ulStringType,
694 [in, out] LPOLESTR *ppwzStr,
695 [in] ULONG cEl,
696 [in, out] ULONG *pcElFetched);
697}
698
699/*****************************************************************************
700 * IInternetPriority interface
701 */
702[
703 local,
704 object,
705 uuid(79EAC9EB-BAF9-11CE-8C82-00AA004BA90B),
706 pointer_default(unique)
707]
708interface IInternetPriority : IUnknown
709{
710 typedef [unique] IInternetPriority *LPIINTERNETPRIORITY;
711
712 HRESULT SetPriority([in] LONG nPriority);
713 HRESULT GetPriority([out] LONG *pnPriority);
714}
715
716/*****************************************************************************
717 * IInternetProtocolRoot interface
718 */
719[
720 local,
721 object,
722 uuid(79EAC9E3-BAF9-11CE-8C82-00AA004BA90B),
723 pointer_default(unique)
724]
725interface IInternetProtocolRoot : IUnknown
726{
727 typedef [unique] IInternetProtocolRoot *LPIINTERNETPROTOCOLROOT;
728
729 typedef enum _tagPI_FLAGS
730 {
731 PI_PARSE_URL = 0x00000001,
732 PI_FILTER_MODE = 0x00000002,
733 PI_FORCE_ASYNC = 0x00000004,
734 PI_USE_WORKERTHREAD = 0x00000008,
735 PI_MIMEVERIFICATION = 0x00000010,
736 PI_CLSIDLOOKUP = 0x00000020,
737 PI_DATAPROGRESS = 0x00000040,
738 PI_SYNCHRONOUS = 0x00000080,
739 PI_APARTMENTTHREADED = 0x00000100,
740 PI_CLASSINSTALL = 0x00000200,
741 PD_FORCE_SWITCH = 0x00010000
742 } PI_FLAGS;
743
744 typedef struct _tagPROTOCOLDATA
745 {
746 DWORD grfFlags;
747 DWORD dwState;
748 LPVOID pData;
749 ULONG cbData;
750 } PROTOCOLDATA;
751
752 HRESULT Start(
753 [in] LPCWSTR szUrl,
754 [in] IInternetProtocolSink *pOIProtSink,
755 [in] IInternetBindInfo *pOIBindInfo,
756 [in] DWORD grfPI,
757 [in] HANDLE_PTR dwReserved);
758
759 HRESULT Continue(
760 [in] PROTOCOLDATA *pProtocolData);
761
762 HRESULT Abort(
763 [in] HRESULT hrReason,
764 [in] DWORD dwOptions);
765
766 HRESULT Terminate(
767 [in] DWORD dwOptions);
768
769 HRESULT Suspend();
770
771 HRESULT Resume();
772}
773
774/*****************************************************************************
775 * IInternetProtocolSink interface
776 */
777[
778 local,
779 object,
780 uuid(79EAC9E5-BAF9-11CE-8C82-00AA004BA90B),
781 pointer_default(unique)
782]
783interface IInternetProtocolSink : IUnknown
784{
785 typedef [unique] IInternetProtocolSink *LPIINTERNETPROTOCOLSINK;
786
787 HRESULT Switch(
788 [in] PROTOCOLDATA *pProtocolData);
789
790 HRESULT ReportProgress(
791 [in] ULONG ulStatusCode,
792 [in] LPCWSTR szStatusText);
793
794 HRESULT ReportData(
795 [in] DWORD grfBSCF,
796 [in] ULONG ulProgress,
797 [in] ULONG ulProgressMax);
798
799 HRESULT ReportResult(
800 [in] HRESULT hrResult,
801 [in] DWORD dwError,
802 [in] LPCWSTR szResult);
803}
804
805/*****************************************************************************
806 * IInternetProtocol interface
807 */
808[
809 local,
810 object,
811 uuid(79EAC9E4-BAF9-11CE-8C82-00AA004BA90B),
812 pointer_default(unique)
813]
814interface IInternetProtocol : IInternetProtocolRoot
815{
816 typedef [unique] IInternetProtocol *LPIINTERNETPROTOCOL;
817
818 HRESULT Read(
819 [in,out, size_is(cb), length_is(*pcbRead)] void *pv,
820 [in] ULONG cb,
821 [out] ULONG *pcbRead);
822
823 HRESULT Seek(
824 [in] LARGE_INTEGER dlibMove,
825 [in] DWORD dwOrigin,
826 [out] ULARGE_INTEGER *plibNewPosition);
827
828 HRESULT LockRequest(
829 [in] DWORD dwOptions);
830
831 HRESULT UnlockRequest();
832}
833
834/*****************************************************************************
835 * IInternetProtocolInfo interface
836 */
837[
838 local,
839 object,
840 uuid(79eac9ec-baf9-11ce-8c82-00aa004ba90b),
841 pointer_default(unique)
842]
843interface IInternetProtocolInfo : IUnknown
844{
845 typedef [unique] IInternetProtocolInfo *LPIINTERNETPROTOCOLINFO;
846
847 typedef enum _tagPARSEACTION
848 {
849 PARSE_CANONICALIZE = 1,
850 PARSE_FRIENDLY,
851 PARSE_SECURITY_URL,
852 PARSE_ROOTDOCUMENT,
853 PARSE_DOCUMENT,
854 PARSE_ANCHOR,
855 PARSE_ENCODE,
856 PARSE_DECODE,
857 PARSE_PATH_FROM_URL,
858 PARSE_URL_FROM_PATH,
859 PARSE_MIME,
860 PARSE_SERVER,
861 PARSE_SCHEMA,
862 PARSE_SITE,
863 PARSE_DOMAIN,
864 PARSE_LOCATION,
865 PARSE_SECURITY_DOMAIN,
866 PARSE_ESCAPE,
867 PARSE_UNESCAPE
868 } PARSEACTION;
869
870 typedef enum _tagPSUACTION
871 {
872 PSU_DEFAULT = 1,
873 PSU_SECURITY_URL_ONLY
874 } PSUACTION;
875
876 typedef enum _tagQUERYOPTION
877 {
878 QUERY_EXPIRATION_DATE = 1,
879 QUERY_TIME_OF_LAST_CHANGE,
880 QUERY_CONTENT_ENCODING,
881 QUERY_CONTENT_TYPE,
882 QUERY_REFRESH,
883 QUERY_RECOMBINE,
884 QUERY_CAN_NAVIGATE,
885 QUERY_USES_NETWORK,
886 QUERY_IS_CACHED,
887 QUERY_IS_INSTALLEDENTRY,
888 QUERY_IS_CACHED_OR_MAPPED,
889 QUERY_USES_CACHE,
890 QUERY_IS_SECURE,
891 QUERY_IS_SAFE,
892 QUERY_USES_HISTORYFOLDER
893 } QUERYOPTION;
894
895 HRESULT ParseUrl(
896 [in] LPCWSTR pwzUrl,
897 [in] PARSEACTION ParseAction,
898 [in] DWORD dwParseFlags,
899 [out] LPWSTR pwzResult,
900 [in] DWORD cchResult,
901 [out] DWORD *pcchResult,
902 [in] DWORD dwReserved);
903
904 HRESULT CombineUrl(
905 [in] LPCWSTR pwzBaseUrl,
906 [in] LPCWSTR pwzRelativeUrl,
907 [in] DWORD dwCombineFlags,
908 [out] LPWSTR pwzResult,
909 [in] DWORD cchResult,
910 [out] DWORD *pcchResult,
911 [in] DWORD dwReserved);
912
913 HRESULT CompareUrl(
914 [in] LPCWSTR pwzUrl1,
915 [in] LPCWSTR pwzUrl2,
916 [in] DWORD dwCompareFlags);
917
918 HRESULT QueryInfo(
919 [in] LPCWSTR pwzUrl,
920 [in] QUERYOPTION OueryOption,
921 [in] DWORD dwQueryFlags,
922 [in, out,size_is(*pcbBuf)] LPVOID pBuffer,
923 [in] DWORD cbBuffer,
924 [in, out] DWORD *pcbBuf,
925 [in] DWORD dwReserved);
926}
927
928/*****************************************************************************
929 * IInternetSession interface
930 */
931[
932 local,
933 object,
934 uuid(79eac9e7-baf9-11ce-8c82-00aa004ba90b),
935 pointer_default(unique)
936]
937interface IInternetSession : IUnknown
938{
939 typedef [unique] IInternetSession *LPIINTERNETSESSION;
940
941 typedef enum _tagOIBDG_FLAGS
942 {
943 OIBDG_APARTMENTTHREADED = 0x0100,
944 OIBDG_DATAONLY = 0x1000
945 } OIBDG_FLAGS;
946
947 HRESULT RegisterNameSpace(
948 [in] IClassFactory *pCF,
949 [in] REFCLSID rclsid,
950 [in] LPCWSTR pwzProtocol,
951 [in] ULONG cPatterns,
952 [in] const LPCWSTR *ppwzPatterns,
953 [in] DWORD dwReserved);
954
955 HRESULT UnregisterNameSpace(
956 [in] IClassFactory *pCF,
957 [in] LPCWSTR pszProtocol);
958
959 HRESULT RegisterMimeFilter(
960 [in] IClassFactory *pCF,
961 [in] REFCLSID rclsid,
962 [in] LPCWSTR pwzType);
963
964 HRESULT UnregisterMimeFilter(
965 [in] IClassFactory *pCF,
966 [in] LPCWSTR pwzType);
967
968 HRESULT CreateBinding(
969 [in] LPBC pBC,
970 [in] LPCWSTR szUrl,
971 [in] IUnknown *pUnkOuter,
972 [out, unique] IUnknown **ppUnk,
973 [out, unique] IInternetProtocol **ppOInetProt,
974 [in] DWORD dwOption);
975
976 HRESULT SetSessionOption(
977 [in] DWORD dwOption,
978 [in] LPVOID pBuffer,
979 [in] DWORD dwBufferLength,
980 [in] DWORD dwReserved);
981}
982
983/*****************************************************************************
984 * IInternetSecurityMgrSite interface
985 */
986[
987 local,
988 object,
989 uuid(79eac9ed-baf9-11ce-8c82-00aa004ba90b),
990 pointer_default(unique)
991]
992interface IInternetSecurityMgrSite : IUnknown
993{
994 HRESULT GetWindow(
995 [out] HWND *phwnd);
996
997 HRESULT EnableModeless(
998 [in] BOOL fEnable);
999}
1000
1001
1002/*****************************************************************************
1003 * IInternetSecurityManager interface
1004 */
1005cpp_quote("#define SID_SInternetSecurityManager IID_IInternetSecurityManager")
1006
1007[
1008 object,
1009 uuid(79eac9ee-baf9-11ce-8c82-00aa004ba90b),
1010 pointer_default(unique)
1011]
1012interface IInternetSecurityManager : IUnknown
1013{
1014 HRESULT SetSecuritySite(
1015 [in, unique] IInternetSecurityMgrSite *pSite);
1016
1017 HRESULT GetSecuritySite(
1018 [out] IInternetSecurityMgrSite **ppSite);
1019
1020 HRESULT MapUrlToZone(
1021 [in] LPCWSTR pwszUrl,
1022 [out] DWORD *pdwZone,
1023 [in] DWORD dwFlags);
1024
1025cpp_quote("#define MAX_SIZE_SECURITY_ID 512")
1026
1027 HRESULT GetSecurityId(
1028 [in] LPCWSTR pwszUrl,
1029 [out, size_is(*pcbSecurityId)] BYTE *pbSecurityId,
1030 [in, out] DWORD *pcbSecurityId,
1031 [in] DWORD_PTR dwReserved);
1032
1033
1034 typedef enum {
1035 PUAF_DEFAULT = 0x00,
1036 PUAF_NOUI = 0x01,
1037 PUAF_ISFILE = 0x02,
1038 PUAF_WARN_IF_DENIED = 0x04,
1039 PUAF_FORCEUI_FOREGROUND = 0x08,
1040 PUAF_CHECK_TIPS = 0x10
1041 } PUAF;
1042
1043 HRESULT ProcessUrlAction(
1044 [in] LPCWSTR pwszUrl,
1045 [in] DWORD dwAction,
1046 [out, size_is(cbPolicy)] BYTE *pPolicy,
1047 [in] DWORD cbPolicy,
1048 [in] BYTE *pContext,
1049 [in] DWORD cbContext,
1050 [in] DWORD dwFlags,
1051 [in] DWORD dwReserved);
1052
1053 HRESULT QueryCustomPolicy(
1054 [in] LPCWSTR pwszUrl,
1055 [in] REFGUID guidKey,
1056 [out, size_is(,*pcbPolicy)] BYTE **ppPolicy,
1057 [out] DWORD *pcbPolicy,
1058 [in] BYTE *pContext,
1059 [in] DWORD cbContext,
1060 [in] DWORD dwReserved);
1061
1062 typedef enum {
1063 SZM_CREATE = 0x0,
1064 SZM_DELETE = 0x1
1065 } SZM_FLAGS;
1066
1067 HRESULT SetZoneMapping(
1068 [in] DWORD dwZone,
1069 [in] LPCWSTR lpszPattern,
1070 [in] DWORD dwFlags);
1071
1072 HRESULT GetZoneMappings(
1073 [in] DWORD dwZone,
1074 [out] IEnumString **ppenumString,
1075 [in] DWORD dwFlags);
1076}
1077
1078/*****************************************************************************
1079 * IInternetHostSecurityManager interface
1080 */
1081cpp_quote("#define SID_SInternetHostSecurityManager IID_IInternetHostSecurityManager")
1082
1083[
1084 local,
1085 object,
1086 uuid(3af280b6-cb3f-11d0-891e-00c04fb6bfc4),
1087 pointer_default(unique)
1088]
1089interface IInternetHostSecurityManager : IUnknown
1090{
1091 HRESULT GetSecurityId(
1092 [out, size_is(*pcbSecurityId)] BYTE *pbSecurityId,
1093 [in, out] DWORD *pcbSecurityId,
1094 [in] DWORD_PTR dwReserved);
1095
1096 HRESULT ProcessUrlAction(
1097 [in] DWORD dwAction,
1098 [out, size_is(cbPolicy)] BYTE *pPolicy,
1099 [in] DWORD cbPolicy,
1100 [in] BYTE *pContext,
1101 [in] DWORD cbContext,
1102 [in] DWORD dwFlags,
1103 [in] DWORD dwReserved);
1104
1105 HRESULT QueryCustomPolicy(
1106 [in] REFGUID guidKey,
1107 [out, size_is(,*pcbPolicy)] BYTE **ppPolicy,
1108 [out] DWORD *pcbPolicy,
1109 [in] BYTE *pContext,
1110 [in] DWORD cbContext,
1111 [in] DWORD dwReserved);
1112}
1113
1114cpp_quote("#define URLACTION_MIN 0x00001000")
1115cpp_quote("#define URLACTION_DOWNLOAD_MIN 0x00001000")
1116cpp_quote("#define URLACTION_DOWNLOAD_SIGNED_ACTIVEX 0x00001001")
1117cpp_quote("#define URLACTION_DOWNLOAD_UNSIGNED_ACTIVEX 0x00001004")
1118cpp_quote("#define URLACTION_DOWNLOAD_CURR_MAX 0x00001004")
1119cpp_quote("#define URLACTION_DOWNLOAD_MAX 0x000011ff")
1120
1121cpp_quote("#define URLACTION_ACTIVEX_MIN 0x00001200")
1122cpp_quote("#define URLACTION_ACTIVEX_RUN 0x00001200")
1123cpp_quote("#define URLPOLICY_ACTIVEX_CHECK_LIST 0x00010000")
1124cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_OBJECT_SAFETY 0x00001201")
1125cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_DATA_SAFETY 0x00001202")
1126cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_SCRIPT_SAFETY 0x00001203")
1127cpp_quote("#define URLACTION_SCRIPT_OVERRIDE_SAFETY 0x00001401")
1128cpp_quote("#define URLACTION_ACTIVEX_CONFIRM_NOOBJECTSAFETY 0x00001204")
1129cpp_quote("#define URLACTION_ACTIVEX_TREATASUNTRUSTED 0x00001205")
1130cpp_quote("#define URLACTION_ACTIVEX_CURR_MAX 0x00001205")
1131cpp_quote("#define URLACTION_ACTIVEX_MAX 0x000013ff")
1132
1133cpp_quote("#define URLACTION_SCRIPT_MIN 0x00001400")
1134cpp_quote("#define URLACTION_SCRIPT_RUN 0x00001400")
1135cpp_quote("#define URLACTION_SCRIPT_JAVA_USE 0x00001402")
1136cpp_quote("#define URLACTION_SCRIPT_SAFE_ACTIVEX 0x00001405")
1137cpp_quote("#define URLACTION_CROSS_DOMAIN_DATA 0x00001406")
1138cpp_quote("#define URLACTION_SCRIPT_PASTE 0x00001407")
1139cpp_quote("#define URLACTION_SCRIPT_CURR_MAX 0x00001407")
1140cpp_quote("#define URLACTION_SCRIPT_MAX 0x000015ff")
1141
1142cpp_quote("#define URLACTION_HTML_MIN 0x00001600")
1143cpp_quote("#define URLACTION_HTML_SUBMIT_FORMS 0x00001601")
1144cpp_quote("#define URLACTION_HTML_SUBMIT_FORMS_FROM 0x00001602")
1145cpp_quote("#define URLACTION_HTML_SUBMIT_FORMS_TO 0x00001603")
1146cpp_quote("#define URLACTION_HTML_FONT_DOWNLOAD 0x00001604")
1147cpp_quote("#define URLACTION_HTML_JAVA_RUN 0x00001605")
1148cpp_quote("#define URLACTION_HTML_USERDATA_SAVE 0x00001606")
1149cpp_quote("#define URLACTION_HTML_SUBFRAME_NAVIGATE 0x00001607")
1150cpp_quote("#define URLACTION_HTML_META_REFRESH 0x00001608")
1151cpp_quote("#define URLACTION_HTML_MIXED_CONTENT 0x00001609")
1152cpp_quote("#define URLACTION_HTML_MAX 0x000017ff")
1153
1154cpp_quote("#define URLACTION_SHELL_MIN 0x00001800")
1155cpp_quote("#define URLACTION_SHELL_INSTALL_DTITEMS 0x00001800")
1156cpp_quote("#define URLACTION_SHELL_MOVE_OR_COPY 0x00001802")
1157cpp_quote("#define URLACTION_SHELL_FILE_DOWNLOAD 0x00001803")
1158cpp_quote("#define URLACTION_SHELL_VERB 0x00001804")
1159cpp_quote("#define URLACTION_SHELL_WEBVIEW_VERB 0x00001805")
1160cpp_quote("#define URLACTION_SHELL_CURR_MAX 0x00001805")
1161cpp_quote("#define URLACTION_SHELL_MAX 0x000019ff")
1162
1163cpp_quote("#define URLACTION_NETWORK_MIN 0x00001a00")
1164cpp_quote("#define URLACTION_CREDENTIALS_USE 0x00001a00")
1165cpp_quote("#define URLACTION_AUTHENTICATE_CLIENT 0x00001a01")
1166cpp_quote("#define URLACTION_COOKIES 0x00001a02")
1167cpp_quote("#define URLACTION_COOKIES_SESSION 0x00001a03")
1168cpp_quote("#define URLACTION_CLIENT_CERT_PROMPT 0x00001a04")
1169cpp_quote("#define URLACTION_COOKIES_THIRD_PARTY 0x00001a05")
1170cpp_quote("#define URLACTION_COOKIES_SESSION_THIRD_PARTY 0x00001a06")
1171cpp_quote("#define URLACTION_COOKIES_ENABLED 0x00001a10")
1172cpp_quote("#define URLACTION_NETWORK_CURR_MAX 0x00001a10")
1173cpp_quote("#define URLACTION_NETWORK_MAX 0x00001bff")
1174
1175cpp_quote("#define URLACTION_JAVA_MIN 0x00001c00")
1176cpp_quote("#define URLACTION_JAVA_PERMISSIONS 0x00001c00")
1177cpp_quote("#define URLPOLICY_JAVA_PROHIBIT 0x00000000")
1178cpp_quote("#define URLPOLICY_JAVA_HIGH 0x00010000")
1179cpp_quote("#define URLPOLICY_JAVA_MEDIUM 0x00020000")
1180cpp_quote("#define URLPOLICY_JAVA_LOW 0x00030000")
1181cpp_quote("#define URLPOLICY_JAVA_CUSTOM 0x00800000")
1182cpp_quote("#define URLACTION_JAVA_CURR_MAX 0x00001c00")
1183cpp_quote("#define URLACTION_JAVA_MAX 0x00001cff")
1184
1185cpp_quote("#define URLACTION_INFODELIVERY_MIN 0x00001d00")
1186cpp_quote("#define URLACTION_INFODELIVERY_NO_ADDING_CHANNELS 0x00001d00")
1187cpp_quote("#define URLACTION_INFODELIVERY_NO_EDITING_CHANNELS 0x00001d01")
1188cpp_quote("#define URLACTION_INFODELIVERY_NO_REMOVING_CHANNELS 0x00001d02")
1189cpp_quote("#define URLACTION_INFODELIVERY_NO_ADDING_SUBSCRIPTIONS 0x00001d03")
1190cpp_quote("#define URLACTION_INFODELIVERY_NO_EDITING_SUBSCRIPTIONS 0x00001d04")
1191cpp_quote("#define URLACTION_INFODELIVERY_NO_REMOVING_SUBSCRIPTIONS 0x00001d05")
1192cpp_quote("#define URLACTION_INFODELIVERY_NO_CHANNEL_LOGGING 0x00001d06")
1193cpp_quote("#define URLACTION_INFODELIVERY_CURR_MAX 0x00001d06")
1194cpp_quote("#define URLACTION_INFODELIVERY_MAX 0x00001dff")
1195
1196cpp_quote("#define URLACTION_CHANNEL_SOFTDIST_MIN 0x00001e00")
1197cpp_quote("#define URLACTION_CHANNEL_SOFTDIST_PERMISSIONS 0x00001e05")
1198cpp_quote("#define URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT 0x00010000")
1199cpp_quote("#define URLPOLICY_CHANNEL_SOFTDIST_PRECACHE 0x00020000")
1200cpp_quote("#define URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL 0x00030000")
1201cpp_quote("#define URLACTION_CHANNEL_SOFTDIST_MAX 0x00001eff")
1202
1203cpp_quote("#define URLPOLICY_ALLOW 0x00")
1204cpp_quote("#define URLPOLICY_QUERY 0x01")
1205cpp_quote("#define URLPOLICY_DISALLOW 0x03")
1206
1207cpp_quote("#define URLPOLICY_NOTIFY_ON_ALLOW 0x10")
1208cpp_quote("#define URLPOLICY_NOTIFY_ON_DISALLOW 0x20")
1209
1210cpp_quote("#define URLPOLICY_LOG_ON_ALLOW 0x40")
1211cpp_quote("#define URLPOLICY_LOG_ON_DISALLOW 0x80")
1212
1213cpp_quote("#define URLPOLICY_DONTCHECKDLGBOX 0x100")
1214
1215cpp_quote("#define URLPOLICY_CREDENTIALS_SILENT_LOGON_OK 0x00000000")
1216cpp_quote("#define URLPOLICY_CREDENTIALS_MUST_PROMPT_USER 0x00010000")
1217cpp_quote("#define URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT 0x00020000")
1218cpp_quote("#define URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY 0x00030000")
1219
1220cpp_quote("#define URLPOLICY_AUTHENTICATE_CLEARTEXT_OK 0x00000000")
1221cpp_quote("#define URLPOLICY_AUTHENTICATE_CHALLENGE_RESPONSE 0x00010000")
1222cpp_quote("#define URLPOLICY_AUTHENTICATE_MUTUAL_ONLY 0x00030000")
1223
1224cpp_quote("#define URLPOLICY_MASK_PERMISSIONS 0x0f")
1225cpp_quote("#define GetUrlPolicyPermissions(dw) (dw & URLPOLICY_MASK_PERMISSIONS)")
1226cpp_quote("#define SetUrlPolicyPermissions(dw,dw2) ((dw) = ((dw) & ~URLPOLICY_MASK_PERMISSIONS) | (dw2))")
1227
1228/*****************************************************************************
1229 * IInternetZoneManager interface
1230 */
1231[
1232 local,
1233 object,
1234 uuid(79EAC9EF-BAf9-11CE-8C82-00AA004BA90B),
1235 pointer_default(unique)
1236]
1237interface IInternetZoneManager : IUnknown
1238{
1239 typedef [unique] IInternetZoneManager* LPURLZONEMANAGER;
1240
1241 typedef enum tagURLZONE
1242 {
1243 URLZONE_PREDEFINED_MIN = 0,
1244 URLZONE_LOCAL_MACHINE = 0,
1245 URLZONE_INTRANET = 1,
1246 URLZONE_TRUSTED = 2,
1247 URLZONE_INTERNET = 3,
1248 URLZONE_UNTRUSTED = 4,
1249 URLZONE_PREDEFINED_MAX = 999,
1250 URLZONE_USER_MIN = 1000,
1251 URLZONE_USER_MAX = 10000,
1252 } URLZONE;
1253
1254 typedef enum tagURLTEMPLATE
1255 {
1256 URLTEMPLATE_CUSTOM = 0x00000,
1257 URLTEMPLATE_PREDEFINED_MIN = 0x10000,
1258 URLTEMPLATE_LOW = 0x10000,
1259 URLTEMPLATE_MEDLOW = 0x10500,
1260 URLTEMPLATE_MEDIUM = 0x11000,
1261 URLTEMPLATE_MEDHIGH = 0x11500,
1262 URLTEMPLATE_HIGH = 0x12000,
1263 URLTEMPLATE_PREDEFINED_MAX = 0x20000,
1264 } URLTEMPLATE ;
1265
1266 typedef enum {
1267 ZAFLAGS_CUSTOM_EDIT = 0x00000001,
1268 ZAFLAGS_ADD_SITES = 0x00000002,
1269 ZAFLAGS_REQUIRE_VERIFICATION = 0x00000004,
1270 ZAFLAGS_INCLUDE_PROXY_OVERRIDE = 0x00000008,
1271 ZAFLAGS_INCLUDE_INTRANET_SITES = 0x00000010,
1272 ZAFLAGS_NO_UI = 0x00000020,
1273 ZAFLAGS_SUPPORTS_VERIFICATION = 0x00000040,
1274 ZAFLAGS_UNC_AS_INTRANET = 0x00000080,
1275 ZAFLAGS_DETECT_INTRANET = 0x00000100,
1276 ZAFLAGS_USE_LOCKED_ZONES = 0x00010000,
1277 ZAFLAGS_VERIFY_TEMPLATE_SETTINGS = 0x00020000,
1278 ZAFLAGS_NO_CACHE = 0x00040000,
1279 } ZAFLAGS ;
1280
1281 enum {
1282 MAX_ZONE_PATH = 260,
1283 MAX_ZONE_DESCRIPTION = 200
1284 };
1285
1286 typedef struct _ZONEATTRIBUTES {
1287 ULONG cbSize;
1288 WCHAR szDisplayName[MAX_ZONE_PATH];
1289 WCHAR szDescription[MAX_ZONE_DESCRIPTION];
1290 WCHAR szIconPath[MAX_ZONE_PATH];
1291 DWORD dwTemplateMinLevel;
1292 DWORD dwTemplateRecommended;
1293 DWORD dwTemplateCurrentLevel;
1294 DWORD dwFlags;
1295 } ZONEATTRIBUTES, *LPZONEATTRIBUTES;
1296
1297 typedef enum _URLZONEREG {
1298 URLZONEREG_DEFAULT,
1299 URLZONEREG_HKLM,
1300 URLZONEREG_HKCU
1301 } URLZONEREG;
1302
1303 HRESULT GetZoneAttributes(
1304 [in] DWORD dwZone,
1305 [in, out, unique] ZONEATTRIBUTES* pZoneAttributes);
1306
1307 HRESULT SetZoneAttributes(
1308 [in] DWORD dwZone,
1309 [in] ZONEATTRIBUTES* pZoneAttributes);
1310
1311 HRESULT GetZoneCustomPolicy(
1312 [in] DWORD dwZone,
1313 [in] REFGUID guidKey,
1314 [out] BYTE **ppPolicy,
1315 [out] DWORD* pcbPolicy,
1316 [in] URLZONEREG ulrZoneReg);
1317
1318 HRESULT SetZoneCustomPolicy(
1319 [in] DWORD dwZone,
1320 [in] REFGUID guidKey,
1321 [in] BYTE *ppPolicy,
1322 [in] DWORD pcbPolicy,
1323 [in] URLZONEREG ulrZoneReg);
1324
1325 HRESULT GetZoneActionPolicy(
1326 [in] DWORD dwZone,
1327 [in] DWORD dwAction,
1328 [out] BYTE* pPolicy,
1329 [in] DWORD cbPolicy,
1330 [in] URLZONEREG urlZoneReg);
1331
1332 HRESULT SetZoneActionPolicy(
1333 [in] DWORD dwZone,
1334 [in] DWORD dwAction,
1335 [in] BYTE* pPolicy,
1336 [in] DWORD cbPolicy,
1337 [in] URLZONEREG urlZoneReg);
1338
1339 HRESULT PromptAction(
1340 [in] DWORD dwAction,
1341 [in] HWND hwndParent,
1342 [in] LPCWSTR pwszUrl,
1343 [in] LPCWSTR pwszText,
1344 [in] DWORD dwPromptFlags );
1345
1346 HRESULT LogAction(
1347 [in] DWORD dwAction,
1348 [in] LPCWSTR pwszUrl,
1349 [in] LPCWSTR pwszText,
1350 [in] DWORD dwLogFlags);
1351
1352 HRESULT CreateZoneEnumerator(
1353 [out] DWORD* pdwEnum,
1354 [out] DWORD* pdwCount,
1355 [in] DWORD dwFlags);
1356
1357 HRESULT GetZoneAt(
1358 [in] DWORD dwEnum,
1359 [in] DWORD dwIndex,
1360 [out] DWORD* pdwZone);
1361
1362 HRESULT DestroyZoneEnumerator(
1363 [in] DWORD dwEnum);
1364
1365 HRESULT CopyTemplatePoliciesToZone(
1366 [in] DWORD dwTemplate,
1367 [in] DWORD dwZone,
1368 [in] DWORD dwReserved);
1369}
1370
1371/*****************************************************************************
1372 * IInternetZoneManagerEx interface
1373 */
1374[
1375 local,
1376 object,
1377 uuid(A4C23339-8E06-431E-9BF4-7E711C085648),
1378 pointer_default(unique)
1379]
1380interface IInternetZoneManagerEx : IInternetZoneManager
1381{
1382 HRESULT GetZoneActionPolicyEx(
1383 [in] DWORD dwZone,
1384 [in] DWORD dwAction,
1385 [out] BYTE* pPolicy,
1386 [in] DWORD cbPolicy,
1387 [in] URLZONEREG urlZoneReg,
1388 [in] DWORD dwFlags);
1389
1390 HRESULT SetZoneActionPolicyEx(
1391 [in] DWORD dwZone,
1392 [in] DWORD dwAction,
1393 [in] BYTE* pPolicy,
1394 [in] DWORD cbPolicy,
1395 [in] URLZONEREG urlZoneReg,
1396 [in] DWORD dwFlags);
1397
1398}
1399
1400/*****************************************************************************
1401 * IInternetZoneManagerEx2 interface
1402 */
1403
1404cpp_quote("#define SECURITY_IE_STATE_GREEN 0")
1405cpp_quote("#define SECURITY_IE_STATE_RED 1")
1406
1407[
1408 local,
1409 object,
1410 uuid(EDC17559-DD5D-4846-8EEF-8BECBA5A4ABF),
1411 pointer_default(unique)
1412]
1413interface IInternetZoneManagerEx2 : IInternetZoneManagerEx
1414{
1415 HRESULT GetZoneAttributesEx(
1416 [in] DWORD dwZone,
1417 [in, out, unique] ZONEATTRIBUTES* pZoneAttributes,
1418 [in] DWORD dwFlags);
1419
1420 HRESULT GetZoneSecurityState(
1421 [in] DWORD dwZoneIndex,
1422 [in] BOOL fRespectPolicy,
1423 [in, out] LPDWORD pdwState,
1424 [in, out] BOOL *pfPolicyEncountered);
1425
1426 HRESULT GetIESecurityState(
1427 [in] BOOL fRespectPolicy,
1428 [in, out] LPDWORD pdwState,
1429 [in, out] BOOL *pfPolicyEncountered,
1430 [in] BOOL fNoCache);
1431
1432 HRESULT FixInsecureSettings(void);
1433
1434}
1435
1436
1437typedef struct _tagSOFTDISTINFO
1438{
1439 ULONG cbSize;
1440 DWORD dwFlags;
1441 DWORD dwAdState;
1442 LPWSTR szTitle;
1443 LPWSTR szAbstract;
1444 LPWSTR szHREF;
1445 DWORD dwInstalledVersionMS;
1446 DWORD dwInstalledVersionLS;
1447 DWORD dwUpdateVersionMS;
1448 DWORD dwUpdateVersionLS;
1449 DWORD dwAdvertisedVersionMS;
1450 DWORD dwAdvertisedVersionLS;
1451 DWORD dwReserved;
1452} SOFTDISTINFO, *LPSOFTDISTINFO;
1453
1454typedef struct _tagCODEBASEHOLD
1455{
1456 DWORD cbSize;
1457 LPWSTR szDistUnit;
1458 LPWSTR szCodeBase;
1459 DWORD dwVersionMS;
1460 DWORD dwVersionLS;
1461 DWORD dwStyle;
1462} CODEBASEHOLD, *LPCODEBASEHOLD;
1463
1464[
1465 local,
1466 object,
1467 uuid(b15b8dc1-c7e1-11d0-8680-00aa00bdcb71),
1468 pointer_default(unique)
1469]
1470interface ISoftDistExt : IUnknown
1471{
1472 HRESULT ProcessSoftDist(
1473 [in] LPCWSTR szCDFURL,
1474 [in] IXMLElement *pSoftDistElement,
1475 [in, out] LPSOFTDISTINFO lpsdi );
1476
1477 HRESULT GetFirstCodeBase(
1478 [in] LPWSTR *szCodeBase,
1479 [in] LPDWORD dwMaxSize );
1480
1481 HRESULT GetNextCodeBase(
1482 [in] LPWSTR *szCodeBase,
1483 [in] LPDWORD dwMaxSize );
1484
1485 HRESULT AsyncInstallDistributionUnit(
1486 [in] IBindCtx *pbc,
1487 [in] LPVOID lpReserved,
1488 [in] DWORD flags,
1489 [in] LPCODEBASEHOLD lpcbh);
1490}
1491
1492typedef enum _tagINTERNETFEATURELIST
1493{
1494 FEATURE_OBJECT_CACHING,
1495 FEATURE_ZONE_ELEVATION,
1496 FEATURE_MIME_HANDLING,
1497 FEATURE_MIME_SNIFFING,
1498 FEATURE_WINDOW_RESTRICTIONS,
1499 FEATURE_WEBOC_POPUPMANAGEMENT,
1500 FEATURE_BEHAVIORS,
1501 FEATURE_DISABLE_MK_PROTOCOL,
1502 FEATURE_LOCALMACHINE_LOCKDOWN,
1503 FEATURE_SECURITYBAND,
1504 FEATURE_RESTRICT_ACTIVEXINSTALL,
1505 FEATURE_VALIDATE_NAVIGATE_URL,
1506 FEATURE_RESTRICT_FILEDOWNLOAD,
1507 FEATURE_ADDON_MANAGEMENT,
1508 FEATURE_PROTOCOL_LOCKDOWN,
1509 FEATURE_HTTP_USERNAME_PASSWORD_DISABLE,
1510 FEATURE_SAFE_BINDTOOBJECT,
1511 FEATURE_UNC_SAVEDFILECHECK,
1512 FEATURE_GET_URL_DOM_FILEPATH_UNENCODED,
1513 FEATURE_TABBED_BROWSING,
1514 FEATURE_SSLUX,
1515 FEATURE_DISABLE_NAVIGATION_SOUNDS,
1516 FEATURE_DISABLE_LEGACY_COMPRESSION,
1517 FEATURE_FORCE_ADDR_AND_STATUS,
1518 FEATURE_XMLHTTP,
1519 FEATURE_DISABLE_TELNET_PROTOCOL,
1520 FEATURE_FEEDS,
1521 FEATURE_BLOCK_INPUT_PROMPTS,
1522 FEATURE_DOMSTORAGE,
1523 FEATURE_XDOMAINREQUEST,
1524 FEATURE_DATAURI,
1525 FEATURE_AJAX_CONNECTIONSERVICES,
1526 FEATURE_ENTRY_COUNT
1527} INTERNETFEATURELIST;
1528
1529typedef struct _tagPROTOCOLFILTERDATA {
1530 DWORD cbSize;
1531 IInternetProtocolSink *pProtocolSink;
1532 IInternetProtocol *pProtocol;
1533 IUnknown *pUnk;
1534 DWORD dwFilterFlags;
1535} PROTOCOLFILTERDATA;
1536
1537/*****************************************************************************
1538 * IUri interface
1539 */
1540[
1541 local,
1542 object,
1543 uuid(a39ee748-6a27-4817-a6f2-13914bef5890),
1544 pointer_default(unique)
1545]
1546interface IUri : IUnknown
1547{
1548 typedef enum
1549 {
1550 Uri_PROPERTY_ABSOLUTE_URI = 0,
1551 Uri_PROPERTY_STRING_START = Uri_PROPERTY_ABSOLUTE_URI,
1552 Uri_PROPERTY_AUTHORITY = 1,
1553 Uri_PROPERTY_DISPLAY_URI = 2,
1554 Uri_PROPERTY_DOMAIN = 3,
1555 Uri_PROPERTY_EXTENSION = 4,
1556 Uri_PROPERTY_FRAGMENT = 5,
1557 Uri_PROPERTY_HOST = 6,
1558 Uri_PROPERTY_PASSWORD = 7,
1559 Uri_PROPERTY_PATH = 8,
1560 Uri_PROPERTY_PATH_AND_QUERY = 9,
1561 Uri_PROPERTY_QUERY = 10,
1562 Uri_PROPERTY_RAW_URI = 11,
1563 Uri_PROPERTY_SCHEME_NAME = 12,
1564 Uri_PROPERTY_USER_INFO = 13,
1565 Uri_PROPERTY_USER_NAME = 14,
1566 Uri_PROPERTY_STRING_LAST = Uri_PROPERTY_USER_NAME,
1567 Uri_PROPERTY_HOST_TYPE = 15,
1568 Uri_PROPERTY_DWORD_START = Uri_PROPERTY_HOST_TYPE,
1569 Uri_PROPERTY_PORT = 16,
1570 Uri_PROPERTY_SCHEME = 17,
1571 Uri_PROPERTY_ZONE = 18,
1572 Uri_PROPERTY_DWORD_LAST = Uri_PROPERTY_ZONE
1573 } Uri_PROPERTY;
1574
1575 HRESULT GetPropertyBSTR(
1576 [in] Uri_PROPERTY uriProp,
1577 [out] BSTR *pbstrProperty,
1578 [in] DWORD dwFlags);
1579
1580 HRESULT GetPropertyLength(
1581 [in] Uri_PROPERTY uriProp,
1582 [out] DWORD *pcchProperty,
1583 [in] DWORD dwFlags);
1584
1585 HRESULT GetPropertyDWORD(
1586 [in] Uri_PROPERTY uriProp,
1587 [out] DWORD *pdwProperty,
1588 [in] DWORD dwFlags);
1589
1590 HRESULT HasProperty(
1591 [in] Uri_PROPERTY uriProp,
1592 [out] BOOL *pfHasProperty);
1593
1594 HRESULT GetAbsoluteUri(
1595 [out] BSTR *pbstrAbsoluteUri);
1596
1597 HRESULT GetAuthority(
1598 [out] BSTR *pbstrAuthority);
1599
1600 HRESULT GetDisplayUri(
1601 [out] BSTR *pbstrDisplayString);
1602
1603 HRESULT GetDomain(
1604 [out] BSTR *pbstrDomain);
1605
1606 HRESULT GetExtension(
1607 [out] BSTR *pbstrExtension);
1608
1609 HRESULT GetFragment(
1610 [out] BSTR *pbstrFragment);
1611
1612 HRESULT GetHost(
1613 [out] BSTR *pbstrHost);
1614
1615 HRESULT GetPassword(
1616 [out] BSTR *pbstrPassword);
1617
1618 HRESULT GetPath(
1619 [out] BSTR *pbstrPath);
1620
1621 HRESULT GetPathAndQuery(
1622 [out] BSTR *pbstrPathAndQuery);
1623
1624 HRESULT GetQuery(
1625 [out] BSTR *pbstrQuery);
1626
1627 HRESULT GetRawUri(
1628 [out] BSTR *pbstrRawUri);
1629
1630 HRESULT GetSchemeName(
1631 [out] BSTR *pbstrSchemeName);
1632
1633 HRESULT GetUserInfo(
1634 [out] BSTR *pbstrUserInfo);
1635
1636 HRESULT GetUserName(
1637 [out] BSTR *pbstrUserName);
1638
1639 HRESULT GetHostType(
1640 [out] DWORD *pdwHostType);
1641
1642 HRESULT GetPort(
1643 [out] DWORD *pdwPort);
1644
1645 HRESULT GetScheme(
1646 [out] DWORD *pdwScheme);
1647
1648 HRESULT GetZone(
1649 [out] DWORD *pdwZone);
1650
1651 HRESULT GetProperties(
1652 [out] LPDWORD pdwFlags);
1653
1654 HRESULT IsEqual(
1655 [in] IUri *pUri,
1656 [out] BOOL *pfEqual);
1657}
1658
1659cpp_quote("HRESULT WINAPI CreateUri(LPCWSTR,DWORD,DWORD_PTR,IUri**);")
1660cpp_quote("HRESULT WINAPI CreateUriWithFragment(LPCWSTR,LPCWSTR,DWORD,DWORD_PTR,IUri**);")
1661cpp_quote("HRESULT WINAPI CreateUriFromMultiByteString(LPCSTR,DWORD,DWORD,DWORD,DWORD_PTR,IUri**);")
1662
1663cpp_quote("#define Uri_HAS_ABSOLUTE_URI (1 << Uri_PROPERTY_ABSOLUTE_URI)")
1664cpp_quote("#define Uri_HAS_AUTHORITY (1 << Uri_PROPERTY_AUTHORITY)")
1665cpp_quote("#define Uri_HAS_DISPLAY_URI (1 << Uri_PROPERTY_DISPLAY_URI)")
1666cpp_quote("#define Uri_HAS_DOMAIN (1 << Uri_PROPERTY_DOMAIN)")
1667cpp_quote("#define Uri_HAS_EXTENSION (1 << Uri_PROPERTY_EXTENSION)")
1668cpp_quote("#define Uri_HAS_FRAGMENT (1 << Uri_PROPERTY_FRAGMENT)")
1669cpp_quote("#define Uri_HAS_HOST (1 << Uri_PROPERTY_HOST)")
1670cpp_quote("#define Uri_HAS_PASSWORD (1 << Uri_PROPERTY_PASSWORD)")
1671cpp_quote("#define Uri_HAS_PATH (1 << Uri_PROPERTY_PATH)")
1672cpp_quote("#define Uri_HAS_QUERY (1 << Uri_PROPERTY_QUERY)")
1673cpp_quote("#define Uri_HAS_RAW_URI (1 << Uri_PROPERTY_RAW_URI)")
1674cpp_quote("#define Uri_HAS_SCHEME_NAME (1 << Uri_PROPERTY_SCHEME_NAME)")
1675cpp_quote("#define Uri_HAS_USER_NAME (1 << Uri_PROPERTY_USER_NAME)")
1676cpp_quote("#define Uri_HAS_PATH_AND_QUERY (1 << Uri_PROPERTY_PATH_AND_QUERY)")
1677cpp_quote("#define Uri_HAS_USER_INFO (1 << Uri_PROPERTY_USER_INFO)")
1678cpp_quote("#define Uri_HAS_HOST_TYPE (1 << Uri_PROPERTY_HOST_TYPE)")
1679cpp_quote("#define Uri_HAS_PORT (1 << Uri_PROPERTY_PORT)")
1680cpp_quote("#define Uri_HAS_SCHEME (1 << Uri_PROPERTY_SCHEME)")
1681cpp_quote("#define Uri_HAS_ZONE (1 << Uri_PROPERTY_ZONE)")
1682
1683cpp_quote("#define Uri_CREATE_ALLOW_RELATIVE 0x0001")
1684cpp_quote("#define Uri_CREATE_ALLOW_IMPLICIT_WILDCARD_SCHEME 0x0002")
1685cpp_quote("#define Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME 0x0004")
1686cpp_quote("#define Uri_CREATE_NOFRAG 0x0008")
1687cpp_quote("#define Uri_CREATE_NO_CANONICALIZE 0x0010")
1688cpp_quote("#define Uri_CREATE_CANONICALIZE 0x0100")
1689cpp_quote("#define Uri_CREATE_FILE_USE_DOS_PATH 0x0020")
1690cpp_quote("#define Uri_CREATE_DECODE_EXTRA_INFO 0x0040")
1691cpp_quote("#define Uri_CREATE_NO_DECODE_EXTRA_INFO 0x0080")
1692cpp_quote("#define Uri_CREATE_CRACK_UNKNOWN_SCHEMES 0x0200")
1693cpp_quote("#define Uri_CREATE_NO_CRACK_UNKNOWN_SCHEMES 0x0400")
1694cpp_quote("#define Uri_CREATE_PRE_PROCESS_HTML_URI 0x0800")
1695cpp_quote("#define Uri_CREATE_NO_PRE_PROCESS_HTML_URI 0x1000")
1696cpp_quote("#define Uri_CREATE_IE_SETTINGS 0x2000")
1697cpp_quote("#define Uri_CREATE_NO_IE_SETTINGS 0x4000")
1698cpp_quote("#define Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS 0x8000")
1699
1700cpp_quote("#define Uri_DISPLAY_NO_FRAGMENT 0x00000001")
1701cpp_quote("#define Uri_PUNYCODE_IDN_HOST 0x00000002")
1702cpp_quote("#define Uri_DISPLAY_IDN_HOST 0x00000004")
1703
1704cpp_quote("#define Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8 0x00000001")
1705cpp_quote("#define Uri_ENCODING_USER_INFO_AND_PATH_IS_CP 0x00000002")
1706cpp_quote("#define Uri_ENCODING_HOST_IS_IDN 0x00000004")
1707cpp_quote("#define Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8 0x00000008")
1708cpp_quote("#define Uri_ENCODING_HOST_IS_PERCENT_ENCODED_CP 0x00000010")
1709cpp_quote("#define Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8 0x00000020")
1710cpp_quote("#define Uri_ENCODING_QUERY_AND_FRAGMENT_IS_CP 0x00000040")
1711cpp_quote("#define Uri_ENCODING_RFC (Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8|Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8|Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8)")
1712
1713cpp_quote("#define UriBuilder_USE_ORIGINAL_FLAGS 0x00000001")
1714
1715/*****************************************************************************
1716 * IUriContainer interface
1717 */
1718[
1719 local,
1720 object,
1721 uuid(a158a630-ed6f-45fb-b987-f68676f57752),
1722 pointer_default(unique)
1723]
1724interface IUriContainer : IUnknown
1725{
1726 HRESULT GetIUri([out] IUri **ppIUri);
1727}
1728
1729/*****************************************************************************
1730 * IUriBuilder interface
1731 */
1732[
1733 local,
1734 object,
1735 uuid(4221b2e1-8955-46c0-bd5b-de9897565de7),
1736 pointer_default(unique)
1737]
1738interface IUriBuilder: IUnknown
1739{
1740 HRESULT CreateUriSimple(
1741 [in] DWORD dwAllowEncodingPropertyMask,
1742 [in] DWORD_PTR dwReserved,
1743 [out] IUri **ppIUri);
1744
1745 HRESULT CreateUri(
1746 [in] DWORD dwCreateFlags,
1747 [in] DWORD dwAllowEncodingPropertyMask,
1748 [in] DWORD_PTR dwReserved,
1749 [out] IUri **ppIUri);
1750
1751 HRESULT CreateUriWithFlags(
1752 [in] DWORD dwCreateFlags,
1753 [in] DWORD dwUriBuilderFlags,
1754 [in] DWORD dwAllowEncodingPropertyMask,
1755 [in] DWORD_PTR dwReserved,
1756 [out] IUri **ppIUri);
1757
1758 HRESULT GetIUri(
1759 [out] IUri **ppIUri);
1760
1761 HRESULT SetIUri(
1762 [in, unique] IUri *pIUri);
1763
1764 HRESULT GetFragment(
1765 [out] DWORD *pcchFragment,
1766 [out] LPCWSTR *ppwzFragment);
1767
1768 HRESULT GetHost(
1769 [out] DWORD *pcchHost,
1770 [out] LPCWSTR *ppwzHost);
1771
1772 HRESULT GetPassword(
1773 [out] DWORD *pcchPassword,
1774 [out] LPCWSTR *ppwzPassword);
1775
1776 HRESULT GetPath(
1777 [out] DWORD *pcchPath,
1778 [out] LPCWSTR *ppwzPath);
1779
1780 HRESULT GetPort(
1781 [out] BOOL *pfHasPort,
1782 [out] DWORD *pdwPort);
1783
1784 HRESULT GetQuery(
1785 [out] DWORD *pcchQuery,
1786 [out] LPCWSTR *ppwzQuery);
1787
1788 HRESULT GetSchemeName(
1789 [out] DWORD *pcchSchemeName,
1790 [out] LPCWSTR *ppwzSchemeName);
1791
1792 HRESULT GetUserName(
1793 [out] DWORD *pcchUserName,
1794 [out] LPCWSTR *ppwzUserName);
1795
1796 HRESULT SetFragment(
1797 [in] LPCWSTR pwzNewValue);
1798
1799 HRESULT SetHost(
1800 [in] LPCWSTR pwzNewValue);
1801
1802 HRESULT SetPassword(
1803 [in] LPCWSTR pwzNewValue);
1804
1805 HRESULT SetPath(
1806 [in] LPCWSTR pwzNewValue);
1807
1808 HRESULT SetPort(
1809 [in] BOOL fHasPort,
1810 [in] DWORD dwNewValue);
1811
1812 HRESULT SetQuery(
1813 [in] LPCWSTR pwzNewValue);
1814
1815 HRESULT SetSchemeName(
1816 [in] LPCWSTR pwzNewValue);
1817
1818 HRESULT SetUserName(
1819 [in] LPCWSTR pwzNewValue);
1820
1821 HRESULT RemoveProperties(
1822 [in] DWORD dwPropertyMask);
1823
1824 HRESULT HasBeenModified(
1825 [out] BOOL *pfModified);
1826};
1827
1828/*****************************************************************************
1829 * IInternetProtocolEx interface
1830 */
1831[
1832 local,
1833 object,
1834 uuid(c7a98e66-1010-492c-a1c8-c809e1f75905),
1835 pointer_default(unique)
1836]
1837interface IInternetProtocolEx : IInternetProtocol
1838{
1839 HRESULT StartEx(
1840 [in] IUri *pUri,
1841 [in] IInternetProtocolSink *pOIProtSink,
1842 [in] IInternetBindInfo *pOIBindInfo,
1843 [in] DWORD grfPI,
1844 [in] HANDLE *dwReserved);
1845}
1846
1847cpp_quote("#define CONFIRMSAFETYACTION_LOADOBJECT 0x00000001")
1848
1849struct CONFIRMSAFETY
1850{
1851 CLSID clsid;
1852 IUnknown *pUnk;
1853 DWORD dwFlags;
1854};
1855
1856cpp_quote("EXTERN_C const GUID GUID_CUSTOM_CONFIRMOBJECTSAFETY;")
1857
1858cpp_quote("DEFINE_GUID(CLSID_InternetSecurityManager, 0x7b8a2d94, 0x0ac9, 0x11d1, 0x89, 0x6c, 0x00, 0xc0, 0x4f, 0xB6, 0xbf, 0xc4);")
1859cpp_quote("DEFINE_GUID(CLSID_InternetZoneManager, 0x7B8A2D95, 0x0AC9, 0x11D1, 0x89, 0x6C, 0x00, 0xC0, 0x4F, 0xB6, 0xBF, 0xC4);")
1860cpp_quote("DEFINE_GUID(IID_IAsyncMoniker, 0x79EAC9D3, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1861cpp_quote("DEFINE_GUID(IID_IAsyncBindCtx, 0x79EAC9D4, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1862cpp_quote("DEFINE_GUID(CLSID_StdURLMoniker, 0x79EAC9E0, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1863cpp_quote("DEFINE_GUID(CLSID_DeCompMimeFilter, 0x8f6b0360, 0xb80d, 0x11d0, 0xa9,0xb3, 0x00,0x60,0x97,0x94,0x23,0x11);")
1864
1865cpp_quote("DEFINE_GUID(CLSID_CdlProtocol, 0x3dd53d40, 0x7b8b, 0x11D0, 0xb0,0x13, 0x00,0xaa,0x00,0x59,0xce,0x02);")
1866cpp_quote("DEFINE_GUID(CLSID_FileProtocol, 0x79EAC9E7, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1867cpp_quote("DEFINE_GUID(CLSID_FtpProtocol, 0x79EAC9E3, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1868cpp_quote("DEFINE_GUID(CLSID_GopherProtocol, 0x79EAC9E4, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1869cpp_quote("DEFINE_GUID(CLSID_HttpProtocol, 0x79EAC9E2, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1870cpp_quote("DEFINE_GUID(CLSID_HttpSProtocol, 0x79EAC9E5, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1871cpp_quote("DEFINE_GUID(CLSID_MkProtocol, 0x79EAC9E6, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1872
1873cpp_quote("#define URLMON_OPTION_USERAGENT 0x10000001")
1874cpp_quote("#define URLMON_OPTION_USERAGENT_REFRESH 0x10000002")
1875cpp_quote("#define URLMON_OPTION_URL_ENCODING 0x10000004")
1876
1877cpp_quote("#define MK_S_ASYNCHRONOUS _HRESULT_TYPEDEF_(0x000401E8)")
1878cpp_quote("#ifndef S_ASYNCHRONOUS")
1879cpp_quote("#define S_ASYNCHRONOUS MK_S_ASYNCHRONOUS")
1880cpp_quote("#endif")
1881
1882cpp_quote("#define INET_E_ERROR_FIRST _HRESULT_TYPEDEF_(0x800C0002)")
1883cpp_quote("#define INET_E_INVALID_URL _HRESULT_TYPEDEF_(0x800C0002)")
1884cpp_quote("#define INET_E_NO_SESSION _HRESULT_TYPEDEF_(0x800C0003)")
1885cpp_quote("#define INET_E_CANNOT_CONNECT _HRESULT_TYPEDEF_(0x800C0004)")
1886cpp_quote("#define INET_E_RESOURCE_NOT_FOUND _HRESULT_TYPEDEF_(0x800C0005)")
1887cpp_quote("#define INET_E_OBJECT_NOT_FOUND _HRESULT_TYPEDEF_(0x800C0006)")
1888cpp_quote("#define INET_E_DATA_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x800C0007)")
1889cpp_quote("#define INET_E_DOWNLOAD_FAILURE _HRESULT_TYPEDEF_(0x800C0008)")
1890cpp_quote("#define INET_E_AUTHENTICATION_REQUIRED _HRESULT_TYPEDEF_(0x800C0009)")
1891cpp_quote("#define INET_E_NO_VALID_MEDIA _HRESULT_TYPEDEF_(0x800C000A)")
1892cpp_quote("#define INET_E_CONNECTION_TIMEOUT _HRESULT_TYPEDEF_(0x800C000B)")
1893cpp_quote("#define INET_E_INVALID_REQUEST _HRESULT_TYPEDEF_(0x800C000C)")
1894cpp_quote("#define INET_E_UNKNOWN_PROTOCOL _HRESULT_TYPEDEF_(0x800C000D)")
1895cpp_quote("#define INET_E_SECURITY_PROBLEM _HRESULT_TYPEDEF_(0x800C000E)")
1896cpp_quote("#define INET_E_CANNOT_LOAD_DATA _HRESULT_TYPEDEF_(0x800C000F)")
1897cpp_quote("#define INET_E_CANNOT_INSTANTIATE_OBJECT _HRESULT_TYPEDEF_(0x800C0010)")
1898cpp_quote("#define INET_E_USE_DEFAULT_PROTOCOLHANDLER _HRESULT_TYPEDEF_(0x800C0011)")
1899cpp_quote("#define INET_E_QUERYOPTION_UNKNOWN _HRESULT_TYPEDEF_(0x800C0013)")
1900cpp_quote("#define INET_E_REDIRECT_FAILED _HRESULT_TYPEDEF_(0x800C0014)")
1901cpp_quote("#define INET_E_REDIRECT_TO_DIR _HRESULT_TYPEDEF_(0x800C0015)")
1902cpp_quote("#define INET_E_CANNOT_LOCK_REQUEST _HRESULT_TYPEDEF_(0x800C0016)")
1903cpp_quote("#define INET_E_ERROR_LAST INET_E_REDIRECT_TO_DIR")
1904cpp_quote("#define INET_E_DEFAULT_ACTION INET_E_USE_DEFAULT_PROTOCOLHANDLER")
1905
1906cpp_quote("HRESULT WINAPI CoGetClassObjectFromURL(REFCLSID, LPCWSTR, DWORD, DWORD, LPCWSTR, LPBINDCTX, DWORD, LPVOID, REFIID, LPVOID*);")
1907cpp_quote("HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk);")
1908cpp_quote("HRESULT WINAPI CreateURLMonikerEx(IMoniker*,LPCWSTR,IMoniker**,DWORD);")
1909cpp_quote("HRESULT WINAPI CreateURLMonikerEx2(IMoniker*,IUri*,IMoniker**,DWORD);")
1910cpp_quote("HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved);")
1911cpp_quote("HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD);")
1912cpp_quote("HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN,LPCSTR,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1913cpp_quote("HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN,LPCWSTR,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1914cpp_quote("HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN,LPCSTR,LPSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1915cpp_quote("HRESULT WINAPI URLDownloadToCacheFileW(LPUNKNOWN,LPCWSTR,LPWSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1916cpp_quote("HRESULT WINAPI CoInternetGetSession(DWORD,IInternetSession**,DWORD);")
1917cpp_quote("HRESULT WINAPI MkParseDisplayNameEx(IBindCtx*,LPCWSTR,ULONG*,IMoniker**);")
1918cpp_quote("HRESULT WINAPI IsAsyncMoniker(IMoniker* pmk);")
1919cpp_quote("HRESULT WINAPI CreateAsyncBindCtx(DWORD, IBindStatusCallback*, IEnumFORMATETC*, IBindCtx**);")
1920cpp_quote("HRESULT WINAPI CreateAsyncBindCtxEx(IBindCtx*,DWORD,IBindStatusCallback*,IEnumFORMATETC*,IBindCtx**,DWORD);")
1921cpp_quote("HRESULT WINAPI CoInternetCreateSecurityManager(IServiceProvider*,IInternetSecurityManager**,DWORD);")
1922cpp_quote("HRESULT WINAPI CoInternetCombineUrl(LPCWSTR,LPCWSTR,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1923cpp_quote("HRESULT WINAPI CoInternetCompareUrl(LPCWSTR,LPCWSTR,DWORD);")
1924cpp_quote("HRESULT WINAPI CoInternetCreateZoneManager(IServiceProvider*, IInternetZoneManager**, DWORD);")
1925cpp_quote("HRESULT WINAPI CoInternetParseUrl(LPCWSTR,PARSEACTION,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1926cpp_quote("HRESULT WINAPI CoInternetQueryInfo(LPCWSTR,QUERYOPTION,DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1927cpp_quote("HRESULT WINAPI CoInternetSetFeatureEnabled(INTERNETFEATURELIST,DWORD,BOOL);")
1928cpp_quote("HRESULT WINAPI CoInternetGetSecurityUrl(LPCWSTR,LPWSTR*,PSUACTION,DWORD);")
1929cpp_quote("HRESULT WINAPI CreateFormatEnumerator(UINT,FORMATETC*,IEnumFORMATETC**);")
1930cpp_quote("HRESULT WINAPI GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi);")
1931cpp_quote("HRESULT WINAPI FaultInIEFeature(HWND,uCLSSPEC*,QUERYCONTEXT*,DWORD);")
1932cpp_quote("HRESULT WINAPI FindMimeFromData(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,LPWSTR*,DWORD);")
1933cpp_quote("HRESULT WINAPI GetClassFileOrMime(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,CLSID*);")
1934cpp_quote("HRESULT WINAPI HlinkGoBack(IUnknown*);")
1935cpp_quote("HRESULT WINAPI HlinkGoForward(IUnknown*);")
1936cpp_quote("HRESULT WINAPI HlinkNavigateMoniker(IUnknown*,IMoniker*);")
1937cpp_quote("HRESULT WINAPI HlinkNavigateString(IUnknown*,LPCWSTR);")
1938cpp_quote("HRESULT WINAPI HlinkSimpleNavigateToMoniker(IMoniker*,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1939cpp_quote("HRESULT WINAPI HlinkSimpleNavigateToString(LPCWSTR,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1940cpp_quote("HRESULT WINAPI IsValidURL(LPBC,LPCWSTR,DWORD);")
1941cpp_quote("HRESULT WINAPI ObtainUserAgentString(DWORD,LPSTR,DWORD*);")
1942cpp_quote("HRESULT WINAPI RegisterFormatEnumerator(LPBC,IEnumFORMATETC*,DWORD);")
1943cpp_quote("HRESULT WINAPI RevokeFormatEnumerator(LPBC,IEnumFORMATETC*);")
1944cpp_quote("HRESULT WINAPI RevokeBindStatusCallback(LPBC,IBindStatusCallback*);")
1945cpp_quote("HRESULT WINAPI CopyStgMedium(const STGMEDIUM*,STGMEDIUM*);")
1946cpp_quote("void WINAPI ReleaseBindInfo(BINDINFO*);")
1947cpp_quote("HRESULT WINAPI UrlMkGetSessionOption(DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1948cpp_quote("HRESULT WINAPI UrlMkSetSessionOption(DWORD,LPVOID,DWORD,DWORD);")
1949cpp_quote("HRESULT WINAPI URLOpenStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1950cpp_quote("HRESULT WINAPI URLOpenStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1951cpp_quote("HRESULT WINAPI URLOpenPullStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1952cpp_quote("HRESULT WINAPI URLOpenPullStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1953cpp_quote("HRESULT WINAPI URLOpenBlockingStreamA(LPUNKNOWN,LPCSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
1954cpp_quote("HRESULT WINAPI URLOpenBlockingStreamW(LPUNKNOWN,LPCWSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
1955
1956cpp_quote("#define OInetCombineUrl CoInternetCombineUrl")
1957cpp_quote("#define OInetCompareUrl CoInternetCompareUrl")
1958cpp_quote("#define OInetGetSession CoInternetGetSession")
1959
1960cpp_quote("BOOL WINAPI IsLoggingEnabledA(LPCSTR);")
1961cpp_quote("BOOL WINAPI IsLoggingEnabledW(LPCWSTR);")
1962cpp_quote("#define IsLoggingEnabled WINELIB_NAME_AW(IsLoggingEnabled)")
1963
1964cpp_quote("#define MKSYS_URLMONIKER 6")
1965cpp_quote("#define URL_MK_LEGACY 0")
1966cpp_quote("#define URL_MK_UNIFORM 1")
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