MMDRV_Install: Fix confusing indentation.
[wine] / include / urlmon.h
1 /*** Autogenerated by WIDL 0.1 from urlmon.idl - Do not edit ***/
2 #include <rpc.h>
3 #include <rpcndr.h>
4
5 #ifndef __WIDL_URLMON_H
6 #define __WIDL_URLMON_H
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 #include <objidl.h>
11 #include <oleidl.h>
12 #include <servprov.h>
13 #ifndef __IBinding_FWD_DEFINED__
14 #define __IBinding_FWD_DEFINED__
15 typedef struct IBinding IBinding;
16 #endif
17
18 typedef IBinding *LPBINDING;
19
20 /*****************************************************************************
21  * IBinding interface
22  */
23 #ifndef __IBinding_INTERFACE_DEFINED__
24 #define __IBinding_INTERFACE_DEFINED__
25
26 DEFINE_GUID(IID_IBinding, 0x79eac9c0, 0xbaf9, 0x11ce, 0x8c,0x82, 0x00,0xaa,0x00,0x4b,0xa9,0x0b);
27 #if defined(__cplusplus) && !defined(CINTERFACE)
28 struct IBinding : public IUnknown
29 {
30     virtual HRESULT STDMETHODCALLTYPE Abort(
31         ) = 0;
32
33     virtual HRESULT STDMETHODCALLTYPE Suspend(
34         ) = 0;
35
36     virtual HRESULT STDMETHODCALLTYPE Resume(
37         ) = 0;
38
39     virtual HRESULT STDMETHODCALLTYPE SetPriority(
40         LONG nPriority) = 0;
41
42     virtual HRESULT STDMETHODCALLTYPE GetPriority(
43         LONG* pnPriority) = 0;
44
45     virtual HRESULT STDMETHODCALLTYPE GetBindResult(
46         CLSID* pclsidProtocol,
47         DWORD* pdwResult,
48         LPOLESTR* pszResult,
49         DWORD* pdwReserved) = 0;
50
51 };
52 #else
53 typedef struct IBindingVtbl IBindingVtbl;
54 struct IBinding {
55     const IBindingVtbl* lpVtbl;
56 };
57 struct IBindingVtbl {
58     ICOM_MSVTABLE_COMPAT_FIELDS
59
60     /*** IUnknown methods ***/
61     HRESULT (STDMETHODCALLTYPE *QueryInterface)(
62         IBinding* This,
63         REFIID riid,
64         void** ppvObject);
65
66     ULONG (STDMETHODCALLTYPE *AddRef)(
67         IBinding* This);
68
69     ULONG (STDMETHODCALLTYPE *Release)(
70         IBinding* This);
71
72     /*** IBinding methods ***/
73     HRESULT (STDMETHODCALLTYPE *Abort)(
74         IBinding* This);
75
76     HRESULT (STDMETHODCALLTYPE *Suspend)(
77         IBinding* This);
78
79     HRESULT (STDMETHODCALLTYPE *Resume)(
80         IBinding* This);
81
82     HRESULT (STDMETHODCALLTYPE *SetPriority)(
83         IBinding* This,
84         LONG nPriority);
85
86     HRESULT (STDMETHODCALLTYPE *GetPriority)(
87         IBinding* This,
88         LONG* pnPriority);
89
90     HRESULT (STDMETHODCALLTYPE *GetBindResult)(
91         IBinding* This,
92         CLSID* pclsidProtocol,
93         DWORD* pdwResult,
94         LPOLESTR* pszResult,
95         DWORD* pdwReserved);
96
97 };
98
99 /*** IUnknown methods ***/
100 #define IBinding_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
101 #define IBinding_AddRef(p) (p)->lpVtbl->AddRef(p)
102 #define IBinding_Release(p) (p)->lpVtbl->Release(p)
103 /*** IBinding methods ***/
104 #define IBinding_Abort(p) (p)->lpVtbl->Abort(p)
105 #define IBinding_Suspend(p) (p)->lpVtbl->Suspend(p)
106 #define IBinding_Resume(p) (p)->lpVtbl->Resume(p)
107 #define IBinding_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
108 #define IBinding_GetPriority(p,a) (p)->lpVtbl->GetPriority(p,a)
109 #define IBinding_GetBindResult(p,a,b,c,d) (p)->lpVtbl->GetBindResult(p,a,b,c,d)
110
111 #endif
112
113 #define IBinding_METHODS \
114     ICOM_MSVTABLE_COMPAT_FIELDS \
115     /*** IUnknown methods ***/ \
116     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
117     STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
118     STDMETHOD_(ULONG,Release)(THIS) PURE; \
119     /*** IBinding methods ***/ \
120     STDMETHOD_(HRESULT,Abort)(THIS) PURE; \
121     STDMETHOD_(HRESULT,Suspend)(THIS) PURE; \
122     STDMETHOD_(HRESULT,Resume)(THIS) PURE; \
123     STDMETHOD_(HRESULT,SetPriority)(THIS_ LONG nPriority) PURE; \
124     STDMETHOD_(HRESULT,GetPriority)(THIS_ LONG* pnPriority) PURE; \
125     STDMETHOD_(HRESULT,GetBindResult)(THIS_ CLSID* pclsidProtocol, DWORD* pdwResult, LPOLESTR* pszResult, DWORD* pdwReserved) PURE;
126
127 HRESULT CALLBACK IBinding_Abort_Proxy(
128     IBinding* This);
129 void __RPC_STUB IBinding_Abort_Stub(
130     struct IRpcStubBuffer* This,
131     struct IRpcChannelBuffer* pRpcChannelBuffer,
132     PRPC_MESSAGE pRpcMessage,
133     DWORD* pdwStubPhase);
134 HRESULT CALLBACK IBinding_Suspend_Proxy(
135     IBinding* This);
136 void __RPC_STUB IBinding_Suspend_Stub(
137     struct IRpcStubBuffer* This,
138     struct IRpcChannelBuffer* pRpcChannelBuffer,
139     PRPC_MESSAGE pRpcMessage,
140     DWORD* pdwStubPhase);
141 HRESULT CALLBACK IBinding_Resume_Proxy(
142     IBinding* This);
143 void __RPC_STUB IBinding_Resume_Stub(
144     struct IRpcStubBuffer* This,
145     struct IRpcChannelBuffer* pRpcChannelBuffer,
146     PRPC_MESSAGE pRpcMessage,
147     DWORD* pdwStubPhase);
148 HRESULT CALLBACK IBinding_SetPriority_Proxy(
149     IBinding* This,
150     LONG nPriority);
151 void __RPC_STUB IBinding_SetPriority_Stub(
152     struct IRpcStubBuffer* This,
153     struct IRpcChannelBuffer* pRpcChannelBuffer,
154     PRPC_MESSAGE pRpcMessage,
155     DWORD* pdwStubPhase);
156 HRESULT CALLBACK IBinding_GetPriority_Proxy(
157     IBinding* This,
158     LONG* pnPriority);
159 void __RPC_STUB IBinding_GetPriority_Stub(
160     struct IRpcStubBuffer* This,
161     struct IRpcChannelBuffer* pRpcChannelBuffer,
162     PRPC_MESSAGE pRpcMessage,
163     DWORD* pdwStubPhase);
164 HRESULT CALLBACK IBinding_RemoteGetBindResult_Proxy(
165     IBinding* This,
166     CLSID* pclsidProtocol,
167     DWORD* pdwResult,
168     LPOLESTR* pszResult,
169     DWORD dwReserved);
170 void __RPC_STUB IBinding_RemoteGetBindResult_Stub(
171     struct IRpcStubBuffer* This,
172     struct IRpcChannelBuffer* pRpcChannelBuffer,
173     PRPC_MESSAGE pRpcMessage,
174     DWORD* pdwStubPhase);
175 HRESULT CALLBACK IBinding_GetBindResult_Proxy(
176     IBinding* This,
177     CLSID* pclsidProtocol,
178     DWORD* pdwResult,
179     LPOLESTR* pszResult,
180     DWORD* pdwReserved);
181 HRESULT __RPC_STUB IBinding_GetBindResult_Stub(
182     IBinding* This,
183     CLSID* pclsidProtocol,
184     DWORD* pdwResult,
185     LPOLESTR* pszResult,
186     DWORD dwReserved);
187
188 #endif  /* __IBinding_INTERFACE_DEFINED__ */
189
190 #ifndef __IBindStatusCallback_FWD_DEFINED__
191 #define __IBindStatusCallback_FWD_DEFINED__
192 typedef struct IBindStatusCallback IBindStatusCallback;
193 #endif
194
195 typedef IBindStatusCallback *LPBINDSTATUSCALLBACK;
196
197 typedef enum {
198     BINDF_ASYNCHRONOUS = 0x1,
199     BINDF_ASYNCSTORAGE = 0x2,
200     BINDF_NOPROGRESSIVERENDERING = 0x4,
201     BINDF_OFFLINEOPERATION = 0x8,
202     BINDF_GETNEWESTVERSION = 0x10,
203     BINDF_NOWRITECACHE = 0x20,
204     BINDF_NEEDFILE = 0x40,
205     BINDF_PULLDATA = 0x80,
206     BINDF_IGNORESECURITYPROBLEM = 0x100,
207     BINDF_RESYNCHRONIZE = 0x200,
208     BINDF_HYPERLINK = 0x400,
209     BINDF_NO_UI = 0x800,
210     BINDF_SILENTOPERATION = 0x1000,
211     BINDF_PRAGMA_NO_CACHE = 0x2000,
212     BINDF_GETCLASSOBJECT = 0x4000,
213     BINDF_RESERVED_1 = 0x8000,
214     BINDF_FREE_THREADED = 0x10000,
215     BINDF_DIRECT_READ = 0x20000,
216     BINDF_FORMS_SUBMIT = 0x40000,
217     BINDF_GETFROMCACHE_IF_NET_FAIL = 0x80000,
218     BINDF_FROMURLMON = 0x100000,
219     BINDF_FWD_BACK = 0x200000,
220     BINDF_PREFERDEFAULTHANDLER = 0x400000,
221     BINDF_ENFORCERESTRICTED = 0x800000
222 } BINDF;
223
224 typedef struct _tagBINDINFO {
225     ULONG cbSize;
226     LPWSTR szExtraInfo;
227     STGMEDIUM stgmedData;
228     DWORD grfBindInfoF;
229     DWORD dwBindVerb;
230     LPWSTR szCustomVerb;
231     DWORD cbStgmedData;
232     DWORD dwOptions;
233     DWORD dwOptionsFlags;
234     DWORD dwCodePage;
235     SECURITY_ATTRIBUTES securityAttributes;
236     IID iid;
237     IUnknown *pUnk;
238     DWORD dwReserved;
239 } BINDINFO;
240
241 typedef struct _REMSECURITY_ATTRIBUTES {
242     DWORD nLength;
243     DWORD lpSecurityDescriptor;
244     BOOL bInheritHandle;
245 } REMSECURITY_ATTRIBUTES, *PREMSECURITY_ATTRIBUTES, *LPREMSECURITY_ATTRIBUTES;
246
247 typedef struct _tagRemBINDINFO {
248     ULONG cbSize;
249     LPWSTR szExtraInfo;
250     DWORD grfBindInfoF;
251     DWORD dwBindVerb;
252     LPWSTR szCustomVerb;
253     DWORD cbstgmedData;
254     DWORD dwOptions;
255     DWORD dwOptionsFlags;
256     DWORD dwCodePage;
257     REMSECURITY_ATTRIBUTES securityAttributes;
258     IID iid;
259     IUnknown *pUnk;
260     DWORD dwReserved;
261 } RemBINDINFO;
262
263 typedef struct tagRemFORMATETC {
264     DWORD cfFormat;
265     DWORD ptd;
266     DWORD dwAspect;
267     LONG lindex;
268     DWORD tymed;
269 } RemFORMATETC, *LPREMFORMATETC;
270
271 typedef enum {
272     BSCF_FIRSTDATANOTIFICATION = 0x1,
273     BSCF_INTERMEDIATEDATANOTIFICATION = 0x2,
274     BSCF_LASTDATANOTIFICATION = 0x4,
275     BSCF_DATAFULLYAVAILABLE = 0x8,
276     BSCF_AVAILABLEDATASIZEUNKNOWN = 0x10
277 } BSCF;
278
279 typedef enum BINDSTATUS {
280     BINDSTATUS_FINDINGRESOURCE = 1,
281     BINDSTATUS_CONNECTING,
282     BINDSTATUS_REDIRECTING,
283     BINDSTATUS_BEGINDOWNLOADDATA,
284     BINDSTATUS_DOWNLOADINGDATA,
285     BINDSTATUS_ENDDOWNLOADDATA,
286     BINDSTATUS_BEGINDOWNLOADCOMPONENTS,
287     BINDSTATUS_INSTALLINGCOMPONENTS,
288     BINDSTATUS_ENDDOWNLOADCOMPONENTS,
289     BINDSTATUS_USINGCACHEDCOPY,
290     BINDSTATUS_SENDINGREQUEST,
291     BINDSTATUS_CLASSIDAVAILABLE,
292     BINDSTATUS_MIMETYPEAVAILABLE,
293     BINDSTATUS_CACHEFILENAMEAVAILABLE,
294     BINDSTATUS_BEGINSYNCOPERATION,
295     BINDSTATUS_ENDSYNCOPERATION,
296     BINDSTATUS_BEGINUPLOADDATA,
297     BINDSTATUS_UPLOADINGDATA,
298     BINDSTATUS_ENDUPLOADINGDATA,
299     BINDSTATUS_PROTOCOLCLASSID,
300     BINDSTATUS_ENCODING,
301     BINDSTATUS_VERFIEDMIMETYPEAVAILABLE,
302     BINDSTATUS_CLASSINSTALLLOCATION,
303     BINDSTATUS_DECODING,
304     BINDSTATUS_LOADINGMIMEHANDLER,
305     BINDSTATUS_CONTENTDISPOSITIONATTACH,
306     BINDSTATUS_FILTERREPORTMIMETYPE,
307     BINDSTATUS_CLSIDCANINSTANTIATE,
308     BINDSTATUS_IUNKNOWNAVAILABLE,
309     BINDSTATUS_DIRECTBIND,
310     BINDSTATUS_RAWMIMETYPE,
311     BINDSTATUS_PROXYDETECTING,
312     BINDSTATUS_ACCEPTRANGES,
313     BINDSTATUS_COOKIE_SENT,
314     BINDSTATUS_COMPACT_POLICY_RECEIVED,
315     BINDSTATUS_COOKIE_SUPPRESSED,
316     BINDSTATUS_COOKIE_STATE_UNKNOWN,
317     BINDSTATUS_COOKIE_STATE_ACCEPT,
318     BINDSTATUS_COOKIE_STATE_REJECT,
319     BINDSTATUS_COOKIE_STATE_PROMPT,
320     BINDSTATUS_COOKIE_STATE_LEASH,
321     BINDSTATUS_COOKIE_STATE_DOWNGRADE,
322     BINDSTATUS_POLICY_HREF,
323     BINDSTATUS_P3P_HEADER,
324     BINDSTATUS_SESSION_COOKIE_RECEIVED,
325     BINDSTATUS_PERSISTENT_COOKIE_RECEIVED,
326     BINDSTATUS_SESSION_COOKIES_ALLOWED,
327     BINDSTATUS_CACHECONTROL
328 } BINDSTATUS;
329
330 /*****************************************************************************
331  * IBindStatusCallback interface
332  */
333 #ifndef __IBindStatusCallback_INTERFACE_DEFINED__
334 #define __IBindStatusCallback_INTERFACE_DEFINED__
335
336 DEFINE_GUID(IID_IBindStatusCallback, 0x79eac9c1, 0xbaf9, 0x11ce, 0x8c,0x82, 0x00,0xaa,0x00,0x4b,0xa9,0x0b);
337 #if defined(__cplusplus) && !defined(CINTERFACE)
338 struct IBindStatusCallback : public IUnknown
339 {
340     virtual HRESULT STDMETHODCALLTYPE OnStartBinding(
341         DWORD dwReserved,
342         IBinding* pib) = 0;
343
344     virtual HRESULT STDMETHODCALLTYPE GetPriority(
345         LONG* pnPriority) = 0;
346
347     virtual HRESULT STDMETHODCALLTYPE OnLowResource(
348         DWORD reserved) = 0;
349
350     virtual HRESULT STDMETHODCALLTYPE OnProgress(
351         ULONG ulProgress,
352         ULONG ulProgressMax,
353         ULONG ulStatusCode,
354         LPCWSTR szStatusText) = 0;
355
356     virtual HRESULT STDMETHODCALLTYPE OnStopBinding(
357         HRESULT hresult,
358         LPCWSTR szError) = 0;
359
360     virtual HRESULT STDMETHODCALLTYPE GetBindInfo(
361         DWORD* grfBINDF,
362         BINDINFO* pbindinfo) = 0;
363
364     virtual HRESULT STDMETHODCALLTYPE OnDataAvailable(
365         DWORD grfBSCF,
366         DWORD dwSize,
367         FORMATETC* pformatetc,
368         STGMEDIUM* pstgmed) = 0;
369
370     virtual HRESULT STDMETHODCALLTYPE OnObjectAvailable(
371         REFIID riid,
372         IUnknown* punk) = 0;
373
374 };
375 #else
376 typedef struct IBindStatusCallbackVtbl IBindStatusCallbackVtbl;
377 struct IBindStatusCallback {
378     const IBindStatusCallbackVtbl* lpVtbl;
379 };
380 struct IBindStatusCallbackVtbl {
381     ICOM_MSVTABLE_COMPAT_FIELDS
382
383     /*** IUnknown methods ***/
384     HRESULT (STDMETHODCALLTYPE *QueryInterface)(
385         IBindStatusCallback* This,
386         REFIID riid,
387         void** ppvObject);
388
389     ULONG (STDMETHODCALLTYPE *AddRef)(
390         IBindStatusCallback* This);
391
392     ULONG (STDMETHODCALLTYPE *Release)(
393         IBindStatusCallback* This);
394
395     /*** IBindStatusCallback methods ***/
396     HRESULT (STDMETHODCALLTYPE *OnStartBinding)(
397         IBindStatusCallback* This,
398         DWORD dwReserved,
399         IBinding* pib);
400
401     HRESULT (STDMETHODCALLTYPE *GetPriority)(
402         IBindStatusCallback* This,
403         LONG* pnPriority);
404
405     HRESULT (STDMETHODCALLTYPE *OnLowResource)(
406         IBindStatusCallback* This,
407         DWORD reserved);
408
409     HRESULT (STDMETHODCALLTYPE *OnProgress)(
410         IBindStatusCallback* This,
411         ULONG ulProgress,
412         ULONG ulProgressMax,
413         ULONG ulStatusCode,
414         LPCWSTR szStatusText);
415
416     HRESULT (STDMETHODCALLTYPE *OnStopBinding)(
417         IBindStatusCallback* This,
418         HRESULT hresult,
419         LPCWSTR szError);
420
421     HRESULT (STDMETHODCALLTYPE *GetBindInfo)(
422         IBindStatusCallback* This,
423         DWORD* grfBINDF,
424         BINDINFO* pbindinfo);
425
426     HRESULT (STDMETHODCALLTYPE *OnDataAvailable)(
427         IBindStatusCallback* This,
428         DWORD grfBSCF,
429         DWORD dwSize,
430         FORMATETC* pformatetc,
431         STGMEDIUM* pstgmed);
432
433     HRESULT (STDMETHODCALLTYPE *OnObjectAvailable)(
434         IBindStatusCallback* This,
435         REFIID riid,
436         IUnknown* punk);
437
438 };
439
440 /*** IUnknown methods ***/
441 #define IBindStatusCallback_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
442 #define IBindStatusCallback_AddRef(p) (p)->lpVtbl->AddRef(p)
443 #define IBindStatusCallback_Release(p) (p)->lpVtbl->Release(p)
444 /*** IBindStatusCallback methods ***/
445 #define IBindStatusCallback_OnStartBinding(p,a,b) (p)->lpVtbl->OnStartBinding(p,a,b)
446 #define IBindStatusCallback_GetPriority(p,a) (p)->lpVtbl->GetPriority(p,a)
447 #define IBindStatusCallback_OnLowResource(p,a) (p)->lpVtbl->OnLowResource(p,a)
448 #define IBindStatusCallback_OnProgress(p,a,b,c,d) (p)->lpVtbl->OnProgress(p,a,b,c,d)
449 #define IBindStatusCallback_OnStopBinding(p,a,b) (p)->lpVtbl->OnStopBinding(p,a,b)
450 #define IBindStatusCallback_GetBindInfo(p,a,b) (p)->lpVtbl->GetBindInfo(p,a,b)
451 #define IBindStatusCallback_OnDataAvailable(p,a,b,c,d) (p)->lpVtbl->OnDataAvailable(p,a,b,c,d)
452 #define IBindStatusCallback_OnObjectAvailable(p,a,b) (p)->lpVtbl->OnObjectAvailable(p,a,b)
453
454 #endif
455
456 #define IBindStatusCallback_METHODS \
457     ICOM_MSVTABLE_COMPAT_FIELDS \
458     /*** IUnknown methods ***/ \
459     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
460     STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
461     STDMETHOD_(ULONG,Release)(THIS) PURE; \
462     /*** IBindStatusCallback methods ***/ \
463     STDMETHOD_(HRESULT,OnStartBinding)(THIS_ DWORD dwReserved, IBinding* pib) PURE; \
464     STDMETHOD_(HRESULT,GetPriority)(THIS_ LONG* pnPriority) PURE; \
465     STDMETHOD_(HRESULT,OnLowResource)(THIS_ DWORD reserved) PURE; \
466     STDMETHOD_(HRESULT,OnProgress)(THIS_ ULONG ulProgress, ULONG ulProgressMax, ULONG ulStatusCode, LPCWSTR szStatusText) PURE; \
467     STDMETHOD_(HRESULT,OnStopBinding)(THIS_ HRESULT hresult, LPCWSTR szError) PURE; \
468     STDMETHOD_(HRESULT,GetBindInfo)(THIS_ DWORD* grfBINDF, BINDINFO* pbindinfo) PURE; \
469     STDMETHOD_(HRESULT,OnDataAvailable)(THIS_ DWORD grfBSCF, DWORD dwSize, FORMATETC* pformatetc, STGMEDIUM* pstgmed) PURE; \
470     STDMETHOD_(HRESULT,OnObjectAvailable)(THIS_ REFIID riid, IUnknown* punk) PURE;
471
472 HRESULT CALLBACK IBindStatusCallback_OnStartBinding_Proxy(
473     IBindStatusCallback* This,
474     DWORD dwReserved,
475     IBinding* pib);
476 void __RPC_STUB IBindStatusCallback_OnStartBinding_Stub(
477     struct IRpcStubBuffer* This,
478     struct IRpcChannelBuffer* pRpcChannelBuffer,
479     PRPC_MESSAGE pRpcMessage,
480     DWORD* pdwStubPhase);
481 HRESULT CALLBACK IBindStatusCallback_GetPriority_Proxy(
482     IBindStatusCallback* This,
483     LONG* pnPriority);
484 void __RPC_STUB IBindStatusCallback_GetPriority_Stub(
485     struct IRpcStubBuffer* This,
486     struct IRpcChannelBuffer* pRpcChannelBuffer,
487     PRPC_MESSAGE pRpcMessage,
488     DWORD* pdwStubPhase);
489 HRESULT CALLBACK IBindStatusCallback_OnLowResource_Proxy(
490     IBindStatusCallback* This,
491     DWORD reserved);
492 void __RPC_STUB IBindStatusCallback_OnLowResource_Stub(
493     struct IRpcStubBuffer* This,
494     struct IRpcChannelBuffer* pRpcChannelBuffer,
495     PRPC_MESSAGE pRpcMessage,
496     DWORD* pdwStubPhase);
497 HRESULT CALLBACK IBindStatusCallback_OnProgress_Proxy(
498     IBindStatusCallback* This,
499     ULONG ulProgress,
500     ULONG ulProgressMax,
501     ULONG ulStatusCode,
502     LPCWSTR szStatusText);
503 void __RPC_STUB IBindStatusCallback_OnProgress_Stub(
504     struct IRpcStubBuffer* This,
505     struct IRpcChannelBuffer* pRpcChannelBuffer,
506     PRPC_MESSAGE pRpcMessage,
507     DWORD* pdwStubPhase);
508 HRESULT CALLBACK IBindStatusCallback_OnStopBinding_Proxy(
509     IBindStatusCallback* This,
510     HRESULT hresult,
511     LPCWSTR szError);
512 void __RPC_STUB IBindStatusCallback_OnStopBinding_Stub(
513     struct IRpcStubBuffer* This,
514     struct IRpcChannelBuffer* pRpcChannelBuffer,
515     PRPC_MESSAGE pRpcMessage,
516     DWORD* pdwStubPhase);
517 HRESULT CALLBACK IBindStatusCallback_RemoteGetBindInfo_Proxy(
518     IBindStatusCallback* This,
519     DWORD* grfBINDF,
520     RemBINDINFO* pbindinfo,
521     RemSTGMEDIUM* pstgmed);
522 void __RPC_STUB IBindStatusCallback_RemoteGetBindInfo_Stub(
523     struct IRpcStubBuffer* This,
524     struct IRpcChannelBuffer* pRpcChannelBuffer,
525     PRPC_MESSAGE pRpcMessage,
526     DWORD* pdwStubPhase);
527 HRESULT CALLBACK IBindStatusCallback_GetBindInfo_Proxy(
528     IBindStatusCallback* This,
529     DWORD* grfBINDF,
530     BINDINFO* pbindinfo);
531 HRESULT __RPC_STUB IBindStatusCallback_GetBindInfo_Stub(
532     IBindStatusCallback* This,
533     DWORD* grfBINDF,
534     RemBINDINFO* pbindinfo,
535     RemSTGMEDIUM* pstgmed);
536 HRESULT CALLBACK IBindStatusCallback_RemoteOnDataAvailable_Proxy(
537     IBindStatusCallback* This,
538     DWORD grfBSCF,
539     DWORD dwSize,
540     RemFORMATETC* pformatetc,
541     RemSTGMEDIUM* pstgmed);
542 void __RPC_STUB IBindStatusCallback_RemoteOnDataAvailable_Stub(
543     struct IRpcStubBuffer* This,
544     struct IRpcChannelBuffer* pRpcChannelBuffer,
545     PRPC_MESSAGE pRpcMessage,
546     DWORD* pdwStubPhase);
547 HRESULT CALLBACK IBindStatusCallback_OnDataAvailable_Proxy(
548     IBindStatusCallback* This,
549     DWORD grfBSCF,
550     DWORD dwSize,
551     FORMATETC* pformatetc,
552     STGMEDIUM* pstgmed);
553 HRESULT __RPC_STUB IBindStatusCallback_OnDataAvailable_Stub(
554     IBindStatusCallback* This,
555     DWORD grfBSCF,
556     DWORD dwSize,
557     RemFORMATETC* pformatetc,
558     RemSTGMEDIUM* pstgmed);
559 HRESULT CALLBACK IBindStatusCallback_OnObjectAvailable_Proxy(
560     IBindStatusCallback* This,
561     REFIID riid,
562     IUnknown* punk);
563 void __RPC_STUB IBindStatusCallback_OnObjectAvailable_Stub(
564     struct IRpcStubBuffer* This,
565     struct IRpcChannelBuffer* pRpcChannelBuffer,
566     PRPC_MESSAGE pRpcMessage,
567     DWORD* pdwStubPhase);
568
569 #endif  /* __IBindStatusCallback_INTERFACE_DEFINED__ */
570
571 #ifndef __IBindHost_FWD_DEFINED__
572 #define __IBindHost_FWD_DEFINED__
573 typedef struct IBindHost IBindHost;
574 #endif
575
576 typedef IBindHost *LPBINDHOST;
577
578 /*****************************************************************************
579  * IBindHost interface
580  */
581 #ifndef __IBindHost_INTERFACE_DEFINED__
582 #define __IBindHost_INTERFACE_DEFINED__
583
584 DEFINE_GUID(IID_IBindHost, 0xfc4801a1, 0x2ba9, 0x11cf, 0xa2,0x29, 0x00,0xaa,0x00,0x3d,0x73,0x52);
585 #if defined(__cplusplus) && !defined(CINTERFACE)
586 struct IBindHost : public IUnknown
587 {
588     virtual HRESULT STDMETHODCALLTYPE CreateMoniker(
589         LPOLESTR szName,
590         IBindCtx* pBC,
591         IMoniker** ppmk,
592         DWORD dwReserved) = 0;
593
594     virtual HRESULT STDMETHODCALLTYPE MonikerBindToStorage(
595         IMoniker* pMk,
596         IBindCtx* pBC,
597         IBindStatusCallback* pBSC,
598         REFIID riid,
599         void** ppvObj) = 0;
600
601     virtual HRESULT STDMETHODCALLTYPE MonikerBindToObject(
602         IMoniker* pMk,
603         IBindCtx* pBC,
604         IBindStatusCallback* pBSC,
605         REFIID riid,
606         void** ppvObj) = 0;
607
608 };
609 #else
610 typedef struct IBindHostVtbl IBindHostVtbl;
611 struct IBindHost {
612     const IBindHostVtbl* lpVtbl;
613 };
614 struct IBindHostVtbl {
615     ICOM_MSVTABLE_COMPAT_FIELDS
616
617     /*** IUnknown methods ***/
618     HRESULT (STDMETHODCALLTYPE *QueryInterface)(
619         IBindHost* This,
620         REFIID riid,
621         void** ppvObject);
622
623     ULONG (STDMETHODCALLTYPE *AddRef)(
624         IBindHost* This);
625
626     ULONG (STDMETHODCALLTYPE *Release)(
627         IBindHost* This);
628
629     /*** IBindHost methods ***/
630     HRESULT (STDMETHODCALLTYPE *CreateMoniker)(
631         IBindHost* This,
632         LPOLESTR szName,
633         IBindCtx* pBC,
634         IMoniker** ppmk,
635         DWORD dwReserved);
636
637     HRESULT (STDMETHODCALLTYPE *MonikerBindToStorage)(
638         IBindHost* This,
639         IMoniker* pMk,
640         IBindCtx* pBC,
641         IBindStatusCallback* pBSC,
642         REFIID riid,
643         void** ppvObj);
644
645     HRESULT (STDMETHODCALLTYPE *MonikerBindToObject)(
646         IBindHost* This,
647         IMoniker* pMk,
648         IBindCtx* pBC,
649         IBindStatusCallback* pBSC,
650         REFIID riid,
651         void** ppvObj);
652
653 };
654
655 /*** IUnknown methods ***/
656 #define IBindHost_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
657 #define IBindHost_AddRef(p) (p)->lpVtbl->AddRef(p)
658 #define IBindHost_Release(p) (p)->lpVtbl->Release(p)
659 /*** IBindHost methods ***/
660 #define IBindHost_CreateMoniker(p,a,b,c,d) (p)->lpVtbl->CreateMoniker(p,a,b,c,d)
661 #define IBindHost_MonikerBindToStorage(p,a,b,c,d,e) (p)->lpVtbl->MonikerBindToStorage(p,a,b,c,d,e)
662 #define IBindHost_MonikerBindToObject(p,a,b,c,d,e) (p)->lpVtbl->MonikerBindToObject(p,a,b,c,d,e)
663
664 #endif
665
666 #define IBindHost_METHODS \
667     ICOM_MSVTABLE_COMPAT_FIELDS \
668     /*** IUnknown methods ***/ \
669     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
670     STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
671     STDMETHOD_(ULONG,Release)(THIS) PURE; \
672     /*** IBindHost methods ***/ \
673     STDMETHOD_(HRESULT,CreateMoniker)(THIS_ LPOLESTR szName, IBindCtx* pBC, IMoniker** ppmk, DWORD dwReserved) PURE; \
674     STDMETHOD_(HRESULT,MonikerBindToStorage)(THIS_ IMoniker* pMk, IBindCtx* pBC, IBindStatusCallback* pBSC, REFIID riid, void** ppvObj) PURE; \
675     STDMETHOD_(HRESULT,MonikerBindToObject)(THIS_ IMoniker* pMk, IBindCtx* pBC, IBindStatusCallback* pBSC, REFIID riid, void** ppvObj) PURE;
676
677 HRESULT CALLBACK IBindHost_CreateMoniker_Proxy(
678     IBindHost* This,
679     LPOLESTR szName,
680     IBindCtx* pBC,
681     IMoniker** ppmk,
682     DWORD dwReserved);
683 void __RPC_STUB IBindHost_CreateMoniker_Stub(
684     struct IRpcStubBuffer* This,
685     struct IRpcChannelBuffer* pRpcChannelBuffer,
686     PRPC_MESSAGE pRpcMessage,
687     DWORD* pdwStubPhase);
688 HRESULT CALLBACK IBindHost_RemoteMonikerBindToStorage_Proxy(
689     IBindHost* This,
690     IMoniker* pMk,
691     IBindCtx* pBC,
692     IBindStatusCallback* pBSC,
693     REFIID riid,
694     IUnknown** ppvObj);
695 void __RPC_STUB IBindHost_RemoteMonikerBindToStorage_Stub(
696     struct IRpcStubBuffer* This,
697     struct IRpcChannelBuffer* pRpcChannelBuffer,
698     PRPC_MESSAGE pRpcMessage,
699     DWORD* pdwStubPhase);
700 HRESULT CALLBACK IBindHost_MonikerBindToStorage_Proxy(
701     IBindHost* This,
702     IMoniker* pMk,
703     IBindCtx* pBC,
704     IBindStatusCallback* pBSC,
705     REFIID riid,
706     void** ppvObj);
707 HRESULT __RPC_STUB IBindHost_MonikerBindToStorage_Stub(
708     IBindHost* This,
709     IMoniker* pMk,
710     IBindCtx* pBC,
711     IBindStatusCallback* pBSC,
712     REFIID riid,
713     IUnknown** ppvObj);
714 HRESULT CALLBACK IBindHost_RemoteMonikerBindToObject_Proxy(
715     IBindHost* This,
716     IMoniker* pMk,
717     IBindCtx* pBC,
718     IBindStatusCallback* pBSC,
719     REFIID riid,
720     IUnknown** ppvObj);
721 void __RPC_STUB IBindHost_RemoteMonikerBindToObject_Stub(
722     struct IRpcStubBuffer* This,
723     struct IRpcChannelBuffer* pRpcChannelBuffer,
724     PRPC_MESSAGE pRpcMessage,
725     DWORD* pdwStubPhase);
726 HRESULT CALLBACK IBindHost_MonikerBindToObject_Proxy(
727     IBindHost* This,
728     IMoniker* pMk,
729     IBindCtx* pBC,
730     IBindStatusCallback* pBSC,
731     REFIID riid,
732     void** ppvObj);
733 HRESULT __RPC_STUB IBindHost_MonikerBindToObject_Stub(
734     IBindHost* This,
735     IMoniker* pMk,
736     IBindCtx* pBC,
737     IBindStatusCallback* pBSC,
738     REFIID riid,
739     IUnknown** ppvObj);
740
741 #endif  /* __IBindHost_INTERFACE_DEFINED__ */
742
743 #ifndef __IWinInetInfo_FWD_DEFINED__
744 #define __IWinInetInfo_FWD_DEFINED__
745 typedef struct IWinInetInfo IWinInetInfo;
746 #endif
747
748 typedef IWinInetInfo *LPWININETINFO;
749
750 /*****************************************************************************
751  * IWinInetInfo interface
752  */
753 #ifndef __IWinInetInfo_INTERFACE_DEFINED__
754 #define __IWinInetInfo_INTERFACE_DEFINED__
755
756 DEFINE_GUID(IID_IWinInetInfo, 0x79eac9d6, 0xbafa, 0x11ce, 0x8c,0x82, 0x00,0xaa,0x00,0x4b,0xa9,0x0b);
757 #if defined(__cplusplus) && !defined(CINTERFACE)
758 struct IWinInetInfo : public IUnknown
759 {
760     virtual HRESULT STDMETHODCALLTYPE QueryOption(
761         DWORD dwOption,
762         LPVOID pBuffer,
763         DWORD* pcbBuf) = 0;
764
765 };
766 #else
767 typedef struct IWinInetInfoVtbl IWinInetInfoVtbl;
768 struct IWinInetInfo {
769     const IWinInetInfoVtbl* lpVtbl;
770 };
771 struct IWinInetInfoVtbl {
772     ICOM_MSVTABLE_COMPAT_FIELDS
773
774     /*** IUnknown methods ***/
775     HRESULT (STDMETHODCALLTYPE *QueryInterface)(
776         IWinInetInfo* This,
777         REFIID riid,
778         void** ppvObject);
779
780     ULONG (STDMETHODCALLTYPE *AddRef)(
781         IWinInetInfo* This);
782
783     ULONG (STDMETHODCALLTYPE *Release)(
784         IWinInetInfo* This);
785
786     /*** IWinInetInfo methods ***/
787     HRESULT (STDMETHODCALLTYPE *QueryOption)(
788         IWinInetInfo* This,
789         DWORD dwOption,
790         LPVOID pBuffer,
791         DWORD* pcbBuf);
792
793 };
794
795 /*** IUnknown methods ***/
796 #define IWinInetInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
797 #define IWinInetInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
798 #define IWinInetInfo_Release(p) (p)->lpVtbl->Release(p)
799 /*** IWinInetInfo methods ***/
800 #define IWinInetInfo_QueryOption(p,a,b,c) (p)->lpVtbl->QueryOption(p,a,b,c)
801
802 #endif
803
804 #define IWinInetInfo_METHODS \
805     ICOM_MSVTABLE_COMPAT_FIELDS \
806     /*** IUnknown methods ***/ \
807     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
808     STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
809     STDMETHOD_(ULONG,Release)(THIS) PURE; \
810     /*** IWinInetInfo methods ***/ \
811     STDMETHOD_(HRESULT,QueryOption)(THIS_ DWORD dwOption, LPVOID pBuffer, DWORD* pcbBuf) PURE;
812
813 HRESULT CALLBACK IWinInetInfo_RemoteQueryOption_Proxy(
814     IWinInetInfo* This,
815     DWORD dwOption,
816     BYTE* pBuffer,
817     DWORD* pcbBuf);
818 void __RPC_STUB IWinInetInfo_RemoteQueryOption_Stub(
819     struct IRpcStubBuffer* This,
820     struct IRpcChannelBuffer* pRpcChannelBuffer,
821     PRPC_MESSAGE pRpcMessage,
822     DWORD* pdwStubPhase);
823 HRESULT CALLBACK IWinInetInfo_QueryOption_Proxy(
824     IWinInetInfo* This,
825     DWORD dwOption,
826     LPVOID pBuffer,
827     DWORD* pcbBuf);
828 HRESULT __RPC_STUB IWinInetInfo_QueryOption_Stub(
829     IWinInetInfo* This,
830     DWORD dwOption,
831     BYTE* pBuffer,
832     DWORD* pcbBuf);
833
834 #endif  /* __IWinInetInfo_INTERFACE_DEFINED__ */
835
836 #ifndef __IWinInetHttpInfo_FWD_DEFINED__
837 #define __IWinInetHttpInfo_FWD_DEFINED__
838 typedef struct IWinInetHttpInfo IWinInetHttpInfo;
839 #endif
840
841 typedef IWinInetHttpInfo *LPWININETHTTPINFO;
842
843 /*****************************************************************************
844  * IWinInetHttpInfo interface
845  */
846 #ifndef __IWinInetHttpInfo_INTERFACE_DEFINED__
847 #define __IWinInetHttpInfo_INTERFACE_DEFINED__
848
849 DEFINE_GUID(IID_IWinInetHttpInfo, 0x79eac9d8, 0xbafa, 0x11ce, 0x8c,0x82, 0x00,0xaa,0x00,0x4b,0xa9,0x0b);
850 #if defined(__cplusplus) && !defined(CINTERFACE)
851 struct IWinInetHttpInfo : public IWinInetInfo
852 {
853     virtual HRESULT STDMETHODCALLTYPE QueryInfo(
854         DWORD dwOption,
855         LPVOID pBuffer,
856         DWORD* pcbBuf,
857         DWORD* pdwFlags,
858         DWORD* pdwReserved) = 0;
859
860 };
861 #else
862 typedef struct IWinInetHttpInfoVtbl IWinInetHttpInfoVtbl;
863 struct IWinInetHttpInfo {
864     const IWinInetHttpInfoVtbl* lpVtbl;
865 };
866 struct IWinInetHttpInfoVtbl {
867     ICOM_MSVTABLE_COMPAT_FIELDS
868
869     /*** IUnknown methods ***/
870     HRESULT (STDMETHODCALLTYPE *QueryInterface)(
871         IWinInetHttpInfo* This,
872         REFIID riid,
873         void** ppvObject);
874
875     ULONG (STDMETHODCALLTYPE *AddRef)(
876         IWinInetHttpInfo* This);
877
878     ULONG (STDMETHODCALLTYPE *Release)(
879         IWinInetHttpInfo* This);
880
881     /*** IWinInetInfo methods ***/
882     HRESULT (STDMETHODCALLTYPE *QueryOption)(
883         IWinInetHttpInfo* This,
884         DWORD dwOption,
885         LPVOID pBuffer,
886         DWORD* pcbBuf);
887
888     /*** IWinInetHttpInfo methods ***/
889     HRESULT (STDMETHODCALLTYPE *QueryInfo)(
890         IWinInetHttpInfo* This,
891         DWORD dwOption,
892         LPVOID pBuffer,
893         DWORD* pcbBuf,
894         DWORD* pdwFlags,
895         DWORD* pdwReserved);
896
897 };
898
899 /*** IUnknown methods ***/
900 #define IWinInetHttpInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
901 #define IWinInetHttpInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
902 #define IWinInetHttpInfo_Release(p) (p)->lpVtbl->Release(p)
903 /*** IWinInetInfo methods ***/
904 #define IWinInetHttpInfo_QueryOption(p,a,b,c) (p)->lpVtbl->QueryOption(p,a,b,c)
905 /*** IWinInetHttpInfo methods ***/
906 #define IWinInetHttpInfo_QueryInfo(p,a,b,c,d,e) (p)->lpVtbl->QueryInfo(p,a,b,c,d,e)
907
908 #endif
909
910 #define IWinInetHttpInfo_METHODS \
911     ICOM_MSVTABLE_COMPAT_FIELDS \
912     /*** IUnknown methods ***/ \
913     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
914     STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
915     STDMETHOD_(ULONG,Release)(THIS) PURE; \
916     /*** IWinInetInfo methods ***/ \
917     STDMETHOD_(HRESULT,QueryOption)(THIS_ DWORD dwOption, LPVOID pBuffer, DWORD* pcbBuf) PURE; \
918     /*** IWinInetHttpInfo methods ***/ \
919     STDMETHOD_(HRESULT,QueryInfo)(THIS_ DWORD dwOption, LPVOID pBuffer, DWORD* pcbBuf, DWORD* pdwFlags, DWORD* pdwReserved) PURE;
920
921 HRESULT CALLBACK IWinInetHttpInfo_RemoteQueryInfo_Proxy(
922     IWinInetHttpInfo* This,
923     DWORD dwOption,
924     BYTE* pBuffer,
925     DWORD* pcbBuf,
926     DWORD* pdwFlags,
927     DWORD* pdwReserved);
928 void __RPC_STUB IWinInetHttpInfo_RemoteQueryInfo_Stub(
929     struct IRpcStubBuffer* This,
930     struct IRpcChannelBuffer* pRpcChannelBuffer,
931     PRPC_MESSAGE pRpcMessage,
932     DWORD* pdwStubPhase);
933 HRESULT CALLBACK IWinInetHttpInfo_QueryInfo_Proxy(
934     IWinInetHttpInfo* This,
935     DWORD dwOption,
936     LPVOID pBuffer,
937     DWORD* pcbBuf,
938     DWORD* pdwFlags,
939     DWORD* pdwReserved);
940 HRESULT __RPC_STUB IWinInetHttpInfo_QueryInfo_Stub(
941     IWinInetHttpInfo* This,
942     DWORD dwOption,
943     BYTE* pBuffer,
944     DWORD* pcbBuf,
945     DWORD* pdwFlags,
946     DWORD* pdwReserved);
947
948 #endif  /* __IWinInetHttpInfo_INTERFACE_DEFINED__ */
949
950 #ifndef __IPersistMoniker_FWD_DEFINED__
951 #define __IPersistMoniker_FWD_DEFINED__
952 typedef struct IPersistMoniker IPersistMoniker;
953 #endif
954
955 typedef IPersistMoniker *LPPERSISTMONIKER;
956
957 /*****************************************************************************
958  * IPersistMoniker interface
959  */
960 #ifndef __IPersistMoniker_INTERFACE_DEFINED__
961 #define __IPersistMoniker_INTERFACE_DEFINED__
962
963 DEFINE_GUID(IID_IPersistMoniker, 0x79eac9c9, 0xbaf9, 0x11ce, 0x8c,0x82, 0x00,0xaa,0x00,0x4b,0xa9,0x0b);
964 #if defined(__cplusplus) && !defined(CINTERFACE)
965 struct IPersistMoniker : public IUnknown
966 {
967     virtual HRESULT STDMETHODCALLTYPE GetClassID(
968         CLSID* pClassID) = 0;
969
970     virtual HRESULT STDMETHODCALLTYPE IsDirty(
971         ) = 0;
972
973     virtual HRESULT STDMETHODCALLTYPE Load(
974         BOOL fFullyAvailable,
975         IMoniker* pimkName,
976         LPBC pibc,
977         DWORD grfMode) = 0;
978
979     virtual HRESULT STDMETHODCALLTYPE Save(
980         IMoniker* pimkName,
981         LPBC pbc,
982         BOOL fRemember) = 0;
983
984     virtual HRESULT STDMETHODCALLTYPE SaveCompleted(
985         IMoniker* pimkName,
986         LPBC pibc) = 0;
987
988     virtual HRESULT STDMETHODCALLTYPE GetCurMoniker(
989         IMoniker** ppimkName) = 0;
990
991 };
992 #else
993 typedef struct IPersistMonikerVtbl IPersistMonikerVtbl;
994 struct IPersistMoniker {
995     const IPersistMonikerVtbl* lpVtbl;
996 };
997 struct IPersistMonikerVtbl {
998     ICOM_MSVTABLE_COMPAT_FIELDS
999
1000     /*** IUnknown methods ***/
1001     HRESULT (STDMETHODCALLTYPE *QueryInterface)(
1002         IPersistMoniker* This,
1003         REFIID riid,
1004         void** ppvObject);
1005
1006     ULONG (STDMETHODCALLTYPE *AddRef)(
1007         IPersistMoniker* This);
1008
1009     ULONG (STDMETHODCALLTYPE *Release)(
1010         IPersistMoniker* This);
1011
1012     /*** IPersistMoniker methods ***/
1013     HRESULT (STDMETHODCALLTYPE *GetClassID)(
1014         IPersistMoniker* This,
1015         CLSID* pClassID);
1016
1017     HRESULT (STDMETHODCALLTYPE *IsDirty)(
1018         IPersistMoniker* This);
1019
1020     HRESULT (STDMETHODCALLTYPE *Load)(
1021         IPersistMoniker* This,
1022         BOOL fFullyAvailable,
1023         IMoniker* pimkName,
1024         LPBC pibc,
1025         DWORD grfMode);
1026
1027     HRESULT (STDMETHODCALLTYPE *Save)(
1028         IPersistMoniker* This,
1029         IMoniker* pimkName,
1030         LPBC pbc,
1031         BOOL fRemember);
1032
1033     HRESULT (STDMETHODCALLTYPE *SaveCompleted)(
1034         IPersistMoniker* This,
1035         IMoniker* pimkName,
1036         LPBC pibc);
1037
1038     HRESULT (STDMETHODCALLTYPE *GetCurMoniker)(
1039         IPersistMoniker* This,
1040         IMoniker** ppimkName);
1041
1042 };
1043
1044 /*** IUnknown methods ***/
1045 #define IPersistMoniker_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1046 #define IPersistMoniker_AddRef(p) (p)->lpVtbl->AddRef(p)
1047 #define IPersistMoniker_Release(p) (p)->lpVtbl->Release(p)
1048 /*** IPersistMoniker methods ***/
1049 #define IPersistMoniker_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a)
1050 #define IPersistMoniker_IsDirty(p) (p)->lpVtbl->IsDirty(p)
1051 #define IPersistMoniker_Load(p,a,b,c,d) (p)->lpVtbl->Load(p,a,b,c,d)
1052 #define IPersistMoniker_Save(p,a,b,c) (p)->lpVtbl->Save(p,a,b,c)
1053 #define IPersistMoniker_SaveCompleted(p,a,b) (p)->lpVtbl->SaveCompleted(p,a,b)
1054 #define IPersistMoniker_GetCurMoniker(p,a) (p)->lpVtbl->GetCurMoniker(p,a)
1055
1056 #endif
1057
1058 #define IPersistMoniker_METHODS \
1059     ICOM_MSVTABLE_COMPAT_FIELDS \
1060     /*** IUnknown methods ***/ \
1061     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
1062     STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
1063     STDMETHOD_(ULONG,Release)(THIS) PURE; \
1064     /*** IPersistMoniker methods ***/ \
1065     STDMETHOD_(HRESULT,GetClassID)(THIS_ CLSID* pClassID) PURE; \
1066     STDMETHOD_(HRESULT,IsDirty)(THIS) PURE; \
1067     STDMETHOD_(HRESULT,Load)(THIS_ BOOL fFullyAvailable, IMoniker* pimkName, LPBC pibc, DWORD grfMode) PURE; \
1068     STDMETHOD_(HRESULT,Save)(THIS_ IMoniker* pimkName, LPBC pbc, BOOL fRemember) PURE; \
1069     STDMETHOD_(HRESULT,SaveCompleted)(THIS_ IMoniker* pimkName, LPBC pibc) PURE; \
1070     STDMETHOD_(HRESULT,GetCurMoniker)(THIS_ IMoniker** ppimkName) PURE;
1071
1072 HRESULT CALLBACK IPersistMoniker_GetClassID_Proxy(
1073     IPersistMoniker* This,
1074     CLSID* pClassID);
1075 void __RPC_STUB IPersistMoniker_GetClassID_Stub(
1076     struct IRpcStubBuffer* This,
1077     struct IRpcChannelBuffer* pRpcChannelBuffer,
1078     PRPC_MESSAGE pRpcMessage,
1079     DWORD* pdwStubPhase);
1080 HRESULT CALLBACK IPersistMoniker_IsDirty_Proxy(
1081     IPersistMoniker* This);
1082 void __RPC_STUB IPersistMoniker_IsDirty_Stub(
1083     struct IRpcStubBuffer* This,
1084     struct IRpcChannelBuffer* pRpcChannelBuffer,
1085     PRPC_MESSAGE pRpcMessage,
1086     DWORD* pdwStubPhase);
1087 HRESULT CALLBACK IPersistMoniker_Load_Proxy(
1088     IPersistMoniker* This,
1089     BOOL fFullyAvailable,
1090     IMoniker* pimkName,
1091     LPBC pibc,
1092     DWORD grfMode);
1093 void __RPC_STUB IPersistMoniker_Load_Stub(
1094     struct IRpcStubBuffer* This,
1095     struct IRpcChannelBuffer* pRpcChannelBuffer,
1096     PRPC_MESSAGE pRpcMessage,
1097     DWORD* pdwStubPhase);
1098 HRESULT CALLBACK IPersistMoniker_Save_Proxy(
1099     IPersistMoniker* This,
1100     IMoniker* pimkName,
1101     LPBC pbc,
1102     BOOL fRemember);
1103 void __RPC_STUB IPersistMoniker_Save_Stub(
1104     struct IRpcStubBuffer* This,
1105     struct IRpcChannelBuffer* pRpcChannelBuffer,
1106     PRPC_MESSAGE pRpcMessage,
1107     DWORD* pdwStubPhase);
1108 HRESULT CALLBACK IPersistMoniker_SaveCompleted_Proxy(
1109     IPersistMoniker* This,
1110     IMoniker* pimkName,
1111     LPBC pibc);
1112 void __RPC_STUB IPersistMoniker_SaveCompleted_Stub(
1113     struct IRpcStubBuffer* This,
1114     struct IRpcChannelBuffer* pRpcChannelBuffer,
1115     PRPC_MESSAGE pRpcMessage,
1116     DWORD* pdwStubPhase);
1117 HRESULT CALLBACK IPersistMoniker_GetCurMoniker_Proxy(
1118     IPersistMoniker* This,
1119     IMoniker** ppimkName);
1120 void __RPC_STUB IPersistMoniker_GetCurMoniker_Stub(
1121     struct IRpcStubBuffer* This,
1122     struct IRpcChannelBuffer* pRpcChannelBuffer,
1123     PRPC_MESSAGE pRpcMessage,
1124     DWORD* pdwStubPhase);
1125
1126 #endif  /* __IPersistMoniker_INTERFACE_DEFINED__ */
1127
1128 #ifndef __IInternetProtocolInfo_FWD_DEFINED__
1129 #define __IInternetProtocolInfo_FWD_DEFINED__
1130 typedef struct IInternetProtocolInfo IInternetProtocolInfo;
1131 #endif
1132
1133 typedef IInternetProtocolInfo *LPIINTERNETPROTOCOLINFO;
1134
1135 typedef enum _tagPARSEACTION {
1136     PARSE_CANONICALIZE = 1,
1137     PARSE_FRIENDLY,
1138     PARSE_SECURITY_URL,
1139     PARSE_ROOTDOCUMENT,
1140     PARSE_DOCUMENT,
1141     PARSE_ANCHOR,
1142     PARSE_ENCODE,
1143     PARSE_DECODE,
1144     PARSE_PATH_FROM_URL,
1145     PARSE_URL_FROM_PATH,
1146     PARSE_MIME,
1147     PARSE_SERVER,
1148     PARSE_SCHEMA,
1149     PARSE_SITE,
1150     PARSE_DOMAIN,
1151     PARSE_LOCATION,
1152     PARSE_SECURITY_DOMAIN,
1153     PARSE_ESCAPE,
1154     PARSE_UNESCAPE
1155 } PARSEACTION;
1156
1157 typedef enum _tagPSUACTION {
1158     PSU_DEFAULT = 1,
1159     PSU_SECURITY_URL_ONLY
1160 } PSUACTION;
1161
1162 typedef enum _tagQUERYOPTION {
1163     QUERY_EXPIRATION_DATE = 1,
1164     QUERY_TIME_OF_LAST_CHANGE,
1165     QUERY_CONTENT_ENCODING,
1166     QUERY_CONTENT_TYPE,
1167     QUERY_REFRESH,
1168     QUERY_RECOMBINE,
1169     QUERY_CAN_NAVIGATE,
1170     QUERY_USES_NETWORK,
1171     QUERY_IS_CACHED,
1172     QUERY_IS_INSTALLEDENTRY,
1173     QUERY_IS_CACHED_OR_MAPPED,
1174     QUERY_USES_CACHE,
1175     QUERY_IS_SECURE,
1176     QUERY_IS_SAFE
1177 } QUERYOPTION;
1178
1179 /*****************************************************************************
1180  * IInternetProtocolInfo interface
1181  */
1182 #ifndef __IInternetProtocolInfo_INTERFACE_DEFINED__
1183 #define __IInternetProtocolInfo_INTERFACE_DEFINED__
1184
1185 DEFINE_GUID(IID_IInternetProtocolInfo, 0x79eac9ec, 0xbaf9, 0x11ce, 0x8c,0x82, 0x00,0xaa,0x00,0x4b,0xa9,0x0b);
1186 #if defined(__cplusplus) && !defined(CINTERFACE)
1187 struct IInternetProtocolInfo : public IUnknown
1188 {
1189     virtual HRESULT STDMETHODCALLTYPE ParseUrl(
1190         LPCWSTR pwzUrl,
1191         PARSEACTION ParseAction,
1192         DWORD dwParseFlags,
1193         LPWSTR pwzResult,
1194         DWORD cchResult,
1195         DWORD* pcchResult,
1196         DWORD dwReserved) = 0;
1197
1198     virtual HRESULT STDMETHODCALLTYPE CombineUrl(
1199         LPCWSTR pwzBaseUrl,
1200         LPCWSTR pwzRelativeUrl,
1201         DWORD dwCombineFlags,
1202         LPWSTR pwzResult,
1203         DWORD cchResult,
1204         DWORD* pcchResult,
1205         DWORD dwReserved) = 0;
1206
1207     virtual HRESULT STDMETHODCALLTYPE CompareUrl(
1208         LPCWSTR pwzUrl1,
1209         LPCWSTR pwzUrl2,
1210         DWORD dwCompareFlags) = 0;
1211
1212     virtual HRESULT STDMETHODCALLTYPE QueryInfo(
1213         LPCWSTR pwzUrl,
1214         QUERYOPTION OueryOption,
1215         DWORD dwQueryFlags,
1216         LPVOID pBuffer,
1217         DWORD cbBuffer,
1218         DWORD* pcbBuf,
1219         DWORD dwReserved) = 0;
1220
1221 };
1222 #else
1223 typedef struct IInternetProtocolInfoVtbl IInternetProtocolInfoVtbl;
1224 struct IInternetProtocolInfo {
1225     const IInternetProtocolInfoVtbl* lpVtbl;
1226 };
1227 struct IInternetProtocolInfoVtbl {
1228     ICOM_MSVTABLE_COMPAT_FIELDS
1229
1230     /*** IUnknown methods ***/
1231     HRESULT (STDMETHODCALLTYPE *QueryInterface)(
1232         IInternetProtocolInfo* This,
1233         REFIID riid,
1234         void** ppvObject);
1235
1236     ULONG (STDMETHODCALLTYPE *AddRef)(
1237         IInternetProtocolInfo* This);
1238
1239     ULONG (STDMETHODCALLTYPE *Release)(
1240         IInternetProtocolInfo* This);
1241
1242     /*** IInternetProtocolInfo methods ***/
1243     HRESULT (STDMETHODCALLTYPE *ParseUrl)(
1244         IInternetProtocolInfo* This,
1245         LPCWSTR pwzUrl,
1246         PARSEACTION ParseAction,
1247         DWORD dwParseFlags,
1248         LPWSTR pwzResult,
1249         DWORD cchResult,
1250         DWORD* pcchResult,
1251         DWORD dwReserved);
1252
1253     HRESULT (STDMETHODCALLTYPE *CombineUrl)(
1254         IInternetProtocolInfo* This,
1255         LPCWSTR pwzBaseUrl,
1256         LPCWSTR pwzRelativeUrl,
1257         DWORD dwCombineFlags,
1258         LPWSTR pwzResult,
1259         DWORD cchResult,
1260         DWORD* pcchResult,
1261         DWORD dwReserved);
1262
1263     HRESULT (STDMETHODCALLTYPE *CompareUrl)(
1264         IInternetProtocolInfo* This,
1265         LPCWSTR pwzUrl1,
1266         LPCWSTR pwzUrl2,
1267         DWORD dwCompareFlags);
1268
1269     HRESULT (STDMETHODCALLTYPE *QueryInfo)(
1270         IInternetProtocolInfo* This,
1271         LPCWSTR pwzUrl,
1272         QUERYOPTION OueryOption,
1273         DWORD dwQueryFlags,
1274         LPVOID pBuffer,
1275         DWORD cbBuffer,
1276         DWORD* pcbBuf,
1277         DWORD dwReserved);
1278
1279 };
1280
1281 /*** IUnknown methods ***/
1282 #define IInternetProtocolInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1283 #define IInternetProtocolInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
1284 #define IInternetProtocolInfo_Release(p) (p)->lpVtbl->Release(p)
1285 /*** IInternetProtocolInfo methods ***/
1286 #define IInternetProtocolInfo_ParseUrl(p,a,b,c,d,e,f,g) (p)->lpVtbl->ParseUrl(p,a,b,c,d,e,f,g)
1287 #define IInternetProtocolInfo_CombineUrl(p,a,b,c,d,e,f,g) (p)->lpVtbl->CombineUrl(p,a,b,c,d,e,f,g)
1288 #define IInternetProtocolInfo_CompareUrl(p,a,b,c) (p)->lpVtbl->CompareUrl(p,a,b,c)
1289 #define IInternetProtocolInfo_QueryInfo(p,a,b,c,d,e,f,g) (p)->lpVtbl->QueryInfo(p,a,b,c,d,e,f,g)
1290
1291 #endif
1292
1293 #define IInternetProtocolInfo_METHODS \
1294     ICOM_MSVTABLE_COMPAT_FIELDS \
1295     /*** IUnknown methods ***/ \
1296     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
1297     STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
1298     STDMETHOD_(ULONG,Release)(THIS) PURE; \
1299     /*** IInternetProtocolInfo methods ***/ \
1300     STDMETHOD_(HRESULT,ParseUrl)(THIS_ LPCWSTR pwzUrl, PARSEACTION ParseAction, DWORD dwParseFlags, LPWSTR pwzResult, DWORD cchResult, DWORD* pcchResult, DWORD dwReserved) PURE; \
1301     STDMETHOD_(HRESULT,CombineUrl)(THIS_ LPCWSTR pwzBaseUrl, LPCWSTR pwzRelativeUrl, DWORD dwCombineFlags, LPWSTR pwzResult, DWORD cchResult, DWORD* pcchResult, DWORD dwReserved) PURE; \
1302     STDMETHOD_(HRESULT,CompareUrl)(THIS_ LPCWSTR pwzUrl1, LPCWSTR pwzUrl2, DWORD dwCompareFlags) PURE; \
1303     STDMETHOD_(HRESULT,QueryInfo)(THIS_ LPCWSTR pwzUrl, QUERYOPTION OueryOption, DWORD dwQueryFlags, LPVOID pBuffer, DWORD cbBuffer, DWORD* pcbBuf, DWORD dwReserved) PURE;
1304
1305 HRESULT CALLBACK IInternetProtocolInfo_ParseUrl_Proxy(
1306     IInternetProtocolInfo* This,
1307     LPCWSTR pwzUrl,
1308     PARSEACTION ParseAction,
1309     DWORD dwParseFlags,
1310     LPWSTR pwzResult,
1311     DWORD cchResult,
1312     DWORD* pcchResult,
1313     DWORD dwReserved);
1314 void __RPC_STUB IInternetProtocolInfo_ParseUrl_Stub(
1315     struct IRpcStubBuffer* This,
1316     struct IRpcChannelBuffer* pRpcChannelBuffer,
1317     PRPC_MESSAGE pRpcMessage,
1318     DWORD* pdwStubPhase);
1319 HRESULT CALLBACK IInternetProtocolInfo_CombineUrl_Proxy(
1320     IInternetProtocolInfo* This,
1321     LPCWSTR pwzBaseUrl,
1322     LPCWSTR pwzRelativeUrl,
1323     DWORD dwCombineFlags,
1324     LPWSTR pwzResult,
1325     DWORD cchResult,
1326     DWORD* pcchResult,
1327     DWORD dwReserved);
1328 void __RPC_STUB IInternetProtocolInfo_CombineUrl_Stub(
1329     struct IRpcStubBuffer* This,
1330     struct IRpcChannelBuffer* pRpcChannelBuffer,
1331     PRPC_MESSAGE pRpcMessage,
1332     DWORD* pdwStubPhase);
1333 HRESULT CALLBACK IInternetProtocolInfo_CompareUrl_Proxy(
1334     IInternetProtocolInfo* This,
1335     LPCWSTR pwzUrl1,
1336     LPCWSTR pwzUrl2,
1337     DWORD dwCompareFlags);
1338 void __RPC_STUB IInternetProtocolInfo_CompareUrl_Stub(
1339     struct IRpcStubBuffer* This,
1340     struct IRpcChannelBuffer* pRpcChannelBuffer,
1341     PRPC_MESSAGE pRpcMessage,
1342     DWORD* pdwStubPhase);
1343 HRESULT CALLBACK IInternetProtocolInfo_QueryInfo_Proxy(
1344     IInternetProtocolInfo* This,
1345     LPCWSTR pwzUrl,
1346     QUERYOPTION OueryOption,
1347     DWORD dwQueryFlags,
1348     LPVOID pBuffer,
1349     DWORD cbBuffer,
1350     DWORD* pcbBuf,
1351     DWORD dwReserved);
1352 void __RPC_STUB IInternetProtocolInfo_QueryInfo_Stub(
1353     struct IRpcStubBuffer* This,
1354     struct IRpcChannelBuffer* pRpcChannelBuffer,
1355     PRPC_MESSAGE pRpcMessage,
1356     DWORD* pdwStubPhase);
1357
1358 #endif  /* __IInternetProtocolInfo_INTERFACE_DEFINED__ */
1359
1360 #define MK_S_ASYNCHRONOUS                0x000401E8
1361 #define S_ASYNCHRONOUS                   MK_S_ASYNCHRONOUS
1362 #define INET_E_ERROR_FIRST               0x800C0002L
1363 #define INET_E_INVALID_URL               0x800C0002L
1364 #define INET_E_NO_SESSION                0x800C0003L
1365 #define INET_E_CANNOT_CONNECT            0x800C0004L
1366 #define INET_E_RESOURCE_NOT_FOUND        0x800C0005L
1367 #define INET_E_OBJECT_NOT_FOUND          0x800C0006L
1368 #define INET_E_DATA_NOT_AVAILABLE        0x800C0007L
1369 #define INET_E_DOWNLOAD_FAILURE          0x800C0008L
1370 #define INET_E_AUTHENTICATION_REQUIRED   0x800C0009L
1371 #define INET_E_NO_VALID_MEDIA            0x800C000AL
1372 #define INET_E_CONNECTION_TIMEOUT        0x800C000BL
1373 #define INET_E_INVALID_REQUEST           0x800C000CL
1374 #define INET_E_UNKNOWN_PROTOCOL          0x800C000DL
1375 #define INET_E_SECURITY_PROBLEM          0x800C000EL
1376 #define INET_E_CANNOT_LOAD_DATA          0x800C000FL
1377 #define INET_E_CANNOT_INSTANTIATE_OBJECT 0x800C0010L
1378 #define INET_E_QUERYOPTION_UNKNOWN       0x800C0013L
1379 #define INET_E_REDIRECT_FAILED           0x800C0014L
1380 #define INET_E_REDIRECT_TO_DIR           0x800C0015L
1381 #define INET_E_CANNOT_LOCK_REQUEST       0x800C0016L
1382 #define INET_E_ERROR_LAST                INET_E_REDIRECT_TO_DIR
1383 HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk);
1384 HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved);
1385 HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD);
1386 HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN pCaller, LPCSTR szURL,  LPCSTR  szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB);
1387 HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN pCaller, LPCWSTR szURL, LPCWSTR szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB);
1388 #ifdef __cplusplus
1389 }
1390 #endif
1391 #endif /* __WIDL_URLMON_H */