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