ole32/tests: Write-strings warning fix.
[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 interface IInternetProtocolSink;
26
27 /*****************************************************************************
28  * IBinding interface
29  */
30 [
31     object,
32     uuid(79eac9c0-baf9-11ce-8c82-00aa004ba90b),
33     pointer_default(unique)
34 ]
35 interface IBinding : IUnknown
36 {
37     typedef [unique] IBinding *LPBINDING;
38
39     HRESULT Abort();
40     HRESULT Suspend();
41     HRESULT Resume();
42
43     HRESULT SetPriority(
44         [in] LONG nPriority);
45
46     HRESULT GetPriority(
47         [out] LONG * pnPriority);
48
49     [local]
50     HRESULT GetBindResult(
51         [out] CLSID *pclsidProtocol,
52         [out] DWORD *pdwResult,
53         [out] LPOLESTR *pszResult,
54         [in, out] DWORD *pdwReserved);
55
56     [call_as(GetBindResult)]
57     HRESULT RemoteGetBindResult(
58         [out] CLSID *pclsidProtocol,
59         [out] DWORD *pdwResult,
60         [out] LPOLESTR *pszResult,
61         [in] DWORD dwReserved);
62 }
63
64
65 /*****************************************************************************
66  * IBindStatusCallback interface
67  */
68 [
69     object,
70     uuid(79eac9c1-baf9-11ce-8c82-00aa004ba90b),
71     pointer_default(unique)
72 ]
73 interface IBindStatusCallback : IUnknown
74 {
75     typedef [unique] IBindStatusCallback *LPBINDSTATUSCALLBACK;
76
77     typedef enum
78     {
79         BINDVERB_GET    = 0x00000000,
80         BINDVERB_POST   = 0x00000001,
81         BINDVERB_PUT    = 0x00000002,
82         BINDVERB_CUSTOM = 0x00000003
83     } BINDVERB;
84
85     typedef enum
86     {
87         BINDINFOF_URLENCODESTGMEDDATA = 0x00000001,
88         BINDINFOF_URLENCODEDEXTRAINFO = 0x00000002
89     } BINDINFOF;
90
91     typedef enum
92     {
93         BINDF_ASYNCHRONOUS = 0x00000001,
94         BINDF_ASYNCSTORAGE = 0x00000002,
95         BINDF_NOPROGRESSIVERENDERING = 0x00000004,
96         BINDF_OFFLINEOPERATION = 0x00000008,
97         BINDF_GETNEWESTVERSION = 0x00000010,
98         BINDF_NOWRITECACHE = 0x00000020,
99         BINDF_NEEDFILE = 0x00000040,
100         BINDF_PULLDATA = 0x00000080,
101         BINDF_IGNORESECURITYPROBLEM = 0x00000100,
102         BINDF_RESYNCHRONIZE = 0x00000200,
103         BINDF_HYPERLINK = 0x00000400,
104         BINDF_NO_UI = 0x00000800,
105         BINDF_SILENTOPERATION = 0x00001000,
106         BINDF_PRAGMA_NO_CACHE = 0x00002000,
107         BINDF_GETCLASSOBJECT = 0x00004000,
108         BINDF_RESERVED_1 = 0x00008000,
109         BINDF_FREE_THREADED = 0x00010000,
110         BINDF_DIRECT_READ = 0x00020000,
111         BINDF_FORMS_SUBMIT = 0x00040000,
112         BINDF_GETFROMCACHE_IF_NET_FAIL = 0x00080000,
113         BINDF_FROMURLMON = 0x00100000,
114         BINDF_FWD_BACK = 0x00200000,
115         BINDF_PREFERDEFAULTHANDLER = 0x00400000,
116         BINDF_ENFORCERESTRICTED = 0x00800000
117     } BINDF;
118
119     typedef struct _tagBINDINFO
120     {
121         ULONG cbSize;
122         LPWSTR szExtraInfo;
123         STGMEDIUM stgmedData;
124         DWORD grfBindInfoF;
125         DWORD dwBindVerb;
126         LPWSTR szCustomVerb;
127         DWORD cbStgmedData;
128         DWORD dwOptions;
129         DWORD dwOptionsFlags;
130         DWORD dwCodePage;
131         SECURITY_ATTRIBUTES securityAttributes;
132         IID iid;
133         IUnknown *pUnk;
134         DWORD dwReserved;
135     } BINDINFO;
136
137     typedef struct _REMSECURITY_ATTRIBUTES
138     {
139         DWORD nLength;
140         DWORD lpSecurityDescriptor;
141         BOOL bInheritHandle;
142     } REMSECURITY_ATTRIBUTES, *PREMSECURITY_ATTRIBUTES, *LPREMSECURITY_ATTRIBUTES;
143
144     typedef struct _tagRemBINDINFO
145     {
146         ULONG cbSize;
147         LPWSTR szExtraInfo;
148         DWORD grfBindInfoF;
149         DWORD dwBindVerb;
150         LPWSTR szCustomVerb;
151         DWORD cbstgmedData;
152         DWORD dwOptions;
153         DWORD dwOptionsFlags;
154         DWORD dwCodePage;
155         REMSECURITY_ATTRIBUTES securityAttributes;
156         IID iid;
157         IUnknown *pUnk;
158         DWORD dwReserved;
159     } RemBINDINFO;
160
161     typedef struct tagRemFORMATETC
162     {
163         DWORD cfFormat;
164         DWORD ptd;
165         DWORD dwAspect;
166         LONG lindex;
167         DWORD tymed;
168     } RemFORMATETC, *LPREMFORMATETC;
169
170     typedef enum
171     {
172         BSCF_FIRSTDATANOTIFICATION = 0x01,
173         BSCF_INTERMEDIATEDATANOTIFICATION = 0x02,
174         BSCF_LASTDATANOTIFICATION = 0x04,
175         BSCF_DATAFULLYAVAILABLE = 0x08,
176         BSCF_AVAILABLEDATASIZEUNKNOWN = 0x10
177     } BSCF;
178
179     typedef enum BINDSTATUS
180     {
181         BINDSTATUS_FINDINGRESOURCE = 1,
182         BINDSTATUS_CONNECTING,
183         BINDSTATUS_REDIRECTING,
184         BINDSTATUS_BEGINDOWNLOADDATA,
185         BINDSTATUS_DOWNLOADINGDATA,
186         BINDSTATUS_ENDDOWNLOADDATA,
187         BINDSTATUS_BEGINDOWNLOADCOMPONENTS,
188         BINDSTATUS_INSTALLINGCOMPONENTS,
189         BINDSTATUS_ENDDOWNLOADCOMPONENTS,
190         BINDSTATUS_USINGCACHEDCOPY,
191         BINDSTATUS_SENDINGREQUEST,
192         BINDSTATUS_CLASSIDAVAILABLE,
193         BINDSTATUS_MIMETYPEAVAILABLE,
194         BINDSTATUS_CACHEFILENAMEAVAILABLE,
195         BINDSTATUS_BEGINSYNCOPERATION,
196         BINDSTATUS_ENDSYNCOPERATION,
197         BINDSTATUS_BEGINUPLOADDATA,
198         BINDSTATUS_UPLOADINGDATA,
199         BINDSTATUS_ENDUPLOADINGDATA,
200         BINDSTATUS_PROTOCOLCLASSID,
201         BINDSTATUS_ENCODING,
202         BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE,
203         BINDSTATUS_CLASSINSTALLLOCATION,
204         BINDSTATUS_DECODING,
205         BINDSTATUS_LOADINGMIMEHANDLER,
206         BINDSTATUS_CONTENTDISPOSITIONATTACH,
207         BINDSTATUS_FILTERREPORTMIMETYPE,
208         BINDSTATUS_CLSIDCANINSTANTIATE,
209         BINDSTATUS_IUNKNOWNAVAILABLE,
210         BINDSTATUS_DIRECTBIND,
211         BINDSTATUS_RAWMIMETYPE,
212         BINDSTATUS_PROXYDETECTING,
213         BINDSTATUS_ACCEPTRANGES,
214         BINDSTATUS_COOKIE_SENT,
215         BINDSTATUS_COMPACT_POLICY_RECEIVED,
216         BINDSTATUS_COOKIE_SUPPRESSED,
217         BINDSTATUS_COOKIE_STATE_UNKNOWN,
218         BINDSTATUS_COOKIE_STATE_ACCEPT,
219         BINDSTATUS_COOKIE_STATE_REJECT,
220         BINDSTATUS_COOKIE_STATE_PROMPT,
221         BINDSTATUS_COOKIE_STATE_LEASH,
222         BINDSTATUS_COOKIE_STATE_DOWNGRADE,
223         BINDSTATUS_POLICY_HREF,
224         BINDSTATUS_P3P_HEADER,
225         BINDSTATUS_SESSION_COOKIE_RECEIVED,
226         BINDSTATUS_PERSISTENT_COOKIE_RECEIVED,
227         BINDSTATUS_SESSION_COOKIES_ALLOWED,
228         BINDSTATUS_CACHECONTROL,
229         BINDSTATUS_CONTENTDISPOSITIONFILENAME,
230         BINDSTATUS_MIMETEXTPLAINMISMATCH,
231         BINDSTATUS_PUBLISHERAVAILABLE,
232         BINDSTATUS_DISPLAYNAMEAVAILABLE
233     } BINDSTATUS;
234
235
236     HRESULT OnStartBinding(
237         [in] DWORD dwReserved,
238         [in] IBinding * pib);
239
240     HRESULT GetPriority(
241         [out] LONG * pnPriority);
242
243     HRESULT OnLowResource(
244         [in] DWORD reserved);
245
246     HRESULT OnProgress(
247         [in] ULONG ulProgress,
248         [in] ULONG ulProgressMax,
249         [in] ULONG ulStatusCode,
250         [in] LPCWSTR szStatusText);
251
252     HRESULT OnStopBinding(
253         [in] HRESULT hresult,
254         [in, unique] LPCWSTR szError);
255
256     [local]
257     HRESULT GetBindInfo(
258         [out] DWORD *grfBINDF,
259         [in, out, unique] BINDINFO * pbindinfo);
260
261     [call_as(GetBindInfo)]
262     HRESULT RemoteGetBindInfo(
263         [out] DWORD *grfBINDF,
264         [in, out, unique] RemBINDINFO * pbindinfo,
265         [in, out, unique] RemSTGMEDIUM* pstgmed);
266
267     [local]
268     HRESULT OnDataAvailable(
269         [in] DWORD grfBSCF,
270         [in] DWORD dwSize,
271         [in] FORMATETC* pformatetc,
272         [in] STGMEDIUM* pstgmed);
273
274     [call_as(OnDataAvailable)]
275     HRESULT RemoteOnDataAvailable(
276         [in] DWORD grfBSCF,
277         [in] DWORD dwSize,
278         [in] RemFORMATETC *pformatetc,
279         [in] RemSTGMEDIUM* pstgmed);
280
281     HRESULT OnObjectAvailable(
282         [in] REFIID riid,
283         [in, iid_is(riid)] IUnknown* punk);
284 }
285
286 /*****************************************************************************
287  * IAuthenticate interface
288  */
289 [
290     local,
291     object,
292     uuid(79EAC9D0-BAf9-11CE-8C82-00AA004BA90B),
293     pointer_default(unique)
294 ]
295 interface IAuthenticate : IUnknown
296 {
297     typedef [unique] IAuthenticate *LPAUTHENTICATION;
298
299     HRESULT Authenticate(
300         [out] HWND* phwnd,
301         [out] LPWSTR *pszUsername,
302         [out] LPWSTR *pszPassword);
303 }
304
305 /*****************************************************************************
306  * IHttpNegotiate interface
307  */
308 [
309     object,
310     uuid(79EAC9D2-BAF9-11CE-8C82-00AA004BA90B),
311     pointer_default(unique)
312 ]
313 interface IHttpNegotiate : IUnknown
314 {
315     typedef [unique] IHttpNegotiate *LPHTTPNEGOTIATE;
316
317     HRESULT BeginningTransaction(
318         [in] LPCWSTR szURL,
319         [in, unique] LPCWSTR szHeaders,
320         [in] DWORD dwReserved,
321         [out] LPWSTR *pszAdditionalHeaders);
322
323     HRESULT OnResponse(
324         [in] DWORD dwResponseCode,
325         [in, unique] LPCWSTR szResponseHeaders,
326         [in, unique] LPCWSTR szRequestHeaders,
327         [out] LPWSTR *pszAdditionalRequestHeaders);
328 }
329
330 /*****************************************************************************
331  * IHttpNegotiate2 interface
332  */
333 [
334     object,
335     uuid(4F9F9FCB-E0F4-48eb-B7AB-FA2EA9365CB4),
336     pointer_default(unique)
337 ]
338 interface IHttpNegotiate2 : IHttpNegotiate
339 {
340     typedef [unique] IHttpNegotiate2 *LPHTTPNEGOTIATE2;
341
342     HRESULT GetRootSecurityId(
343          [out, size_is(*pcbSecurityId)] BYTE *pbSecurityId,
344          [in, out] DWORD *pcbSecurityId,
345          [in] DWORD_PTR dwReserved);
346 }
347
348 /*****************************************************************************
349  * IBindHost interface
350  */
351 cpp_quote("#define SID_IBindHost IID_IBindHost")
352 cpp_quote("#define SID_SBindHost IID_IBindHost")
353 [
354     object,
355     uuid(fc4801a1-2ba9-11cf-a229-00aa003d7352),
356     pointer_default(unique)
357 ]
358 interface IBindHost : IUnknown
359 {
360     typedef [unique] IBindHost *LPBINDHOST;
361
362     HRESULT CreateMoniker(
363         [in] LPOLESTR szName,
364         [in] IBindCtx *pBC,
365         [out] IMoniker** ppmk,
366         [in] DWORD dwReserved);
367
368     [local]
369     HRESULT MonikerBindToStorage(
370         [in] IMoniker *pMk,
371         [in] IBindCtx *pBC,
372         [in] IBindStatusCallback *pBSC,
373         [in] REFIID riid,
374         [out] void **ppvObj);
375
376     [call_as(MonikerBindToStorage)]
377     HRESULT RemoteMonikerBindToStorage(
378         [in, unique] IMoniker *pMk,
379         [in, unique] IBindCtx *pBC,
380         [in, unique] IBindStatusCallback *pBSC,
381         [in] REFIID riid,
382         [out, iid_is(riid)] IUnknown **ppvObj);
383
384     [local]
385     HRESULT MonikerBindToObject(
386         [in] IMoniker *pMk,
387         [in] IBindCtx *pBC,
388         [in] IBindStatusCallback *pBSC,
389         [in] REFIID riid,
390         [out] void **ppvObj);
391
392     [call_as(MonikerBindToObject)]
393     HRESULT RemoteMonikerBindToObject(
394         [in, unique] IMoniker *pMk,
395         [in, unique] IBindCtx *pBC,
396         [in, unique] IBindStatusCallback *pBSC,
397         [in] REFIID riid,
398         [out, iid_is(riid)] IUnknown **ppvObj);
399 }
400
401
402 /*****************************************************************************
403  * IWinInetInfo interface
404  */
405 [
406     object,
407     uuid(79eac9d6-bafa-11ce-8c82-00aa004ba90b),
408     pointer_default(unique)
409 ]
410 interface IWinInetInfo : IUnknown
411 {
412     typedef [unique] IWinInetInfo *LPWININETINFO;
413
414     [local]
415     HRESULT QueryOption(
416         [in] DWORD dwOption,
417         [in, out, size_is(*pcbBuf)] LPVOID pBuffer,
418         [in, out] DWORD *pcbBuf);
419
420     [call_as(QueryOption)]
421     HRESULT RemoteQueryOption(
422         [in] DWORD  dwOption,
423         [in, out, size_is(*pcbBuf)] BYTE *pBuffer,
424         [in, out] DWORD *pcbBuf);
425 }
426
427
428
429 /*****************************************************************************
430  * IWinInetHttpInfo interface
431  */
432 [
433     object,
434     uuid(79eac9d8-bafa-11ce-8c82-00aa004ba90b),
435     pointer_default(unique)
436 ]
437 interface IWinInetHttpInfo : IWinInetInfo
438 {
439     typedef [unique] IWinInetHttpInfo *LPWININETHTTPINFO;
440
441     [local]
442     HRESULT QueryInfo(
443         [in] DWORD dwOption,
444         [in, out,size_is(*pcbBuf)] LPVOID pBuffer,
445         [in, out] DWORD *pcbBuf,
446         [in, out] DWORD *pdwFlags,
447         [in, out] DWORD *pdwReserved);
448
449     [call_as(QueryInfo)]
450     HRESULT RemoteQueryInfo(
451         [in] DWORD dwOption,
452         [in,out,size_is(*pcbBuf)] BYTE *pBuffer,
453         [in, out] DWORD *pcbBuf,
454         [in, out] DWORD *pdwFlags,
455         [in, out] DWORD *pdwReserved);
456 }
457
458 /*****************************************************************************
459  * IWindowForBindingUI interface
460  */
461 [
462     local,
463     object,
464     uuid(79eac9d5-bafa-11ce-8c82-00aa004ba90b),
465     pointer_default(unique)
466 ]
467 interface IWindowForBindingUI : IUnknown
468 {
469     typedef [unique] IWindowForBindingUI *LPWINDOWFORBINDINGUI;
470
471     HRESULT GetWindow(
472         [in] REFGUID rguidReason,
473         [out] HWND *phwnd);
474 }
475
476 /*****************************************************************************
477  * IHttpSecurity interface
478  */
479 [
480     object,
481     uuid(79eac9d7-bafa-11ce-8c82-00aa004ba90b),
482     pointer_default(unique)
483 ]
484 interface IHttpSecurity : IWindowForBindingUI
485 {
486     typedef [unique] IHttpSecurity *LPHTTPSECURITY;
487
488     HRESULT OnSecurityProblem(
489         [in] DWORD dwProblem);
490 }
491
492
493 /*****************************************************************************
494  * IPersistMoniker interface
495  */
496 [
497     object,
498     uuid(79eac9c9-baf9-11ce-8c82-00aa004ba90b),
499     pointer_default(unique)
500 ]
501 interface IPersistMoniker : IUnknown
502 {
503     typedef [unique] IPersistMoniker *LPPERSISTMONIKER;
504
505     HRESULT GetClassID(
506         [out] CLSID *pClassID);
507
508     HRESULT IsDirty();
509
510     HRESULT Load(
511         [in] BOOL fFullyAvailable,
512         [in] IMoniker *pimkName,
513         [in] LPBC pibc,
514         [in] DWORD grfMode);
515
516     HRESULT Save(
517         [in] IMoniker *pimkName,
518         [in] LPBC pbc,
519         [in] BOOL fRemember);
520
521     HRESULT SaveCompleted(
522         [in] IMoniker *pimkName,
523         [in] LPBC pibc);
524
525     HRESULT GetCurMoniker(
526         [out] IMoniker **ppimkName);
527 }
528
529 /*****************************************************************************
530  * IMonikerProp interface
531  */
532 [
533     object,
534     uuid(A5CA5F7F-1847-4D87-9C5B-918509F7511D),
535     pointer_default(unique)
536 ]
537 interface IMonikerProp : IUnknown
538 {
539     typedef [unique] IMonikerProp *LPMONIKERPROP;
540
541     typedef enum {
542         MIMETYPEPROP = 0x00000000,
543         USE_SRC_URL  = 0x00000001
544     } MONIKERPROPERTY;
545
546     HRESULT PutProperty(
547         [in] MONIKERPROPERTY mkp,
548         [in] LPCWSTR val);
549 }
550
551 cpp_quote("#ifndef _LPBINDPROTOCOL_DEFINED")
552 cpp_quote("#define _LPBINDPROTOCOL_DEFINED")
553
554 /*****************************************************************************
555  * IBindProtocol interface
556  */
557 [
558     local,
559     object,
560     uuid(79EAC9CD-BAF9-11CE-8C82-00AA004BA90B),
561     pointer_default(unique)
562 ]
563 interface IBindProtocol : IUnknown
564 {
565     typedef [unique] IBindProtocol *LPBINDPROTOCOL;
566
567     HRESULT CreateBinding(
568         [in] LPCWSTR szUrl,
569         [in] IBindCtx *pbc,
570         [out] IBinding **ppb);
571 }
572
573 cpp_quote("#endif /* !defined _LPBINDPROTOCOL_DEFINED */")
574
575 /*****************************************************************************
576  * IInternetBindInfo interface
577  */
578 [
579     local,
580     object,
581     uuid(79EAC9E1-BAF9-11CE-8C82-00AA004BA90B),
582     pointer_default(unique)
583 ]
584 interface IInternetBindInfo : IUnknown
585 {
586     typedef [unique] IInternetBindInfo *LPIINTERNETBINDINFO;
587
588     typedef enum tagBINDSTRING
589     {
590         BINDSTRING_HEADERS = 1,
591         BINDSTRING_ACCEPT_MIMES,
592         BINDSTRING_EXTRA_URL,
593         BINDSTRING_LANGUAGE,
594         BINDSTRING_USERNAME,
595         BINDSTRING_PASSWORD,
596         BINDSTRING_UA_PIXELS,
597         BINDSTRING_UA_COLOR,
598         BINDSTRING_OS,
599         BINDSTRING_USER_AGENT,
600         BINDSTRING_ACCEPT_ENCODINGS,
601         BINDSTRING_POST_COOKIE,
602         BINDSTRING_POST_DATA_MIME,
603         BINDSTRING_URL,
604         BINDSTRING_IID,
605         BINDSTRING_FLAG_BIND_TO_OBJECT,
606         BINDSTRING_PTR_BIND_CONTEXT
607     } BINDSTRING;
608
609     HRESULT GetBindInfo(
610         [out] DWORD *grfBINDF,
611         [in, out, unique] BINDINFO *pbindinfo);
612
613     HRESULT GetBindString(
614         [in]      ULONG ulStringType,
615         [in, out] LPOLESTR *ppwzStr,
616         [in]      ULONG cEl,
617         [in, out] ULONG *pcElFetched);
618 }
619
620 /*****************************************************************************
621  * IInternetPriority interface
622  */
623 [
624     local,
625     object,
626     uuid(79EAC9EB-BAF9-11CE-8C82-00AA004BA90B),
627     pointer_default(unique)
628 ]
629 interface IInternetPriority : IUnknown
630 {
631     typedef [unique] IInternetPriority *LPIINTERNETPRIORITY;
632
633     HRESULT SetPriority([in] LONG nPriority);
634     HRESULT GetPriority([out] LONG *pnPriority);
635 }
636
637 /*****************************************************************************
638  * IInternetProtocolRoot interface
639  */
640 [
641     local,
642     object,
643     uuid(79EAC9E3-BAF9-11CE-8C82-00AA004BA90B),
644     pointer_default(unique)
645 ]
646 interface IInternetProtocolRoot : IUnknown
647 {
648     typedef [unique] IInternetProtocolRoot *LPIINTERNETPROTOCOLROOT;
649
650     typedef enum _tagPI_FLAGS
651     {
652         PI_PARSE_URL         = 0x00000001,
653         PI_FILTER_MODE       = 0x00000002,
654         PI_FORCE_ASYNC       = 0x00000004,
655         PI_USE_WORKERTHREAD  = 0x00000008,
656         PI_MIMEVERIFICATION  = 0x00000010,
657         PI_CLSIDLOOKUP       = 0x00000020,
658         PI_DATAPROGRESS      = 0x00000040,
659         PI_SYNCHRONOUS       = 0x00000080,
660         PI_APARTMENTTHREADED = 0x00000100,
661         PI_CLASSINSTALL      = 0x00000200,
662         PD_FORCE_SWITCH      = 0x00010000
663     } PI_FLAGS;
664
665     typedef struct _tagPROTOCOLDATA
666     {
667         DWORD grfFlags;
668         DWORD dwState;
669         LPVOID pData;
670         ULONG cbData;
671     } PROTOCOLDATA;
672
673     HRESULT Start(
674         [in] LPCWSTR szUrl,
675         [in] IInternetProtocolSink *pOIProtSink,
676         [in] IInternetBindInfo *pOIBindInfo,
677         [in] DWORD grfPI,
678         [in] DWORD dwReserved);
679
680     HRESULT Continue(
681         [in] PROTOCOLDATA *pProtocolData);
682
683     HRESULT Abort(
684         [in] HRESULT hrReason,
685         [in] DWORD dwOptions);
686
687     HRESULT Terminate(
688         [in] DWORD dwOptions);
689
690     HRESULT Suspend();
691
692     HRESULT Resume();
693 }
694
695 /*****************************************************************************
696  * IInternetProtocolSink interface
697  */
698 [
699     local,
700     object,
701     uuid(79EAC9E5-BAF9-11CE-8C82-00AA004BA90B),
702     pointer_default(unique)
703 ]
704 interface IInternetProtocolSink : IUnknown
705 {
706     typedef [unique] IInternetProtocolSink *LPIINTERNETPROTOCOLSINK;
707
708     HRESULT Switch(
709         [in] PROTOCOLDATA *pProtocolData);
710
711     HRESULT ReportProgress(
712         [in] ULONG ulStatusCode,
713         [in] LPCWSTR szStatusText);
714
715     HRESULT ReportData(
716         [in] DWORD grfBSCF,
717         [in] ULONG ulProgress,
718         [in] ULONG ulProgressMax);
719
720     HRESULT ReportResult(
721         [in] HRESULT hrResult,
722         [in] DWORD dwError,
723         [in] LPCWSTR szResult);
724 }
725
726 /*****************************************************************************
727  * IInternetProtocol interface
728  */
729 [
730     local,
731     object,
732     uuid(79EAC9E4-BAF9-11CE-8C82-00AA004BA90B),
733     pointer_default(unique)
734 ]
735 interface IInternetProtocol : IInternetProtocolRoot
736 {
737     typedef [unique] IInternetProtocol *LPIINTERNETPROTOCOL;
738
739     HRESULT Read(
740         [in,out, size_is(cb), length_is(*pcbRead)] void *pv,
741         [in]  ULONG cb,
742         [out] ULONG *pcbRead);
743
744     HRESULT Seek(
745         [in]  LARGE_INTEGER dlibMove,
746         [in]  DWORD dwOrigin,
747         [out] ULARGE_INTEGER *plibNewPosition);
748
749     HRESULT LockRequest(
750         [in] DWORD dwOptions);
751
752     HRESULT UnlockRequest();
753 }
754
755 /*****************************************************************************
756  * IInternetProtocolInfo interface
757  */
758 [
759     local,
760     object,
761     uuid(79eac9ec-baf9-11ce-8c82-00aa004ba90b),
762     pointer_default(unique)
763 ]
764 interface IInternetProtocolInfo : IUnknown
765 {
766     typedef [unique] IInternetProtocolInfo *LPIINTERNETPROTOCOLINFO;
767
768     typedef enum _tagPARSEACTION
769     {
770         PARSE_CANONICALIZE = 1,
771         PARSE_FRIENDLY,
772         PARSE_SECURITY_URL,
773         PARSE_ROOTDOCUMENT,
774         PARSE_DOCUMENT,
775         PARSE_ANCHOR,
776         PARSE_ENCODE,
777         PARSE_DECODE,
778         PARSE_PATH_FROM_URL,
779         PARSE_URL_FROM_PATH,
780         PARSE_MIME,
781         PARSE_SERVER,
782         PARSE_SCHEMA,
783         PARSE_SITE,
784         PARSE_DOMAIN,
785         PARSE_LOCATION,
786         PARSE_SECURITY_DOMAIN,
787         PARSE_ESCAPE,
788         PARSE_UNESCAPE
789     } PARSEACTION;
790
791     typedef enum _tagPSUACTION
792     {
793         PSU_DEFAULT = 1,
794         PSU_SECURITY_URL_ONLY
795     } PSUACTION;
796
797     typedef enum _tagQUERYOPTION
798     {
799         QUERY_EXPIRATION_DATE = 1,
800         QUERY_TIME_OF_LAST_CHANGE,
801         QUERY_CONTENT_ENCODING,
802         QUERY_CONTENT_TYPE,
803         QUERY_REFRESH,
804         QUERY_RECOMBINE,
805         QUERY_CAN_NAVIGATE,
806         QUERY_USES_NETWORK,
807         QUERY_IS_CACHED,
808         QUERY_IS_INSTALLEDENTRY,
809         QUERY_IS_CACHED_OR_MAPPED,
810         QUERY_USES_CACHE,
811         QUERY_IS_SECURE,
812         QUERY_IS_SAFE
813     } QUERYOPTION;
814
815     HRESULT ParseUrl(
816         [in] LPCWSTR pwzUrl,
817         [in] PARSEACTION ParseAction,
818         [in] DWORD dwParseFlags,
819         [out] LPWSTR pwzResult,
820         [in] DWORD cchResult,
821         [out] DWORD *pcchResult,
822         [in] DWORD dwReserved);
823
824     HRESULT CombineUrl(
825         [in] LPCWSTR pwzBaseUrl,
826         [in] LPCWSTR pwzRelativeUrl,
827         [in] DWORD dwCombineFlags,
828         [out] LPWSTR pwzResult,
829         [in] DWORD cchResult,
830         [out] DWORD *pcchResult,
831         [in] DWORD dwReserved);
832
833     HRESULT CompareUrl(
834         [in] LPCWSTR pwzUrl1,
835         [in] LPCWSTR pwzUrl2,
836         [in] DWORD dwCompareFlags);
837
838     HRESULT QueryInfo(
839         [in] LPCWSTR pwzUrl,
840         [in] QUERYOPTION OueryOption,
841         [in] DWORD dwQueryFlags,
842         [in, out,size_is(*pcbBuf)] LPVOID pBuffer,
843         [in] DWORD cbBuffer,
844         [in, out] DWORD *pcbBuf,
845         [in] DWORD dwReserved);
846 }
847
848 /*****************************************************************************
849  * IInternetSession interface
850  */
851 [
852     local,
853     object,
854     uuid(79eac9e7-baf9-11ce-8c82-00aa004ba90b),
855     pointer_default(unique)
856 ]
857 interface IInternetSession : IUnknown
858 {
859     typedef [unique] IInternetSession *LPIINTERNETSESSION;
860
861     typedef enum _tagOIBDG_FLAGS
862     {
863         OIBDG_APARTMENTTHREADED = 0x0100,
864         OIBDG_DATAONLY          = 0x1000
865     } OIBDG_FLAGS;
866
867     HRESULT RegisterNameSpace(
868         [in] IClassFactory *pCF,
869         [in] REFCLSID rclsid,
870         [in] LPCWSTR pwzProtocol,
871         [in] ULONG cPatterns,
872         [in] const LPCWSTR *ppwzPatterns,
873         [in] DWORD dwReserved);
874
875     HRESULT UnregisterNameSpace(
876         [in] IClassFactory *pCF,
877         [in] LPCWSTR pszProtocol);
878
879     HRESULT RegisterMimeFilter(
880         [in] IClassFactory *pCF,
881         [in] REFCLSID rclsid,
882         [in] LPCWSTR pwzType);
883
884     HRESULT UnregisterMimeFilter(
885         [in] IClassFactory *pCF,
886         [in] LPCWSTR pwzType);
887
888     HRESULT CreateBinding(
889         [in] LPBC pBC,
890         [in] LPCWSTR szUrl,
891         [in] IUnknown *pUnkOuter,
892         [out, unique] IUnknown **ppUnk,
893         [out, unique] IInternetProtocol **ppOInetProt,
894         [in] DWORD dwOption);
895
896     HRESULT SetSessionOption(
897         [in] DWORD dwOption,
898         [in] LPVOID pBuffer,
899         [in] DWORD dwBufferLength,
900         [in] DWORD dwReserved);
901 }
902
903 /*****************************************************************************
904  * IInternetSecurityMgrSite interface
905  */
906 [
907     local,
908     object,
909     uuid(79eac9ed-baf9-11ce-8c82-00aa004ba90b),
910     pointer_default(unique)
911 ]
912 interface IInternetSecurityMgrSite : IUnknown
913 {
914     HRESULT GetWindow(
915         [out] HWND *phwnd);
916
917     HRESULT EnableModeless(
918         [in] BOOL fEnable);
919 };
920
921
922 /*****************************************************************************
923  * IInternetSecurityManager interface
924  */
925 cpp_quote("#define SID_SInternetSecurityManager IID_IInternetSecurityManager")
926
927 [
928     object,
929     uuid(79eac9ee-baf9-11ce-8c82-00aa004ba90b),
930     pointer_default(unique)
931 ]
932 interface IInternetSecurityManager : IUnknown
933 {
934     HRESULT SetSecuritySite(
935         [in, unique] IInternetSecurityMgrSite *pSite);
936
937     HRESULT GetSecuritySite(
938         [out] IInternetSecurityMgrSite **ppSite);
939
940     HRESULT MapUrlToZone(
941         [in] LPCWSTR pwszUrl,
942         [out] DWORD *pdwZone,
943         [in] DWORD dwFlags);
944
945 cpp_quote("#define MAX_SIZE_SECURITY_ID 512")
946
947     HRESULT GetSecurityId(
948         [in] LPCWSTR pwszUrl,
949         [out, size_is(*pcbSecurityId)] BYTE *pbSecurityId,
950         [in, out] DWORD *pcbSecurityId,
951         [in] DWORD_PTR dwReserved);
952
953
954     typedef enum {
955         PUAF_DEFAULT                = 0x00,
956         PUAF_NOUI                   = 0x01,
957         PUAF_ISFILE                 = 0x02,
958         PUAF_WARN_IF_DENIED         = 0x04,
959         PUAF_FORCEUI_FOREGROUND     = 0x08,
960         PUAF_CHECK_TIPS             = 0x10
961     } PUAF;
962
963     HRESULT ProcessUrlAction(
964         [in] LPCWSTR pwszUrl,
965         [in] DWORD dwAction,
966         [out, size_is(cbPolicy)] BYTE *pPolicy,
967         [in] DWORD cbPolicy,
968         [in] BYTE *pContext,
969         [in] DWORD cbContext,
970         [in] DWORD dwFlags,
971         [in] DWORD dwReserved);
972
973     HRESULT QueryCustomPolicy(
974         [in] LPCWSTR pwszUrl,
975         [in] REFGUID guidKey,
976         [out, size_is(,*pcbPolicy)] BYTE **ppPolicy,
977         [out] DWORD *pcbPolicy,
978         [in] BYTE *pContext,
979         [in] DWORD cbContext,
980         [in] DWORD dwReserved);
981
982     typedef enum {
983         SZM_CREATE = 0x0,
984         SZM_DELETE = 0x1
985     } SZM_FLAGS;
986
987     HRESULT SetZoneMapping(
988         [in] DWORD dwZone,
989         [in] LPCWSTR lpszPattern,
990         [in] DWORD dwFlags);
991
992     HRESULT GetZoneMappings(
993         [in] DWORD dwZone,
994         [out] IEnumString **ppenumString,
995         [in] DWORD dwFlags);
996 };
997
998 /*****************************************************************************
999  * IInternetZoneManager interface
1000  */
1001 [
1002     local,
1003     object,
1004     uuid(79EAC9EF-BAf9-11CE-8C82-00AA004BA90B),
1005     pointer_default(unique)
1006 ]
1007 interface IInternetZoneManager : IUnknown
1008 {
1009     typedef [unique] IInternetZoneManager* LPURLZONEMANAGER;
1010
1011     typedef enum tagURLZONE
1012     {
1013         URLZONE_PREDEFINED_MIN  = 0,
1014         URLZONE_LOCAL_MACHINE   = 0,
1015         URLZONE_INTRANET        = 1,
1016         URLZONE_TRUSTED         = 2,
1017         URLZONE_INTERNET        = 3,
1018         URLZONE_UNTRUSTED       = 4,
1019         URLZONE_PREDEFINED_MAX  = 999,
1020         URLZONE_USER_MIN        = 1000,
1021         URLZONE_USER_MAX        = 10000,
1022     }  URLZONE;
1023
1024     typedef enum tagURLTEMPLATE
1025     {
1026         URLTEMPLATE_CUSTOM         = 0x00000,
1027         URLTEMPLATE_PREDEFINED_MIN = 0x10000,
1028         URLTEMPLATE_LOW            = 0x10000,
1029         URLTEMPLATE_MEDIUM         = 0x11000,
1030         URLTEMPLATE_HIGH           = 0x12000,
1031         URLTEMPLATE_PREDEFINED_MAX = 0x20000,
1032     } URLTEMPLATE ;
1033
1034     typedef enum {
1035         ZAFLAGS_CUSTOM_EDIT            = 0x00000001,
1036         ZAFLAGS_ADD_SITES              = 0x00000002,
1037         ZAFLAGS_REQUIRE_VERIFICATION   = 0x00000004,
1038         ZAFLAGS_INCLUDE_PROXY_OVERRIDE = 0x00000008,
1039         ZAFLAGS_INCLUDE_INTRANET_SITES = 0x00000010,
1040         ZAFLAGS_NO_UI                  = 0x00000020,
1041         ZAFLAGS_SUPPORTS_VERIFICATION  = 0x00000040,
1042         ZAFLAGS_UNC_AS_INTRANET        = 0x00000080,
1043     } ZAFLAGS ;
1044
1045     enum {
1046         MAX_ZONE_PATH        = 260,
1047         MAX_ZONE_DESCRIPTION = 200
1048     };
1049
1050     typedef struct _ZONEATTRIBUTES {
1051         ULONG cbSize;
1052         WCHAR szDisplayName[MAX_ZONE_PATH];
1053         WCHAR szDescription[MAX_ZONE_DESCRIPTION];
1054         WCHAR szIconPath[MAX_ZONE_PATH];
1055         DWORD dwTemplateMinLevel;
1056         DWORD dwTemplateRecommended;
1057         DWORD dwTemplateCurrentLevel;
1058         DWORD dwFlags;
1059     } ZONEATTRIBUTES, *LPZONEATTRIBUTES;
1060
1061     typedef enum _URLZONEREG {
1062         URLZONEREG_DEFAULT,
1063         URLZONEREG_HKLM,
1064         URLZONEREG_HKCU
1065     } URLZONEREG;
1066
1067     HRESULT GetZoneAttributes(
1068         [in]              DWORD dwZone,
1069         [in, out, unique] ZONEATTRIBUTES* pZoneAttributes);
1070
1071     HRESULT SetZoneAttributes(
1072         [in] DWORD dwZone,
1073         [in] ZONEATTRIBUTES* pZoneAttributes);
1074
1075     HRESULT GetZoneCustomPolicy(
1076         [in]  DWORD dwZone,
1077         [in]  REFGUID guidKey,
1078         [out] BYTE **ppPolicy,
1079         [out] DWORD* pcbPolicy,
1080         [in]  URLZONEREG ulrZoneReg);
1081
1082     HRESULT SetZoneCustomPolicy(
1083         [in] DWORD dwZone,
1084         [in] REFGUID guidKey,
1085         [in] BYTE *ppPolicy,
1086         [in] DWORD pcbPolicy,
1087         [in] URLZONEREG ulrZoneReg);
1088
1089     HRESULT GetZoneActionPolicy(
1090         [in]  DWORD dwZone,
1091         [in]  DWORD dwAction,
1092         [out] BYTE* pPolicy,
1093         [in]  DWORD cbPolicy,
1094         [in]  URLZONEREG urlZoneReg);
1095
1096     HRESULT SetZoneActionPolicy(
1097         [in] DWORD dwZone,
1098         [in] DWORD dwAction,
1099         [in] BYTE* pPolicy,
1100         [in] DWORD cbPolicy,
1101         [in] URLZONEREG urlZoneReg);
1102
1103     HRESULT PromptAction(
1104         [in] DWORD dwAction,
1105         [in] HWND hwndParent,
1106         [in] LPCWSTR pwszUrl,
1107         [in] LPCWSTR pwszText,
1108         [in] DWORD dwPromptFlags );
1109
1110     HRESULT LogAction(
1111         [in] DWORD dwAction,
1112         [in] LPCWSTR pwszUrl,
1113         [in] LPCWSTR pwszText,
1114         [in] DWORD dwLogFlags);
1115
1116     HRESULT CreateZoneEnumerator(
1117         [out] DWORD* pdwEnum,
1118         [out] DWORD* pdwCount,
1119         [in]  DWORD dwFlags);
1120
1121     HRESULT GetZoneAt(
1122         [in]  DWORD dwEnum,
1123         [in]  DWORD dwIndex,
1124         [out] DWORD* pdwZone);
1125
1126     HRESULT DestroyZoneEnumerator(
1127         [in] DWORD dwEnum);
1128
1129     HRESULT CopyTemplatePoliciesToZone(
1130         [in] DWORD dwTemplate,
1131         [in] DWORD dwZone,
1132         [in] DWORD dwReserved);
1133 }
1134
1135 typedef struct _tagSOFTDISTINFO
1136 {
1137     ULONG cbSize;
1138     DWORD dwFlags;
1139     DWORD dwAdState;
1140     LPWSTR szTitle;
1141     LPWSTR szAbstract;
1142     LPWSTR szHREF;
1143     DWORD dwInstalledVersionMS;
1144     DWORD dwInstalledVersionLS;
1145     DWORD dwUpdateVersionMS;
1146     DWORD dwUpdateVersionLS;
1147     DWORD dwAdvertisedVersionMS;
1148     DWORD dwAdvertisedVersionLS;
1149     DWORD dwReserved;
1150 } SOFTDISTINFO, *LPSOFTDISTINFO;
1151
1152 typedef struct _tagCODEBASEHOLD
1153 {
1154     DWORD cbSize;
1155     LPWSTR szDistUnit;
1156     LPWSTR szCodeBase;
1157     DWORD dwVersionMS;
1158     DWORD dwVersionLS;
1159     DWORD dwStyle;
1160 } CODEBASEHOLD, *LPCODEBASEHOLD;
1161
1162 [
1163     local,
1164     object,
1165     uuid(b15b8dc1-c7e1-11d0-8680-00aa00bdcb71),
1166     pointer_default(unique)
1167 ]
1168 interface ISoftDistExt : IUnknown
1169 {
1170     HRESULT ProcessSoftDist(
1171         [in] LPCWSTR szCDFURL,
1172         [in] IXMLElement *pSoftDistElement,
1173         [in, out] LPSOFTDISTINFO lpsdi );
1174
1175     HRESULT GetFirstCodeBase(
1176         [in] LPWSTR *szCodeBase,
1177         [in] LPDWORD dwMaxSize );
1178
1179     HRESULT GetNextCodeBase(
1180         [in] LPWSTR *szCodeBase,
1181         [in] LPDWORD dwMaxSize );
1182
1183     HRESULT AsyncInstallDistributionUnit(
1184         [in] IBindCtx *pbc,
1185         [in] LPVOID lpReserved,
1186         [in] DWORD flags,
1187         [in] LPCODEBASEHOLD lpcbh);
1188 }
1189
1190 cpp_quote("DEFINE_GUID(CLSID_InternetSecurityManager, 0x7b8a2d94, 0x0ac9, 0x11d1, 0x89, 0x6c, 0x00, 0xc0, 0x4f, 0xB6, 0xbf, 0xc4);")
1191 cpp_quote("DEFINE_GUID(CLSID_InternetZoneManager, 0x7B8A2D95, 0x0AC9, 0x11D1, 0x89, 0x6C, 0x00, 0xC0, 0x4F, 0xB6, 0xBF, 0xC4);")
1192 cpp_quote("DEFINE_GUID(IID_IAsyncMoniker, 0x79EAC9D3, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1193 cpp_quote("DEFINE_GUID(IID_IAsyncBindCtx, 0x79EAC9D4, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1194 cpp_quote("DEFINE_GUID(CLSID_StdURLMoniker, 0x79EAC9E0, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1195
1196 cpp_quote("DEFINE_GUID(CLSID_CdlProtocol, 0x3dd53d40, 0x7b8b, 0x11D0, 0xb0,0x13, 0x00,0xaa,0x00,0x59,0xce,0x02);")
1197 cpp_quote("DEFINE_GUID(CLSID_FileProtocol, 0x79EAC9E7, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1198 cpp_quote("DEFINE_GUID(CLSID_FtpProtocol, 0x79EAC9E3, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1199 cpp_quote("DEFINE_GUID(CLSID_GopherProtocol, 0x79EAC9E4, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1200 cpp_quote("DEFINE_GUID(CLSID_HttpProtocol, 0x79EAC9E2, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1201 cpp_quote("DEFINE_GUID(CLSID_HttpSProtocol, 0x79EAC9E5, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1202 cpp_quote("DEFINE_GUID(CLSID_MkProtocol, 0x79EAC9E6, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1203
1204
1205 cpp_quote("#define MK_S_ASYNCHRONOUS                0x000401E8")
1206 cpp_quote("#ifndef S_ASYNCHRONOUS")
1207 cpp_quote("#define S_ASYNCHRONOUS                   MK_S_ASYNCHRONOUS")
1208 cpp_quote("#endif")
1209
1210 cpp_quote("#define INET_E_ERROR_FIRST               0x800C0002")
1211 cpp_quote("#define INET_E_INVALID_URL               0x800C0002")
1212 cpp_quote("#define INET_E_NO_SESSION                0x800C0003")
1213 cpp_quote("#define INET_E_CANNOT_CONNECT            0x800C0004")
1214 cpp_quote("#define INET_E_RESOURCE_NOT_FOUND        0x800C0005")
1215 cpp_quote("#define INET_E_OBJECT_NOT_FOUND          0x800C0006")
1216 cpp_quote("#define INET_E_DATA_NOT_AVAILABLE        0x800C0007")
1217 cpp_quote("#define INET_E_DOWNLOAD_FAILURE          0x800C0008")
1218 cpp_quote("#define INET_E_AUTHENTICATION_REQUIRED   0x800C0009")
1219 cpp_quote("#define INET_E_NO_VALID_MEDIA            0x800C000A")
1220 cpp_quote("#define INET_E_CONNECTION_TIMEOUT        0x800C000B")
1221 cpp_quote("#define INET_E_INVALID_REQUEST           0x800C000C")
1222 cpp_quote("#define INET_E_UNKNOWN_PROTOCOL          0x800C000D")
1223 cpp_quote("#define INET_E_SECURITY_PROBLEM          0x800C000E")
1224 cpp_quote("#define INET_E_CANNOT_LOAD_DATA          0x800C000F")
1225 cpp_quote("#define INET_E_CANNOT_INSTANTIATE_OBJECT 0x800C0010")
1226 cpp_quote("#define INET_E_USE_DEFAULT_PROTOCOLHANDLER 0x800C0011")
1227 cpp_quote("#define INET_E_QUERYOPTION_UNKNOWN       0x800C0013")
1228 cpp_quote("#define INET_E_REDIRECT_FAILED           0x800C0014")
1229 cpp_quote("#define INET_E_REDIRECT_TO_DIR           0x800C0015")
1230 cpp_quote("#define INET_E_CANNOT_LOCK_REQUEST       0x800C0016")
1231 cpp_quote("#define INET_E_ERROR_LAST                INET_E_REDIRECT_TO_DIR")
1232 cpp_quote("#define INET_E_DEFAULT_ACTION            INET_E_USE_DEFAULT_PROTOCOLHANDLER")
1233
1234 cpp_quote("HRESULT WINAPI CoGetClassObjectFromURL(REFCLSID, LPCWSTR, DWORD, DWORD, LPCWSTR, LPBINDCTX, DWORD, LPVOID, REFIID, LPVOID*);")
1235 cpp_quote("HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk);")
1236 cpp_quote("HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved);")
1237 cpp_quote("HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD);")
1238 cpp_quote("HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN,LPCSTR,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1239 cpp_quote("HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN,LPCWSTR,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1240 cpp_quote("HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN,LPCSTR,LPSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1241 cpp_quote("HRESULT WINAPI URLDownloadToCacheFileW(LPUNKNOWN,LPCWSTR,LPWSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1242 cpp_quote("HRESULT WINAPI CoInternetGetSession(DWORD,IInternetSession**,DWORD);")
1243 cpp_quote("HRESULT WINAPI MkParseDisplayNameEx(IBindCtx*,LPCWSTR,ULONG*,IMoniker**);")
1244 cpp_quote("HRESULT WINAPI IsAsyncMoniker(IMoniker* pmk);")
1245 cpp_quote("HRESULT WINAPI CreateAsyncBindCtx(DWORD, IBindStatusCallback*, IEnumFORMATETC*, IBindCtx**);")
1246 cpp_quote("HRESULT WINAPI CreateAsyncBindCtxEx(IBindCtx*,DWORD,IBindStatusCallback*,IEnumFORMATETC*,IBindCtx**,DWORD);")
1247 cpp_quote("HRESULT WINAPI CoInternetCreateSecurityManager(IServiceProvider*,IInternetSecurityManager**,DWORD);")
1248 cpp_quote("HRESULT WINAPI CoInternetCombineUrl(LPCWSTR,LPCWSTR,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1249 cpp_quote("HRESULT WINAPI CoInternetCompareUrl(LPCWSTR,LPCWSTR,DWORD);")
1250 cpp_quote("HRESULT WINAPI CoInternetCreateZoneManager(IServiceProvider*, IInternetZoneManager**, DWORD);")
1251 cpp_quote("HRESULT WINAPI CoInternetParseUrl(LPCWSTR,PARSEACTION,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1252 cpp_quote("HRESULT WINAPI CoInternetQueryInfo(LPCWSTR,QUERYOPTION,DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1253 cpp_quote("HRESULT WINAPI CreateFormatEnumerator(UINT,FORMATETC*,IEnumFORMATETC**);")
1254 cpp_quote("HRESULT WINAPI GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi);")
1255 cpp_quote("HRESULT WINAPI FaultInIEFeature(HWND,uCLSSPEC*,QUERYCONTEXT*,DWORD);")
1256 cpp_quote("HRESULT WINAPI FindMimeFromData(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,LPWSTR*,DWORD);")
1257 cpp_quote("HRESULT WINAPI HlinkGoBack(IUnknown*);")
1258 cpp_quote("HRESULT WINAPI HlinkGoForward(IUnknown*);")
1259 cpp_quote("HRESULT WINAPI HlinkNavigateMoniker(IUnknown*,IMoniker*);")
1260 cpp_quote("HRESULT WINAPI HlinkNavigateString(IUnknown*,LPCWSTR);")
1261 cpp_quote("HRESULT WINAPI HlinkSimpleNavigateToMoniker(IMoniker*,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1262 cpp_quote("HRESULT WINAPI HlinkSimpleNavigateToString(LPCWSTR,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1263 cpp_quote("HRESULT WINAPI IsValidURL(LPBC,LPCWSTR,DWORD);")
1264 cpp_quote("HRESULT WINAPI ObtainUserAgentString(DWORD,LPSTR,DWORD*);")
1265 cpp_quote("HRESULT WINAPI RegisterFormatEnumerator(LPBC,IEnumFORMATETC*,DWORD);")
1266 cpp_quote("HRESULT WINAPI RevokeFormatEnumerator(LPBC,IEnumFORMATETC*);")
1267 cpp_quote("HRESULT WINAPI RevokeBindStatusCallback(LPBC,IBindStatusCallback*);")
1268 cpp_quote("void WINAPI ReleaseBindInfo(BINDINFO*);")
1269 cpp_quote("HRESULT WINAPI UrlMkGetSessionOption(DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1270 cpp_quote("HRESULT WINAPI UrlMkSetSessionOption(DWORD,LPVOID,DWORD,DWORD);")
1271
1272 cpp_quote("#define OInetCombineUrl CoInternetCombineUrl")
1273 cpp_quote("#define OInetCompareUrl CoInternetCompareUrl")
1274 cpp_quote("#define OInetGetSession CoInternetGetSession")
1275
1276 cpp_quote("#define MKSYS_URLMONIKER 6")