2 * Copyright (C) 2000 Ulrich Czekalla
3 * Copyright (C) 2003 Alexandre Julliard
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.
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.
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
22 import
"servprov.idl";
25 cpp_quote
("#ifdef WINE_NO_UNICODE_MACROS")
26 cpp_quote
("#undef GetUserName")
29 interface IInternetProtocolSink
;
31 /*****************************************************************************
36 uuid(79eac9e0
-baf9
-11ce
-8c82
-00aa004ba90b
),
37 pointer_default(unique),
40 interface IInternet
: IUnknown
42 typedef [unique] IInternet
*LPIINTERNET
;
45 /*****************************************************************************
50 uuid(79eac9c0
-baf9
-11ce
-8c82
-00aa004ba90b
),
51 pointer_default(unique)
53 interface IBinding
: IUnknown
55 typedef [unique] IBinding
*LPBINDING
;
65 [out] LONG * pnPriority
);
68 HRESULT GetBindResult
(
69 [out] CLSID
*pclsidProtocol
,
70 [out] DWORD
*pdwResult
,
71 [out] LPOLESTR
*pszResult
,
72 [in, out] DWORD
*pdwReserved
);
74 [call_as
(GetBindResult
)]
75 HRESULT RemoteGetBindResult
(
76 [out] CLSID
*pclsidProtocol
,
77 [out] DWORD
*pdwResult
,
78 [out] LPOLESTR
*pszResult
,
79 [in] DWORD dwReserved
);
83 /*****************************************************************************
84 * IBindStatusCallback interface
88 uuid(79eac9c1
-baf9
-11ce
-8c82
-00aa004ba90b
),
89 pointer_default(unique)
91 interface IBindStatusCallback
: IUnknown
93 typedef [unique] IBindStatusCallback
*LPBINDSTATUSCALLBACK
;
97 BINDVERB_GET
= 0x00000000,
98 BINDVERB_POST
= 0x00000001,
99 BINDVERB_PUT
= 0x00000002,
100 BINDVERB_CUSTOM
= 0x00000003
105 BINDINFOF_URLENCODESTGMEDDATA
= 0x00000001,
106 BINDINFOF_URLENCODEDEXTRAINFO
= 0x00000002
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
139 URL_ENCODING_NONE
= 0x00000000,
140 URL_ENCODING_ENABLE_UTF8
= 0x10000000,
141 URL_ENCODING_DISABLE_UTF8
= 0x20000000
144 typedef struct _tagBINDINFO
148 STGMEDIUM stgmedData
;
154 DWORD dwOptionsFlags
;
156 SECURITY_ATTRIBUTES securityAttributes
;
162 typedef struct _REMSECURITY_ATTRIBUTES
165 DWORD lpSecurityDescriptor
;
167 } REMSECURITY_ATTRIBUTES
, *PREMSECURITY_ATTRIBUTES
, *LPREMSECURITY_ATTRIBUTES
;
169 typedef struct _tagRemBINDINFO
178 DWORD dwOptionsFlags
;
180 REMSECURITY_ATTRIBUTES securityAttributes
;
186 typedef struct tagRemFORMATETC
193 } RemFORMATETC
, *LPREMFORMATETC
;
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
206 typedef enum BINDSTATUS
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
,
229 BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE
,
230 BINDSTATUS_CLASSINSTALLLOCATION
,
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
263 HRESULT OnStartBinding
(
264 [in] DWORD dwReserved
,
265 [in] IBinding
* pib
);
268 [out] LONG * pnPriority
);
270 HRESULT OnLowResource
(
271 [in] DWORD reserved
);
274 [in] ULONG ulProgress
,
275 [in] ULONG ulProgressMax
,
276 [in] ULONG ulStatusCode
,
277 [in] LPCWSTR szStatusText
);
279 HRESULT OnStopBinding
(
280 [in] HRESULT hresult,
281 [in, unique] LPCWSTR szError
);
285 [out] DWORD
*grfBINDF
,
286 [in, out, unique] BINDINFO
* pbindinfo
);
288 [call_as
(GetBindInfo
)]
289 HRESULT RemoteGetBindInfo
(
290 [out] DWORD
*grfBINDF
,
291 [in, out, unique] RemBINDINFO
* pbindinfo
,
292 [in, out, unique] RemSTGMEDIUM
* pstgmed
);
295 HRESULT OnDataAvailable
(
298 [in] FORMATETC
* pformatetc
,
299 [in] STGMEDIUM
* pstgmed
);
301 [call_as
(OnDataAvailable
)]
302 HRESULT RemoteOnDataAvailable
(
305 [in] RemFORMATETC
*pformatetc
,
306 [in] RemSTGMEDIUM
* pstgmed
);
308 HRESULT OnObjectAvailable
(
310 [in, iid_is(riid
)] IUnknown
* punk
);
313 /*****************************************************************************
314 * IBindStatusCallbackEx interface
318 uuid(aaa74ef9
-8ee7
-4659-88d9
-f8c504da73cc
),
319 pointer_default(unique)
321 interface IBindStatusCallbackEx
: IBindStatusCallback
323 typedef [unique] IBindStatusCallbackEx
*LPBINDSTATUSCALLBACKEX
;
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,
336 HRESULT GetBindInfoEx
(
337 [out] DWORD
*grfBINDF
,
338 [in, out, unique] BINDINFO
*pbindinfo
,
339 [out] DWORD
*grfBINDF2
,
340 [out] DWORD
*pdwReserved
);
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
);
352 /*****************************************************************************
353 * IAuthenticate interface
358 uuid(79EAC9D0
-BAf9
-11CE
-8C82
-00AA004BA90B
),
359 pointer_default(unique)
361 interface IAuthenticate
: IUnknown
363 typedef [unique] IAuthenticate
*LPAUTHENTICATION
;
365 HRESULT Authenticate
(
367 [out] LPWSTR
*pszUsername
,
368 [out] LPWSTR
*pszPassword
);
371 /*****************************************************************************
372 * IHttpNegotiate interface
376 uuid(79EAC9D2
-BAF9
-11CE
-8C82
-00AA004BA90B
),
377 pointer_default(unique)
379 interface IHttpNegotiate
: IUnknown
381 typedef [unique] IHttpNegotiate
*LPHTTPNEGOTIATE
;
383 HRESULT BeginningTransaction
(
385 [in, unique] LPCWSTR szHeaders
,
386 [in] DWORD dwReserved
,
387 [out] LPWSTR
*pszAdditionalHeaders
);
390 [in] DWORD dwResponseCode
,
391 [in, unique] LPCWSTR szResponseHeaders
,
392 [in, unique] LPCWSTR szRequestHeaders
,
393 [out] LPWSTR
*pszAdditionalRequestHeaders
);
396 /*****************************************************************************
397 * IHttpNegotiate2 interface
401 uuid(4F9F9FCB
-E0F4
-48eb
-B7AB
-FA2EA9365CB4
),
402 pointer_default(unique)
404 interface IHttpNegotiate2
: IHttpNegotiate
406 typedef [unique] IHttpNegotiate2
*LPHTTPNEGOTIATE2
;
408 HRESULT GetRootSecurityId
(
409 [out, size_is(*pcbSecurityId
)] BYTE *pbSecurityId
,
410 [in, out] DWORD
*pcbSecurityId
,
411 [in] DWORD_PTR dwReserved
);
414 /*****************************************************************************
415 * IBindHost interface
417 cpp_quote
("#define SID_IBindHost IID_IBindHost")
418 cpp_quote
("#define SID_SBindHost IID_IBindHost")
421 uuid(fc4801a1
-2ba9
-11cf
-a229
-00aa003d7352
),
422 pointer_default(unique)
424 interface IBindHost
: IUnknown
426 typedef [unique] IBindHost
*LPBINDHOST
;
428 HRESULT CreateMoniker
(
429 [in] LPOLESTR szName
,
431 [out] IMoniker
** ppmk
,
432 [in] DWORD dwReserved
);
435 HRESULT MonikerBindToStorage
(
438 [in] IBindStatusCallback
*pBSC
,
440 [out] void **ppvObj
);
442 [call_as
(MonikerBindToStorage
)]
443 HRESULT RemoteMonikerBindToStorage
(
444 [in, unique] IMoniker
*pMk
,
445 [in, unique] IBindCtx
*pBC
,
446 [in, unique] IBindStatusCallback
*pBSC
,
448 [out, iid_is(riid
)] IUnknown
**ppvObj
);
451 HRESULT MonikerBindToObject
(
454 [in] IBindStatusCallback
*pBSC
,
456 [out] void **ppvObj
);
458 [call_as
(MonikerBindToObject
)]
459 HRESULT RemoteMonikerBindToObject
(
460 [in, unique] IMoniker
*pMk
,
461 [in, unique] IBindCtx
*pBC
,
462 [in, unique] IBindStatusCallback
*pBSC
,
464 [out, iid_is(riid
)] IUnknown
**ppvObj
);
468 /*****************************************************************************
469 * IWinInetInfo interface
473 uuid(79eac9d6
-bafa
-11ce
-8c82
-00aa004ba90b
),
474 pointer_default(unique)
476 interface IWinInetInfo
: IUnknown
478 typedef [unique] IWinInetInfo
*LPWININETINFO
;
483 [in, out, size_is(*pcbBuf
)] LPVOID pBuffer
,
484 [in, out] DWORD
*pcbBuf
);
486 [call_as
(QueryOption
)]
487 HRESULT RemoteQueryOption
(
489 [in, out, size_is(*pcbBuf
)] BYTE *pBuffer
,
490 [in, out] DWORD
*pcbBuf
);
495 /*****************************************************************************
496 * IWinInetHttpInfo interface
500 uuid(79eac9d8
-bafa
-11ce
-8c82
-00aa004ba90b
),
501 pointer_default(unique)
503 interface IWinInetHttpInfo
: IWinInetInfo
505 typedef [unique] IWinInetHttpInfo
*LPWININETHTTPINFO
;
510 [in, out,size_is(*pcbBuf
)] LPVOID pBuffer
,
511 [in, out] DWORD
*pcbBuf
,
512 [in, out] DWORD
*pdwFlags
,
513 [in, out] DWORD
*pdwReserved
);
516 HRESULT RemoteQueryInfo
(
518 [in,out,size_is(*pcbBuf
)] BYTE *pBuffer
,
519 [in, out] DWORD
*pcbBuf
,
520 [in, out] DWORD
*pdwFlags
,
521 [in, out] DWORD
*pdwReserved
);
524 /*****************************************************************************
525 * IWindowForBindingUI interface
530 uuid(79eac9d5
-bafa
-11ce
-8c82
-00aa004ba90b
),
531 pointer_default(unique)
533 interface IWindowForBindingUI
: IUnknown
535 typedef [unique] IWindowForBindingUI
*LPWINDOWFORBINDINGUI
;
538 [in] REFGUID rguidReason
,
542 /*****************************************************************************
543 * IHttpSecurity interface
547 uuid(79eac9d7
-bafa
-11ce
-8c82
-00aa004ba90b
),
548 pointer_default(unique)
550 interface IHttpSecurity
: IWindowForBindingUI
552 typedef [unique] IHttpSecurity
*LPHTTPSECURITY
;
554 HRESULT OnSecurityProblem
(
555 [in] DWORD dwProblem
);
559 /*****************************************************************************
560 * IPersistMoniker interface
564 uuid(79eac9c9
-baf9
-11ce
-8c82
-00aa004ba90b
),
565 pointer_default(unique)
567 interface IPersistMoniker
: IUnknown
569 typedef [unique] IPersistMoniker
*LPPERSISTMONIKER
;
572 [out] CLSID
*pClassID
);
577 [in] BOOL fFullyAvailable
,
578 [in] IMoniker
*pimkName
,
583 [in] IMoniker
*pimkName
,
585 [in] BOOL fRemember
);
587 HRESULT SaveCompleted
(
588 [in] IMoniker
*pimkName
,
591 HRESULT GetCurMoniker
(
592 [out] IMoniker
**ppimkName
);
595 /*****************************************************************************
596 * IMonikerProp interface
600 uuid(A5CA5F7F
-1847-4D87
-9C5B
-918509F7511D
),
601 pointer_default(unique)
603 interface IMonikerProp
: IUnknown
605 typedef [unique] IMonikerProp
*LPMONIKERPROP
;
611 TRUSTEDDOWNLOADPROP
= 3,
616 [in] MONIKERPROPERTY mkp
,
620 cpp_quote
("#ifndef _LPBINDPROTOCOL_DEFINED")
621 cpp_quote
("#define _LPBINDPROTOCOL_DEFINED")
623 /*****************************************************************************
624 * IBindProtocol interface
629 uuid(79EAC9CD
-BAF9
-11CE
-8C82
-00AA004BA90B
),
630 pointer_default(unique)
632 interface IBindProtocol
: IUnknown
634 typedef [unique] IBindProtocol
*LPBINDPROTOCOL
;
636 HRESULT CreateBinding
(
639 [out] IBinding
**ppb
);
642 cpp_quote
("#endif /* !defined _LPBINDPROTOCOL_DEFINED */")
644 /*****************************************************************************
645 * IInternetBindInfo interface
650 uuid(79EAC9E1
-BAF9
-11CE
-8C82
-00AA004BA90B
),
651 pointer_default(unique)
653 interface IInternetBindInfo
: IUnknown
655 typedef [unique] IInternetBindInfo
*LPIINTERNETBINDINFO
;
657 typedef enum tagBINDSTRING
659 BINDSTRING_HEADERS
= 1,
660 BINDSTRING_ACCEPT_MIMES
,
661 BINDSTRING_EXTRA_URL
,
665 BINDSTRING_UA_PIXELS
,
668 BINDSTRING_USER_AGENT
,
669 BINDSTRING_ACCEPT_ENCODINGS
,
670 BINDSTRING_POST_COOKIE
,
671 BINDSTRING_POST_DATA_MIME
,
674 BINDSTRING_FLAG_BIND_TO_OBJECT
,
675 BINDSTRING_PTR_BIND_CONTEXT
679 [out] DWORD
*grfBINDF
,
680 [in, out, unique] BINDINFO
*pbindinfo
);
682 HRESULT GetBindString
(
683 [in] ULONG ulStringType
,
684 [in, out] LPOLESTR
*ppwzStr
,
686 [in, out] ULONG
*pcElFetched
);
689 /*****************************************************************************
690 * IInternetPriority interface
695 uuid(79EAC9EB
-BAF9
-11CE
-8C82
-00AA004BA90B
),
696 pointer_default(unique)
698 interface IInternetPriority
: IUnknown
700 typedef [unique] IInternetPriority
*LPIINTERNETPRIORITY
;
702 HRESULT SetPriority
([in] LONG nPriority
);
703 HRESULT GetPriority
([out] LONG *pnPriority
);
706 /*****************************************************************************
707 * IInternetProtocolRoot interface
712 uuid(79EAC9E3
-BAF9
-11CE
-8C82
-00AA004BA90B
),
713 pointer_default(unique)
715 interface IInternetProtocolRoot
: IUnknown
717 typedef [unique] IInternetProtocolRoot
*LPIINTERNETPROTOCOLROOT
;
719 typedef enum _tagPI_FLAGS
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
734 typedef struct _tagPROTOCOLDATA
744 [in] IInternetProtocolSink
*pOIProtSink
,
745 [in] IInternetBindInfo
*pOIBindInfo
,
747 [in] HANDLE_PTR dwReserved
);
750 [in] PROTOCOLDATA
*pProtocolData
);
753 [in] HRESULT hrReason
,
754 [in] DWORD dwOptions
);
757 [in] DWORD dwOptions
);
764 /*****************************************************************************
765 * IInternetProtocolSink interface
770 uuid(79EAC9E5
-BAF9
-11CE
-8C82
-00AA004BA90B
),
771 pointer_default(unique)
773 interface IInternetProtocolSink
: IUnknown
775 typedef [unique] IInternetProtocolSink
*LPIINTERNETPROTOCOLSINK
;
778 [in] PROTOCOLDATA
*pProtocolData
);
780 HRESULT ReportProgress
(
781 [in] ULONG ulStatusCode
,
782 [in] LPCWSTR szStatusText
);
786 [in] ULONG ulProgress
,
787 [in] ULONG ulProgressMax
);
789 HRESULT ReportResult
(
790 [in] HRESULT hrResult
,
792 [in] LPCWSTR szResult
);
795 /*****************************************************************************
796 * IInternetProtocol interface
801 uuid(79EAC9E4
-BAF9
-11CE
-8C82
-00AA004BA90B
),
802 pointer_default(unique)
804 interface IInternetProtocol
: IInternetProtocolRoot
806 typedef [unique] IInternetProtocol
*LPIINTERNETPROTOCOL
;
809 [in,out, size_is(cb
), length_is(*pcbRead
)] void *pv
,
811 [out] ULONG
*pcbRead
);
814 [in] LARGE_INTEGER dlibMove
,
816 [out] ULARGE_INTEGER
*plibNewPosition
);
819 [in] DWORD dwOptions
);
821 HRESULT UnlockRequest
();
824 /*****************************************************************************
825 * IInternetProtocolInfo interface
830 uuid(79eac9ec
-baf9
-11ce
-8c82
-00aa004ba90b
),
831 pointer_default(unique)
833 interface IInternetProtocolInfo
: IUnknown
835 typedef [unique] IInternetProtocolInfo
*LPIINTERNETPROTOCOLINFO
;
837 typedef enum _tagPARSEACTION
839 PARSE_CANONICALIZE
= 1,
855 PARSE_SECURITY_DOMAIN
,
860 typedef enum _tagPSUACTION
863 PSU_SECURITY_URL_ONLY
866 typedef enum _tagQUERYOPTION
868 QUERY_EXPIRATION_DATE
= 1,
869 QUERY_TIME_OF_LAST_CHANGE
,
870 QUERY_CONTENT_ENCODING
,
877 QUERY_IS_INSTALLEDENTRY
,
878 QUERY_IS_CACHED_OR_MAPPED
,
882 QUERY_USES_HISTORYFOLDER
887 [in] PARSEACTION ParseAction
,
888 [in] DWORD dwParseFlags
,
889 [out] LPWSTR pwzResult
,
890 [in] DWORD cchResult
,
891 [out] DWORD
*pcchResult
,
892 [in] DWORD dwReserved
);
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
);
904 [in] LPCWSTR pwzUrl1
,
905 [in] LPCWSTR pwzUrl2
,
906 [in] DWORD dwCompareFlags
);
910 [in] QUERYOPTION OueryOption
,
911 [in] DWORD dwQueryFlags
,
912 [in, out,size_is(*pcbBuf
)] LPVOID pBuffer
,
914 [in, out] DWORD
*pcbBuf
,
915 [in] DWORD dwReserved
);
918 /*****************************************************************************
919 * IInternetSession interface
924 uuid(79eac9e7
-baf9
-11ce
-8c82
-00aa004ba90b
),
925 pointer_default(unique)
927 interface IInternetSession
: IUnknown
929 typedef [unique] IInternetSession
*LPIINTERNETSESSION
;
931 typedef enum _tagOIBDG_FLAGS
933 OIBDG_APARTMENTTHREADED
= 0x0100,
934 OIBDG_DATAONLY
= 0x1000
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
);
945 HRESULT UnregisterNameSpace
(
946 [in] IClassFactory
*pCF
,
947 [in] LPCWSTR pszProtocol
);
949 HRESULT RegisterMimeFilter
(
950 [in] IClassFactory
*pCF
,
951 [in] REFCLSID rclsid
,
952 [in] LPCWSTR pwzType
);
954 HRESULT UnregisterMimeFilter
(
955 [in] IClassFactory
*pCF
,
956 [in] LPCWSTR pwzType
);
958 HRESULT CreateBinding
(
961 [in] IUnknown
*pUnkOuter
,
962 [out, unique] IUnknown
**ppUnk
,
963 [out, unique] IInternetProtocol
**ppOInetProt
,
964 [in] DWORD dwOption
);
966 HRESULT SetSessionOption
(
969 [in] DWORD dwBufferLength
,
970 [in] DWORD dwReserved
);
973 /*****************************************************************************
974 * IInternetSecurityMgrSite interface
979 uuid(79eac9ed
-baf9
-11ce
-8c82
-00aa004ba90b
),
980 pointer_default(unique)
982 interface IInternetSecurityMgrSite
: IUnknown
987 HRESULT EnableModeless
(
992 /*****************************************************************************
993 * IInternetSecurityManager interface
995 cpp_quote
("#define SID_SInternetSecurityManager IID_IInternetSecurityManager")
999 uuid(79eac9ee
-baf9
-11ce
-8c82
-00aa004ba90b
),
1000 pointer_default(unique)
1002 interface IInternetSecurityManager
: IUnknown
1004 HRESULT SetSecuritySite
(
1005 [in, unique] IInternetSecurityMgrSite
*pSite
);
1007 HRESULT GetSecuritySite
(
1008 [out] IInternetSecurityMgrSite
**ppSite
);
1010 HRESULT MapUrlToZone
(
1011 [in] LPCWSTR pwszUrl
,
1012 [out] DWORD
*pdwZone
,
1013 [in] DWORD dwFlags
);
1015 cpp_quote
("#define MAX_SIZE_SECURITY_ID 512")
1017 HRESULT GetSecurityId
(
1018 [in] LPCWSTR pwszUrl
,
1019 [out, size_is(*pcbSecurityId
)] BYTE *pbSecurityId
,
1020 [in, out] DWORD
*pcbSecurityId
,
1021 [in] DWORD_PTR dwReserved
);
1025 PUAF_DEFAULT
= 0x00,
1028 PUAF_WARN_IF_DENIED
= 0x04,
1029 PUAF_FORCEUI_FOREGROUND
= 0x08,
1030 PUAF_CHECK_TIPS
= 0x10
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
,
1041 [in] DWORD dwReserved
);
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
);
1057 HRESULT SetZoneMapping
(
1059 [in] LPCWSTR lpszPattern
,
1060 [in] DWORD dwFlags
);
1062 HRESULT GetZoneMappings
(
1064 [out] IEnumString
**ppenumString
,
1065 [in] DWORD dwFlags
);
1068 cpp_quote
("#define URLACTION_MIN 0x00001000")
1069 cpp_quote
("#define URLACTION_DOWNLOAD_MIN 0x00001000")
1070 cpp_quote
("#define URLACTION_DOWNLOAD_SIGNED_ACTIVEX 0x00001001")
1071 cpp_quote
("#define URLACTION_DOWNLOAD_UNSIGNED_ACTIVEX 0x00001004")
1072 cpp_quote
("#define URLACTION_DOWNLOAD_CURR_MAX 0x00001004")
1073 cpp_quote
("#define URLACTION_DOWNLOAD_MAX 0x000011ff")
1075 cpp_quote
("#define URLACTION_ACTIVEX_MIN 0x00001200")
1076 cpp_quote
("#define URLACTION_ACTIVEX_RUN 0x00001200")
1077 cpp_quote
("#define URLPOLICY_ACTIVEX_CHECK_LIST 0x00010000")
1078 cpp_quote
("#define URLACTION_ACTIVEX_OVERRIDE_OBJECT_SAFETY 0x00001201")
1079 cpp_quote
("#define URLACTION_ACTIVEX_OVERRIDE_DATA_SAFETY 0x00001202")
1080 cpp_quote
("#define URLACTION_ACTIVEX_OVERRIDE_SCRIPT_SAFETY 0x00001203")
1081 cpp_quote
("#define URLACTION_SCRIPT_OVERRIDE_SAFETY 0x00001401")
1082 cpp_quote
("#define URLACTION_ACTIVEX_CONFIRM_NOOBJECTSAFETY 0x00001204")
1083 cpp_quote
("#define URLACTION_ACTIVEX_TREATASUNTRUSTED 0x00001205")
1084 cpp_quote
("#define URLACTION_ACTIVEX_CURR_MAX 0x00001205")
1085 cpp_quote
("#define URLACTION_ACTIVEX_MAX 0x000013ff")
1087 cpp_quote
("#define URLACTION_SCRIPT_MIN 0x00001400")
1088 cpp_quote
("#define URLACTION_SCRIPT_RUN 0x00001400")
1089 cpp_quote
("#define URLACTION_SCRIPT_JAVA_USE 0x00001402")
1090 cpp_quote
("#define URLACTION_SCRIPT_SAFE_ACTIVEX 0x00001405")
1091 cpp_quote
("#define URLACTION_CROSS_DOMAIN_DATA 0x00001406")
1092 cpp_quote
("#define URLACTION_SCRIPT_PASTE 0x00001407")
1093 cpp_quote
("#define URLACTION_SCRIPT_CURR_MAX 0x00001407")
1094 cpp_quote
("#define URLACTION_SCRIPT_MAX 0x000015ff")
1096 cpp_quote
("#define URLACTION_HTML_MIN 0x00001600")
1097 cpp_quote
("#define URLACTION_HTML_SUBMIT_FORMS 0x00001601")
1098 cpp_quote
("#define URLACTION_HTML_SUBMIT_FORMS_FROM 0x00001602")
1099 cpp_quote
("#define URLACTION_HTML_SUBMIT_FORMS_TO 0x00001603")
1100 cpp_quote
("#define URLACTION_HTML_FONT_DOWNLOAD 0x00001604")
1101 cpp_quote
("#define URLACTION_HTML_JAVA_RUN 0x00001605")
1102 cpp_quote
("#define URLACTION_HTML_USERDATA_SAVE 0x00001606")
1103 cpp_quote
("#define URLACTION_HTML_SUBFRAME_NAVIGATE 0x00001607")
1104 cpp_quote
("#define URLACTION_HTML_META_REFRESH 0x00001608")
1105 cpp_quote
("#define URLACTION_HTML_MIXED_CONTENT 0x00001609")
1106 cpp_quote
("#define URLACTION_HTML_MAX 0x000017ff")
1108 cpp_quote
("#define URLACTION_SHELL_MIN 0x00001800")
1109 cpp_quote
("#define URLACTION_SHELL_INSTALL_DTITEMS 0x00001800")
1110 cpp_quote
("#define URLACTION_SHELL_MOVE_OR_COPY 0x00001802")
1111 cpp_quote
("#define URLACTION_SHELL_FILE_DOWNLOAD 0x00001803")
1112 cpp_quote
("#define URLACTION_SHELL_VERB 0x00001804")
1113 cpp_quote
("#define URLACTION_SHELL_WEBVIEW_VERB 0x00001805")
1114 cpp_quote
("#define URLACTION_SHELL_CURR_MAX 0x00001805")
1115 cpp_quote
("#define URLACTION_SHELL_MAX 0x000019ff")
1117 cpp_quote
("#define URLACTION_NETWORK_MIN 0x00001a00")
1118 cpp_quote
("#define URLACTION_CREDENTIALS_USE 0x00001a00")
1119 cpp_quote
("#define URLACTION_AUTHENTICATE_CLIENT 0x00001a01")
1120 cpp_quote
("#define URLACTION_COOKIES 0x00001a02")
1121 cpp_quote
("#define URLACTION_COOKIES_SESSION 0x00001a03")
1122 cpp_quote
("#define URLACTION_CLIENT_CERT_PROMPT 0x00001a04")
1123 cpp_quote
("#define URLACTION_COOKIES_THIRD_PARTY 0x00001a05")
1124 cpp_quote
("#define URLACTION_COOKIES_SESSION_THIRD_PARTY 0x00001a06")
1125 cpp_quote
("#define URLACTION_COOKIES_ENABLED 0x00001a10")
1126 cpp_quote
("#define URLACTION_NETWORK_CURR_MAX 0x00001a10")
1127 cpp_quote
("#define URLACTION_NETWORK_MAX 0x00001bff")
1129 cpp_quote
("#define URLACTION_JAVA_MIN 0x00001c00")
1130 cpp_quote
("#define URLACTION_JAVA_PERMISSIONS 0x00001c00")
1131 cpp_quote
("#define URLPOLICY_JAVA_PROHIBIT 0x00000000")
1132 cpp_quote
("#define URLPOLICY_JAVA_HIGH 0x00010000")
1133 cpp_quote
("#define URLPOLICY_JAVA_MEDIUM 0x00020000")
1134 cpp_quote
("#define URLPOLICY_JAVA_LOW 0x00030000")
1135 cpp_quote
("#define URLPOLICY_JAVA_CUSTOM 0x00800000")
1136 cpp_quote
("#define URLACTION_JAVA_CURR_MAX 0x00001c00")
1137 cpp_quote
("#define URLACTION_JAVA_MAX 0x00001cff")
1139 cpp_quote
("#define URLACTION_INFODELIVERY_MIN 0x00001d00")
1140 cpp_quote
("#define URLACTION_INFODELIVERY_NO_ADDING_CHANNELS 0x00001d00")
1141 cpp_quote
("#define URLACTION_INFODELIVERY_NO_EDITING_CHANNELS 0x00001d01")
1142 cpp_quote
("#define URLACTION_INFODELIVERY_NO_REMOVING_CHANNELS 0x00001d02")
1143 cpp_quote
("#define URLACTION_INFODELIVERY_NO_ADDING_SUBSCRIPTIONS 0x00001d03")
1144 cpp_quote
("#define URLACTION_INFODELIVERY_NO_EDITING_SUBSCRIPTIONS 0x00001d04")
1145 cpp_quote
("#define URLACTION_INFODELIVERY_NO_REMOVING_SUBSCRIPTIONS 0x00001d05")
1146 cpp_quote
("#define URLACTION_INFODELIVERY_NO_CHANNEL_LOGGING 0x00001d06")
1147 cpp_quote
("#define URLACTION_INFODELIVERY_CURR_MAX 0x00001d06")
1148 cpp_quote
("#define URLACTION_INFODELIVERY_MAX 0x00001dff")
1150 cpp_quote
("#define URLACTION_CHANNEL_SOFTDIST_MIN 0x00001e00")
1151 cpp_quote
("#define URLACTION_CHANNEL_SOFTDIST_PERMISSIONS 0x00001e05")
1152 cpp_quote
("#define URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT 0x00010000")
1153 cpp_quote
("#define URLPOLICY_CHANNEL_SOFTDIST_PRECACHE 0x00020000")
1154 cpp_quote
("#define URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL 0x00030000")
1155 cpp_quote
("#define URLACTION_CHANNEL_SOFTDIST_MAX 0x00001eff")
1157 cpp_quote
("#define URLPOLICY_ALLOW 0x00")
1158 cpp_quote
("#define URLPOLICY_QUERY 0x01")
1159 cpp_quote
("#define URLPOLICY_DISALLOW 0x03")
1161 cpp_quote
("#define URLPOLICY_NOTIFY_ON_ALLOW 0x10")
1162 cpp_quote
("#define URLPOLICY_NOTIFY_ON_DISALLOW 0x20")
1164 cpp_quote
("#define URLPOLICY_LOG_ON_ALLOW 0x40")
1165 cpp_quote
("#define URLPOLICY_LOG_ON_DISALLOW 0x80")
1167 cpp_quote
("#define URLPOLICY_DONTCHECKDLGBOX 0x100")
1169 cpp_quote
("#define URLPOLICY_CREDENTIALS_SILENT_LOGON_OK 0x00000000")
1170 cpp_quote
("#define URLPOLICY_CREDENTIALS_MUST_PROMPT_USER 0x00010000")
1171 cpp_quote
("#define URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT 0x00020000")
1172 cpp_quote
("#define URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY 0x00030000")
1174 cpp_quote
("#define URLPOLICY_AUTHENTICATE_CLEARTEXT_OK 0x00000000")
1175 cpp_quote
("#define URLPOLICY_AUTHENTICATE_CHALLENGE_RESPONSE 0x00010000")
1176 cpp_quote
("#define URLPOLICY_AUTHENTICATE_MUTUAL_ONLY 0x00030000")
1178 cpp_quote
("#define URLPOLICY_MASK_PERMISSIONS 0x0f")
1179 cpp_quote
("#define GetUrlPolicyPermissions(dw) (dw & URLPOLICY_MASK_PERMISSIONS)")
1180 cpp_quote
("#define SetUrlPolicyPermissions(dw,dw2) ((dw) = ((dw) & ~URLPOLICY_MASK_PERMISSIONS) | (dw2))")
1182 /*****************************************************************************
1183 * IInternetZoneManager interface
1188 uuid(79EAC9EF
-BAf9
-11CE
-8C82
-00AA004BA90B
),
1189 pointer_default(unique)
1191 interface IInternetZoneManager
: IUnknown
1193 typedef [unique] IInternetZoneManager
* LPURLZONEMANAGER
;
1195 typedef enum tagURLZONE
1197 URLZONE_PREDEFINED_MIN
= 0,
1198 URLZONE_LOCAL_MACHINE
= 0,
1199 URLZONE_INTRANET
= 1,
1200 URLZONE_TRUSTED
= 2,
1201 URLZONE_INTERNET
= 3,
1202 URLZONE_UNTRUSTED
= 4,
1203 URLZONE_PREDEFINED_MAX
= 999,
1204 URLZONE_USER_MIN
= 1000,
1205 URLZONE_USER_MAX
= 10000,
1208 typedef enum tagURLTEMPLATE
1210 URLTEMPLATE_CUSTOM
= 0x00000,
1211 URLTEMPLATE_PREDEFINED_MIN
= 0x10000,
1212 URLTEMPLATE_LOW
= 0x10000,
1213 URLTEMPLATE_MEDLOW
= 0x10500,
1214 URLTEMPLATE_MEDIUM
= 0x11000,
1215 URLTEMPLATE_MEDHIGH
= 0x11500,
1216 URLTEMPLATE_HIGH
= 0x12000,
1217 URLTEMPLATE_PREDEFINED_MAX
= 0x20000,
1221 ZAFLAGS_CUSTOM_EDIT
= 0x00000001,
1222 ZAFLAGS_ADD_SITES
= 0x00000002,
1223 ZAFLAGS_REQUIRE_VERIFICATION
= 0x00000004,
1224 ZAFLAGS_INCLUDE_PROXY_OVERRIDE
= 0x00000008,
1225 ZAFLAGS_INCLUDE_INTRANET_SITES
= 0x00000010,
1226 ZAFLAGS_NO_UI
= 0x00000020,
1227 ZAFLAGS_SUPPORTS_VERIFICATION
= 0x00000040,
1228 ZAFLAGS_UNC_AS_INTRANET
= 0x00000080,
1229 ZAFLAGS_DETECT_INTRANET
= 0x00000100,
1230 ZAFLAGS_USE_LOCKED_ZONES
= 0x00010000,
1231 ZAFLAGS_VERIFY_TEMPLATE_SETTINGS
= 0x00020000,
1232 ZAFLAGS_NO_CACHE
= 0x00040000,
1236 MAX_ZONE_PATH
= 260,
1237 MAX_ZONE_DESCRIPTION
= 200
1240 typedef struct _ZONEATTRIBUTES
{
1242 WCHAR szDisplayName
[MAX_ZONE_PATH
];
1243 WCHAR szDescription
[MAX_ZONE_DESCRIPTION
];
1244 WCHAR szIconPath
[MAX_ZONE_PATH
];
1245 DWORD dwTemplateMinLevel
;
1246 DWORD dwTemplateRecommended
;
1247 DWORD dwTemplateCurrentLevel
;
1249 } ZONEATTRIBUTES
, *LPZONEATTRIBUTES
;
1251 typedef enum _URLZONEREG
{
1257 HRESULT GetZoneAttributes
(
1259 [in, out, unique] ZONEATTRIBUTES
* pZoneAttributes
);
1261 HRESULT SetZoneAttributes
(
1263 [in] ZONEATTRIBUTES
* pZoneAttributes
);
1265 HRESULT GetZoneCustomPolicy
(
1267 [in] REFGUID guidKey
,
1268 [out] BYTE **ppPolicy
,
1269 [out] DWORD
* pcbPolicy
,
1270 [in] URLZONEREG ulrZoneReg
);
1272 HRESULT SetZoneCustomPolicy
(
1274 [in] REFGUID guidKey
,
1275 [in] BYTE *ppPolicy
,
1276 [in] DWORD pcbPolicy
,
1277 [in] URLZONEREG ulrZoneReg
);
1279 HRESULT GetZoneActionPolicy
(
1281 [in] DWORD dwAction
,
1282 [out] BYTE* pPolicy
,
1283 [in] DWORD cbPolicy
,
1284 [in] URLZONEREG urlZoneReg
);
1286 HRESULT SetZoneActionPolicy
(
1288 [in] DWORD dwAction
,
1290 [in] DWORD cbPolicy
,
1291 [in] URLZONEREG urlZoneReg
);
1293 HRESULT PromptAction
(
1294 [in] DWORD dwAction
,
1295 [in] HWND hwndParent
,
1296 [in] LPCWSTR pwszUrl
,
1297 [in] LPCWSTR pwszText
,
1298 [in] DWORD dwPromptFlags
);
1301 [in] DWORD dwAction
,
1302 [in] LPCWSTR pwszUrl
,
1303 [in] LPCWSTR pwszText
,
1304 [in] DWORD dwLogFlags
);
1306 HRESULT CreateZoneEnumerator
(
1307 [out] DWORD
* pdwEnum
,
1308 [out] DWORD
* pdwCount
,
1309 [in] DWORD dwFlags
);
1314 [out] DWORD
* pdwZone
);
1316 HRESULT DestroyZoneEnumerator
(
1319 HRESULT CopyTemplatePoliciesToZone
(
1320 [in] DWORD dwTemplate
,
1322 [in] DWORD dwReserved
);
1325 /*****************************************************************************
1326 * IInternetZoneManagerEx interface
1331 uuid(A4C23339
-8E06
-431E-9BF4
-7E711C085648
),
1332 pointer_default(unique)
1334 interface IInternetZoneManagerEx
: IInternetZoneManager
1336 HRESULT GetZoneActionPolicyEx
(
1338 [in] DWORD dwAction
,
1339 [out] BYTE* pPolicy
,
1340 [in] DWORD cbPolicy
,
1341 [in] URLZONEREG urlZoneReg
,
1342 [in] DWORD dwFlags
);
1344 HRESULT SetZoneActionPolicyEx
(
1346 [in] DWORD dwAction
,
1348 [in] DWORD cbPolicy
,
1349 [in] URLZONEREG urlZoneReg
,
1350 [in] DWORD dwFlags
);
1354 /*****************************************************************************
1355 * IInternetZoneManagerEx2 interface
1358 cpp_quote
("#define SECURITY_IE_STATE_GREEN 0")
1359 cpp_quote
("#define SECURITY_IE_STATE_RED 1")
1364 uuid(EDC17559
-DD5D
-4846-8EEF
-8BECBA5A4ABF
),
1365 pointer_default(unique)
1367 interface IInternetZoneManagerEx2
: IInternetZoneManagerEx
1369 HRESULT GetZoneAttributesEx
(
1371 [in, out, unique] ZONEATTRIBUTES
* pZoneAttributes
,
1372 [in] DWORD dwFlags
);
1374 HRESULT GetZoneSecurityState
(
1375 [in] DWORD dwZoneIndex
,
1376 [in] BOOL fRespectPolicy
,
1377 [in, out] LPDWORD pdwState
,
1378 [in, out] BOOL
*pfPolicyEncountered
);
1380 HRESULT GetIESecurityState
(
1381 [in] BOOL fRespectPolicy
,
1382 [in, out] LPDWORD pdwState
,
1383 [in, out] BOOL
*pfPolicyEncountered
,
1384 [in] BOOL fNoCache
);
1386 HRESULT FixInsecureSettings
(void);
1391 typedef struct _tagSOFTDISTINFO
1399 DWORD dwInstalledVersionMS
;
1400 DWORD dwInstalledVersionLS
;
1401 DWORD dwUpdateVersionMS
;
1402 DWORD dwUpdateVersionLS
;
1403 DWORD dwAdvertisedVersionMS
;
1404 DWORD dwAdvertisedVersionLS
;
1406 } SOFTDISTINFO
, *LPSOFTDISTINFO
;
1408 typedef struct _tagCODEBASEHOLD
1416 } CODEBASEHOLD
, *LPCODEBASEHOLD
;
1421 uuid(b15b8dc1
-c7e1
-11d0
-8680-00aa00bdcb71
),
1422 pointer_default(unique)
1424 interface ISoftDistExt
: IUnknown
1426 HRESULT ProcessSoftDist
(
1427 [in] LPCWSTR szCDFURL
,
1428 [in] IXMLElement
*pSoftDistElement
,
1429 [in, out] LPSOFTDISTINFO lpsdi
);
1431 HRESULT GetFirstCodeBase
(
1432 [in] LPWSTR
*szCodeBase
,
1433 [in] LPDWORD dwMaxSize
);
1435 HRESULT GetNextCodeBase
(
1436 [in] LPWSTR
*szCodeBase
,
1437 [in] LPDWORD dwMaxSize
);
1439 HRESULT AsyncInstallDistributionUnit
(
1441 [in] LPVOID lpReserved
,
1443 [in] LPCODEBASEHOLD lpcbh
);
1446 typedef enum _tagINTERNETFEATURELIST
1448 FEATURE_OBJECT_CACHING
,
1449 FEATURE_ZONE_ELEVATION
,
1450 FEATURE_MIME_HANDLING
,
1451 FEATURE_MIME_SNIFFING
,
1452 FEATURE_WINDOW_RESTRICTIONS
,
1453 FEATURE_WEBOC_POPUPMANAGEMENT
,
1455 FEATURE_DISABLE_MK_PROTOCOL
,
1456 FEATURE_LOCALMACHINE_LOCKDOWN
,
1457 FEATURE_SECURITYBAND
,
1458 FEATURE_RESTRICT_ACTIVEXINSTALL
,
1459 FEATURE_VALIDATE_NAVIGATE_URL
,
1460 FEATURE_RESTRICT_FILEDOWNLOAD
,
1461 FEATURE_ADDON_MANAGEMENT
,
1462 FEATURE_PROTOCOL_LOCKDOWN
,
1463 FEATURE_HTTP_USERNAME_PASSWORD_DISABLE
,
1464 FEATURE_SAFE_BINDTOOBJECT
,
1465 FEATURE_UNC_SAVEDFILECHECK
,
1466 FEATURE_GET_URL_DOM_FILEPATH_UNENCODED
,
1467 FEATURE_TABBED_BROWSING
,
1469 FEATURE_DISABLE_NAVIGATION_SOUNDS
,
1470 FEATURE_DISABLE_LEGACY_COMPRESSION
,
1471 FEATURE_FORCE_ADDR_AND_STATUS
,
1473 FEATURE_DISABLE_TELNET_PROTOCOL
,
1475 FEATURE_BLOCK_INPUT_PROMPTS
,
1477 FEATURE_XDOMAINREQUEST
,
1479 FEATURE_AJAX_CONNECTIONSERVICES
,
1481 } INTERNETFEATURELIST
;
1483 typedef struct _tagPROTOCOLFILTERDATA
{
1485 IInternetProtocolSink
*pProtocolSink
;
1486 IInternetProtocol
*pProtocol
;
1488 DWORD dwFilterFlags
;
1489 } PROTOCOLFILTERDATA
;
1491 /*****************************************************************************
1497 uuid(a39ee748
-6a27
-4817-a6f2
-13914bef5890
),
1498 pointer_default(unique)
1500 interface IUri
: IUnknown
1504 Uri_PROPERTY_ABSOLUTE_URI
= 0,
1505 Uri_PROPERTY_STRING_START
= Uri_PROPERTY_ABSOLUTE_URI
,
1506 Uri_PROPERTY_AUTHORITY
= 1,
1507 Uri_PROPERTY_DISPLAY_URI
= 2,
1508 Uri_PROPERTY_DOMAIN
= 3,
1509 Uri_PROPERTY_EXTENSION
= 4,
1510 Uri_PROPERTY_FRAGMENT
= 5,
1511 Uri_PROPERTY_HOST
= 6,
1512 Uri_PROPERTY_PASSWORD
= 7,
1513 Uri_PROPERTY_PATH
= 8,
1514 Uri_PROPERTY_PATH_AND_QUERY
= 9,
1515 Uri_PROPERTY_QUERY
= 10,
1516 Uri_PROPERTY_RAW_URI
= 11,
1517 Uri_PROPERTY_SCHEME_NAME
= 12,
1518 Uri_PROPERTY_USER_INFO
= 13,
1519 Uri_PROPERTY_USER_NAME
= 14,
1520 Uri_PROPERTY_STRING_LAST
= Uri_PROPERTY_USER_NAME
,
1521 Uri_PROPERTY_HOST_TYPE
= 15,
1522 Uri_PROPERTY_DWORD_START
= Uri_PROPERTY_HOST_TYPE
,
1523 Uri_PROPERTY_PORT
= 16,
1524 Uri_PROPERTY_SCHEME
= 17,
1525 Uri_PROPERTY_ZONE
= 18,
1526 Uri_PROPERTY_DWORD_LAST
= Uri_PROPERTY_ZONE
1529 HRESULT GetPropertyBSTR
(
1530 [in] Uri_PROPERTY uriProp
,
1531 [out] BSTR *pbstrProperty
,
1532 [in] DWORD dwFlags
);
1534 HRESULT GetPropertyLength
(
1535 [in] Uri_PROPERTY uriProp
,
1536 [out] DWORD
*pcchProperty
,
1537 [in] DWORD dwFlags
);
1539 HRESULT GetPropertyDWORD
(
1540 [in] Uri_PROPERTY uriProp
,
1541 [out] DWORD
*pdwProperty
,
1542 [in] DWORD dwFlags
);
1544 HRESULT HasProperty
(
1545 [in] Uri_PROPERTY uriProp
,
1546 [out] BOOL
*pfHasProperty
);
1548 HRESULT GetAbsoluteUri
(
1549 [out] BSTR *pbstrAbsoluteUri
);
1551 HRESULT GetAuthority
(
1552 [out] BSTR *pbstrAuthority
);
1554 HRESULT GetDisplayUri
(
1555 [out] BSTR *pbstrDisplayString
);
1558 [out] BSTR *pbstrDomain
);
1560 HRESULT GetExtension
(
1561 [out] BSTR *pbstrExtension
);
1563 HRESULT GetFragment
(
1564 [out] BSTR *pbstrFragment
);
1567 [out] BSTR *pbstrHost
);
1569 HRESULT GetPassword
(
1570 [out] BSTR *pbstrPassword
);
1573 [out] BSTR *pbstrPath
);
1575 HRESULT GetPathAndQuery
(
1576 [out] BSTR *pbstrPathAndQuery
);
1579 [out] BSTR *pbstrQuery
);
1582 [out] BSTR *pbstrRawUri
);
1584 HRESULT GetSchemeName
(
1585 [out] BSTR *pbstrSchemeName
);
1587 HRESULT GetUserInfo
(
1588 [out] BSTR *pbstrUserInfo
);
1590 HRESULT GetUserName
(
1591 [out] BSTR *pbstrUserName
);
1593 HRESULT GetHostType
(
1594 [out] DWORD
*pdwHostType
);
1597 [out] DWORD
*pdwPort
);
1600 [out] DWORD
*pdwScheme
);
1603 [out] DWORD
*pdwZone
);
1605 HRESULT GetProperties
(
1606 [out] LPDWORD pdwFlags
);
1610 [out] BOOL
*pfEqual
);
1613 /*****************************************************************************
1614 * IUriContainer interface
1619 uuid(a158a630
-ed6f
-45fb
-b987
-f68676f57752
),
1620 pointer_default(unique)
1622 interface IUriContainer
: IUnknown
1624 HRESULT GetIUri
([out] IUri
**ppIUri
);
1627 /*****************************************************************************
1628 * IInternetProtocolEx interface
1633 uuid(c7a98e66
-1010-492c
-a1c8
-c809e1f75905
),
1634 pointer_default(unique)
1636 interface IInternetProtocolEx
: IInternetProtocol
1640 [in] IInternetProtocolSink
*pOIProtSink
,
1641 [in] IInternetBindInfo
*pOIBindInfo
,
1643 [in] HANDLE *dwReserved
);
1646 cpp_quote
("DEFINE_GUID(CLSID_InternetSecurityManager, 0x7b8a2d94, 0x0ac9, 0x11d1, 0x89, 0x6c, 0x00, 0xc0, 0x4f, 0xB6, 0xbf, 0xc4);")
1647 cpp_quote
("DEFINE_GUID(CLSID_InternetZoneManager, 0x7B8A2D95, 0x0AC9, 0x11D1, 0x89, 0x6C, 0x00, 0xC0, 0x4F, 0xB6, 0xBF, 0xC4);")
1648 cpp_quote
("DEFINE_GUID(IID_IAsyncMoniker, 0x79EAC9D3, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1649 cpp_quote
("DEFINE_GUID(IID_IAsyncBindCtx, 0x79EAC9D4, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1650 cpp_quote
("DEFINE_GUID(CLSID_StdURLMoniker, 0x79EAC9E0, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1651 cpp_quote
("DEFINE_GUID(CLSID_DeCompMimeFilter, 0x8f6b0360, 0xb80d, 0x11d0, 0xa9,0xb3, 0x00,0x60,0x97,0x94,0x23,0x11);")
1653 cpp_quote
("DEFINE_GUID(CLSID_CdlProtocol, 0x3dd53d40, 0x7b8b, 0x11D0, 0xb0,0x13, 0x00,0xaa,0x00,0x59,0xce,0x02);")
1654 cpp_quote
("DEFINE_GUID(CLSID_FileProtocol, 0x79EAC9E7, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1655 cpp_quote
("DEFINE_GUID(CLSID_FtpProtocol, 0x79EAC9E3, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1656 cpp_quote
("DEFINE_GUID(CLSID_GopherProtocol, 0x79EAC9E4, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1657 cpp_quote
("DEFINE_GUID(CLSID_HttpProtocol, 0x79EAC9E2, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1658 cpp_quote
("DEFINE_GUID(CLSID_HttpSProtocol, 0x79EAC9E5, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1659 cpp_quote
("DEFINE_GUID(CLSID_MkProtocol, 0x79EAC9E6, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1661 cpp_quote
("#define URLMON_OPTION_USERAGENT 0x10000001")
1662 cpp_quote
("#define URLMON_OPTION_USERAGENT_REFRESH 0x10000002")
1663 cpp_quote
("#define URLMON_OPTION_URL_ENCODING 0x10000004")
1665 cpp_quote
("#define MK_S_ASYNCHRONOUS _HRESULT_TYPEDEF_(0x000401E8)")
1666 cpp_quote
("#ifndef S_ASYNCHRONOUS")
1667 cpp_quote
("#define S_ASYNCHRONOUS MK_S_ASYNCHRONOUS")
1670 cpp_quote
("#define INET_E_ERROR_FIRST _HRESULT_TYPEDEF_(0x800C0002)")
1671 cpp_quote
("#define INET_E_INVALID_URL _HRESULT_TYPEDEF_(0x800C0002)")
1672 cpp_quote
("#define INET_E_NO_SESSION _HRESULT_TYPEDEF_(0x800C0003)")
1673 cpp_quote
("#define INET_E_CANNOT_CONNECT _HRESULT_TYPEDEF_(0x800C0004)")
1674 cpp_quote
("#define INET_E_RESOURCE_NOT_FOUND _HRESULT_TYPEDEF_(0x800C0005)")
1675 cpp_quote
("#define INET_E_OBJECT_NOT_FOUND _HRESULT_TYPEDEF_(0x800C0006)")
1676 cpp_quote
("#define INET_E_DATA_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x800C0007)")
1677 cpp_quote
("#define INET_E_DOWNLOAD_FAILURE _HRESULT_TYPEDEF_(0x800C0008)")
1678 cpp_quote
("#define INET_E_AUTHENTICATION_REQUIRED _HRESULT_TYPEDEF_(0x800C0009)")
1679 cpp_quote
("#define INET_E_NO_VALID_MEDIA _HRESULT_TYPEDEF_(0x800C000A)")
1680 cpp_quote
("#define INET_E_CONNECTION_TIMEOUT _HRESULT_TYPEDEF_(0x800C000B)")
1681 cpp_quote
("#define INET_E_INVALID_REQUEST _HRESULT_TYPEDEF_(0x800C000C)")
1682 cpp_quote
("#define INET_E_UNKNOWN_PROTOCOL _HRESULT_TYPEDEF_(0x800C000D)")
1683 cpp_quote
("#define INET_E_SECURITY_PROBLEM _HRESULT_TYPEDEF_(0x800C000E)")
1684 cpp_quote
("#define INET_E_CANNOT_LOAD_DATA _HRESULT_TYPEDEF_(0x800C000F)")
1685 cpp_quote
("#define INET_E_CANNOT_INSTANTIATE_OBJECT _HRESULT_TYPEDEF_(0x800C0010)")
1686 cpp_quote
("#define INET_E_USE_DEFAULT_PROTOCOLHANDLER _HRESULT_TYPEDEF_(0x800C0011)")
1687 cpp_quote
("#define INET_E_QUERYOPTION_UNKNOWN _HRESULT_TYPEDEF_(0x800C0013)")
1688 cpp_quote
("#define INET_E_REDIRECT_FAILED _HRESULT_TYPEDEF_(0x800C0014)")
1689 cpp_quote
("#define INET_E_REDIRECT_TO_DIR _HRESULT_TYPEDEF_(0x800C0015)")
1690 cpp_quote
("#define INET_E_CANNOT_LOCK_REQUEST _HRESULT_TYPEDEF_(0x800C0016)")
1691 cpp_quote
("#define INET_E_ERROR_LAST INET_E_REDIRECT_TO_DIR")
1692 cpp_quote
("#define INET_E_DEFAULT_ACTION INET_E_USE_DEFAULT_PROTOCOLHANDLER")
1694 cpp_quote
("HRESULT WINAPI CoGetClassObjectFromURL(REFCLSID, LPCWSTR, DWORD, DWORD, LPCWSTR, LPBINDCTX, DWORD, LPVOID, REFIID, LPVOID*);")
1695 cpp_quote
("HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk);")
1696 cpp_quote
("HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved);")
1697 cpp_quote
("HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD);")
1698 cpp_quote
("HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN,LPCSTR,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1699 cpp_quote
("HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN,LPCWSTR,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1700 cpp_quote
("HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN,LPCSTR,LPSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1701 cpp_quote
("HRESULT WINAPI URLDownloadToCacheFileW(LPUNKNOWN,LPCWSTR,LPWSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1702 cpp_quote
("HRESULT WINAPI CoInternetGetSession(DWORD,IInternetSession**,DWORD);")
1703 cpp_quote
("HRESULT WINAPI MkParseDisplayNameEx(IBindCtx*,LPCWSTR,ULONG*,IMoniker**);")
1704 cpp_quote
("HRESULT WINAPI IsAsyncMoniker(IMoniker* pmk);")
1705 cpp_quote
("HRESULT WINAPI CreateAsyncBindCtx(DWORD, IBindStatusCallback*, IEnumFORMATETC*, IBindCtx**);")
1706 cpp_quote
("HRESULT WINAPI CreateAsyncBindCtxEx(IBindCtx*,DWORD,IBindStatusCallback*,IEnumFORMATETC*,IBindCtx**,DWORD);")
1707 cpp_quote
("HRESULT WINAPI CoInternetCreateSecurityManager(IServiceProvider*,IInternetSecurityManager**,DWORD);")
1708 cpp_quote
("HRESULT WINAPI CoInternetCombineUrl(LPCWSTR,LPCWSTR,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1709 cpp_quote
("HRESULT WINAPI CoInternetCompareUrl(LPCWSTR,LPCWSTR,DWORD);")
1710 cpp_quote
("HRESULT WINAPI CoInternetCreateZoneManager(IServiceProvider*, IInternetZoneManager**, DWORD);")
1711 cpp_quote
("HRESULT WINAPI CoInternetParseUrl(LPCWSTR,PARSEACTION,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1712 cpp_quote
("HRESULT WINAPI CoInternetQueryInfo(LPCWSTR,QUERYOPTION,DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1713 cpp_quote
("HRESULT WINAPI CoInternetSetFeatureEnabled(INTERNETFEATURELIST,DWORD,BOOL);")
1714 cpp_quote
("HRESULT WINAPI CreateFormatEnumerator(UINT,FORMATETC*,IEnumFORMATETC**);")
1715 cpp_quote
("HRESULT WINAPI GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi);")
1716 cpp_quote
("HRESULT WINAPI FaultInIEFeature(HWND,uCLSSPEC*,QUERYCONTEXT*,DWORD);")
1717 cpp_quote
("HRESULT WINAPI FindMimeFromData(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,LPWSTR*,DWORD);")
1718 cpp_quote
("HRESULT WINAPI GetClassFileOrMime(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,CLSID*);")
1719 cpp_quote
("HRESULT WINAPI HlinkGoBack(IUnknown*);")
1720 cpp_quote
("HRESULT WINAPI HlinkGoForward(IUnknown*);")
1721 cpp_quote
("HRESULT WINAPI HlinkNavigateMoniker(IUnknown*,IMoniker*);")
1722 cpp_quote
("HRESULT WINAPI HlinkNavigateString(IUnknown*,LPCWSTR);")
1723 cpp_quote
("HRESULT WINAPI HlinkSimpleNavigateToMoniker(IMoniker*,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1724 cpp_quote
("HRESULT WINAPI HlinkSimpleNavigateToString(LPCWSTR,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1725 cpp_quote
("HRESULT WINAPI IsValidURL(LPBC,LPCWSTR,DWORD);")
1726 cpp_quote
("HRESULT WINAPI ObtainUserAgentString(DWORD,LPSTR,DWORD*);")
1727 cpp_quote
("HRESULT WINAPI RegisterFormatEnumerator(LPBC,IEnumFORMATETC*,DWORD);")
1728 cpp_quote
("HRESULT WINAPI RevokeFormatEnumerator(LPBC,IEnumFORMATETC*);")
1729 cpp_quote
("HRESULT WINAPI RevokeBindStatusCallback(LPBC,IBindStatusCallback*);")
1730 cpp_quote
("HRESULT WINAPI CopyStgMedium(const STGMEDIUM*,STGMEDIUM*);")
1731 cpp_quote
("void WINAPI ReleaseBindInfo(BINDINFO*);")
1732 cpp_quote
("HRESULT WINAPI UrlMkGetSessionOption(DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1733 cpp_quote
("HRESULT WINAPI UrlMkSetSessionOption(DWORD,LPVOID,DWORD,DWORD);")
1734 cpp_quote
("HRESULT WINAPI URLOpenStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1735 cpp_quote
("HRESULT WINAPI URLOpenStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1736 cpp_quote
("HRESULT WINAPI URLOpenPullStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1737 cpp_quote
("HRESULT WINAPI URLOpenPullStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1738 cpp_quote
("HRESULT WINAPI URLOpenBlockingStreamA(LPUNKNOWN,LPCSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
1739 cpp_quote
("HRESULT WINAPI URLOpenBlockingStreamW(LPUNKNOWN,LPCWSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
1741 cpp_quote
("#define OInetCombineUrl CoInternetCombineUrl")
1742 cpp_quote
("#define OInetCompareUrl CoInternetCompareUrl")
1743 cpp_quote
("#define OInetGetSession CoInternetGetSession")
1745 cpp_quote
("BOOL WINAPI IsLoggingEnabledA(LPCSTR);")
1746 cpp_quote
("BOOL WINAPI IsLoggingEnabledW(LPCWSTR);")
1747 cpp_quote
("#define IsLoggingEnabled WINELIB_NAME_AW(IsLoggingEnabled)")
1749 cpp_quote
("#define MKSYS_URLMONIKER 6")
1750 cpp_quote
("#define URL_MK_LEGACY 0")
1751 cpp_quote
("#define URL_MK_UNIFORM 1")