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