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
;
549 MIMETYPEPROP
= 0x00000000,
550 USE_SRC_URL
= 0x00000001
554 [in] MONIKERPROPERTY mkp
,
558 cpp_quote
("#ifndef _LPBINDPROTOCOL_DEFINED")
559 cpp_quote
("#define _LPBINDPROTOCOL_DEFINED")
561 /*****************************************************************************
562 * IBindProtocol interface
567 uuid(79EAC9CD
-BAF9
-11CE
-8C82
-00AA004BA90B
),
568 pointer_default(unique)
570 interface IBindProtocol
: IUnknown
572 typedef [unique] IBindProtocol
*LPBINDPROTOCOL
;
574 HRESULT CreateBinding
(
577 [out] IBinding
**ppb
);
580 cpp_quote
("#endif /* !defined _LPBINDPROTOCOL_DEFINED */")
582 /*****************************************************************************
583 * IInternetBindInfo interface
588 uuid(79EAC9E1
-BAF9
-11CE
-8C82
-00AA004BA90B
),
589 pointer_default(unique)
591 interface IInternetBindInfo
: IUnknown
593 typedef [unique] IInternetBindInfo
*LPIINTERNETBINDINFO
;
595 typedef enum tagBINDSTRING
597 BINDSTRING_HEADERS
= 1,
598 BINDSTRING_ACCEPT_MIMES
,
599 BINDSTRING_EXTRA_URL
,
603 BINDSTRING_UA_PIXELS
,
606 BINDSTRING_USER_AGENT
,
607 BINDSTRING_ACCEPT_ENCODINGS
,
608 BINDSTRING_POST_COOKIE
,
609 BINDSTRING_POST_DATA_MIME
,
612 BINDSTRING_FLAG_BIND_TO_OBJECT
,
613 BINDSTRING_PTR_BIND_CONTEXT
617 [out] DWORD
*grfBINDF
,
618 [in, out, unique] BINDINFO
*pbindinfo
);
620 HRESULT GetBindString
(
621 [in] ULONG ulStringType
,
622 [in, out] LPOLESTR
*ppwzStr
,
624 [in, out] ULONG
*pcElFetched
);
627 /*****************************************************************************
628 * IInternetPriority interface
633 uuid(79EAC9EB
-BAF9
-11CE
-8C82
-00AA004BA90B
),
634 pointer_default(unique)
636 interface IInternetPriority
: IUnknown
638 typedef [unique] IInternetPriority
*LPIINTERNETPRIORITY
;
640 HRESULT SetPriority
([in] LONG nPriority
);
641 HRESULT GetPriority
([out] LONG *pnPriority
);
644 /*****************************************************************************
645 * IInternetProtocolRoot interface
650 uuid(79EAC9E3
-BAF9
-11CE
-8C82
-00AA004BA90B
),
651 pointer_default(unique)
653 interface IInternetProtocolRoot
: IUnknown
655 typedef [unique] IInternetProtocolRoot
*LPIINTERNETPROTOCOLROOT
;
657 typedef enum _tagPI_FLAGS
659 PI_PARSE_URL
= 0x00000001,
660 PI_FILTER_MODE
= 0x00000002,
661 PI_FORCE_ASYNC
= 0x00000004,
662 PI_USE_WORKERTHREAD
= 0x00000008,
663 PI_MIMEVERIFICATION
= 0x00000010,
664 PI_CLSIDLOOKUP
= 0x00000020,
665 PI_DATAPROGRESS
= 0x00000040,
666 PI_SYNCHRONOUS
= 0x00000080,
667 PI_APARTMENTTHREADED
= 0x00000100,
668 PI_CLASSINSTALL
= 0x00000200,
669 PD_FORCE_SWITCH
= 0x00010000
672 typedef struct _tagPROTOCOLDATA
682 [in] IInternetProtocolSink
*pOIProtSink
,
683 [in] IInternetBindInfo
*pOIBindInfo
,
685 [in] DWORD dwReserved
);
688 [in] PROTOCOLDATA
*pProtocolData
);
691 [in] HRESULT hrReason
,
692 [in] DWORD dwOptions
);
695 [in] DWORD dwOptions
);
702 /*****************************************************************************
703 * IInternetProtocolSink interface
708 uuid(79EAC9E5
-BAF9
-11CE
-8C82
-00AA004BA90B
),
709 pointer_default(unique)
711 interface IInternetProtocolSink
: IUnknown
713 typedef [unique] IInternetProtocolSink
*LPIINTERNETPROTOCOLSINK
;
716 [in] PROTOCOLDATA
*pProtocolData
);
718 HRESULT ReportProgress
(
719 [in] ULONG ulStatusCode
,
720 [in] LPCWSTR szStatusText
);
724 [in] ULONG ulProgress
,
725 [in] ULONG ulProgressMax
);
727 HRESULT ReportResult
(
728 [in] HRESULT hrResult
,
730 [in] LPCWSTR szResult
);
733 /*****************************************************************************
734 * IInternetProtocol interface
739 uuid(79EAC9E4
-BAF9
-11CE
-8C82
-00AA004BA90B
),
740 pointer_default(unique)
742 interface IInternetProtocol
: IInternetProtocolRoot
744 typedef [unique] IInternetProtocol
*LPIINTERNETPROTOCOL
;
747 [in,out, size_is(cb
), length_is(*pcbRead
)] void *pv
,
749 [out] ULONG
*pcbRead
);
752 [in] LARGE_INTEGER dlibMove
,
754 [out] ULARGE_INTEGER
*plibNewPosition
);
757 [in] DWORD dwOptions
);
759 HRESULT UnlockRequest
();
762 /*****************************************************************************
763 * IInternetProtocolInfo interface
768 uuid(79eac9ec
-baf9
-11ce
-8c82
-00aa004ba90b
),
769 pointer_default(unique)
771 interface IInternetProtocolInfo
: IUnknown
773 typedef [unique] IInternetProtocolInfo
*LPIINTERNETPROTOCOLINFO
;
775 typedef enum _tagPARSEACTION
777 PARSE_CANONICALIZE
= 1,
793 PARSE_SECURITY_DOMAIN
,
798 typedef enum _tagPSUACTION
801 PSU_SECURITY_URL_ONLY
804 typedef enum _tagQUERYOPTION
806 QUERY_EXPIRATION_DATE
= 1,
807 QUERY_TIME_OF_LAST_CHANGE
,
808 QUERY_CONTENT_ENCODING
,
815 QUERY_IS_INSTALLEDENTRY
,
816 QUERY_IS_CACHED_OR_MAPPED
,
824 [in] PARSEACTION ParseAction
,
825 [in] DWORD dwParseFlags
,
826 [out] LPWSTR pwzResult
,
827 [in] DWORD cchResult
,
828 [out] DWORD
*pcchResult
,
829 [in] DWORD dwReserved
);
832 [in] LPCWSTR pwzBaseUrl
,
833 [in] LPCWSTR pwzRelativeUrl
,
834 [in] DWORD dwCombineFlags
,
835 [out] LPWSTR pwzResult
,
836 [in] DWORD cchResult
,
837 [out] DWORD
*pcchResult
,
838 [in] DWORD dwReserved
);
841 [in] LPCWSTR pwzUrl1
,
842 [in] LPCWSTR pwzUrl2
,
843 [in] DWORD dwCompareFlags
);
847 [in] QUERYOPTION OueryOption
,
848 [in] DWORD dwQueryFlags
,
849 [in, out,size_is(*pcbBuf
)] LPVOID pBuffer
,
851 [in, out] DWORD
*pcbBuf
,
852 [in] DWORD dwReserved
);
855 /*****************************************************************************
856 * IInternetSession interface
861 uuid(79eac9e7
-baf9
-11ce
-8c82
-00aa004ba90b
),
862 pointer_default(unique)
864 interface IInternetSession
: IUnknown
866 typedef [unique] IInternetSession
*LPIINTERNETSESSION
;
868 typedef enum _tagOIBDG_FLAGS
870 OIBDG_APARTMENTTHREADED
= 0x0100,
871 OIBDG_DATAONLY
= 0x1000
874 HRESULT RegisterNameSpace
(
875 [in] IClassFactory
*pCF
,
876 [in] REFCLSID rclsid
,
877 [in] LPCWSTR pwzProtocol
,
878 [in] ULONG cPatterns
,
879 [in] const LPCWSTR
*ppwzPatterns
,
880 [in] DWORD dwReserved
);
882 HRESULT UnregisterNameSpace
(
883 [in] IClassFactory
*pCF
,
884 [in] LPCWSTR pszProtocol
);
886 HRESULT RegisterMimeFilter
(
887 [in] IClassFactory
*pCF
,
888 [in] REFCLSID rclsid
,
889 [in] LPCWSTR pwzType
);
891 HRESULT UnregisterMimeFilter
(
892 [in] IClassFactory
*pCF
,
893 [in] LPCWSTR pwzType
);
895 HRESULT CreateBinding
(
898 [in] IUnknown
*pUnkOuter
,
899 [out, unique] IUnknown
**ppUnk
,
900 [out, unique] IInternetProtocol
**ppOInetProt
,
901 [in] DWORD dwOption
);
903 HRESULT SetSessionOption
(
906 [in] DWORD dwBufferLength
,
907 [in] DWORD dwReserved
);
910 /*****************************************************************************
911 * IInternetSecurityMgrSite interface
916 uuid(79eac9ed
-baf9
-11ce
-8c82
-00aa004ba90b
),
917 pointer_default(unique)
919 interface IInternetSecurityMgrSite
: IUnknown
924 HRESULT EnableModeless
(
929 /*****************************************************************************
930 * IInternetSecurityManager interface
932 cpp_quote
("#define SID_SInternetSecurityManager IID_IInternetSecurityManager")
936 uuid(79eac9ee
-baf9
-11ce
-8c82
-00aa004ba90b
),
937 pointer_default(unique)
939 interface IInternetSecurityManager
: IUnknown
941 HRESULT SetSecuritySite
(
942 [in, unique] IInternetSecurityMgrSite
*pSite
);
944 HRESULT GetSecuritySite
(
945 [out] IInternetSecurityMgrSite
**ppSite
);
947 HRESULT MapUrlToZone
(
948 [in] LPCWSTR pwszUrl
,
949 [out] DWORD
*pdwZone
,
952 cpp_quote
("#define MAX_SIZE_SECURITY_ID 512")
954 HRESULT GetSecurityId
(
955 [in] LPCWSTR pwszUrl
,
956 [out, size_is(*pcbSecurityId
)] BYTE *pbSecurityId
,
957 [in, out] DWORD
*pcbSecurityId
,
958 [in] DWORD_PTR dwReserved
);
965 PUAF_WARN_IF_DENIED
= 0x04,
966 PUAF_FORCEUI_FOREGROUND
= 0x08,
967 PUAF_CHECK_TIPS
= 0x10
970 HRESULT ProcessUrlAction
(
971 [in] LPCWSTR pwszUrl
,
973 [out, size_is(cbPolicy
)] BYTE *pPolicy
,
976 [in] DWORD cbContext
,
978 [in] DWORD dwReserved
);
980 HRESULT QueryCustomPolicy
(
981 [in] LPCWSTR pwszUrl
,
982 [in] REFGUID guidKey
,
983 [out, size_is(,*pcbPolicy
)] BYTE **ppPolicy
,
984 [out] DWORD
*pcbPolicy
,
986 [in] DWORD cbContext
,
987 [in] DWORD dwReserved
);
994 HRESULT SetZoneMapping
(
996 [in] LPCWSTR lpszPattern
,
999 HRESULT GetZoneMappings
(
1001 [out] IEnumString
**ppenumString
,
1002 [in] DWORD dwFlags
);
1005 /*****************************************************************************
1006 * IInternetZoneManager interface
1011 uuid(79EAC9EF
-BAf9
-11CE
-8C82
-00AA004BA90B
),
1012 pointer_default(unique)
1014 interface IInternetZoneManager
: IUnknown
1016 typedef [unique] IInternetZoneManager
* LPURLZONEMANAGER
;
1018 typedef enum tagURLZONE
1020 URLZONE_PREDEFINED_MIN
= 0,
1021 URLZONE_LOCAL_MACHINE
= 0,
1022 URLZONE_INTRANET
= 1,
1023 URLZONE_TRUSTED
= 2,
1024 URLZONE_INTERNET
= 3,
1025 URLZONE_UNTRUSTED
= 4,
1026 URLZONE_PREDEFINED_MAX
= 999,
1027 URLZONE_USER_MIN
= 1000,
1028 URLZONE_USER_MAX
= 10000,
1031 typedef enum tagURLTEMPLATE
1033 URLTEMPLATE_CUSTOM
= 0x00000,
1034 URLTEMPLATE_PREDEFINED_MIN
= 0x10000,
1035 URLTEMPLATE_LOW
= 0x10000,
1036 URLTEMPLATE_MEDIUM
= 0x11000,
1037 URLTEMPLATE_HIGH
= 0x12000,
1038 URLTEMPLATE_PREDEFINED_MAX
= 0x20000,
1042 ZAFLAGS_CUSTOM_EDIT
= 0x00000001,
1043 ZAFLAGS_ADD_SITES
= 0x00000002,
1044 ZAFLAGS_REQUIRE_VERIFICATION
= 0x00000004,
1045 ZAFLAGS_INCLUDE_PROXY_OVERRIDE
= 0x00000008,
1046 ZAFLAGS_INCLUDE_INTRANET_SITES
= 0x00000010,
1047 ZAFLAGS_NO_UI
= 0x00000020,
1048 ZAFLAGS_SUPPORTS_VERIFICATION
= 0x00000040,
1049 ZAFLAGS_UNC_AS_INTRANET
= 0x00000080,
1053 MAX_ZONE_PATH
= 260,
1054 MAX_ZONE_DESCRIPTION
= 200
1057 typedef struct _ZONEATTRIBUTES
{
1059 WCHAR szDisplayName
[MAX_ZONE_PATH
];
1060 WCHAR szDescription
[MAX_ZONE_DESCRIPTION
];
1061 WCHAR szIconPath
[MAX_ZONE_PATH
];
1062 DWORD dwTemplateMinLevel
;
1063 DWORD dwTemplateRecommended
;
1064 DWORD dwTemplateCurrentLevel
;
1066 } ZONEATTRIBUTES
, *LPZONEATTRIBUTES
;
1068 typedef enum _URLZONEREG
{
1074 HRESULT GetZoneAttributes
(
1076 [in, out, unique] ZONEATTRIBUTES
* pZoneAttributes
);
1078 HRESULT SetZoneAttributes
(
1080 [in] ZONEATTRIBUTES
* pZoneAttributes
);
1082 HRESULT GetZoneCustomPolicy
(
1084 [in] REFGUID guidKey
,
1085 [out] BYTE **ppPolicy
,
1086 [out] DWORD
* pcbPolicy
,
1087 [in] URLZONEREG ulrZoneReg
);
1089 HRESULT SetZoneCustomPolicy
(
1091 [in] REFGUID guidKey
,
1092 [in] BYTE *ppPolicy
,
1093 [in] DWORD pcbPolicy
,
1094 [in] URLZONEREG ulrZoneReg
);
1096 HRESULT GetZoneActionPolicy
(
1098 [in] DWORD dwAction
,
1099 [out] BYTE* pPolicy
,
1100 [in] DWORD cbPolicy
,
1101 [in] URLZONEREG urlZoneReg
);
1103 HRESULT SetZoneActionPolicy
(
1105 [in] DWORD dwAction
,
1107 [in] DWORD cbPolicy
,
1108 [in] URLZONEREG urlZoneReg
);
1110 HRESULT PromptAction
(
1111 [in] DWORD dwAction
,
1112 [in] HWND hwndParent
,
1113 [in] LPCWSTR pwszUrl
,
1114 [in] LPCWSTR pwszText
,
1115 [in] DWORD dwPromptFlags
);
1118 [in] DWORD dwAction
,
1119 [in] LPCWSTR pwszUrl
,
1120 [in] LPCWSTR pwszText
,
1121 [in] DWORD dwLogFlags
);
1123 HRESULT CreateZoneEnumerator
(
1124 [out] DWORD
* pdwEnum
,
1125 [out] DWORD
* pdwCount
,
1126 [in] DWORD dwFlags
);
1131 [out] DWORD
* pdwZone
);
1133 HRESULT DestroyZoneEnumerator
(
1136 HRESULT CopyTemplatePoliciesToZone
(
1137 [in] DWORD dwTemplate
,
1139 [in] DWORD dwReserved
);
1142 typedef struct _tagSOFTDISTINFO
1150 DWORD dwInstalledVersionMS
;
1151 DWORD dwInstalledVersionLS
;
1152 DWORD dwUpdateVersionMS
;
1153 DWORD dwUpdateVersionLS
;
1154 DWORD dwAdvertisedVersionMS
;
1155 DWORD dwAdvertisedVersionLS
;
1157 } SOFTDISTINFO
, *LPSOFTDISTINFO
;
1159 typedef struct _tagCODEBASEHOLD
1167 } CODEBASEHOLD
, *LPCODEBASEHOLD
;
1172 uuid(b15b8dc1
-c7e1
-11d0
-8680-00aa00bdcb71
),
1173 pointer_default(unique)
1175 interface ISoftDistExt
: IUnknown
1177 HRESULT ProcessSoftDist
(
1178 [in] LPCWSTR szCDFURL
,
1179 [in] IXMLElement
*pSoftDistElement
,
1180 [in, out] LPSOFTDISTINFO lpsdi
);
1182 HRESULT GetFirstCodeBase
(
1183 [in] LPWSTR
*szCodeBase
,
1184 [in] LPDWORD dwMaxSize
);
1186 HRESULT GetNextCodeBase
(
1187 [in] LPWSTR
*szCodeBase
,
1188 [in] LPDWORD dwMaxSize
);
1190 HRESULT AsyncInstallDistributionUnit
(
1192 [in] LPVOID lpReserved
,
1194 [in] LPCODEBASEHOLD lpcbh
);
1197 cpp_quote
("DEFINE_GUID(CLSID_InternetSecurityManager, 0x7b8a2d94, 0x0ac9, 0x11d1, 0x89, 0x6c, 0x00, 0xc0, 0x4f, 0xB6, 0xbf, 0xc4);")
1198 cpp_quote
("DEFINE_GUID(CLSID_InternetZoneManager, 0x7B8A2D95, 0x0AC9, 0x11D1, 0x89, 0x6C, 0x00, 0xC0, 0x4F, 0xB6, 0xBF, 0xC4);")
1199 cpp_quote
("DEFINE_GUID(IID_IAsyncMoniker, 0x79EAC9D3, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1200 cpp_quote
("DEFINE_GUID(IID_IAsyncBindCtx, 0x79EAC9D4, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1201 cpp_quote
("DEFINE_GUID(CLSID_StdURLMoniker, 0x79EAC9E0, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1203 cpp_quote
("DEFINE_GUID(CLSID_CdlProtocol, 0x3dd53d40, 0x7b8b, 0x11D0, 0xb0,0x13, 0x00,0xaa,0x00,0x59,0xce,0x02);")
1204 cpp_quote
("DEFINE_GUID(CLSID_FileProtocol, 0x79EAC9E7, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1205 cpp_quote
("DEFINE_GUID(CLSID_FtpProtocol, 0x79EAC9E3, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1206 cpp_quote
("DEFINE_GUID(CLSID_GopherProtocol, 0x79EAC9E4, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1207 cpp_quote
("DEFINE_GUID(CLSID_HttpProtocol, 0x79EAC9E2, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1208 cpp_quote
("DEFINE_GUID(CLSID_HttpSProtocol, 0x79EAC9E5, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1209 cpp_quote
("DEFINE_GUID(CLSID_MkProtocol, 0x79EAC9E6, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1211 cpp_quote
("#define URLMON_OPTION_USERAGENT 0x10000001")
1212 cpp_quote
("#define URLMON_OPTION_USERAGENT_REFRESH 0x10000002")
1213 cpp_quote
("#define URLMON_OPTION_URL_ENCODING 0x10000004")
1215 cpp_quote
("#define MK_S_ASYNCHRONOUS 0x000401E8")
1216 cpp_quote
("#ifndef S_ASYNCHRONOUS")
1217 cpp_quote
("#define S_ASYNCHRONOUS MK_S_ASYNCHRONOUS")
1220 cpp_quote
("#define INET_E_ERROR_FIRST 0x800C0002")
1221 cpp_quote
("#define INET_E_INVALID_URL 0x800C0002")
1222 cpp_quote
("#define INET_E_NO_SESSION 0x800C0003")
1223 cpp_quote
("#define INET_E_CANNOT_CONNECT 0x800C0004")
1224 cpp_quote
("#define INET_E_RESOURCE_NOT_FOUND 0x800C0005")
1225 cpp_quote
("#define INET_E_OBJECT_NOT_FOUND 0x800C0006")
1226 cpp_quote
("#define INET_E_DATA_NOT_AVAILABLE 0x800C0007")
1227 cpp_quote
("#define INET_E_DOWNLOAD_FAILURE 0x800C0008")
1228 cpp_quote
("#define INET_E_AUTHENTICATION_REQUIRED 0x800C0009")
1229 cpp_quote
("#define INET_E_NO_VALID_MEDIA 0x800C000A")
1230 cpp_quote
("#define INET_E_CONNECTION_TIMEOUT 0x800C000B")
1231 cpp_quote
("#define INET_E_INVALID_REQUEST 0x800C000C")
1232 cpp_quote
("#define INET_E_UNKNOWN_PROTOCOL 0x800C000D")
1233 cpp_quote
("#define INET_E_SECURITY_PROBLEM 0x800C000E")
1234 cpp_quote
("#define INET_E_CANNOT_LOAD_DATA 0x800C000F")
1235 cpp_quote
("#define INET_E_CANNOT_INSTANTIATE_OBJECT 0x800C0010")
1236 cpp_quote
("#define INET_E_USE_DEFAULT_PROTOCOLHANDLER 0x800C0011")
1237 cpp_quote
("#define INET_E_QUERYOPTION_UNKNOWN 0x800C0013")
1238 cpp_quote
("#define INET_E_REDIRECT_FAILED 0x800C0014")
1239 cpp_quote
("#define INET_E_REDIRECT_TO_DIR 0x800C0015")
1240 cpp_quote
("#define INET_E_CANNOT_LOCK_REQUEST 0x800C0016")
1241 cpp_quote
("#define INET_E_ERROR_LAST INET_E_REDIRECT_TO_DIR")
1242 cpp_quote
("#define INET_E_DEFAULT_ACTION INET_E_USE_DEFAULT_PROTOCOLHANDLER")
1244 cpp_quote
("HRESULT WINAPI CoGetClassObjectFromURL(REFCLSID, LPCWSTR, DWORD, DWORD, LPCWSTR, LPBINDCTX, DWORD, LPVOID, REFIID, LPVOID*);")
1245 cpp_quote
("HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk);")
1246 cpp_quote
("HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved);")
1247 cpp_quote
("HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD);")
1248 cpp_quote
("HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN,LPCSTR,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1249 cpp_quote
("HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN,LPCWSTR,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1250 cpp_quote
("HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN,LPCSTR,LPSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1251 cpp_quote
("HRESULT WINAPI URLDownloadToCacheFileW(LPUNKNOWN,LPCWSTR,LPWSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1252 cpp_quote
("HRESULT WINAPI CoInternetGetSession(DWORD,IInternetSession**,DWORD);")
1253 cpp_quote
("HRESULT WINAPI MkParseDisplayNameEx(IBindCtx*,LPCWSTR,ULONG*,IMoniker**);")
1254 cpp_quote
("HRESULT WINAPI IsAsyncMoniker(IMoniker* pmk);")
1255 cpp_quote
("HRESULT WINAPI CreateAsyncBindCtx(DWORD, IBindStatusCallback*, IEnumFORMATETC*, IBindCtx**);")
1256 cpp_quote
("HRESULT WINAPI CreateAsyncBindCtxEx(IBindCtx*,DWORD,IBindStatusCallback*,IEnumFORMATETC*,IBindCtx**,DWORD);")
1257 cpp_quote
("HRESULT WINAPI CoInternetCreateSecurityManager(IServiceProvider*,IInternetSecurityManager**,DWORD);")
1258 cpp_quote
("HRESULT WINAPI CoInternetCombineUrl(LPCWSTR,LPCWSTR,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1259 cpp_quote
("HRESULT WINAPI CoInternetCompareUrl(LPCWSTR,LPCWSTR,DWORD);")
1260 cpp_quote
("HRESULT WINAPI CoInternetCreateZoneManager(IServiceProvider*, IInternetZoneManager**, DWORD);")
1261 cpp_quote
("HRESULT WINAPI CoInternetParseUrl(LPCWSTR,PARSEACTION,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1262 cpp_quote
("HRESULT WINAPI CoInternetQueryInfo(LPCWSTR,QUERYOPTION,DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1263 cpp_quote
("HRESULT WINAPI CreateFormatEnumerator(UINT,FORMATETC*,IEnumFORMATETC**);")
1264 cpp_quote
("HRESULT WINAPI GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi);")
1265 cpp_quote
("HRESULT WINAPI FaultInIEFeature(HWND,uCLSSPEC*,QUERYCONTEXT*,DWORD);")
1266 cpp_quote
("HRESULT WINAPI FindMimeFromData(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,LPWSTR*,DWORD);")
1267 cpp_quote
("HRESULT WINAPI HlinkGoBack(IUnknown*);")
1268 cpp_quote
("HRESULT WINAPI HlinkGoForward(IUnknown*);")
1269 cpp_quote
("HRESULT WINAPI HlinkNavigateMoniker(IUnknown*,IMoniker*);")
1270 cpp_quote
("HRESULT WINAPI HlinkNavigateString(IUnknown*,LPCWSTR);")
1271 cpp_quote
("HRESULT WINAPI HlinkSimpleNavigateToMoniker(IMoniker*,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1272 cpp_quote
("HRESULT WINAPI HlinkSimpleNavigateToString(LPCWSTR,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1273 cpp_quote
("HRESULT WINAPI IsValidURL(LPBC,LPCWSTR,DWORD);")
1274 cpp_quote
("HRESULT WINAPI ObtainUserAgentString(DWORD,LPSTR,DWORD*);")
1275 cpp_quote
("HRESULT WINAPI RegisterFormatEnumerator(LPBC,IEnumFORMATETC*,DWORD);")
1276 cpp_quote
("HRESULT WINAPI RevokeFormatEnumerator(LPBC,IEnumFORMATETC*);")
1277 cpp_quote
("HRESULT WINAPI RevokeBindStatusCallback(LPBC,IBindStatusCallback*);")
1278 cpp_quote
("void WINAPI ReleaseBindInfo(BINDINFO*);")
1279 cpp_quote
("HRESULT WINAPI UrlMkGetSessionOption(DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1280 cpp_quote
("HRESULT WINAPI UrlMkSetSessionOption(DWORD,LPVOID,DWORD,DWORD);")
1282 cpp_quote
("#define OInetCombineUrl CoInternetCombineUrl")
1283 cpp_quote
("#define OInetCompareUrl CoInternetCompareUrl")
1284 cpp_quote
("#define OInetGetSession CoInternetGetSession")
1286 cpp_quote
("#define MKSYS_URLMONIKER 6")
1287 cpp_quote
("#define URL_MK_LEGACY 0")
1288 cpp_quote
("#define URL_MK_UNIFORM 1")