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 interface IInternetProtocolSink
;
27 /*****************************************************************************
32 uuid(79eac9c0
-baf9
-11ce
-8c82
-00aa004ba90b
),
33 pointer_default(unique)
35 interface IBinding
: IUnknown
37 typedef [unique] IBinding
*LPBINDING
;
47 [out] LONG * pnPriority
);
50 HRESULT GetBindResult
(
51 [out] CLSID
*pclsidProtocol
,
52 [out] DWORD
*pdwResult
,
53 [out] LPOLESTR
*pszResult
,
54 [in, out] DWORD
*pdwReserved
);
56 [call_as
(GetBindResult
)]
57 HRESULT RemoteGetBindResult
(
58 [out] CLSID
*pclsidProtocol
,
59 [out] DWORD
*pdwResult
,
60 [out] LPOLESTR
*pszResult
,
61 [in] DWORD dwReserved
);
65 /*****************************************************************************
66 * IBindStatusCallback interface
70 uuid(79eac9c1
-baf9
-11ce
-8c82
-00aa004ba90b
),
71 pointer_default(unique)
73 interface IBindStatusCallback
: IUnknown
75 typedef [unique] IBindStatusCallback
*LPBINDSTATUSCALLBACK
;
79 BINDVERB_GET
= 0x00000000,
80 BINDVERB_POST
= 0x00000001,
81 BINDVERB_PUT
= 0x00000002,
82 BINDVERB_CUSTOM
= 0x00000003
87 BINDINFOF_URLENCODESTGMEDDATA
= 0x00000001,
88 BINDINFOF_URLENCODEDEXTRAINFO
= 0x00000002
93 BINDF_ASYNCHRONOUS
= 0x00000001,
94 BINDF_ASYNCSTORAGE
= 0x00000002,
95 BINDF_NOPROGRESSIVERENDERING
= 0x00000004,
96 BINDF_OFFLINEOPERATION
= 0x00000008,
97 BINDF_GETNEWESTVERSION
= 0x00000010,
98 BINDF_NOWRITECACHE
= 0x00000020,
99 BINDF_NEEDFILE
= 0x00000040,
100 BINDF_PULLDATA
= 0x00000080,
101 BINDF_IGNORESECURITYPROBLEM
= 0x00000100,
102 BINDF_RESYNCHRONIZE
= 0x00000200,
103 BINDF_HYPERLINK
= 0x00000400,
104 BINDF_NO_UI
= 0x00000800,
105 BINDF_SILENTOPERATION
= 0x00001000,
106 BINDF_PRAGMA_NO_CACHE
= 0x00002000,
107 BINDF_GETCLASSOBJECT
= 0x00004000,
108 BINDF_RESERVED_1
= 0x00008000,
109 BINDF_FREE_THREADED
= 0x00010000,
110 BINDF_DIRECT_READ
= 0x00020000,
111 BINDF_FORMS_SUBMIT
= 0x00040000,
112 BINDF_GETFROMCACHE_IF_NET_FAIL
= 0x00080000,
113 BINDF_FROMURLMON
= 0x00100000,
114 BINDF_FWD_BACK
= 0x00200000,
115 BINDF_PREFERDEFAULTHANDLER
= 0x00400000,
116 BINDF_ENFORCERESTRICTED
= 0x00800000
121 URL_ENCODING_NONE
= 0x00000000,
122 URL_ENCODING_ENABLE_UTF8
= 0x10000000,
123 URL_ENCODING_DISABLE_UTF8
= 0x20000000
126 typedef struct _tagBINDINFO
130 STGMEDIUM stgmedData
;
136 DWORD dwOptionsFlags
;
138 SECURITY_ATTRIBUTES securityAttributes
;
144 typedef struct _REMSECURITY_ATTRIBUTES
147 DWORD lpSecurityDescriptor
;
149 } REMSECURITY_ATTRIBUTES
, *PREMSECURITY_ATTRIBUTES
, *LPREMSECURITY_ATTRIBUTES
;
151 typedef struct _tagRemBINDINFO
160 DWORD dwOptionsFlags
;
162 REMSECURITY_ATTRIBUTES securityAttributes
;
168 typedef struct tagRemFORMATETC
175 } RemFORMATETC
, *LPREMFORMATETC
;
179 BSCF_FIRSTDATANOTIFICATION
= 0x01,
180 BSCF_INTERMEDIATEDATANOTIFICATION
= 0x02,
181 BSCF_LASTDATANOTIFICATION
= 0x04,
182 BSCF_DATAFULLYAVAILABLE
= 0x08,
183 BSCF_AVAILABLEDATASIZEUNKNOWN
= 0x10
186 typedef enum BINDSTATUS
188 BINDSTATUS_FINDINGRESOURCE
= 1,
189 BINDSTATUS_CONNECTING
,
190 BINDSTATUS_REDIRECTING
,
191 BINDSTATUS_BEGINDOWNLOADDATA
,
192 BINDSTATUS_DOWNLOADINGDATA
,
193 BINDSTATUS_ENDDOWNLOADDATA
,
194 BINDSTATUS_BEGINDOWNLOADCOMPONENTS
,
195 BINDSTATUS_INSTALLINGCOMPONENTS
,
196 BINDSTATUS_ENDDOWNLOADCOMPONENTS
,
197 BINDSTATUS_USINGCACHEDCOPY
,
198 BINDSTATUS_SENDINGREQUEST
,
199 BINDSTATUS_CLASSIDAVAILABLE
,
200 BINDSTATUS_MIMETYPEAVAILABLE
,
201 BINDSTATUS_CACHEFILENAMEAVAILABLE
,
202 BINDSTATUS_BEGINSYNCOPERATION
,
203 BINDSTATUS_ENDSYNCOPERATION
,
204 BINDSTATUS_BEGINUPLOADDATA
,
205 BINDSTATUS_UPLOADINGDATA
,
206 BINDSTATUS_ENDUPLOADINGDATA
,
207 BINDSTATUS_PROTOCOLCLASSID
,
209 BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE
,
210 BINDSTATUS_CLASSINSTALLLOCATION
,
212 BINDSTATUS_LOADINGMIMEHANDLER
,
213 BINDSTATUS_CONTENTDISPOSITIONATTACH
,
214 BINDSTATUS_FILTERREPORTMIMETYPE
,
215 BINDSTATUS_CLSIDCANINSTANTIATE
,
216 BINDSTATUS_IUNKNOWNAVAILABLE
,
217 BINDSTATUS_DIRECTBIND
,
218 BINDSTATUS_RAWMIMETYPE
,
219 BINDSTATUS_PROXYDETECTING
,
220 BINDSTATUS_ACCEPTRANGES
,
221 BINDSTATUS_COOKIE_SENT
,
222 BINDSTATUS_COMPACT_POLICY_RECEIVED
,
223 BINDSTATUS_COOKIE_SUPPRESSED
,
224 BINDSTATUS_COOKIE_STATE_UNKNOWN
,
225 BINDSTATUS_COOKIE_STATE_ACCEPT
,
226 BINDSTATUS_COOKIE_STATE_REJECT
,
227 BINDSTATUS_COOKIE_STATE_PROMPT
,
228 BINDSTATUS_COOKIE_STATE_LEASH
,
229 BINDSTATUS_COOKIE_STATE_DOWNGRADE
,
230 BINDSTATUS_POLICY_HREF
,
231 BINDSTATUS_P3P_HEADER
,
232 BINDSTATUS_SESSION_COOKIE_RECEIVED
,
233 BINDSTATUS_PERSISTENT_COOKIE_RECEIVED
,
234 BINDSTATUS_SESSION_COOKIES_ALLOWED
,
235 BINDSTATUS_CACHECONTROL
,
236 BINDSTATUS_CONTENTDISPOSITIONFILENAME
,
237 BINDSTATUS_MIMETEXTPLAINMISMATCH
,
238 BINDSTATUS_PUBLISHERAVAILABLE
,
239 BINDSTATUS_DISPLAYNAMEAVAILABLE
243 HRESULT OnStartBinding
(
244 [in] DWORD dwReserved
,
245 [in] IBinding
* pib
);
248 [out] LONG * pnPriority
);
250 HRESULT OnLowResource
(
251 [in] DWORD reserved
);
254 [in] ULONG ulProgress
,
255 [in] ULONG ulProgressMax
,
256 [in] ULONG ulStatusCode
,
257 [in] LPCWSTR szStatusText
);
259 HRESULT OnStopBinding
(
260 [in] HRESULT hresult,
261 [in, unique] LPCWSTR szError
);
265 [out] DWORD
*grfBINDF
,
266 [in, out, unique] BINDINFO
* pbindinfo
);
268 [call_as
(GetBindInfo
)]
269 HRESULT RemoteGetBindInfo
(
270 [out] DWORD
*grfBINDF
,
271 [in, out, unique] RemBINDINFO
* pbindinfo
,
272 [in, out, unique] RemSTGMEDIUM
* pstgmed
);
275 HRESULT OnDataAvailable
(
278 [in] FORMATETC
* pformatetc
,
279 [in] STGMEDIUM
* pstgmed
);
281 [call_as
(OnDataAvailable
)]
282 HRESULT RemoteOnDataAvailable
(
285 [in] RemFORMATETC
*pformatetc
,
286 [in] RemSTGMEDIUM
* pstgmed
);
288 HRESULT OnObjectAvailable
(
290 [in, iid_is(riid
)] IUnknown
* punk
);
293 /*****************************************************************************
294 * IAuthenticate interface
299 uuid(79EAC9D0
-BAf9
-11CE
-8C82
-00AA004BA90B
),
300 pointer_default(unique)
302 interface IAuthenticate
: IUnknown
304 typedef [unique] IAuthenticate
*LPAUTHENTICATION
;
306 HRESULT Authenticate
(
308 [out] LPWSTR
*pszUsername
,
309 [out] LPWSTR
*pszPassword
);
312 /*****************************************************************************
313 * IHttpNegotiate interface
317 uuid(79EAC9D2
-BAF9
-11CE
-8C82
-00AA004BA90B
),
318 pointer_default(unique)
320 interface IHttpNegotiate
: IUnknown
322 typedef [unique] IHttpNegotiate
*LPHTTPNEGOTIATE
;
324 HRESULT BeginningTransaction
(
326 [in, unique] LPCWSTR szHeaders
,
327 [in] DWORD dwReserved
,
328 [out] LPWSTR
*pszAdditionalHeaders
);
331 [in] DWORD dwResponseCode
,
332 [in, unique] LPCWSTR szResponseHeaders
,
333 [in, unique] LPCWSTR szRequestHeaders
,
334 [out] LPWSTR
*pszAdditionalRequestHeaders
);
337 /*****************************************************************************
338 * IHttpNegotiate2 interface
342 uuid(4F9F9FCB
-E0F4
-48eb
-B7AB
-FA2EA9365CB4
),
343 pointer_default(unique)
345 interface IHttpNegotiate2
: IHttpNegotiate
347 typedef [unique] IHttpNegotiate2
*LPHTTPNEGOTIATE2
;
349 HRESULT GetRootSecurityId
(
350 [out, size_is(*pcbSecurityId
)] BYTE *pbSecurityId
,
351 [in, out] DWORD
*pcbSecurityId
,
352 [in] DWORD_PTR dwReserved
);
355 /*****************************************************************************
356 * IBindHost interface
358 cpp_quote
("#define SID_IBindHost IID_IBindHost")
359 cpp_quote
("#define SID_SBindHost IID_IBindHost")
362 uuid(fc4801a1
-2ba9
-11cf
-a229
-00aa003d7352
),
363 pointer_default(unique)
365 interface IBindHost
: IUnknown
367 typedef [unique] IBindHost
*LPBINDHOST
;
369 HRESULT CreateMoniker
(
370 [in] LPOLESTR szName
,
372 [out] IMoniker
** ppmk
,
373 [in] DWORD dwReserved
);
376 HRESULT MonikerBindToStorage
(
379 [in] IBindStatusCallback
*pBSC
,
381 [out] void **ppvObj
);
383 [call_as
(MonikerBindToStorage
)]
384 HRESULT RemoteMonikerBindToStorage
(
385 [in, unique] IMoniker
*pMk
,
386 [in, unique] IBindCtx
*pBC
,
387 [in, unique] IBindStatusCallback
*pBSC
,
389 [out, iid_is(riid
)] IUnknown
**ppvObj
);
392 HRESULT MonikerBindToObject
(
395 [in] IBindStatusCallback
*pBSC
,
397 [out] void **ppvObj
);
399 [call_as
(MonikerBindToObject
)]
400 HRESULT RemoteMonikerBindToObject
(
401 [in, unique] IMoniker
*pMk
,
402 [in, unique] IBindCtx
*pBC
,
403 [in, unique] IBindStatusCallback
*pBSC
,
405 [out, iid_is(riid
)] IUnknown
**ppvObj
);
409 /*****************************************************************************
410 * IWinInetInfo interface
414 uuid(79eac9d6
-bafa
-11ce
-8c82
-00aa004ba90b
),
415 pointer_default(unique)
417 interface IWinInetInfo
: IUnknown
419 typedef [unique] IWinInetInfo
*LPWININETINFO
;
424 [in, out, size_is(*pcbBuf
)] LPVOID pBuffer
,
425 [in, out] DWORD
*pcbBuf
);
427 [call_as
(QueryOption
)]
428 HRESULT RemoteQueryOption
(
430 [in, out, size_is(*pcbBuf
)] BYTE *pBuffer
,
431 [in, out] DWORD
*pcbBuf
);
436 /*****************************************************************************
437 * IWinInetHttpInfo interface
441 uuid(79eac9d8
-bafa
-11ce
-8c82
-00aa004ba90b
),
442 pointer_default(unique)
444 interface IWinInetHttpInfo
: IWinInetInfo
446 typedef [unique] IWinInetHttpInfo
*LPWININETHTTPINFO
;
451 [in, out,size_is(*pcbBuf
)] LPVOID pBuffer
,
452 [in, out] DWORD
*pcbBuf
,
453 [in, out] DWORD
*pdwFlags
,
454 [in, out] DWORD
*pdwReserved
);
457 HRESULT RemoteQueryInfo
(
459 [in,out,size_is(*pcbBuf
)] BYTE *pBuffer
,
460 [in, out] DWORD
*pcbBuf
,
461 [in, out] DWORD
*pdwFlags
,
462 [in, out] DWORD
*pdwReserved
);
465 /*****************************************************************************
466 * IWindowForBindingUI interface
471 uuid(79eac9d5
-bafa
-11ce
-8c82
-00aa004ba90b
),
472 pointer_default(unique)
474 interface IWindowForBindingUI
: IUnknown
476 typedef [unique] IWindowForBindingUI
*LPWINDOWFORBINDINGUI
;
479 [in] REFGUID rguidReason
,
483 /*****************************************************************************
484 * IHttpSecurity interface
488 uuid(79eac9d7
-bafa
-11ce
-8c82
-00aa004ba90b
),
489 pointer_default(unique)
491 interface IHttpSecurity
: IWindowForBindingUI
493 typedef [unique] IHttpSecurity
*LPHTTPSECURITY
;
495 HRESULT OnSecurityProblem
(
496 [in] DWORD dwProblem
);
500 /*****************************************************************************
501 * IPersistMoniker interface
505 uuid(79eac9c9
-baf9
-11ce
-8c82
-00aa004ba90b
),
506 pointer_default(unique)
508 interface IPersistMoniker
: IUnknown
510 typedef [unique] IPersistMoniker
*LPPERSISTMONIKER
;
513 [out] CLSID
*pClassID
);
518 [in] BOOL fFullyAvailable
,
519 [in] IMoniker
*pimkName
,
524 [in] IMoniker
*pimkName
,
526 [in] BOOL fRemember
);
528 HRESULT SaveCompleted
(
529 [in] IMoniker
*pimkName
,
532 HRESULT GetCurMoniker
(
533 [out] IMoniker
**ppimkName
);
536 /*****************************************************************************
537 * IMonikerProp interface
541 uuid(A5CA5F7F
-1847-4D87
-9C5B
-918509F7511D
),
542 pointer_default(unique)
544 interface IMonikerProp
: IUnknown
546 typedef [unique] IMonikerProp
*LPMONIKERPROP
;
552 TRUSTEDDOWNLOADPROP
= 3,
557 [in] MONIKERPROPERTY mkp
,
561 cpp_quote
("#ifndef _LPBINDPROTOCOL_DEFINED")
562 cpp_quote
("#define _LPBINDPROTOCOL_DEFINED")
564 /*****************************************************************************
565 * IBindProtocol interface
570 uuid(79EAC9CD
-BAF9
-11CE
-8C82
-00AA004BA90B
),
571 pointer_default(unique)
573 interface IBindProtocol
: IUnknown
575 typedef [unique] IBindProtocol
*LPBINDPROTOCOL
;
577 HRESULT CreateBinding
(
580 [out] IBinding
**ppb
);
583 cpp_quote
("#endif /* !defined _LPBINDPROTOCOL_DEFINED */")
585 /*****************************************************************************
586 * IInternetBindInfo interface
591 uuid(79EAC9E1
-BAF9
-11CE
-8C82
-00AA004BA90B
),
592 pointer_default(unique)
594 interface IInternetBindInfo
: IUnknown
596 typedef [unique] IInternetBindInfo
*LPIINTERNETBINDINFO
;
598 typedef enum tagBINDSTRING
600 BINDSTRING_HEADERS
= 1,
601 BINDSTRING_ACCEPT_MIMES
,
602 BINDSTRING_EXTRA_URL
,
606 BINDSTRING_UA_PIXELS
,
609 BINDSTRING_USER_AGENT
,
610 BINDSTRING_ACCEPT_ENCODINGS
,
611 BINDSTRING_POST_COOKIE
,
612 BINDSTRING_POST_DATA_MIME
,
615 BINDSTRING_FLAG_BIND_TO_OBJECT
,
616 BINDSTRING_PTR_BIND_CONTEXT
620 [out] DWORD
*grfBINDF
,
621 [in, out, unique] BINDINFO
*pbindinfo
);
623 HRESULT GetBindString
(
624 [in] ULONG ulStringType
,
625 [in, out] LPOLESTR
*ppwzStr
,
627 [in, out] ULONG
*pcElFetched
);
630 /*****************************************************************************
631 * IInternetPriority interface
636 uuid(79EAC9EB
-BAF9
-11CE
-8C82
-00AA004BA90B
),
637 pointer_default(unique)
639 interface IInternetPriority
: IUnknown
641 typedef [unique] IInternetPriority
*LPIINTERNETPRIORITY
;
643 HRESULT SetPriority
([in] LONG nPriority
);
644 HRESULT GetPriority
([out] LONG *pnPriority
);
647 /*****************************************************************************
648 * IInternetProtocolRoot interface
653 uuid(79EAC9E3
-BAF9
-11CE
-8C82
-00AA004BA90B
),
654 pointer_default(unique)
656 interface IInternetProtocolRoot
: IUnknown
658 typedef [unique] IInternetProtocolRoot
*LPIINTERNETPROTOCOLROOT
;
660 typedef enum _tagPI_FLAGS
662 PI_PARSE_URL
= 0x00000001,
663 PI_FILTER_MODE
= 0x00000002,
664 PI_FORCE_ASYNC
= 0x00000004,
665 PI_USE_WORKERTHREAD
= 0x00000008,
666 PI_MIMEVERIFICATION
= 0x00000010,
667 PI_CLSIDLOOKUP
= 0x00000020,
668 PI_DATAPROGRESS
= 0x00000040,
669 PI_SYNCHRONOUS
= 0x00000080,
670 PI_APARTMENTTHREADED
= 0x00000100,
671 PI_CLASSINSTALL
= 0x00000200,
672 PD_FORCE_SWITCH
= 0x00010000
675 typedef struct _tagPROTOCOLDATA
685 [in] IInternetProtocolSink
*pOIProtSink
,
686 [in] IInternetBindInfo
*pOIBindInfo
,
688 [in] DWORD dwReserved
);
691 [in] PROTOCOLDATA
*pProtocolData
);
694 [in] HRESULT hrReason
,
695 [in] DWORD dwOptions
);
698 [in] DWORD dwOptions
);
705 /*****************************************************************************
706 * IInternetProtocolSink interface
711 uuid(79EAC9E5
-BAF9
-11CE
-8C82
-00AA004BA90B
),
712 pointer_default(unique)
714 interface IInternetProtocolSink
: IUnknown
716 typedef [unique] IInternetProtocolSink
*LPIINTERNETPROTOCOLSINK
;
719 [in] PROTOCOLDATA
*pProtocolData
);
721 HRESULT ReportProgress
(
722 [in] ULONG ulStatusCode
,
723 [in] LPCWSTR szStatusText
);
727 [in] ULONG ulProgress
,
728 [in] ULONG ulProgressMax
);
730 HRESULT ReportResult
(
731 [in] HRESULT hrResult
,
733 [in] LPCWSTR szResult
);
736 /*****************************************************************************
737 * IInternetProtocol interface
742 uuid(79EAC9E4
-BAF9
-11CE
-8C82
-00AA004BA90B
),
743 pointer_default(unique)
745 interface IInternetProtocol
: IInternetProtocolRoot
747 typedef [unique] IInternetProtocol
*LPIINTERNETPROTOCOL
;
750 [in,out, size_is(cb
), length_is(*pcbRead
)] void *pv
,
752 [out] ULONG
*pcbRead
);
755 [in] LARGE_INTEGER dlibMove
,
757 [out] ULARGE_INTEGER
*plibNewPosition
);
760 [in] DWORD dwOptions
);
762 HRESULT UnlockRequest
();
765 /*****************************************************************************
766 * IInternetProtocolInfo interface
771 uuid(79eac9ec
-baf9
-11ce
-8c82
-00aa004ba90b
),
772 pointer_default(unique)
774 interface IInternetProtocolInfo
: IUnknown
776 typedef [unique] IInternetProtocolInfo
*LPIINTERNETPROTOCOLINFO
;
778 typedef enum _tagPARSEACTION
780 PARSE_CANONICALIZE
= 1,
796 PARSE_SECURITY_DOMAIN
,
801 typedef enum _tagPSUACTION
804 PSU_SECURITY_URL_ONLY
807 typedef enum _tagQUERYOPTION
809 QUERY_EXPIRATION_DATE
= 1,
810 QUERY_TIME_OF_LAST_CHANGE
,
811 QUERY_CONTENT_ENCODING
,
818 QUERY_IS_INSTALLEDENTRY
,
819 QUERY_IS_CACHED_OR_MAPPED
,
827 [in] PARSEACTION ParseAction
,
828 [in] DWORD dwParseFlags
,
829 [out] LPWSTR pwzResult
,
830 [in] DWORD cchResult
,
831 [out] DWORD
*pcchResult
,
832 [in] DWORD dwReserved
);
835 [in] LPCWSTR pwzBaseUrl
,
836 [in] LPCWSTR pwzRelativeUrl
,
837 [in] DWORD dwCombineFlags
,
838 [out] LPWSTR pwzResult
,
839 [in] DWORD cchResult
,
840 [out] DWORD
*pcchResult
,
841 [in] DWORD dwReserved
);
844 [in] LPCWSTR pwzUrl1
,
845 [in] LPCWSTR pwzUrl2
,
846 [in] DWORD dwCompareFlags
);
850 [in] QUERYOPTION OueryOption
,
851 [in] DWORD dwQueryFlags
,
852 [in, out,size_is(*pcbBuf
)] LPVOID pBuffer
,
854 [in, out] DWORD
*pcbBuf
,
855 [in] DWORD dwReserved
);
858 /*****************************************************************************
859 * IInternetSession interface
864 uuid(79eac9e7
-baf9
-11ce
-8c82
-00aa004ba90b
),
865 pointer_default(unique)
867 interface IInternetSession
: IUnknown
869 typedef [unique] IInternetSession
*LPIINTERNETSESSION
;
871 typedef enum _tagOIBDG_FLAGS
873 OIBDG_APARTMENTTHREADED
= 0x0100,
874 OIBDG_DATAONLY
= 0x1000
877 HRESULT RegisterNameSpace
(
878 [in] IClassFactory
*pCF
,
879 [in] REFCLSID rclsid
,
880 [in] LPCWSTR pwzProtocol
,
881 [in] ULONG cPatterns
,
882 [in] const LPCWSTR
*ppwzPatterns
,
883 [in] DWORD dwReserved
);
885 HRESULT UnregisterNameSpace
(
886 [in] IClassFactory
*pCF
,
887 [in] LPCWSTR pszProtocol
);
889 HRESULT RegisterMimeFilter
(
890 [in] IClassFactory
*pCF
,
891 [in] REFCLSID rclsid
,
892 [in] LPCWSTR pwzType
);
894 HRESULT UnregisterMimeFilter
(
895 [in] IClassFactory
*pCF
,
896 [in] LPCWSTR pwzType
);
898 HRESULT CreateBinding
(
901 [in] IUnknown
*pUnkOuter
,
902 [out, unique] IUnknown
**ppUnk
,
903 [out, unique] IInternetProtocol
**ppOInetProt
,
904 [in] DWORD dwOption
);
906 HRESULT SetSessionOption
(
909 [in] DWORD dwBufferLength
,
910 [in] DWORD dwReserved
);
913 /*****************************************************************************
914 * IInternetSecurityMgrSite interface
919 uuid(79eac9ed
-baf9
-11ce
-8c82
-00aa004ba90b
),
920 pointer_default(unique)
922 interface IInternetSecurityMgrSite
: IUnknown
927 HRESULT EnableModeless
(
932 /*****************************************************************************
933 * IInternetSecurityManager interface
935 cpp_quote
("#define SID_SInternetSecurityManager IID_IInternetSecurityManager")
939 uuid(79eac9ee
-baf9
-11ce
-8c82
-00aa004ba90b
),
940 pointer_default(unique)
942 interface IInternetSecurityManager
: IUnknown
944 HRESULT SetSecuritySite
(
945 [in, unique] IInternetSecurityMgrSite
*pSite
);
947 HRESULT GetSecuritySite
(
948 [out] IInternetSecurityMgrSite
**ppSite
);
950 HRESULT MapUrlToZone
(
951 [in] LPCWSTR pwszUrl
,
952 [out] DWORD
*pdwZone
,
955 cpp_quote
("#define MAX_SIZE_SECURITY_ID 512")
957 HRESULT GetSecurityId
(
958 [in] LPCWSTR pwszUrl
,
959 [out, size_is(*pcbSecurityId
)] BYTE *pbSecurityId
,
960 [in, out] DWORD
*pcbSecurityId
,
961 [in] DWORD_PTR dwReserved
);
968 PUAF_WARN_IF_DENIED
= 0x04,
969 PUAF_FORCEUI_FOREGROUND
= 0x08,
970 PUAF_CHECK_TIPS
= 0x10
973 HRESULT ProcessUrlAction
(
974 [in] LPCWSTR pwszUrl
,
976 [out, size_is(cbPolicy
)] BYTE *pPolicy
,
979 [in] DWORD cbContext
,
981 [in] DWORD dwReserved
);
983 HRESULT QueryCustomPolicy
(
984 [in] LPCWSTR pwszUrl
,
985 [in] REFGUID guidKey
,
986 [out, size_is(,*pcbPolicy
)] BYTE **ppPolicy
,
987 [out] DWORD
*pcbPolicy
,
989 [in] DWORD cbContext
,
990 [in] DWORD dwReserved
);
997 HRESULT SetZoneMapping
(
999 [in] LPCWSTR lpszPattern
,
1000 [in] DWORD dwFlags
);
1002 HRESULT GetZoneMappings
(
1004 [out] IEnumString
**ppenumString
,
1005 [in] DWORD dwFlags
);
1008 /*****************************************************************************
1009 * IInternetZoneManager interface
1014 uuid(79EAC9EF
-BAf9
-11CE
-8C82
-00AA004BA90B
),
1015 pointer_default(unique)
1017 interface IInternetZoneManager
: IUnknown
1019 typedef [unique] IInternetZoneManager
* LPURLZONEMANAGER
;
1021 typedef enum tagURLZONE
1023 URLZONE_PREDEFINED_MIN
= 0,
1024 URLZONE_LOCAL_MACHINE
= 0,
1025 URLZONE_INTRANET
= 1,
1026 URLZONE_TRUSTED
= 2,
1027 URLZONE_INTERNET
= 3,
1028 URLZONE_UNTRUSTED
= 4,
1029 URLZONE_PREDEFINED_MAX
= 999,
1030 URLZONE_USER_MIN
= 1000,
1031 URLZONE_USER_MAX
= 10000,
1034 typedef enum tagURLTEMPLATE
1036 URLTEMPLATE_CUSTOM
= 0x00000,
1037 URLTEMPLATE_PREDEFINED_MIN
= 0x10000,
1038 URLTEMPLATE_LOW
= 0x10000,
1039 URLTEMPLATE_MEDIUM
= 0x11000,
1040 URLTEMPLATE_HIGH
= 0x12000,
1041 URLTEMPLATE_PREDEFINED_MAX
= 0x20000,
1045 ZAFLAGS_CUSTOM_EDIT
= 0x00000001,
1046 ZAFLAGS_ADD_SITES
= 0x00000002,
1047 ZAFLAGS_REQUIRE_VERIFICATION
= 0x00000004,
1048 ZAFLAGS_INCLUDE_PROXY_OVERRIDE
= 0x00000008,
1049 ZAFLAGS_INCLUDE_INTRANET_SITES
= 0x00000010,
1050 ZAFLAGS_NO_UI
= 0x00000020,
1051 ZAFLAGS_SUPPORTS_VERIFICATION
= 0x00000040,
1052 ZAFLAGS_UNC_AS_INTRANET
= 0x00000080,
1056 MAX_ZONE_PATH
= 260,
1057 MAX_ZONE_DESCRIPTION
= 200
1060 typedef struct _ZONEATTRIBUTES
{
1062 WCHAR szDisplayName
[MAX_ZONE_PATH
];
1063 WCHAR szDescription
[MAX_ZONE_DESCRIPTION
];
1064 WCHAR szIconPath
[MAX_ZONE_PATH
];
1065 DWORD dwTemplateMinLevel
;
1066 DWORD dwTemplateRecommended
;
1067 DWORD dwTemplateCurrentLevel
;
1069 } ZONEATTRIBUTES
, *LPZONEATTRIBUTES
;
1071 typedef enum _URLZONEREG
{
1077 HRESULT GetZoneAttributes
(
1079 [in, out, unique] ZONEATTRIBUTES
* pZoneAttributes
);
1081 HRESULT SetZoneAttributes
(
1083 [in] ZONEATTRIBUTES
* pZoneAttributes
);
1085 HRESULT GetZoneCustomPolicy
(
1087 [in] REFGUID guidKey
,
1088 [out] BYTE **ppPolicy
,
1089 [out] DWORD
* pcbPolicy
,
1090 [in] URLZONEREG ulrZoneReg
);
1092 HRESULT SetZoneCustomPolicy
(
1094 [in] REFGUID guidKey
,
1095 [in] BYTE *ppPolicy
,
1096 [in] DWORD pcbPolicy
,
1097 [in] URLZONEREG ulrZoneReg
);
1099 HRESULT GetZoneActionPolicy
(
1101 [in] DWORD dwAction
,
1102 [out] BYTE* pPolicy
,
1103 [in] DWORD cbPolicy
,
1104 [in] URLZONEREG urlZoneReg
);
1106 HRESULT SetZoneActionPolicy
(
1108 [in] DWORD dwAction
,
1110 [in] DWORD cbPolicy
,
1111 [in] URLZONEREG urlZoneReg
);
1113 HRESULT PromptAction
(
1114 [in] DWORD dwAction
,
1115 [in] HWND hwndParent
,
1116 [in] LPCWSTR pwszUrl
,
1117 [in] LPCWSTR pwszText
,
1118 [in] DWORD dwPromptFlags
);
1121 [in] DWORD dwAction
,
1122 [in] LPCWSTR pwszUrl
,
1123 [in] LPCWSTR pwszText
,
1124 [in] DWORD dwLogFlags
);
1126 HRESULT CreateZoneEnumerator
(
1127 [out] DWORD
* pdwEnum
,
1128 [out] DWORD
* pdwCount
,
1129 [in] DWORD dwFlags
);
1134 [out] DWORD
* pdwZone
);
1136 HRESULT DestroyZoneEnumerator
(
1139 HRESULT CopyTemplatePoliciesToZone
(
1140 [in] DWORD dwTemplate
,
1142 [in] DWORD dwReserved
);
1145 typedef struct _tagSOFTDISTINFO
1153 DWORD dwInstalledVersionMS
;
1154 DWORD dwInstalledVersionLS
;
1155 DWORD dwUpdateVersionMS
;
1156 DWORD dwUpdateVersionLS
;
1157 DWORD dwAdvertisedVersionMS
;
1158 DWORD dwAdvertisedVersionLS
;
1160 } SOFTDISTINFO
, *LPSOFTDISTINFO
;
1162 typedef struct _tagCODEBASEHOLD
1170 } CODEBASEHOLD
, *LPCODEBASEHOLD
;
1175 uuid(b15b8dc1
-c7e1
-11d0
-8680-00aa00bdcb71
),
1176 pointer_default(unique)
1178 interface ISoftDistExt
: IUnknown
1180 HRESULT ProcessSoftDist
(
1181 [in] LPCWSTR szCDFURL
,
1182 [in] IXMLElement
*pSoftDistElement
,
1183 [in, out] LPSOFTDISTINFO lpsdi
);
1185 HRESULT GetFirstCodeBase
(
1186 [in] LPWSTR
*szCodeBase
,
1187 [in] LPDWORD dwMaxSize
);
1189 HRESULT GetNextCodeBase
(
1190 [in] LPWSTR
*szCodeBase
,
1191 [in] LPDWORD dwMaxSize
);
1193 HRESULT AsyncInstallDistributionUnit
(
1195 [in] LPVOID lpReserved
,
1197 [in] LPCODEBASEHOLD lpcbh
);
1200 cpp_quote
("DEFINE_GUID(CLSID_InternetSecurityManager, 0x7b8a2d94, 0x0ac9, 0x11d1, 0x89, 0x6c, 0x00, 0xc0, 0x4f, 0xB6, 0xbf, 0xc4);")
1201 cpp_quote
("DEFINE_GUID(CLSID_InternetZoneManager, 0x7B8A2D95, 0x0AC9, 0x11D1, 0x89, 0x6C, 0x00, 0xC0, 0x4F, 0xB6, 0xBF, 0xC4);")
1202 cpp_quote
("DEFINE_GUID(IID_IAsyncMoniker, 0x79EAC9D3, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1203 cpp_quote
("DEFINE_GUID(IID_IAsyncBindCtx, 0x79EAC9D4, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1204 cpp_quote
("DEFINE_GUID(CLSID_StdURLMoniker, 0x79EAC9E0, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1206 cpp_quote
("DEFINE_GUID(CLSID_CdlProtocol, 0x3dd53d40, 0x7b8b, 0x11D0, 0xb0,0x13, 0x00,0xaa,0x00,0x59,0xce,0x02);")
1207 cpp_quote
("DEFINE_GUID(CLSID_FileProtocol, 0x79EAC9E7, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1208 cpp_quote
("DEFINE_GUID(CLSID_FtpProtocol, 0x79EAC9E3, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1209 cpp_quote
("DEFINE_GUID(CLSID_GopherProtocol, 0x79EAC9E4, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1210 cpp_quote
("DEFINE_GUID(CLSID_HttpProtocol, 0x79EAC9E2, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1211 cpp_quote
("DEFINE_GUID(CLSID_HttpSProtocol, 0x79EAC9E5, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1212 cpp_quote
("DEFINE_GUID(CLSID_MkProtocol, 0x79EAC9E6, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1214 cpp_quote
("#define URLMON_OPTION_USERAGENT 0x10000001")
1215 cpp_quote
("#define URLMON_OPTION_USERAGENT_REFRESH 0x10000002")
1216 cpp_quote
("#define URLMON_OPTION_URL_ENCODING 0x10000004")
1218 cpp_quote
("#define MK_S_ASYNCHRONOUS 0x000401E8")
1219 cpp_quote
("#ifndef S_ASYNCHRONOUS")
1220 cpp_quote
("#define S_ASYNCHRONOUS MK_S_ASYNCHRONOUS")
1223 cpp_quote
("#define INET_E_ERROR_FIRST 0x800C0002")
1224 cpp_quote
("#define INET_E_INVALID_URL 0x800C0002")
1225 cpp_quote
("#define INET_E_NO_SESSION 0x800C0003")
1226 cpp_quote
("#define INET_E_CANNOT_CONNECT 0x800C0004")
1227 cpp_quote
("#define INET_E_RESOURCE_NOT_FOUND 0x800C0005")
1228 cpp_quote
("#define INET_E_OBJECT_NOT_FOUND 0x800C0006")
1229 cpp_quote
("#define INET_E_DATA_NOT_AVAILABLE 0x800C0007")
1230 cpp_quote
("#define INET_E_DOWNLOAD_FAILURE 0x800C0008")
1231 cpp_quote
("#define INET_E_AUTHENTICATION_REQUIRED 0x800C0009")
1232 cpp_quote
("#define INET_E_NO_VALID_MEDIA 0x800C000A")
1233 cpp_quote
("#define INET_E_CONNECTION_TIMEOUT 0x800C000B")
1234 cpp_quote
("#define INET_E_INVALID_REQUEST 0x800C000C")
1235 cpp_quote
("#define INET_E_UNKNOWN_PROTOCOL 0x800C000D")
1236 cpp_quote
("#define INET_E_SECURITY_PROBLEM 0x800C000E")
1237 cpp_quote
("#define INET_E_CANNOT_LOAD_DATA 0x800C000F")
1238 cpp_quote
("#define INET_E_CANNOT_INSTANTIATE_OBJECT 0x800C0010")
1239 cpp_quote
("#define INET_E_USE_DEFAULT_PROTOCOLHANDLER 0x800C0011")
1240 cpp_quote
("#define INET_E_QUERYOPTION_UNKNOWN 0x800C0013")
1241 cpp_quote
("#define INET_E_REDIRECT_FAILED 0x800C0014")
1242 cpp_quote
("#define INET_E_REDIRECT_TO_DIR 0x800C0015")
1243 cpp_quote
("#define INET_E_CANNOT_LOCK_REQUEST 0x800C0016")
1244 cpp_quote
("#define INET_E_ERROR_LAST INET_E_REDIRECT_TO_DIR")
1245 cpp_quote
("#define INET_E_DEFAULT_ACTION INET_E_USE_DEFAULT_PROTOCOLHANDLER")
1247 cpp_quote
("HRESULT WINAPI CoGetClassObjectFromURL(REFCLSID, LPCWSTR, DWORD, DWORD, LPCWSTR, LPBINDCTX, DWORD, LPVOID, REFIID, LPVOID*);")
1248 cpp_quote
("HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk);")
1249 cpp_quote
("HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved);")
1250 cpp_quote
("HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD);")
1251 cpp_quote
("HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN,LPCSTR,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1252 cpp_quote
("HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN,LPCWSTR,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1253 cpp_quote
("HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN,LPCSTR,LPSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1254 cpp_quote
("HRESULT WINAPI URLDownloadToCacheFileW(LPUNKNOWN,LPCWSTR,LPWSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1255 cpp_quote
("HRESULT WINAPI CoInternetGetSession(DWORD,IInternetSession**,DWORD);")
1256 cpp_quote
("HRESULT WINAPI MkParseDisplayNameEx(IBindCtx*,LPCWSTR,ULONG*,IMoniker**);")
1257 cpp_quote
("HRESULT WINAPI IsAsyncMoniker(IMoniker* pmk);")
1258 cpp_quote
("HRESULT WINAPI CreateAsyncBindCtx(DWORD, IBindStatusCallback*, IEnumFORMATETC*, IBindCtx**);")
1259 cpp_quote
("HRESULT WINAPI CreateAsyncBindCtxEx(IBindCtx*,DWORD,IBindStatusCallback*,IEnumFORMATETC*,IBindCtx**,DWORD);")
1260 cpp_quote
("HRESULT WINAPI CoInternetCreateSecurityManager(IServiceProvider*,IInternetSecurityManager**,DWORD);")
1261 cpp_quote
("HRESULT WINAPI CoInternetCombineUrl(LPCWSTR,LPCWSTR,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1262 cpp_quote
("HRESULT WINAPI CoInternetCompareUrl(LPCWSTR,LPCWSTR,DWORD);")
1263 cpp_quote
("HRESULT WINAPI CoInternetCreateZoneManager(IServiceProvider*, IInternetZoneManager**, DWORD);")
1264 cpp_quote
("HRESULT WINAPI CoInternetParseUrl(LPCWSTR,PARSEACTION,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1265 cpp_quote
("HRESULT WINAPI CoInternetQueryInfo(LPCWSTR,QUERYOPTION,DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1266 cpp_quote
("HRESULT WINAPI CreateFormatEnumerator(UINT,FORMATETC*,IEnumFORMATETC**);")
1267 cpp_quote
("HRESULT WINAPI GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi);")
1268 cpp_quote
("HRESULT WINAPI FaultInIEFeature(HWND,uCLSSPEC*,QUERYCONTEXT*,DWORD);")
1269 cpp_quote
("HRESULT WINAPI FindMimeFromData(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,LPWSTR*,DWORD);")
1270 cpp_quote
("HRESULT WINAPI GetClassFileOrMime(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,CLSID*);")
1271 cpp_quote
("HRESULT WINAPI HlinkGoBack(IUnknown*);")
1272 cpp_quote
("HRESULT WINAPI HlinkGoForward(IUnknown*);")
1273 cpp_quote
("HRESULT WINAPI HlinkNavigateMoniker(IUnknown*,IMoniker*);")
1274 cpp_quote
("HRESULT WINAPI HlinkNavigateString(IUnknown*,LPCWSTR);")
1275 cpp_quote
("HRESULT WINAPI HlinkSimpleNavigateToMoniker(IMoniker*,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1276 cpp_quote
("HRESULT WINAPI HlinkSimpleNavigateToString(LPCWSTR,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1277 cpp_quote
("HRESULT WINAPI IsValidURL(LPBC,LPCWSTR,DWORD);")
1278 cpp_quote
("HRESULT WINAPI ObtainUserAgentString(DWORD,LPSTR,DWORD*);")
1279 cpp_quote
("HRESULT WINAPI RegisterFormatEnumerator(LPBC,IEnumFORMATETC*,DWORD);")
1280 cpp_quote
("HRESULT WINAPI RevokeFormatEnumerator(LPBC,IEnumFORMATETC*);")
1281 cpp_quote
("HRESULT WINAPI RevokeBindStatusCallback(LPBC,IBindStatusCallback*);")
1282 cpp_quote
("void WINAPI ReleaseBindInfo(BINDINFO*);")
1283 cpp_quote
("HRESULT WINAPI UrlMkGetSessionOption(DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1284 cpp_quote
("HRESULT WINAPI UrlMkSetSessionOption(DWORD,LPVOID,DWORD,DWORD);")
1285 cpp_quote
("HRESULT WINAPI URLOpenStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1286 cpp_quote
("HRESULT WINAPI URLOpenStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1287 cpp_quote
("HRESULT WINAPI URLOpenPullStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1288 cpp_quote
("HRESULT WINAPI URLOpenPullStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1289 cpp_quote
("HRESULT WINAPI URLOpenBlockingStreamA(LPUNKNOWN,LPCSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
1290 cpp_quote
("HRESULT WINAPI URLOpenBlockingStreamW(LPUNKNOWN,LPCWSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
1292 cpp_quote
("#define OInetCombineUrl CoInternetCombineUrl")
1293 cpp_quote
("#define OInetCompareUrl CoInternetCompareUrl")
1294 cpp_quote
("#define OInetGetSession CoInternetGetSession")
1296 cpp_quote
("#define MKSYS_URLMONIKER 6")
1297 cpp_quote
("#define URL_MK_LEGACY 0")
1298 cpp_quote
("#define URL_MK_UNIFORM 1")