wined3d: Store the bumpmap ARB constants in ARB structures.
[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  * IAuthenticate interface
315  */
316 [
317     local,
318     object,
319     uuid(79EAC9D0-BAf9-11CE-8C82-00AA004BA90B),
320     pointer_default(unique)
321 ]
322 interface IAuthenticate : IUnknown
323 {
324     typedef [unique] IAuthenticate *LPAUTHENTICATION;
325
326     HRESULT Authenticate(
327         [out] HWND* phwnd,
328         [out] LPWSTR *pszUsername,
329         [out] LPWSTR *pszPassword);
330 }
331
332 /*****************************************************************************
333  * IHttpNegotiate interface
334  */
335 [
336     object,
337     uuid(79EAC9D2-BAF9-11CE-8C82-00AA004BA90B),
338     pointer_default(unique)
339 ]
340 interface IHttpNegotiate : IUnknown
341 {
342     typedef [unique] IHttpNegotiate *LPHTTPNEGOTIATE;
343
344     HRESULT BeginningTransaction(
345         [in] LPCWSTR szURL,
346         [in, unique] LPCWSTR szHeaders,
347         [in] DWORD dwReserved,
348         [out] LPWSTR *pszAdditionalHeaders);
349
350     HRESULT OnResponse(
351         [in] DWORD dwResponseCode,
352         [in, unique] LPCWSTR szResponseHeaders,
353         [in, unique] LPCWSTR szRequestHeaders,
354         [out] LPWSTR *pszAdditionalRequestHeaders);
355 }
356
357 /*****************************************************************************
358  * IHttpNegotiate2 interface
359  */
360 [
361     object,
362     uuid(4F9F9FCB-E0F4-48eb-B7AB-FA2EA9365CB4),
363     pointer_default(unique)
364 ]
365 interface IHttpNegotiate2 : IHttpNegotiate
366 {
367     typedef [unique] IHttpNegotiate2 *LPHTTPNEGOTIATE2;
368
369     HRESULT GetRootSecurityId(
370          [out, size_is(*pcbSecurityId)] BYTE *pbSecurityId,
371          [in, out] DWORD *pcbSecurityId,
372          [in] DWORD_PTR dwReserved);
373 }
374
375 /*****************************************************************************
376  * IBindHost interface
377  */
378 cpp_quote("#define SID_IBindHost IID_IBindHost")
379 cpp_quote("#define SID_SBindHost IID_IBindHost")
380 [
381     object,
382     uuid(fc4801a1-2ba9-11cf-a229-00aa003d7352),
383     pointer_default(unique)
384 ]
385 interface IBindHost : IUnknown
386 {
387     typedef [unique] IBindHost *LPBINDHOST;
388
389     HRESULT CreateMoniker(
390         [in] LPOLESTR szName,
391         [in] IBindCtx *pBC,
392         [out] IMoniker** ppmk,
393         [in] DWORD dwReserved);
394
395     [local]
396     HRESULT MonikerBindToStorage(
397         [in] IMoniker *pMk,
398         [in] IBindCtx *pBC,
399         [in] IBindStatusCallback *pBSC,
400         [in] REFIID riid,
401         [out] void **ppvObj);
402
403     [call_as(MonikerBindToStorage)]
404     HRESULT RemoteMonikerBindToStorage(
405         [in, unique] IMoniker *pMk,
406         [in, unique] IBindCtx *pBC,
407         [in, unique] IBindStatusCallback *pBSC,
408         [in] REFIID riid,
409         [out, iid_is(riid)] IUnknown **ppvObj);
410
411     [local]
412     HRESULT MonikerBindToObject(
413         [in] IMoniker *pMk,
414         [in] IBindCtx *pBC,
415         [in] IBindStatusCallback *pBSC,
416         [in] REFIID riid,
417         [out] void **ppvObj);
418
419     [call_as(MonikerBindToObject)]
420     HRESULT RemoteMonikerBindToObject(
421         [in, unique] IMoniker *pMk,
422         [in, unique] IBindCtx *pBC,
423         [in, unique] IBindStatusCallback *pBSC,
424         [in] REFIID riid,
425         [out, iid_is(riid)] IUnknown **ppvObj);
426 }
427
428
429 /*****************************************************************************
430  * IWinInetInfo interface
431  */
432 [
433     object,
434     uuid(79eac9d6-bafa-11ce-8c82-00aa004ba90b),
435     pointer_default(unique)
436 ]
437 interface IWinInetInfo : IUnknown
438 {
439     typedef [unique] IWinInetInfo *LPWININETINFO;
440
441     [local]
442     HRESULT QueryOption(
443         [in] DWORD dwOption,
444         [in, out, size_is(*pcbBuf)] LPVOID pBuffer,
445         [in, out] DWORD *pcbBuf);
446
447     [call_as(QueryOption)]
448     HRESULT RemoteQueryOption(
449         [in] DWORD  dwOption,
450         [in, out, size_is(*pcbBuf)] BYTE *pBuffer,
451         [in, out] DWORD *pcbBuf);
452 }
453
454
455
456 /*****************************************************************************
457  * IWinInetHttpInfo interface
458  */
459 [
460     object,
461     uuid(79eac9d8-bafa-11ce-8c82-00aa004ba90b),
462     pointer_default(unique)
463 ]
464 interface IWinInetHttpInfo : IWinInetInfo
465 {
466     typedef [unique] IWinInetHttpInfo *LPWININETHTTPINFO;
467
468     [local]
469     HRESULT QueryInfo(
470         [in] DWORD dwOption,
471         [in, out,size_is(*pcbBuf)] LPVOID pBuffer,
472         [in, out] DWORD *pcbBuf,
473         [in, out] DWORD *pdwFlags,
474         [in, out] DWORD *pdwReserved);
475
476     [call_as(QueryInfo)]
477     HRESULT RemoteQueryInfo(
478         [in] DWORD dwOption,
479         [in,out,size_is(*pcbBuf)] BYTE *pBuffer,
480         [in, out] DWORD *pcbBuf,
481         [in, out] DWORD *pdwFlags,
482         [in, out] DWORD *pdwReserved);
483 }
484
485 /*****************************************************************************
486  * IWindowForBindingUI interface
487  */
488 [
489     local,
490     object,
491     uuid(79eac9d5-bafa-11ce-8c82-00aa004ba90b),
492     pointer_default(unique)
493 ]
494 interface IWindowForBindingUI : IUnknown
495 {
496     typedef [unique] IWindowForBindingUI *LPWINDOWFORBINDINGUI;
497
498     HRESULT GetWindow(
499         [in] REFGUID rguidReason,
500         [out] HWND *phwnd);
501 }
502
503 /*****************************************************************************
504  * IHttpSecurity interface
505  */
506 [
507     object,
508     uuid(79eac9d7-bafa-11ce-8c82-00aa004ba90b),
509     pointer_default(unique)
510 ]
511 interface IHttpSecurity : IWindowForBindingUI
512 {
513     typedef [unique] IHttpSecurity *LPHTTPSECURITY;
514
515     HRESULT OnSecurityProblem(
516         [in] DWORD dwProblem);
517 }
518
519
520 /*****************************************************************************
521  * IPersistMoniker interface
522  */
523 [
524     object,
525     uuid(79eac9c9-baf9-11ce-8c82-00aa004ba90b),
526     pointer_default(unique)
527 ]
528 interface IPersistMoniker : IUnknown
529 {
530     typedef [unique] IPersistMoniker *LPPERSISTMONIKER;
531
532     HRESULT GetClassID(
533         [out] CLSID *pClassID);
534
535     HRESULT IsDirty();
536
537     HRESULT Load(
538         [in] BOOL fFullyAvailable,
539         [in] IMoniker *pimkName,
540         [in] LPBC pibc,
541         [in] DWORD grfMode);
542
543     HRESULT Save(
544         [in] IMoniker *pimkName,
545         [in] LPBC pbc,
546         [in] BOOL fRemember);
547
548     HRESULT SaveCompleted(
549         [in] IMoniker *pimkName,
550         [in] LPBC pibc);
551
552     HRESULT GetCurMoniker(
553         [out] IMoniker **ppimkName);
554 }
555
556 /*****************************************************************************
557  * IMonikerProp interface
558  */
559 [
560     object,
561     uuid(A5CA5F7F-1847-4D87-9C5B-918509F7511D),
562     pointer_default(unique)
563 ]
564 interface IMonikerProp : IUnknown
565 {
566     typedef [unique] IMonikerProp *LPMONIKERPROP;
567
568     typedef enum {
569         MIMETYPEPROP        = 0,
570         USE_SRC_URL         = 1,
571         CLASSIDPROP         = 2,
572         TRUSTEDDOWNLOADPROP = 3,
573         POPUPLEVELPROP      = 4
574     } MONIKERPROPERTY;
575
576     HRESULT PutProperty(
577         [in] MONIKERPROPERTY mkp,
578         [in] LPCWSTR val);
579 }
580
581 cpp_quote("#ifndef _LPBINDPROTOCOL_DEFINED")
582 cpp_quote("#define _LPBINDPROTOCOL_DEFINED")
583
584 /*****************************************************************************
585  * IBindProtocol interface
586  */
587 [
588     local,
589     object,
590     uuid(79EAC9CD-BAF9-11CE-8C82-00AA004BA90B),
591     pointer_default(unique)
592 ]
593 interface IBindProtocol : IUnknown
594 {
595     typedef [unique] IBindProtocol *LPBINDPROTOCOL;
596
597     HRESULT CreateBinding(
598         [in] LPCWSTR szUrl,
599         [in] IBindCtx *pbc,
600         [out] IBinding **ppb);
601 }
602
603 cpp_quote("#endif /* !defined _LPBINDPROTOCOL_DEFINED */")
604
605 /*****************************************************************************
606  * IInternetBindInfo interface
607  */
608 [
609     local,
610     object,
611     uuid(79EAC9E1-BAF9-11CE-8C82-00AA004BA90B),
612     pointer_default(unique)
613 ]
614 interface IInternetBindInfo : IUnknown
615 {
616     typedef [unique] IInternetBindInfo *LPIINTERNETBINDINFO;
617
618     typedef enum tagBINDSTRING
619     {
620         BINDSTRING_HEADERS = 1,
621         BINDSTRING_ACCEPT_MIMES,
622         BINDSTRING_EXTRA_URL,
623         BINDSTRING_LANGUAGE,
624         BINDSTRING_USERNAME,
625         BINDSTRING_PASSWORD,
626         BINDSTRING_UA_PIXELS,
627         BINDSTRING_UA_COLOR,
628         BINDSTRING_OS,
629         BINDSTRING_USER_AGENT,
630         BINDSTRING_ACCEPT_ENCODINGS,
631         BINDSTRING_POST_COOKIE,
632         BINDSTRING_POST_DATA_MIME,
633         BINDSTRING_URL,
634         BINDSTRING_IID,
635         BINDSTRING_FLAG_BIND_TO_OBJECT,
636         BINDSTRING_PTR_BIND_CONTEXT
637     } BINDSTRING;
638
639     HRESULT GetBindInfo(
640         [out] DWORD *grfBINDF,
641         [in, out, unique] BINDINFO *pbindinfo);
642
643     HRESULT GetBindString(
644         [in]      ULONG ulStringType,
645         [in, out] LPOLESTR *ppwzStr,
646         [in]      ULONG cEl,
647         [in, out] ULONG *pcElFetched);
648 }
649
650 /*****************************************************************************
651  * IInternetPriority interface
652  */
653 [
654     local,
655     object,
656     uuid(79EAC9EB-BAF9-11CE-8C82-00AA004BA90B),
657     pointer_default(unique)
658 ]
659 interface IInternetPriority : IUnknown
660 {
661     typedef [unique] IInternetPriority *LPIINTERNETPRIORITY;
662
663     HRESULT SetPriority([in] LONG nPriority);
664     HRESULT GetPriority([out] LONG *pnPriority);
665 }
666
667 /*****************************************************************************
668  * IInternetProtocolRoot interface
669  */
670 [
671     local,
672     object,
673     uuid(79EAC9E3-BAF9-11CE-8C82-00AA004BA90B),
674     pointer_default(unique)
675 ]
676 interface IInternetProtocolRoot : IUnknown
677 {
678     typedef [unique] IInternetProtocolRoot *LPIINTERNETPROTOCOLROOT;
679
680     typedef enum _tagPI_FLAGS
681     {
682         PI_PARSE_URL         = 0x00000001,
683         PI_FILTER_MODE       = 0x00000002,
684         PI_FORCE_ASYNC       = 0x00000004,
685         PI_USE_WORKERTHREAD  = 0x00000008,
686         PI_MIMEVERIFICATION  = 0x00000010,
687         PI_CLSIDLOOKUP       = 0x00000020,
688         PI_DATAPROGRESS      = 0x00000040,
689         PI_SYNCHRONOUS       = 0x00000080,
690         PI_APARTMENTTHREADED = 0x00000100,
691         PI_CLASSINSTALL      = 0x00000200,
692         PD_FORCE_SWITCH      = 0x00010000
693     } PI_FLAGS;
694
695     typedef struct _tagPROTOCOLDATA
696     {
697         DWORD grfFlags;
698         DWORD dwState;
699         LPVOID pData;
700         ULONG cbData;
701     } PROTOCOLDATA;
702
703     HRESULT Start(
704         [in] LPCWSTR szUrl,
705         [in] IInternetProtocolSink *pOIProtSink,
706         [in] IInternetBindInfo *pOIBindInfo,
707         [in] DWORD grfPI,
708         [in] HANDLE_PTR dwReserved);
709
710     HRESULT Continue(
711         [in] PROTOCOLDATA *pProtocolData);
712
713     HRESULT Abort(
714         [in] HRESULT hrReason,
715         [in] DWORD dwOptions);
716
717     HRESULT Terminate(
718         [in] DWORD dwOptions);
719
720     HRESULT Suspend();
721
722     HRESULT Resume();
723 }
724
725 /*****************************************************************************
726  * IInternetProtocolSink interface
727  */
728 [
729     local,
730     object,
731     uuid(79EAC9E5-BAF9-11CE-8C82-00AA004BA90B),
732     pointer_default(unique)
733 ]
734 interface IInternetProtocolSink : IUnknown
735 {
736     typedef [unique] IInternetProtocolSink *LPIINTERNETPROTOCOLSINK;
737
738     HRESULT Switch(
739         [in] PROTOCOLDATA *pProtocolData);
740
741     HRESULT ReportProgress(
742         [in] ULONG ulStatusCode,
743         [in] LPCWSTR szStatusText);
744
745     HRESULT ReportData(
746         [in] DWORD grfBSCF,
747         [in] ULONG ulProgress,
748         [in] ULONG ulProgressMax);
749
750     HRESULT ReportResult(
751         [in] HRESULT hrResult,
752         [in] DWORD dwError,
753         [in] LPCWSTR szResult);
754 }
755
756 /*****************************************************************************
757  * IInternetProtocol interface
758  */
759 [
760     local,
761     object,
762     uuid(79EAC9E4-BAF9-11CE-8C82-00AA004BA90B),
763     pointer_default(unique)
764 ]
765 interface IInternetProtocol : IInternetProtocolRoot
766 {
767     typedef [unique] IInternetProtocol *LPIINTERNETPROTOCOL;
768
769     HRESULT Read(
770         [in,out, size_is(cb), length_is(*pcbRead)] void *pv,
771         [in]  ULONG cb,
772         [out] ULONG *pcbRead);
773
774     HRESULT Seek(
775         [in]  LARGE_INTEGER dlibMove,
776         [in]  DWORD dwOrigin,
777         [out] ULARGE_INTEGER *plibNewPosition);
778
779     HRESULT LockRequest(
780         [in] DWORD dwOptions);
781
782     HRESULT UnlockRequest();
783 }
784
785 /*****************************************************************************
786  * IInternetProtocolInfo interface
787  */
788 [
789     local,
790     object,
791     uuid(79eac9ec-baf9-11ce-8c82-00aa004ba90b),
792     pointer_default(unique)
793 ]
794 interface IInternetProtocolInfo : IUnknown
795 {
796     typedef [unique] IInternetProtocolInfo *LPIINTERNETPROTOCOLINFO;
797
798     typedef enum _tagPARSEACTION
799     {
800         PARSE_CANONICALIZE = 1,
801         PARSE_FRIENDLY,
802         PARSE_SECURITY_URL,
803         PARSE_ROOTDOCUMENT,
804         PARSE_DOCUMENT,
805         PARSE_ANCHOR,
806         PARSE_ENCODE,
807         PARSE_DECODE,
808         PARSE_PATH_FROM_URL,
809         PARSE_URL_FROM_PATH,
810         PARSE_MIME,
811         PARSE_SERVER,
812         PARSE_SCHEMA,
813         PARSE_SITE,
814         PARSE_DOMAIN,
815         PARSE_LOCATION,
816         PARSE_SECURITY_DOMAIN,
817         PARSE_ESCAPE,
818         PARSE_UNESCAPE
819     } PARSEACTION;
820
821     typedef enum _tagPSUACTION
822     {
823         PSU_DEFAULT = 1,
824         PSU_SECURITY_URL_ONLY
825     } PSUACTION;
826
827     typedef enum _tagQUERYOPTION
828     {
829         QUERY_EXPIRATION_DATE = 1,
830         QUERY_TIME_OF_LAST_CHANGE,
831         QUERY_CONTENT_ENCODING,
832         QUERY_CONTENT_TYPE,
833         QUERY_REFRESH,
834         QUERY_RECOMBINE,
835         QUERY_CAN_NAVIGATE,
836         QUERY_USES_NETWORK,
837         QUERY_IS_CACHED,
838         QUERY_IS_INSTALLEDENTRY,
839         QUERY_IS_CACHED_OR_MAPPED,
840         QUERY_USES_CACHE,
841         QUERY_IS_SECURE,
842         QUERY_IS_SAFE,
843         QUERY_USES_HISTORYFOLDER
844     } QUERYOPTION;
845
846     HRESULT ParseUrl(
847         [in] LPCWSTR pwzUrl,
848         [in] PARSEACTION ParseAction,
849         [in] DWORD dwParseFlags,
850         [out] LPWSTR pwzResult,
851         [in] DWORD cchResult,
852         [out] DWORD *pcchResult,
853         [in] DWORD dwReserved);
854
855     HRESULT CombineUrl(
856         [in] LPCWSTR pwzBaseUrl,
857         [in] LPCWSTR pwzRelativeUrl,
858         [in] DWORD dwCombineFlags,
859         [out] LPWSTR pwzResult,
860         [in] DWORD cchResult,
861         [out] DWORD *pcchResult,
862         [in] DWORD dwReserved);
863
864     HRESULT CompareUrl(
865         [in] LPCWSTR pwzUrl1,
866         [in] LPCWSTR pwzUrl2,
867         [in] DWORD dwCompareFlags);
868
869     HRESULT QueryInfo(
870         [in] LPCWSTR pwzUrl,
871         [in] QUERYOPTION OueryOption,
872         [in] DWORD dwQueryFlags,
873         [in, out,size_is(*pcbBuf)] LPVOID pBuffer,
874         [in] DWORD cbBuffer,
875         [in, out] DWORD *pcbBuf,
876         [in] DWORD dwReserved);
877 }
878
879 /*****************************************************************************
880  * IInternetSession interface
881  */
882 [
883     local,
884     object,
885     uuid(79eac9e7-baf9-11ce-8c82-00aa004ba90b),
886     pointer_default(unique)
887 ]
888 interface IInternetSession : IUnknown
889 {
890     typedef [unique] IInternetSession *LPIINTERNETSESSION;
891
892     typedef enum _tagOIBDG_FLAGS
893     {
894         OIBDG_APARTMENTTHREADED = 0x0100,
895         OIBDG_DATAONLY          = 0x1000
896     } OIBDG_FLAGS;
897
898     HRESULT RegisterNameSpace(
899         [in] IClassFactory *pCF,
900         [in] REFCLSID rclsid,
901         [in] LPCWSTR pwzProtocol,
902         [in] ULONG cPatterns,
903         [in] const LPCWSTR *ppwzPatterns,
904         [in] DWORD dwReserved);
905
906     HRESULT UnregisterNameSpace(
907         [in] IClassFactory *pCF,
908         [in] LPCWSTR pszProtocol);
909
910     HRESULT RegisterMimeFilter(
911         [in] IClassFactory *pCF,
912         [in] REFCLSID rclsid,
913         [in] LPCWSTR pwzType);
914
915     HRESULT UnregisterMimeFilter(
916         [in] IClassFactory *pCF,
917         [in] LPCWSTR pwzType);
918
919     HRESULT CreateBinding(
920         [in] LPBC pBC,
921         [in] LPCWSTR szUrl,
922         [in] IUnknown *pUnkOuter,
923         [out, unique] IUnknown **ppUnk,
924         [out, unique] IInternetProtocol **ppOInetProt,
925         [in] DWORD dwOption);
926
927     HRESULT SetSessionOption(
928         [in] DWORD dwOption,
929         [in] LPVOID pBuffer,
930         [in] DWORD dwBufferLength,
931         [in] DWORD dwReserved);
932 }
933
934 /*****************************************************************************
935  * IInternetSecurityMgrSite interface
936  */
937 [
938     local,
939     object,
940     uuid(79eac9ed-baf9-11ce-8c82-00aa004ba90b),
941     pointer_default(unique)
942 ]
943 interface IInternetSecurityMgrSite : IUnknown
944 {
945     HRESULT GetWindow(
946         [out] HWND *phwnd);
947
948     HRESULT EnableModeless(
949         [in] BOOL fEnable);
950 }
951
952
953 /*****************************************************************************
954  * IInternetSecurityManager interface
955  */
956 cpp_quote("#define SID_SInternetSecurityManager IID_IInternetSecurityManager")
957
958 [
959     object,
960     uuid(79eac9ee-baf9-11ce-8c82-00aa004ba90b),
961     pointer_default(unique)
962 ]
963 interface IInternetSecurityManager : IUnknown
964 {
965     HRESULT SetSecuritySite(
966         [in, unique] IInternetSecurityMgrSite *pSite);
967
968     HRESULT GetSecuritySite(
969         [out] IInternetSecurityMgrSite **ppSite);
970
971     HRESULT MapUrlToZone(
972         [in] LPCWSTR pwszUrl,
973         [out] DWORD *pdwZone,
974         [in] DWORD dwFlags);
975
976 cpp_quote("#define MAX_SIZE_SECURITY_ID 512")
977
978     HRESULT GetSecurityId(
979         [in] LPCWSTR pwszUrl,
980         [out, size_is(*pcbSecurityId)] BYTE *pbSecurityId,
981         [in, out] DWORD *pcbSecurityId,
982         [in] DWORD_PTR dwReserved);
983
984
985     typedef enum {
986         PUAF_DEFAULT                = 0x00,
987         PUAF_NOUI                   = 0x01,
988         PUAF_ISFILE                 = 0x02,
989         PUAF_WARN_IF_DENIED         = 0x04,
990         PUAF_FORCEUI_FOREGROUND     = 0x08,
991         PUAF_CHECK_TIPS             = 0x10
992     } PUAF;
993
994     HRESULT ProcessUrlAction(
995         [in] LPCWSTR pwszUrl,
996         [in] DWORD dwAction,
997         [out, size_is(cbPolicy)] BYTE *pPolicy,
998         [in] DWORD cbPolicy,
999         [in] BYTE *pContext,
1000         [in] DWORD cbContext,
1001         [in] DWORD dwFlags,
1002         [in] DWORD dwReserved);
1003
1004     HRESULT QueryCustomPolicy(
1005         [in] LPCWSTR pwszUrl,
1006         [in] REFGUID guidKey,
1007         [out, size_is(,*pcbPolicy)] BYTE **ppPolicy,
1008         [out] DWORD *pcbPolicy,
1009         [in] BYTE *pContext,
1010         [in] DWORD cbContext,
1011         [in] DWORD dwReserved);
1012
1013     typedef enum {
1014         SZM_CREATE = 0x0,
1015         SZM_DELETE = 0x1
1016     } SZM_FLAGS;
1017
1018     HRESULT SetZoneMapping(
1019         [in] DWORD dwZone,
1020         [in] LPCWSTR lpszPattern,
1021         [in] DWORD dwFlags);
1022
1023     HRESULT GetZoneMappings(
1024         [in] DWORD dwZone,
1025         [out] IEnumString **ppenumString,
1026         [in] DWORD dwFlags);
1027 }
1028
1029 cpp_quote("#define URLACTION_MIN                        0x00001000")
1030 cpp_quote("#define URLACTION_DOWNLOAD_MIN               0x00001000")
1031 cpp_quote("#define URLACTION_DOWNLOAD_SIGNED_ACTIVEX    0x00001001")
1032 cpp_quote("#define URLACTION_DOWNLOAD_UNSIGNED_ACTIVEX  0x00001004")
1033 cpp_quote("#define URLACTION_DOWNLOAD_CURR_MAX          0x00001004")
1034 cpp_quote("#define URLACTION_DOWNLOAD_MAX               0x000011ff")
1035
1036 cpp_quote("#define URLACTION_ACTIVEX_MIN                     0x00001200")
1037 cpp_quote("#define URLACTION_ACTIVEX_RUN                     0x00001200")
1038 cpp_quote("#define URLPOLICY_ACTIVEX_CHECK_LIST              0x00010000")
1039 cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_OBJECT_SAFETY  0x00001201")
1040 cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_DATA_SAFETY    0x00001202")
1041 cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_SCRIPT_SAFETY  0x00001203")
1042 cpp_quote("#define URLACTION_SCRIPT_OVERRIDE_SAFETY          0x00001401")
1043 cpp_quote("#define URLACTION_ACTIVEX_CONFIRM_NOOBJECTSAFETY  0x00001204")
1044 cpp_quote("#define URLACTION_ACTIVEX_TREATASUNTRUSTED        0x00001205")
1045 cpp_quote("#define URLACTION_ACTIVEX_CURR_MAX                0x00001205")
1046 cpp_quote("#define URLACTION_ACTIVEX_MAX                     0x000013ff")
1047
1048 cpp_quote("#define URLACTION_SCRIPT_MIN           0x00001400")
1049 cpp_quote("#define URLACTION_SCRIPT_RUN           0x00001400")
1050 cpp_quote("#define URLACTION_SCRIPT_JAVA_USE      0x00001402")
1051 cpp_quote("#define URLACTION_SCRIPT_SAFE_ACTIVEX  0x00001405")
1052 cpp_quote("#define URLACTION_CROSS_DOMAIN_DATA    0x00001406")
1053 cpp_quote("#define URLACTION_SCRIPT_PASTE         0x00001407")
1054 cpp_quote("#define URLACTION_SCRIPT_CURR_MAX      0x00001407")
1055 cpp_quote("#define URLACTION_SCRIPT_MAX           0x000015ff")
1056
1057 cpp_quote("#define URLACTION_HTML_MIN                0x00001600")
1058 cpp_quote("#define URLACTION_HTML_SUBMIT_FORMS       0x00001601")
1059 cpp_quote("#define URLACTION_HTML_SUBMIT_FORMS_FROM  0x00001602")
1060 cpp_quote("#define URLACTION_HTML_SUBMIT_FORMS_TO    0x00001603")
1061 cpp_quote("#define URLACTION_HTML_FONT_DOWNLOAD      0x00001604")
1062 cpp_quote("#define URLACTION_HTML_JAVA_RUN           0x00001605")
1063 cpp_quote("#define URLACTION_HTML_USERDATA_SAVE      0x00001606")
1064 cpp_quote("#define URLACTION_HTML_SUBFRAME_NAVIGATE  0x00001607")
1065 cpp_quote("#define URLACTION_HTML_META_REFRESH       0x00001608")
1066 cpp_quote("#define URLACTION_HTML_MIXED_CONTENT      0x00001609")
1067 cpp_quote("#define URLACTION_HTML_MAX                0x000017ff")
1068
1069 cpp_quote("#define URLACTION_SHELL_MIN              0x00001800")
1070 cpp_quote("#define URLACTION_SHELL_INSTALL_DTITEMS  0x00001800")
1071 cpp_quote("#define URLACTION_SHELL_MOVE_OR_COPY     0x00001802")
1072 cpp_quote("#define URLACTION_SHELL_FILE_DOWNLOAD    0x00001803")
1073 cpp_quote("#define URLACTION_SHELL_VERB             0x00001804")
1074 cpp_quote("#define URLACTION_SHELL_WEBVIEW_VERB     0x00001805")
1075 cpp_quote("#define URLACTION_SHELL_CURR_MAX         0x00001805")
1076 cpp_quote("#define URLACTION_SHELL_MAX              0x000019ff")
1077
1078 cpp_quote("#define URLACTION_NETWORK_MIN                  0x00001a00")
1079 cpp_quote("#define URLACTION_CREDENTIALS_USE              0x00001a00")
1080 cpp_quote("#define URLACTION_AUTHENTICATE_CLIENT          0x00001a01")
1081 cpp_quote("#define URLACTION_COOKIES                      0x00001a02")
1082 cpp_quote("#define URLACTION_COOKIES_SESSION              0x00001a03")
1083 cpp_quote("#define URLACTION_CLIENT_CERT_PROMPT           0x00001a04")
1084 cpp_quote("#define URLACTION_COOKIES_THIRD_PARTY          0x00001a05")
1085 cpp_quote("#define URLACTION_COOKIES_SESSION_THIRD_PARTY  0x00001a06")
1086 cpp_quote("#define URLACTION_COOKIES_ENABLED              0x00001a10")
1087 cpp_quote("#define URLACTION_NETWORK_CURR_MAX             0x00001a10")
1088 cpp_quote("#define URLACTION_NETWORK_MAX                  0x00001bff")
1089
1090 cpp_quote("#define URLACTION_JAVA_MIN          0x00001c00")
1091 cpp_quote("#define URLACTION_JAVA_PERMISSIONS  0x00001c00")
1092 cpp_quote("#define URLPOLICY_JAVA_PROHIBIT     0x00000000")
1093 cpp_quote("#define URLPOLICY_JAVA_HIGH         0x00010000")
1094 cpp_quote("#define URLPOLICY_JAVA_MEDIUM       0x00020000")
1095 cpp_quote("#define URLPOLICY_JAVA_LOW          0x00030000")
1096 cpp_quote("#define URLPOLICY_JAVA_CUSTOM       0x00800000")
1097 cpp_quote("#define URLACTION_JAVA_CURR_MAX     0x00001c00")
1098 cpp_quote("#define URLACTION_JAVA_MAX          0x00001cff")
1099
1100 cpp_quote("#define URLACTION_INFODELIVERY_MIN                        0x00001d00")
1101 cpp_quote("#define URLACTION_INFODELIVERY_NO_ADDING_CHANNELS         0x00001d00")
1102 cpp_quote("#define URLACTION_INFODELIVERY_NO_EDITING_CHANNELS        0x00001d01")
1103 cpp_quote("#define URLACTION_INFODELIVERY_NO_REMOVING_CHANNELS       0x00001d02")
1104 cpp_quote("#define URLACTION_INFODELIVERY_NO_ADDING_SUBSCRIPTIONS    0x00001d03")
1105 cpp_quote("#define URLACTION_INFODELIVERY_NO_EDITING_SUBSCRIPTIONS   0x00001d04")
1106 cpp_quote("#define URLACTION_INFODELIVERY_NO_REMOVING_SUBSCRIPTIONS  0x00001d05")
1107 cpp_quote("#define URLACTION_INFODELIVERY_NO_CHANNEL_LOGGING         0x00001d06")
1108 cpp_quote("#define URLACTION_INFODELIVERY_CURR_MAX                   0x00001d06")
1109 cpp_quote("#define URLACTION_INFODELIVERY_MAX                        0x00001dff")
1110
1111 cpp_quote("#define URLACTION_CHANNEL_SOFTDIST_MIN          0x00001e00")
1112 cpp_quote("#define URLACTION_CHANNEL_SOFTDIST_PERMISSIONS  0x00001e05")
1113 cpp_quote("#define URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT     0x00010000")
1114 cpp_quote("#define URLPOLICY_CHANNEL_SOFTDIST_PRECACHE     0x00020000")
1115 cpp_quote("#define URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL  0x00030000")
1116 cpp_quote("#define URLACTION_CHANNEL_SOFTDIST_MAX          0x00001eff")
1117
1118 cpp_quote("#define URLPOLICY_ALLOW     0x00")
1119 cpp_quote("#define URLPOLICY_QUERY     0x01")
1120 cpp_quote("#define URLPOLICY_DISALLOW  0x03")
1121
1122 cpp_quote("#define URLPOLICY_NOTIFY_ON_ALLOW     0x10")
1123 cpp_quote("#define URLPOLICY_NOTIFY_ON_DISALLOW  0x20")
1124
1125 cpp_quote("#define URLPOLICY_LOG_ON_ALLOW     0x40")
1126 cpp_quote("#define URLPOLICY_LOG_ON_DISALLOW  0x80")
1127
1128 cpp_quote("#define URLPOLICY_DONTCHECKDLGBOX     0x100")
1129
1130 cpp_quote("#define URLPOLICY_CREDENTIALS_SILENT_LOGON_OK     0x00000000")
1131 cpp_quote("#define URLPOLICY_CREDENTIALS_MUST_PROMPT_USER    0x00010000")
1132 cpp_quote("#define URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT  0x00020000")
1133 cpp_quote("#define URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY      0x00030000")
1134
1135 cpp_quote("#define URLPOLICY_AUTHENTICATE_CLEARTEXT_OK        0x00000000")
1136 cpp_quote("#define URLPOLICY_AUTHENTICATE_CHALLENGE_RESPONSE  0x00010000")
1137 cpp_quote("#define URLPOLICY_AUTHENTICATE_MUTUAL_ONLY         0x00030000")
1138
1139 cpp_quote("#define URLPOLICY_MASK_PERMISSIONS  0x0f")
1140 cpp_quote("#define GetUrlPolicyPermissions(dw)      (dw & URLPOLICY_MASK_PERMISSIONS)")
1141 cpp_quote("#define SetUrlPolicyPermissions(dw,dw2)  ((dw) = ((dw) & ~URLPOLICY_MASK_PERMISSIONS) | (dw2))")
1142
1143 /*****************************************************************************
1144  * IInternetZoneManager interface
1145  */
1146 [
1147     local,
1148     object,
1149     uuid(79EAC9EF-BAf9-11CE-8C82-00AA004BA90B),
1150     pointer_default(unique)
1151 ]
1152 interface IInternetZoneManager : IUnknown
1153 {
1154     typedef [unique] IInternetZoneManager* LPURLZONEMANAGER;
1155
1156     typedef enum tagURLZONE
1157     {
1158         URLZONE_PREDEFINED_MIN  = 0,
1159         URLZONE_LOCAL_MACHINE   = 0,
1160         URLZONE_INTRANET        = 1,
1161         URLZONE_TRUSTED         = 2,
1162         URLZONE_INTERNET        = 3,
1163         URLZONE_UNTRUSTED       = 4,
1164         URLZONE_PREDEFINED_MAX  = 999,
1165         URLZONE_USER_MIN        = 1000,
1166         URLZONE_USER_MAX        = 10000,
1167     }  URLZONE;
1168
1169     typedef enum tagURLTEMPLATE
1170     {
1171         URLTEMPLATE_CUSTOM         = 0x00000,
1172         URLTEMPLATE_PREDEFINED_MIN = 0x10000,
1173         URLTEMPLATE_LOW            = 0x10000,
1174         URLTEMPLATE_MEDIUM         = 0x11000,
1175         URLTEMPLATE_HIGH           = 0x12000,
1176         URLTEMPLATE_PREDEFINED_MAX = 0x20000,
1177     } URLTEMPLATE ;
1178
1179     typedef enum {
1180         ZAFLAGS_CUSTOM_EDIT            = 0x00000001,
1181         ZAFLAGS_ADD_SITES              = 0x00000002,
1182         ZAFLAGS_REQUIRE_VERIFICATION   = 0x00000004,
1183         ZAFLAGS_INCLUDE_PROXY_OVERRIDE = 0x00000008,
1184         ZAFLAGS_INCLUDE_INTRANET_SITES = 0x00000010,
1185         ZAFLAGS_NO_UI                  = 0x00000020,
1186         ZAFLAGS_SUPPORTS_VERIFICATION  = 0x00000040,
1187         ZAFLAGS_UNC_AS_INTRANET        = 0x00000080,
1188     } ZAFLAGS ;
1189
1190     enum {
1191         MAX_ZONE_PATH        = 260,
1192         MAX_ZONE_DESCRIPTION = 200
1193     };
1194
1195     typedef struct _ZONEATTRIBUTES {
1196         ULONG cbSize;
1197         WCHAR szDisplayName[MAX_ZONE_PATH];
1198         WCHAR szDescription[MAX_ZONE_DESCRIPTION];
1199         WCHAR szIconPath[MAX_ZONE_PATH];
1200         DWORD dwTemplateMinLevel;
1201         DWORD dwTemplateRecommended;
1202         DWORD dwTemplateCurrentLevel;
1203         DWORD dwFlags;
1204     } ZONEATTRIBUTES, *LPZONEATTRIBUTES;
1205
1206     typedef enum _URLZONEREG {
1207         URLZONEREG_DEFAULT,
1208         URLZONEREG_HKLM,
1209         URLZONEREG_HKCU
1210     } URLZONEREG;
1211
1212     HRESULT GetZoneAttributes(
1213         [in]              DWORD dwZone,
1214         [in, out, unique] ZONEATTRIBUTES* pZoneAttributes);
1215
1216     HRESULT SetZoneAttributes(
1217         [in] DWORD dwZone,
1218         [in] ZONEATTRIBUTES* pZoneAttributes);
1219
1220     HRESULT GetZoneCustomPolicy(
1221         [in]  DWORD dwZone,
1222         [in]  REFGUID guidKey,
1223         [out] BYTE **ppPolicy,
1224         [out] DWORD* pcbPolicy,
1225         [in]  URLZONEREG ulrZoneReg);
1226
1227     HRESULT SetZoneCustomPolicy(
1228         [in] DWORD dwZone,
1229         [in] REFGUID guidKey,
1230         [in] BYTE *ppPolicy,
1231         [in] DWORD pcbPolicy,
1232         [in] URLZONEREG ulrZoneReg);
1233
1234     HRESULT GetZoneActionPolicy(
1235         [in]  DWORD dwZone,
1236         [in]  DWORD dwAction,
1237         [out] BYTE* pPolicy,
1238         [in]  DWORD cbPolicy,
1239         [in]  URLZONEREG urlZoneReg);
1240
1241     HRESULT SetZoneActionPolicy(
1242         [in] DWORD dwZone,
1243         [in] DWORD dwAction,
1244         [in] BYTE* pPolicy,
1245         [in] DWORD cbPolicy,
1246         [in] URLZONEREG urlZoneReg);
1247
1248     HRESULT PromptAction(
1249         [in] DWORD dwAction,
1250         [in] HWND hwndParent,
1251         [in] LPCWSTR pwszUrl,
1252         [in] LPCWSTR pwszText,
1253         [in] DWORD dwPromptFlags );
1254
1255     HRESULT LogAction(
1256         [in] DWORD dwAction,
1257         [in] LPCWSTR pwszUrl,
1258         [in] LPCWSTR pwszText,
1259         [in] DWORD dwLogFlags);
1260
1261     HRESULT CreateZoneEnumerator(
1262         [out] DWORD* pdwEnum,
1263         [out] DWORD* pdwCount,
1264         [in]  DWORD dwFlags);
1265
1266     HRESULT GetZoneAt(
1267         [in]  DWORD dwEnum,
1268         [in]  DWORD dwIndex,
1269         [out] DWORD* pdwZone);
1270
1271     HRESULT DestroyZoneEnumerator(
1272         [in] DWORD dwEnum);
1273
1274     HRESULT CopyTemplatePoliciesToZone(
1275         [in] DWORD dwTemplate,
1276         [in] DWORD dwZone,
1277         [in] DWORD dwReserved);
1278 }
1279
1280 typedef struct _tagSOFTDISTINFO
1281 {
1282     ULONG cbSize;
1283     DWORD dwFlags;
1284     DWORD dwAdState;
1285     LPWSTR szTitle;
1286     LPWSTR szAbstract;
1287     LPWSTR szHREF;
1288     DWORD dwInstalledVersionMS;
1289     DWORD dwInstalledVersionLS;
1290     DWORD dwUpdateVersionMS;
1291     DWORD dwUpdateVersionLS;
1292     DWORD dwAdvertisedVersionMS;
1293     DWORD dwAdvertisedVersionLS;
1294     DWORD dwReserved;
1295 } SOFTDISTINFO, *LPSOFTDISTINFO;
1296
1297 typedef struct _tagCODEBASEHOLD
1298 {
1299     DWORD cbSize;
1300     LPWSTR szDistUnit;
1301     LPWSTR szCodeBase;
1302     DWORD dwVersionMS;
1303     DWORD dwVersionLS;
1304     DWORD dwStyle;
1305 } CODEBASEHOLD, *LPCODEBASEHOLD;
1306
1307 [
1308     local,
1309     object,
1310     uuid(b15b8dc1-c7e1-11d0-8680-00aa00bdcb71),
1311     pointer_default(unique)
1312 ]
1313 interface ISoftDistExt : IUnknown
1314 {
1315     HRESULT ProcessSoftDist(
1316         [in] LPCWSTR szCDFURL,
1317         [in] IXMLElement *pSoftDistElement,
1318         [in, out] LPSOFTDISTINFO lpsdi );
1319
1320     HRESULT GetFirstCodeBase(
1321         [in] LPWSTR *szCodeBase,
1322         [in] LPDWORD dwMaxSize );
1323
1324     HRESULT GetNextCodeBase(
1325         [in] LPWSTR *szCodeBase,
1326         [in] LPDWORD dwMaxSize );
1327
1328     HRESULT AsyncInstallDistributionUnit(
1329         [in] IBindCtx *pbc,
1330         [in] LPVOID lpReserved,
1331         [in] DWORD flags,
1332         [in] LPCODEBASEHOLD lpcbh);
1333 }
1334
1335 typedef enum _tagINTERNETFEATURELIST
1336 {
1337     FEATURE_OBJECT_CACHING,
1338     FEATURE_ZONE_ELEVATION,
1339     FEATURE_MIME_HANDLING,
1340     FEATURE_MIME_SNIFFING,
1341     FEATURE_WINDOW_RESTRICTIONS,
1342     FEATURE_WEBOC_POPUPMANAGEMENT,
1343     FEATURE_BEHAVIORS,
1344     FEATURE_DISABLE_MK_PROTOCOL,
1345     FEATURE_LOCALMACHINE_LOCKDOWN,
1346     FEATURE_SECURITYBAND,
1347     FEATURE_RESTRICT_ACTIVEXINSTALL,
1348     FEATURE_VALIDATE_NAVIGATE_URL,
1349     FEATURE_RESTRICT_FILEDOWNLOAD,
1350     FEATURE_ADDON_MANAGEMENT,
1351     FEATURE_PROTOCOL_LOCKDOWN,
1352     FEATURE_HTTP_USERNAME_PASSWORD_DISABLE,
1353     FEATURE_SAFE_BINDTOOBJECT,
1354     FEATURE_UNC_SAVEDFILECHECK,
1355     FEATURE_GET_URL_DOM_FILEPATH_UNENCODED,
1356     FEATURE_TABBED_BROWSING,
1357     FEATURE_SSLUX,
1358     FEATURE_DISABLE_NAVIGATION_SOUNDS,
1359     FEATURE_DISABLE_LEGACY_COMPRESSION,
1360     FEATURE_FORCE_ADDR_AND_STATUS,
1361     FEATURE_XMLHTTP,
1362     FEATURE_DISABLE_TELNET_PROTOCOL,
1363     FEATURE_FEEDS,
1364     FEATURE_BLOCK_INPUT_PROMPTS,
1365     FEATURE_DOMSTORAGE,
1366     FEATURE_XDOMAINREQUEST,
1367     FEATURE_DATAURI,
1368     FEATURE_AJAX_CONNECTIONSERVICES,
1369     FEATURE_ENTRY_COUNT
1370 } INTERNETFEATURELIST;
1371
1372 typedef struct _tagPROTOCOLFILTERDATA {
1373     DWORD cbSize;
1374     IInternetProtocolSink *pProtocolSink;
1375     IInternetProtocol *pProtocol;
1376     IUnknown *pUnk;
1377     DWORD dwFilterFlags;
1378 } PROTOCOLFILTERDATA;
1379
1380 /*****************************************************************************
1381  * IUri interface
1382  */
1383 [
1384     local,
1385     object,
1386     uuid(a39ee748-6a27-4817-a6f2-13914bef5890),
1387     pointer_default(unique)
1388 ]
1389 interface IUri : IUnknown
1390 {
1391     typedef enum
1392     {
1393         Uri_PROPERTY_ABSOLUTE_URI = 0,
1394         Uri_PROPERTY_STRING_START = Uri_PROPERTY_ABSOLUTE_URI,
1395         Uri_PROPERTY_AUTHORITY = 1,
1396         Uri_PROPERTY_DISPLAY_URI = 2,
1397         Uri_PROPERTY_DOMAIN = 3,
1398         Uri_PROPERTY_EXTENSION = 4,
1399         Uri_PROPERTY_FRAGMENT = 5,
1400         Uri_PROPERTY_HOST = 6,
1401         Uri_PROPERTY_PASSWORD = 7,
1402         Uri_PROPERTY_PATH = 8,
1403         Uri_PROPERTY_PATH_AND_QUERY = 9,
1404         Uri_PROPERTY_QUERY = 10,
1405         Uri_PROPERTY_RAW_URI = 11,
1406         Uri_PROPERTY_SCHEME_NAME = 12,
1407         Uri_PROPERTY_USER_INFO = 13,
1408         Uri_PROPERTY_USER_NAME = 14,
1409         Uri_PROPERTY_STRING_LAST = Uri_PROPERTY_USER_NAME,
1410         Uri_PROPERTY_HOST_TYPE = 15,
1411         Uri_PROPERTY_DWORD_START = Uri_PROPERTY_HOST_TYPE,
1412         Uri_PROPERTY_PORT = 16,
1413         Uri_PROPERTY_SCHEME = 17,
1414         Uri_PROPERTY_ZONE = 18,
1415         Uri_PROPERTY_DWORD_LAST = Uri_PROPERTY_ZONE
1416     } Uri_PROPERTY;
1417
1418     HRESULT GetPropertyBSTR(
1419         [in]  Uri_PROPERTY uriProp,
1420         [out] BSTR *pbstrProperty,
1421         [in]  DWORD dwFlags);
1422
1423     HRESULT GetPropertyLength(
1424         [in]  Uri_PROPERTY uriProp,
1425         [out] DWORD *pcchProperty,
1426         [in]  DWORD dwFlags);
1427
1428     HRESULT GetPropertyDWORD(
1429         [in]  Uri_PROPERTY uriProp,
1430         [out] DWORD *pdwProperty,
1431         [in]  DWORD dwFlags);
1432
1433     HRESULT HasProperty(
1434         [in] Uri_PROPERTY uriProp,
1435         [out] BOOL *pfHasProperty);
1436
1437     HRESULT GetAbsoluteUri(
1438         [out] BSTR *pbstrAbsoluteUri);
1439
1440     HRESULT GetAuthority(
1441         [out] BSTR *pbstrAuthority);
1442
1443     HRESULT GetDisplayUri(
1444         [out] BSTR *pbstrDisplayString);
1445
1446     HRESULT GetDomain(
1447         [out] BSTR *pbstrDomain);
1448
1449     HRESULT GetExtension(
1450         [out] BSTR *pbstrExtension);
1451
1452     HRESULT GetFragment(
1453         [out] BSTR *pbstrFragment);
1454
1455     HRESULT GetHost(
1456         [out] BSTR *pbstrHost);
1457
1458     HRESULT GetPassword(
1459         [out] BSTR *pbstrPassword);
1460
1461     HRESULT GetPath(
1462         [out] BSTR *pbstrPath);
1463
1464     HRESULT GetPathAndQuery(
1465         [out] BSTR *pbstrPathAndQuery);
1466
1467     HRESULT GetQuery(
1468         [out] BSTR *pbstrQuery);
1469
1470     HRESULT GetRawUri(
1471         [out] BSTR *pbstrRawUri);
1472
1473     HRESULT GetSchemeName(
1474         [out] BSTR *pbstrSchemeName);
1475
1476     HRESULT GetUserInfo(
1477         [out] BSTR *pbstrUserInfo);
1478
1479     HRESULT GetUserName(
1480         [out] BSTR *pbstrUserName);
1481
1482     HRESULT GetHostType(
1483         [out] DWORD *pdwHostType);
1484
1485     HRESULT GetPort(
1486         [out] DWORD *pdwPort);
1487
1488     HRESULT GetScheme(
1489         [out] DWORD *pdwScheme);
1490
1491     HRESULT GetZone(
1492         [out] DWORD *pdwZone);
1493
1494     HRESULT GetProperties(
1495         [out] LPDWORD pdwFlags);
1496
1497     HRESULT IsEqual(
1498         [in]  IUri *pUri,
1499         [out] BOOL *pfEqual);
1500 }
1501
1502 /*****************************************************************************
1503  * IUriContainer interface
1504  */
1505 [
1506     local,
1507     object,
1508     uuid(a158a630-ed6f-45fb-b987-f68676f57752),
1509     pointer_default(unique)
1510 ]
1511 interface IUriContainer : IUnknown
1512 {
1513     HRESULT GetIUri([out] IUri **ppIUri);
1514 }
1515
1516 /*****************************************************************************
1517  * IInternetProtocolEx interface
1518  */
1519 [
1520     local,
1521     object,
1522     uuid(c7a98e66-1010-492c-a1c8-c809e1f75905),
1523     pointer_default(unique)
1524 ]
1525 interface IInternetProtocolEx : IInternetProtocol
1526 {
1527     HRESULT StartEx(
1528         [in] IUri *pUri,
1529         [in] IInternetProtocolSink *pOIProtSink,
1530         [in] IInternetBindInfo *pOIBindInfo,
1531         [in] DWORD grfPI,
1532         [in] HANDLE *dwReserved);
1533 }
1534
1535 cpp_quote("DEFINE_GUID(CLSID_InternetSecurityManager, 0x7b8a2d94, 0x0ac9, 0x11d1, 0x89, 0x6c, 0x00, 0xc0, 0x4f, 0xB6, 0xbf, 0xc4);")
1536 cpp_quote("DEFINE_GUID(CLSID_InternetZoneManager, 0x7B8A2D95, 0x0AC9, 0x11D1, 0x89, 0x6C, 0x00, 0xC0, 0x4F, 0xB6, 0xBF, 0xC4);")
1537 cpp_quote("DEFINE_GUID(IID_IAsyncMoniker, 0x79EAC9D3, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1538 cpp_quote("DEFINE_GUID(IID_IAsyncBindCtx, 0x79EAC9D4, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1539 cpp_quote("DEFINE_GUID(CLSID_StdURLMoniker, 0x79EAC9E0, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1540 cpp_quote("DEFINE_GUID(CLSID_DeCompMimeFilter, 0x8f6b0360, 0xb80d, 0x11d0, 0xa9,0xb3, 0x00,0x60,0x97,0x94,0x23,0x11);")
1541
1542 cpp_quote("DEFINE_GUID(CLSID_CdlProtocol, 0x3dd53d40, 0x7b8b, 0x11D0, 0xb0,0x13, 0x00,0xaa,0x00,0x59,0xce,0x02);")
1543 cpp_quote("DEFINE_GUID(CLSID_FileProtocol, 0x79EAC9E7, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1544 cpp_quote("DEFINE_GUID(CLSID_FtpProtocol, 0x79EAC9E3, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1545 cpp_quote("DEFINE_GUID(CLSID_GopherProtocol, 0x79EAC9E4, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1546 cpp_quote("DEFINE_GUID(CLSID_HttpProtocol, 0x79EAC9E2, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1547 cpp_quote("DEFINE_GUID(CLSID_HttpSProtocol, 0x79EAC9E5, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1548 cpp_quote("DEFINE_GUID(CLSID_MkProtocol, 0x79EAC9E6, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1549
1550 cpp_quote("#define URLMON_OPTION_USERAGENT          0x10000001")
1551 cpp_quote("#define URLMON_OPTION_USERAGENT_REFRESH  0x10000002")
1552 cpp_quote("#define URLMON_OPTION_URL_ENCODING       0x10000004")
1553
1554 cpp_quote("#define MK_S_ASYNCHRONOUS                _HRESULT_TYPEDEF_(0x000401E8)")
1555 cpp_quote("#ifndef S_ASYNCHRONOUS")
1556 cpp_quote("#define S_ASYNCHRONOUS                   MK_S_ASYNCHRONOUS")
1557 cpp_quote("#endif")
1558
1559 cpp_quote("#define INET_E_ERROR_FIRST               _HRESULT_TYPEDEF_(0x800C0002)")
1560 cpp_quote("#define INET_E_INVALID_URL               _HRESULT_TYPEDEF_(0x800C0002)")
1561 cpp_quote("#define INET_E_NO_SESSION                _HRESULT_TYPEDEF_(0x800C0003)")
1562 cpp_quote("#define INET_E_CANNOT_CONNECT            _HRESULT_TYPEDEF_(0x800C0004)")
1563 cpp_quote("#define INET_E_RESOURCE_NOT_FOUND        _HRESULT_TYPEDEF_(0x800C0005)")
1564 cpp_quote("#define INET_E_OBJECT_NOT_FOUND          _HRESULT_TYPEDEF_(0x800C0006)")
1565 cpp_quote("#define INET_E_DATA_NOT_AVAILABLE        _HRESULT_TYPEDEF_(0x800C0007)")
1566 cpp_quote("#define INET_E_DOWNLOAD_FAILURE          _HRESULT_TYPEDEF_(0x800C0008)")
1567 cpp_quote("#define INET_E_AUTHENTICATION_REQUIRED   _HRESULT_TYPEDEF_(0x800C0009)")
1568 cpp_quote("#define INET_E_NO_VALID_MEDIA            _HRESULT_TYPEDEF_(0x800C000A)")
1569 cpp_quote("#define INET_E_CONNECTION_TIMEOUT        _HRESULT_TYPEDEF_(0x800C000B)")
1570 cpp_quote("#define INET_E_INVALID_REQUEST           _HRESULT_TYPEDEF_(0x800C000C)")
1571 cpp_quote("#define INET_E_UNKNOWN_PROTOCOL          _HRESULT_TYPEDEF_(0x800C000D)")
1572 cpp_quote("#define INET_E_SECURITY_PROBLEM          _HRESULT_TYPEDEF_(0x800C000E)")
1573 cpp_quote("#define INET_E_CANNOT_LOAD_DATA          _HRESULT_TYPEDEF_(0x800C000F)")
1574 cpp_quote("#define INET_E_CANNOT_INSTANTIATE_OBJECT _HRESULT_TYPEDEF_(0x800C0010)")
1575 cpp_quote("#define INET_E_USE_DEFAULT_PROTOCOLHANDLER _HRESULT_TYPEDEF_(0x800C0011)")
1576 cpp_quote("#define INET_E_QUERYOPTION_UNKNOWN       _HRESULT_TYPEDEF_(0x800C0013)")
1577 cpp_quote("#define INET_E_REDIRECT_FAILED           _HRESULT_TYPEDEF_(0x800C0014)")
1578 cpp_quote("#define INET_E_REDIRECT_TO_DIR           _HRESULT_TYPEDEF_(0x800C0015)")
1579 cpp_quote("#define INET_E_CANNOT_LOCK_REQUEST       _HRESULT_TYPEDEF_(0x800C0016)")
1580 cpp_quote("#define INET_E_ERROR_LAST                INET_E_REDIRECT_TO_DIR")
1581 cpp_quote("#define INET_E_DEFAULT_ACTION            INET_E_USE_DEFAULT_PROTOCOLHANDLER")
1582
1583 cpp_quote("HRESULT WINAPI CoGetClassObjectFromURL(REFCLSID, LPCWSTR, DWORD, DWORD, LPCWSTR, LPBINDCTX, DWORD, LPVOID, REFIID, LPVOID*);")
1584 cpp_quote("HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk);")
1585 cpp_quote("HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved);")
1586 cpp_quote("HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD);")
1587 cpp_quote("HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN,LPCSTR,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1588 cpp_quote("HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN,LPCWSTR,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1589 cpp_quote("HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN,LPCSTR,LPSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1590 cpp_quote("HRESULT WINAPI URLDownloadToCacheFileW(LPUNKNOWN,LPCWSTR,LPWSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1591 cpp_quote("HRESULT WINAPI CoInternetGetSession(DWORD,IInternetSession**,DWORD);")
1592 cpp_quote("HRESULT WINAPI MkParseDisplayNameEx(IBindCtx*,LPCWSTR,ULONG*,IMoniker**);")
1593 cpp_quote("HRESULT WINAPI IsAsyncMoniker(IMoniker* pmk);")
1594 cpp_quote("HRESULT WINAPI CreateAsyncBindCtx(DWORD, IBindStatusCallback*, IEnumFORMATETC*, IBindCtx**);")
1595 cpp_quote("HRESULT WINAPI CreateAsyncBindCtxEx(IBindCtx*,DWORD,IBindStatusCallback*,IEnumFORMATETC*,IBindCtx**,DWORD);")
1596 cpp_quote("HRESULT WINAPI CoInternetCreateSecurityManager(IServiceProvider*,IInternetSecurityManager**,DWORD);")
1597 cpp_quote("HRESULT WINAPI CoInternetCombineUrl(LPCWSTR,LPCWSTR,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1598 cpp_quote("HRESULT WINAPI CoInternetCompareUrl(LPCWSTR,LPCWSTR,DWORD);")
1599 cpp_quote("HRESULT WINAPI CoInternetCreateZoneManager(IServiceProvider*, IInternetZoneManager**, DWORD);")
1600 cpp_quote("HRESULT WINAPI CoInternetParseUrl(LPCWSTR,PARSEACTION,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1601 cpp_quote("HRESULT WINAPI CoInternetQueryInfo(LPCWSTR,QUERYOPTION,DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1602 cpp_quote("HRESULT WINAPI CoInternetSetFeatureEnabled(INTERNETFEATURELIST,DWORD,BOOL);")
1603 cpp_quote("HRESULT WINAPI CreateFormatEnumerator(UINT,FORMATETC*,IEnumFORMATETC**);")
1604 cpp_quote("HRESULT WINAPI GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi);")
1605 cpp_quote("HRESULT WINAPI FaultInIEFeature(HWND,uCLSSPEC*,QUERYCONTEXT*,DWORD);")
1606 cpp_quote("HRESULT WINAPI FindMimeFromData(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,LPWSTR*,DWORD);")
1607 cpp_quote("HRESULT WINAPI GetClassFileOrMime(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,CLSID*);")
1608 cpp_quote("HRESULT WINAPI HlinkGoBack(IUnknown*);")
1609 cpp_quote("HRESULT WINAPI HlinkGoForward(IUnknown*);")
1610 cpp_quote("HRESULT WINAPI HlinkNavigateMoniker(IUnknown*,IMoniker*);")
1611 cpp_quote("HRESULT WINAPI HlinkNavigateString(IUnknown*,LPCWSTR);")
1612 cpp_quote("HRESULT WINAPI HlinkSimpleNavigateToMoniker(IMoniker*,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1613 cpp_quote("HRESULT WINAPI HlinkSimpleNavigateToString(LPCWSTR,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1614 cpp_quote("HRESULT WINAPI IsValidURL(LPBC,LPCWSTR,DWORD);")
1615 cpp_quote("HRESULT WINAPI ObtainUserAgentString(DWORD,LPSTR,DWORD*);")
1616 cpp_quote("HRESULT WINAPI RegisterFormatEnumerator(LPBC,IEnumFORMATETC*,DWORD);")
1617 cpp_quote("HRESULT WINAPI RevokeFormatEnumerator(LPBC,IEnumFORMATETC*);")
1618 cpp_quote("HRESULT WINAPI RevokeBindStatusCallback(LPBC,IBindStatusCallback*);")
1619 cpp_quote("HRESULT WINAPI CopyStgMedium(const STGMEDIUM*,STGMEDIUM*);")
1620 cpp_quote("void WINAPI ReleaseBindInfo(BINDINFO*);")
1621 cpp_quote("HRESULT WINAPI UrlMkGetSessionOption(DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1622 cpp_quote("HRESULT WINAPI UrlMkSetSessionOption(DWORD,LPVOID,DWORD,DWORD);")
1623 cpp_quote("HRESULT WINAPI URLOpenStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1624 cpp_quote("HRESULT WINAPI URLOpenStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1625 cpp_quote("HRESULT WINAPI URLOpenPullStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1626 cpp_quote("HRESULT WINAPI URLOpenPullStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1627 cpp_quote("HRESULT WINAPI URLOpenBlockingStreamA(LPUNKNOWN,LPCSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
1628 cpp_quote("HRESULT WINAPI URLOpenBlockingStreamW(LPUNKNOWN,LPCWSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
1629
1630 cpp_quote("#define OInetCombineUrl CoInternetCombineUrl")
1631 cpp_quote("#define OInetCompareUrl CoInternetCompareUrl")
1632 cpp_quote("#define OInetGetSession CoInternetGetSession")
1633
1634 cpp_quote("BOOL WINAPI IsLoggingEnabledA(LPCSTR);")
1635 cpp_quote("BOOL WINAPI IsLoggingEnabledW(LPCWSTR);")
1636 cpp_quote("#define IsLoggingEnabled WINELIB_NAME_AW(IsLoggingEnabled)")
1637
1638 cpp_quote("#define MKSYS_URLMONIKER 6")
1639 cpp_quote("#define URL_MK_LEGACY            0")
1640 cpp_quote("#define URL_MK_UNIFORM           1")