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