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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 BINDF_ASYNCHRONOUS
= 0x00000001,
88 BINDF_ASYNCSTORAGE
= 0x00000002,
89 BINDF_NOPROGRESSIVERENDERING
= 0x00000004,
90 BINDF_OFFLINEOPERATION
= 0x00000008,
91 BINDF_GETNEWESTVERSION
= 0x00000010,
92 BINDF_NOWRITECACHE
= 0x00000020,
93 BINDF_NEEDFILE
= 0x00000040,
94 BINDF_PULLDATA
= 0x00000080,
95 BINDF_IGNORESECURITYPROBLEM
= 0x00000100,
96 BINDF_RESYNCHRONIZE
= 0x00000200,
97 BINDF_HYPERLINK
= 0x00000400,
98 BINDF_NO_UI
= 0x00000800,
99 BINDF_SILENTOPERATION
= 0x00001000,
100 BINDF_PRAGMA_NO_CACHE
= 0x00002000,
101 BINDF_GETCLASSOBJECT
= 0x00004000,
102 BINDF_RESERVED_1
= 0x00008000,
103 BINDF_FREE_THREADED
= 0x00010000,
104 BINDF_DIRECT_READ
= 0x00020000,
105 BINDF_FORMS_SUBMIT
= 0x00040000,
106 BINDF_GETFROMCACHE_IF_NET_FAIL
= 0x00080000,
107 BINDF_FROMURLMON
= 0x00100000,
108 BINDF_FWD_BACK
= 0x00200000,
109 BINDF_PREFERDEFAULTHANDLER
= 0x00400000,
110 BINDF_ENFORCERESTRICTED
= 0x00800000
113 typedef struct _tagBINDINFO
117 STGMEDIUM stgmedData
;
123 DWORD dwOptionsFlags
;
125 SECURITY_ATTRIBUTES securityAttributes
;
131 typedef struct _REMSECURITY_ATTRIBUTES
134 DWORD lpSecurityDescriptor
;
136 } REMSECURITY_ATTRIBUTES
, *PREMSECURITY_ATTRIBUTES
, *LPREMSECURITY_ATTRIBUTES
;
138 typedef struct _tagRemBINDINFO
147 DWORD dwOptionsFlags
;
149 REMSECURITY_ATTRIBUTES securityAttributes
;
155 typedef struct tagRemFORMATETC
162 } RemFORMATETC
, *LPREMFORMATETC
;
166 BSCF_FIRSTDATANOTIFICATION
= 0x01,
167 BSCF_INTERMEDIATEDATANOTIFICATION
= 0x02,
168 BSCF_LASTDATANOTIFICATION
= 0x04,
169 BSCF_DATAFULLYAVAILABLE
= 0x08,
170 BSCF_AVAILABLEDATASIZEUNKNOWN
= 0x10
173 typedef enum BINDSTATUS
175 BINDSTATUS_FINDINGRESOURCE
= 1,
176 BINDSTATUS_CONNECTING
,
177 BINDSTATUS_REDIRECTING
,
178 BINDSTATUS_BEGINDOWNLOADDATA
,
179 BINDSTATUS_DOWNLOADINGDATA
,
180 BINDSTATUS_ENDDOWNLOADDATA
,
181 BINDSTATUS_BEGINDOWNLOADCOMPONENTS
,
182 BINDSTATUS_INSTALLINGCOMPONENTS
,
183 BINDSTATUS_ENDDOWNLOADCOMPONENTS
,
184 BINDSTATUS_USINGCACHEDCOPY
,
185 BINDSTATUS_SENDINGREQUEST
,
186 BINDSTATUS_CLASSIDAVAILABLE
,
187 BINDSTATUS_MIMETYPEAVAILABLE
,
188 BINDSTATUS_CACHEFILENAMEAVAILABLE
,
189 BINDSTATUS_BEGINSYNCOPERATION
,
190 BINDSTATUS_ENDSYNCOPERATION
,
191 BINDSTATUS_BEGINUPLOADDATA
,
192 BINDSTATUS_UPLOADINGDATA
,
193 BINDSTATUS_ENDUPLOADINGDATA
,
194 BINDSTATUS_PROTOCOLCLASSID
,
196 BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE
,
197 BINDSTATUS_CLASSINSTALLLOCATION
,
199 BINDSTATUS_LOADINGMIMEHANDLER
,
200 BINDSTATUS_CONTENTDISPOSITIONATTACH
,
201 BINDSTATUS_FILTERREPORTMIMETYPE
,
202 BINDSTATUS_CLSIDCANINSTANTIATE
,
203 BINDSTATUS_IUNKNOWNAVAILABLE
,
204 BINDSTATUS_DIRECTBIND
,
205 BINDSTATUS_RAWMIMETYPE
,
206 BINDSTATUS_PROXYDETECTING
,
207 BINDSTATUS_ACCEPTRANGES
,
208 BINDSTATUS_COOKIE_SENT
,
209 BINDSTATUS_COMPACT_POLICY_RECEIVED
,
210 BINDSTATUS_COOKIE_SUPPRESSED
,
211 BINDSTATUS_COOKIE_STATE_UNKNOWN
,
212 BINDSTATUS_COOKIE_STATE_ACCEPT
,
213 BINDSTATUS_COOKIE_STATE_REJECT
,
214 BINDSTATUS_COOKIE_STATE_PROMPT
,
215 BINDSTATUS_COOKIE_STATE_LEASH
,
216 BINDSTATUS_COOKIE_STATE_DOWNGRADE
,
217 BINDSTATUS_POLICY_HREF
,
218 BINDSTATUS_P3P_HEADER
,
219 BINDSTATUS_SESSION_COOKIE_RECEIVED
,
220 BINDSTATUS_PERSISTENT_COOKIE_RECEIVED
,
221 BINDSTATUS_SESSION_COOKIES_ALLOWED
,
222 BINDSTATUS_CACHECONTROL
,
223 BINDSTATUS_CONTENTDISPOSITIONFILENAME
,
224 BINDSTATUS_MIMETEXTPLAINMISMATCH
,
225 BINDSTATUS_PUBLISHERAVAILABLE
,
226 BINDSTATUS_DISPLAYNAMEAVAILABLE
230 HRESULT OnStartBinding
(
231 [in] DWORD dwReserved
,
232 [in] IBinding
* pib
);
235 [out] LONG * pnPriority
);
237 HRESULT OnLowResource
(
238 [in] DWORD reserved
);
241 [in] ULONG ulProgress
,
242 [in] ULONG ulProgressMax
,
243 [in] ULONG ulStatusCode
,
244 [in] LPCWSTR szStatusText
);
246 HRESULT OnStopBinding
(
247 [in] HRESULT hresult,
248 [in, unique] LPCWSTR szError
);
252 [out] DWORD
*grfBINDF
,
253 [in, out, unique] BINDINFO
* pbindinfo
);
255 [call_as
(GetBindInfo
)]
256 HRESULT RemoteGetBindInfo
(
257 [out] DWORD
*grfBINDF
,
258 [in, out, unique] RemBINDINFO
* pbindinfo
,
259 [in, out, unique] RemSTGMEDIUM
* pstgmed
);
262 HRESULT OnDataAvailable
(
265 [in] FORMATETC
* pformatetc
,
266 [in] STGMEDIUM
* pstgmed
);
268 [call_as
(OnDataAvailable
)]
269 HRESULT RemoteOnDataAvailable
(
272 [in] RemFORMATETC
*pformatetc
,
273 [in] RemSTGMEDIUM
* pstgmed
);
275 HRESULT OnObjectAvailable
(
277 [in, iid_is(riid
)] IUnknown
* punk
);
280 /*****************************************************************************
281 * IAuthenticate interface
286 uuid(79EAC9D0
-BAf9
-11CE
-8C82
-00AA004BA90B
),
287 pointer_default(unique)
289 interface IAuthenticate
: IUnknown
291 typedef [unique] IAuthenticate
*LPAUTHENTICATION
;
293 HRESULT Authenticate
(
295 [out] LPWSTR
*pszUsername
,
296 [out] LPWSTR
*pszPassword
);
299 /*****************************************************************************
300 * IHttpNegotiate interface
304 uuid(79EAC9D2
-BAF9
-11CE
-8C82
-00AA004BA90B
),
305 pointer_default(unique)
307 interface IHttpNegotiate
: IUnknown
309 typedef [unique] IHttpNegotiate
*LPHTTPNEGOTIATE
;
311 HRESULT BeginningTransaction
(
313 [in, unique] LPCWSTR szHeaders
,
314 [in] DWORD dwReserved
,
315 [out] LPWSTR
*pszAdditionalHeaders
);
318 [in] DWORD dwResponseCode
,
319 [in, unique] LPCWSTR szResponseHeaders
,
320 [in, unique] LPCWSTR szRequestHeaders
,
321 [out] LPWSTR
*pszAdditionalRequestHeaders
);
324 /*****************************************************************************
325 * IHttpNegotiate2 interface
329 uuid(4F9F9FCB
-E0F4
-48eb
-B7AB
-FA2EA9365CB4
),
330 pointer_default(unique)
332 interface IHttpNegotiate2
: IHttpNegotiate
334 typedef [unique] IHttpNegotiate2
*LPHTTPNEGOTIATE2
;
336 HRESULT GetRootSecurityId
(
337 [out, size_is(*pcbSecurityId
)] BYTE *pbSecurityId
,
338 [in, out] DWORD
*pcbSecurityId
,
339 [in] DWORD_PTR dwReserved
);
342 /*****************************************************************************
343 * IBindHost interface
345 cpp_quote
("#define SID_IBindHost IID_IBindHost")
346 cpp_quote
("#define SID_SBindHost IID_IBindHost")
349 uuid(fc4801a1
-2ba9
-11cf
-a229
-00aa003d7352
),
350 pointer_default(unique)
352 interface IBindHost
: IUnknown
354 typedef [unique] IBindHost
*LPBINDHOST
;
356 HRESULT CreateMoniker
(
357 [in] LPOLESTR szName
,
359 [out] IMoniker
** ppmk
,
360 [in] DWORD dwReserved
);
363 HRESULT MonikerBindToStorage
(
366 [in] IBindStatusCallback
*pBSC
,
368 [out] void **ppvObj
);
370 [call_as
(MonikerBindToStorage
)]
371 HRESULT RemoteMonikerBindToStorage
(
372 [in, unique] IMoniker
*pMk
,
373 [in, unique] IBindCtx
*pBC
,
374 [in, unique] IBindStatusCallback
*pBSC
,
376 [out, iid_is(riid
)] IUnknown
**ppvObj
);
379 HRESULT MonikerBindToObject
(
382 [in] IBindStatusCallback
*pBSC
,
384 [out] void **ppvObj
);
386 [call_as
(MonikerBindToObject
)]
387 HRESULT RemoteMonikerBindToObject
(
388 [in, unique] IMoniker
*pMk
,
389 [in, unique] IBindCtx
*pBC
,
390 [in, unique] IBindStatusCallback
*pBSC
,
392 [out, iid_is(riid
)] IUnknown
**ppvObj
);
396 /*****************************************************************************
397 * IWinInetInfo interface
401 uuid(79eac9d6
-bafa
-11ce
-8c82
-00aa004ba90b
),
402 pointer_default(unique)
404 interface IWinInetInfo
: IUnknown
406 typedef [unique] IWinInetInfo
*LPWININETINFO
;
411 [in, out, size_is(*pcbBuf
)] LPVOID pBuffer
,
412 [in, out] DWORD
*pcbBuf
);
414 [call_as
(QueryOption
)]
415 HRESULT RemoteQueryOption
(
417 [in, out, size_is(*pcbBuf
)] BYTE *pBuffer
,
418 [in, out] DWORD
*pcbBuf
);
423 /*****************************************************************************
424 * IWinInetHttpInfo interface
428 uuid(79eac9d8
-bafa
-11ce
-8c82
-00aa004ba90b
),
429 pointer_default(unique)
431 interface IWinInetHttpInfo
: IWinInetInfo
433 typedef [unique] IWinInetHttpInfo
*LPWININETHTTPINFO
;
438 [in, out,size_is(*pcbBuf
)] LPVOID pBuffer
,
439 [in, out] DWORD
*pcbBuf
,
440 [in, out] DWORD
*pdwFlags
,
441 [in, out] DWORD
*pdwReserved
);
444 HRESULT RemoteQueryInfo
(
446 [in,out,size_is(*pcbBuf
)] BYTE *pBuffer
,
447 [in, out] DWORD
*pcbBuf
,
448 [in, out] DWORD
*pdwFlags
,
449 [in, out] DWORD
*pdwReserved
);
454 /*****************************************************************************
455 * IPersistMoniker interface
459 uuid(79eac9c9
-baf9
-11ce
-8c82
-00aa004ba90b
),
460 pointer_default(unique)
462 interface IPersistMoniker
: IUnknown
464 typedef [unique] IPersistMoniker
*LPPERSISTMONIKER
;
467 [out] CLSID
*pClassID
);
472 [in] BOOL fFullyAvailable
,
473 [in] IMoniker
*pimkName
,
478 [in] IMoniker
*pimkName
,
480 [in] BOOL fRemember
);
482 HRESULT SaveCompleted
(
483 [in] IMoniker
*pimkName
,
486 HRESULT GetCurMoniker
(
487 [out] IMoniker
**ppimkName
);
490 /*****************************************************************************
491 * IMonikerProp interface
495 uuid(A5CA5F7F
-1847-4D87
-9C5B
-918509F7511D
),
496 pointer_default(unique)
498 interface IMonikerProp
: IUnknown
500 typedef [unique] IMonikerProp
*LPMONIKERPROP
;
503 MIMETYPEPROP
= 0x00000000,
504 USE_SRC_URL
= 0x00000001
508 [in] MONIKERPROPERTY mkp
,
512 /*****************************************************************************
513 * IInternetBindInfo interface
518 uuid(79EAC9E1
-BAF9
-11CE
-8C82
-00AA004BA90B
),
519 pointer_default(unique)
521 interface IInternetBindInfo
: IUnknown
523 typedef [unique] IInternetBindInfo
*LPIINTERNETBINDINFO
;
525 typedef enum tagBINDSTRING
527 BINDSTRING_HEADERS
= 1,
528 BINDSTRING_ACCEPT_MIMES
,
529 BINDSTRING_EXTRA_URL
,
533 BINDSTRING_UA_PIXELS
,
536 BINDSTRING_USER_AGENT
,
537 BINDSTRING_ACCEPT_ENCODINGS
,
538 BINDSTRING_POST_COOKIE
,
539 BINDSTRING_POST_DATA_MIME
,
542 BINDSTRING_FLAG_BIND_TO_OBJECT
,
543 BINDSTRING_PTR_BIND_CONTEXT
547 [out] DWORD
*grfBINDF
,
548 [in, out, unique] BINDINFO
*pbindinfo
);
550 HRESULT GetBindString
(
551 [in] ULONG ulStringType
,
552 [in, out] LPOLESTR
*ppwzStr
,
554 [in, out] ULONG
*pcElFetched
);
557 /*****************************************************************************
558 * IInternetPriority interface
563 uuid(79EAC9EB
-BAF9
-11CE
-8C82
-00AA004BA90B
),
564 pointer_default(unique)
566 interface IInternetPriority
: IUnknown
568 typedef [unique] IInternetPriority
*LPIINTERNETPRIORITY
;
570 HRESULT SetPriority
([in] LONG nPriority
);
571 HRESULT GetPriority
([out] LONG *pnPriority
);
574 /*****************************************************************************
575 * IInternetProtocolRoot interface
580 uuid(79EAC9E3
-BAF9
-11CE
-8C82
-00AA004BA90B
),
581 pointer_default(unique)
583 interface IInternetProtocolRoot
: IUnknown
585 typedef [unique] IInternetProtocolRoot
*LPIINTERNETPROTOCOLROOT
;
587 typedef enum _tagPI_FLAGS
589 PI_PARSE_URL
= 0x00000001,
590 PI_FILTER_MODE
= 0x00000002,
591 PI_FORCE_ASYNC
= 0x00000004,
592 PI_USE_WORKERTHREAD
= 0x00000008,
593 PI_MIMEVERIFICATION
= 0x00000010,
594 PI_CLSIDLOOKUP
= 0x00000020,
595 PI_DATAPROGRESS
= 0x00000040,
596 PI_SYNCHRONOUS
= 0x00000080,
597 PI_APARTMENTTHREADED
= 0x00000100,
598 PI_CLASSINSTALL
= 0x00000200,
599 PD_FORCE_SWITCH
= 0x00010000
602 typedef struct _tagPROTOCOLDATA
612 [in] IInternetProtocolSink
*pOIProtSink
,
613 [in] IInternetBindInfo
*pOIBindInfo
,
615 [in] DWORD dwReserved
);
618 [in] PROTOCOLDATA
*pProtocolData
);
621 [in] HRESULT hrReason
,
622 [in] DWORD dwOptions
);
625 [in] DWORD dwOptions
);
632 /*****************************************************************************
633 * IInternetProtocolSink interface
638 uuid(79EAC9E5
-BAF9
-11CE
-8C82
-00AA004BA90B
),
639 pointer_default(unique)
641 interface IInternetProtocolSink
: IUnknown
643 typedef [unique] IInternetProtocolSink
*LPIINTERNETPROTOCOLSINK
;
646 [in] PROTOCOLDATA
*pProtocolData
);
648 HRESULT ReportProgress
(
649 [in] ULONG ulStatusCode
,
650 [in] LPCWSTR szStatusText
);
654 [in] ULONG ulProgress
,
655 [in] ULONG ulProgressMax
);
657 HRESULT ReportResult
(
658 [in] HRESULT hrResult
,
660 [in] LPCWSTR szResult
);
663 /*****************************************************************************
664 * IInternetProtocol interface
669 uuid(79EAC9E4
-BAF9
-11CE
-8C82
-00AA004BA90B
),
670 pointer_default(unique)
672 interface IInternetProtocol
: IInternetProtocolRoot
674 typedef [unique] IInternetProtocol
*LPIINTERNETPROTOCOL
;
677 [in,out, size_is(cb
), length_is(*pcbRead
)] void *pv
,
679 [out] ULONG
*pcbRead
);
682 [in] LARGE_INTEGER dlibMove
,
684 [out] ULARGE_INTEGER
*plibNewPosition
);
687 [in] DWORD dwOptions
);
689 HRESULT UnlockRequest
();
692 /*****************************************************************************
693 * IInternetProtocolInfo interface
698 uuid(79eac9ec
-baf9
-11ce
-8c82
-00aa004ba90b
),
699 pointer_default(unique)
701 interface IInternetProtocolInfo
: IUnknown
703 typedef [unique] IInternetProtocolInfo
*LPIINTERNETPROTOCOLINFO
;
705 typedef enum _tagPARSEACTION
707 PARSE_CANONICALIZE
= 1,
723 PARSE_SECURITY_DOMAIN
,
728 typedef enum _tagPSUACTION
731 PSU_SECURITY_URL_ONLY
734 typedef enum _tagQUERYOPTION
736 QUERY_EXPIRATION_DATE
= 1,
737 QUERY_TIME_OF_LAST_CHANGE
,
738 QUERY_CONTENT_ENCODING
,
745 QUERY_IS_INSTALLEDENTRY
,
746 QUERY_IS_CACHED_OR_MAPPED
,
754 [in] PARSEACTION ParseAction
,
755 [in] DWORD dwParseFlags
,
756 [out] LPWSTR pwzResult
,
757 [in] DWORD cchResult
,
758 [out] DWORD
*pcchResult
,
759 [in] DWORD dwReserved
);
762 [in] LPCWSTR pwzBaseUrl
,
763 [in] LPCWSTR pwzRelativeUrl
,
764 [in] DWORD dwCombineFlags
,
765 [out] LPWSTR pwzResult
,
766 [in] DWORD cchResult
,
767 [out] DWORD
*pcchResult
,
768 [in] DWORD dwReserved
);
771 [in] LPCWSTR pwzUrl1
,
772 [in] LPCWSTR pwzUrl2
,
773 [in] DWORD dwCompareFlags
);
777 [in] QUERYOPTION OueryOption
,
778 [in] DWORD dwQueryFlags
,
779 [in, out,size_is(*pcbBuf
)] LPVOID pBuffer
,
781 [in, out] DWORD
*pcbBuf
,
782 [in] DWORD dwReserved
);
785 /*****************************************************************************
786 * IInternetSession interface
791 uuid(79eac9e7
-baf9
-11ce
-8c82
-00aa004ba90b
),
792 pointer_default(unique)
794 interface IInternetSession
: IUnknown
796 typedef [unique] IInternetSession
*LPIINTERNETSESSION
;
798 typedef enum _tagOIBDG_FLAGS
800 OIBDG_APARTMENTTHREADED
= 0x0100,
801 OIBDG_DATAONLY
= 0x1000
804 HRESULT RegisterNameSpace
(
805 [in] IClassFactory
*pCF
,
806 [in] REFCLSID rclsid
,
807 [in] LPCWSTR pwzProtocol
,
808 [in] ULONG cPatterns
,
809 [in] const LPCWSTR
*ppwzPatterns
,
810 [in] DWORD dwReserved
);
812 HRESULT UnregisterNameSpace
(
813 [in] IClassFactory
*pCF
,
814 [in] LPCWSTR pszProtocol
);
816 HRESULT RegisterMimeFilter
(
817 [in] IClassFactory
*pCF
,
818 [in] REFCLSID rclsid
,
819 [in] LPCWSTR pwzType
);
821 HRESULT UnregisterMimeFilter
(
822 [in] IClassFactory
*pCF
,
823 [in] LPCWSTR pwzType
);
825 HRESULT CreateBinding
(
828 [in] IUnknown
*pUnkOuter
,
829 [out, unique] IUnknown
**ppUnk
,
830 [out, unique] IInternetProtocol
**ppOInetProt
,
831 [in] DWORD dwOption
);
833 HRESULT SetSessionOption
(
836 [in] DWORD dwBufferLength
,
837 [in] DWORD dwReserved
);
840 /*****************************************************************************
841 * IInternetSecurityMgrSite interface
846 uuid(79eac9ed
-baf9
-11ce
-8c82
-00aa004ba90b
),
847 pointer_default(unique)
849 interface IInternetSecurityMgrSite
: IUnknown
854 HRESULT EnableModeless
(
859 /*****************************************************************************
860 * IInternetSecurityManager interface
862 cpp_quote
("#define SID_SInternetSecurityManager IID_IInternetSecurityManager")
866 uuid(79eac9ee
-baf9
-11ce
-8c82
-00aa004ba90b
),
867 pointer_default(unique)
869 interface IInternetSecurityManager
: IUnknown
871 HRESULT SetSecuritySite
(
872 [in, unique] IInternetSecurityMgrSite
*pSite
);
874 HRESULT GetSecuritySite
(
875 [out] IInternetSecurityMgrSite
**ppSite
);
877 HRESULT MapUrlToZone
(
878 [in] LPCWSTR pwszUrl
,
879 [out] DWORD
*pdwZone
,
882 cpp_quote
("#define MAX_SIZE_SECURITY_ID 512")
884 HRESULT GetSecurityId
(
885 [in] LPCWSTR pwszUrl
,
886 [out, size_is(*pcbSecurityId
)] BYTE *pbSecurityId
,
887 [in, out] DWORD
*pcbSecurityId
,
888 [in] DWORD_PTR dwReserved
);
895 PUAF_WARN_IF_DENIED
= 0x04,
896 PUAF_FORCEUI_FOREGROUND
= 0x08,
897 PUAF_CHECK_TIPS
= 0x10
900 HRESULT ProcessUrlAction
(
901 [in] LPCWSTR pwszUrl
,
903 [out, size_is(cbPolicy
)] BYTE *pPolicy
,
906 [in] DWORD cbContext
,
908 [in] DWORD dwReserved
);
910 HRESULT QueryCustomPolicy
(
911 [in] LPCWSTR pwszUrl
,
912 [in] REFGUID guidKey
,
913 [out, size_is(,*pcbPolicy
)] BYTE **ppPolicy
,
914 [out] DWORD
*pcbPolicy
,
916 [in] DWORD cbContext
,
917 [in] DWORD dwReserved
);
924 HRESULT SetZoneMapping
(
926 [in] LPCWSTR lpszPattern
,
929 HRESULT GetZoneMappings
(
931 [out] IEnumString
**ppenumString
,
935 /*****************************************************************************
936 * IInternetZoneManager interface
941 uuid(79EAC9EF
-BAf9
-11CE
-8C82
-00AA004BA90B
),
942 pointer_default(unique)
944 interface IInternetZoneManager
: IUnknown
946 typedef [unique] IInternetZoneManager
* LPURLZONEMANAGER
;
948 typedef enum tagURLZONE
950 URLZONE_PREDEFINED_MIN
= 0,
951 URLZONE_LOCAL_MACHINE
= 0,
952 URLZONE_INTRANET
= 1,
954 URLZONE_INTERNET
= 3,
955 URLZONE_UNTRUSTED
= 4,
956 URLZONE_PREDEFINED_MAX
= 999,
957 URLZONE_USER_MIN
= 1000,
958 URLZONE_USER_MAX
= 10000,
961 typedef enum tagURLTEMPLATE
963 URLTEMPLATE_CUSTOM
= 0x00000,
964 URLTEMPLATE_PREDEFINED_MIN
= 0x10000,
965 URLTEMPLATE_LOW
= 0x10000,
966 URLTEMPLATE_MEDIUM
= 0x11000,
967 URLTEMPLATE_HIGH
= 0x12000,
968 URLTEMPLATE_PREDEFINED_MAX
= 0x20000,
972 ZAFLAGS_CUSTOM_EDIT
= 0x00000001,
973 ZAFLAGS_ADD_SITES
= 0x00000002,
974 ZAFLAGS_REQUIRE_VERIFICATION
= 0x00000004,
975 ZAFLAGS_INCLUDE_PROXY_OVERRIDE
= 0x00000008,
976 ZAFLAGS_INCLUDE_INTRANET_SITES
= 0x00000010,
977 ZAFLAGS_NO_UI
= 0x00000020,
978 ZAFLAGS_SUPPORTS_VERIFICATION
= 0x00000040,
979 ZAFLAGS_UNC_AS_INTRANET
= 0x00000080,
984 MAX_ZONE_DESCRIPTION
= 200
987 typedef struct _ZONEATTRIBUTES
{
989 WCHAR szDisplayName
[MAX_ZONE_PATH
];
990 WCHAR szDescription
[MAX_ZONE_DESCRIPTION
];
991 WCHAR szIconPath
[MAX_ZONE_PATH
];
992 DWORD dwTemplateMinLevel
;
993 DWORD dwTemplateRecommended
;
994 DWORD dwTemplateCurrentLevel
;
996 } ZONEATTRIBUTES
, *LPZONEATTRIBUTES
;
998 typedef enum _URLZONEREG
{
1004 HRESULT GetZoneAttributes
(
1006 [in, out, unique] ZONEATTRIBUTES
* pZoneAttributes
);
1008 HRESULT SetZoneAttributes
(
1010 [in] ZONEATTRIBUTES
* pZoneAttributes
);
1012 HRESULT GetZoneCustomPolicy
(
1014 [in] REFGUID guidKey
,
1015 [out] BYTE **ppPolicy
,
1016 [out] DWORD
* pcbPolicy
,
1017 [in] URLZONEREG ulrZoneReg
);
1019 HRESULT SetZoneCustomPolicy
(
1021 [in] REFGUID guidKey
,
1022 [in] BYTE *ppPolicy
,
1023 [in] DWORD pcbPolicy
,
1024 [in] URLZONEREG ulrZoneReg
);
1026 HRESULT GetZoneActionPolicy
(
1028 [in] DWORD dwAction
,
1029 [out] BYTE* pPolicy
,
1030 [in] DWORD cbPolicy
,
1031 [in] URLZONEREG urlZoneReg
);
1033 HRESULT SetZoneActionPolicy
(
1035 [in] DWORD dwAction
,
1037 [in] DWORD cbPolicy
,
1038 [in] URLZONEREG urlZoneReg
);
1040 HRESULT PromptAction
(
1041 [in] DWORD dwAction
,
1042 [in] HWND hwndParent
,
1043 [in] LPCWSTR pwszUrl
,
1044 [in] LPCWSTR pwszText
,
1045 [in] DWORD dwPromptFlags
);
1048 [in] DWORD dwAction
,
1049 [in] LPCWSTR pwszUrl
,
1050 [in] LPCWSTR pwszText
,
1051 [in] DWORD dwLogFlags
);
1053 HRESULT CreateZoneEnumerator
(
1054 [out] DWORD
* pdwEnum
,
1055 [out] DWORD
* pdwCount
,
1056 [in] DWORD dwFlags
);
1061 [out] DWORD
* pdwZone
);
1063 HRESULT DestroyZoneEnumerator
(
1066 HRESULT CopyTemplatePoliciesToZone
(
1067 [in] DWORD dwTemplate
,
1069 [in] DWORD dwReserved
);
1072 typedef struct _tagSOFTDISTINFO
1080 DWORD dwInstalledVersionMS
;
1081 DWORD dwInstalledVersionLS
;
1082 DWORD dwUpdateVersionMS
;
1083 DWORD dwUpdateVersionLS
;
1084 DWORD dwAdvertisedVersionMS
;
1085 DWORD dwAdvertisedVersionLS
;
1087 } SOFTDISTINFO
, *LPSOFTDISTINFO
;
1089 typedef struct _tagCODEBASEHOLD
1097 } CODEBASEHOLD
, *LPCODEBASEHOLD
;
1102 uuid(b15b8dc1
-c7e1
-11d0
-8680-00aa00bdcb71
),
1103 pointer_default(unique)
1105 interface ISoftDistExt
: IUnknown
1107 HRESULT ProcessSoftDist
(
1108 [in] LPCWSTR szCDFURL
,
1109 [in] IXMLElement
*pSoftDistElement
,
1110 [in, out] LPSOFTDISTINFO lpsdi
);
1112 HRESULT GetFirstCodeBase
(
1113 [in] LPWSTR
*szCodeBase
,
1114 [in] LPDWORD dwMaxSize
);
1116 HRESULT GetNextCodeBase
(
1117 [in] LPWSTR
*szCodeBase
,
1118 [in] LPDWORD dwMaxSize
);
1120 HRESULT AsyncInstallDistributionUnit
(
1122 [in] LPVOID lpReserved
,
1124 [in] LPCODEBASEHOLD lpcbh
);
1127 cpp_quote
("DEFINE_GUID(CLSID_InternetSecurityManager, 0x7b8a2d94, 0x0ac9, 0x11d1, 0x89, 0x6c, 0x00, 0xc0, 0x4f, 0xB6, 0xbf, 0xc4);")
1128 cpp_quote
("DEFINE_GUID(CLSID_InternetZoneManager, 0x7B8A2D95, 0x0AC9, 0x11D1, 0x89, 0x6C, 0x00, 0xC0, 0x4F, 0xB6, 0xBF, 0xC4);")
1129 cpp_quote
("DEFINE_GUID(IID_IAsyncMoniker, 0x79EAC9D3, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1130 cpp_quote
("DEFINE_GUID(IID_IAsyncBindCtx, 0x79EAC9D4, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1131 cpp_quote
("DEFINE_GUID(CLSID_StdURLMoniker, 0x79EAC9E0, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1133 cpp_quote
("DEFINE_GUID(CLSID_CdlProtocol, 0x3dd53d40, 0x7b8b, 0x11D0, 0xb0,0x13, 0x00,0xaa,0x00,0x59,0xce,0x02);")
1134 cpp_quote
("DEFINE_GUID(CLSID_FileProtocol, 0x79EAC9E7, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1135 cpp_quote
("DEFINE_GUID(CLSID_FtpProtocol, 0x79EAC9E3, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1136 cpp_quote
("DEFINE_GUID(CLSID_GopherProtocol, 0x79EAC9E4, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1137 cpp_quote
("DEFINE_GUID(CLSID_HttpProtocol, 0x79EAC9E2, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1138 cpp_quote
("DEFINE_GUID(CLSID_HttpSProtocol, 0x79EAC9E5, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1139 cpp_quote
("DEFINE_GUID(CLSID_MkProtocol, 0x79EAC9E6, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1142 cpp_quote
("#define MK_S_ASYNCHRONOUS 0x000401E8")
1143 cpp_quote
("#define S_ASYNCHRONOUS MK_S_ASYNCHRONOUS")
1145 cpp_quote
("#define INET_E_ERROR_FIRST 0x800C0002")
1146 cpp_quote
("#define INET_E_INVALID_URL 0x800C0002")
1147 cpp_quote
("#define INET_E_NO_SESSION 0x800C0003")
1148 cpp_quote
("#define INET_E_CANNOT_CONNECT 0x800C0004")
1149 cpp_quote
("#define INET_E_RESOURCE_NOT_FOUND 0x800C0005")
1150 cpp_quote
("#define INET_E_OBJECT_NOT_FOUND 0x800C0006")
1151 cpp_quote
("#define INET_E_DATA_NOT_AVAILABLE 0x800C0007")
1152 cpp_quote
("#define INET_E_DOWNLOAD_FAILURE 0x800C0008")
1153 cpp_quote
("#define INET_E_AUTHENTICATION_REQUIRED 0x800C0009")
1154 cpp_quote
("#define INET_E_NO_VALID_MEDIA 0x800C000A")
1155 cpp_quote
("#define INET_E_CONNECTION_TIMEOUT 0x800C000B")
1156 cpp_quote
("#define INET_E_INVALID_REQUEST 0x800C000C")
1157 cpp_quote
("#define INET_E_UNKNOWN_PROTOCOL 0x800C000D")
1158 cpp_quote
("#define INET_E_SECURITY_PROBLEM 0x800C000E")
1159 cpp_quote
("#define INET_E_CANNOT_LOAD_DATA 0x800C000F")
1160 cpp_quote
("#define INET_E_CANNOT_INSTANTIATE_OBJECT 0x800C0010")
1161 cpp_quote
("#define INET_E_USE_DEFAULT_PROTOCOLHANDLER 0x800C0011")
1162 cpp_quote
("#define INET_E_QUERYOPTION_UNKNOWN 0x800C0013")
1163 cpp_quote
("#define INET_E_REDIRECT_FAILED 0x800C0014")
1164 cpp_quote
("#define INET_E_REDIRECT_TO_DIR 0x800C0015")
1165 cpp_quote
("#define INET_E_CANNOT_LOCK_REQUEST 0x800C0016")
1166 cpp_quote
("#define INET_E_ERROR_LAST INET_E_REDIRECT_TO_DIR")
1167 cpp_quote
("#define INET_E_DEFAULT_ACTION INET_E_USE_DEFAULT_PROTOCOLHANDLER")
1169 cpp_quote
("HRESULT WINAPI CoGetClassObjectFromURL(REFCLSID, LPCWSTR, DWORD, DWORD, LPCWSTR, LPBINDCTX, DWORD, LPVOID, REFIID, LPVOID*);")
1170 cpp_quote
("HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk);")
1171 cpp_quote
("HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved);")
1172 cpp_quote
("HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD);")
1173 cpp_quote
("HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN,LPCSTR,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1174 cpp_quote
("HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN,LPCWSTR,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1175 cpp_quote
("HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN,LPCSTR,LPSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1176 cpp_quote
("HRESULT WINAPI URLDownloadToCacheFileW(LPUNKNOWN,LPCWSTR,LPWSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1177 cpp_quote
("HRESULT WINAPI CoInternetGetSession(DWORD,IInternetSession**,DWORD);")
1178 cpp_quote
("HRESULT WINAPI MkParseDisplayNameEx(IBindCtx*,LPCWSTR,ULONG*,IMoniker**);")
1179 cpp_quote
("HRESULT WINAPI IsAsyncMoniker(IMoniker* pmk);")
1180 cpp_quote
("HRESULT WINAPI CreateAsyncBindCtx(DWORD, IBindStatusCallback*, IEnumFORMATETC*, IBindCtx**);")
1181 cpp_quote
("HRESULT WINAPI CreateAsyncBindCtxEx(IBindCtx*,DWORD,IBindStatusCallback*,IEnumFORMATETC*,IBindCtx**,DWORD);")
1182 cpp_quote
("HRESULT WINAPI CoInternetCreateSecurityManager(IServiceProvider*,IInternetSecurityManager**,DWORD);")
1183 cpp_quote
("HRESULT WINAPI CoInternetCombineUrl(LPCWSTR,LPCWSTR,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1184 cpp_quote
("HRESULT WINAPI CoInternetCompareUrl(LPCWSTR,LPCWSTR,DWORD);")
1185 cpp_quote
("HRESULT WINAPI CoInternetCreateZoneManager(IServiceProvider*, IInternetZoneManager**, DWORD);")
1186 cpp_quote
("HRESULT WINAPI CoInternetParseUrl(LPCWSTR,PARSEACTION,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1187 cpp_quote
("HRESULT WINAPI CoInternetQueryInfo(LPCWSTR,QUERYOPTION,DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1188 cpp_quote
("HRESULT WINAPI CreateFormatEnumerator(UINT,FORMATETC*,IEnumFORMATETC**);")
1189 cpp_quote
("HRESULT WINAPI GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi);")
1190 cpp_quote
("HRESULT WINAPI FaultInIEFeature(HWND,uCLSSPEC*,QUERYCONTEXT*,DWORD);")
1191 cpp_quote
("HRESULT WINAPI FindMimeFromData(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,LPWSTR*,DWORD);")
1192 cpp_quote
("HRESULT WINAPI HlinkGoBack(IUnknown*);")
1193 cpp_quote
("HRESULT WINAPI HlinkGoForward(IUnknown*);")
1194 cpp_quote
("HRESULT WINAPI HlinkNavigateMoniker(IUnknown*,IMoniker*);")
1195 cpp_quote
("HRESULT WINAPI HlinkNavigateString(IUnknown*,LPCWSTR);")
1196 cpp_quote
("HRESULT WINAPI HlinkSimpleNavigateToMoniker(IMoniker*,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1197 cpp_quote
("HRESULT WINAPI HlinkSimpleNavigateToString(LPCWSTR,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1198 cpp_quote
("HRESULT WINAPI IsValidURL(LPBC,LPCWSTR,DWORD);")
1199 cpp_quote
("HRESULT WINAPI ObtainUserAgentString(DWORD,LPSTR,DWORD*);")
1200 cpp_quote
("HRESULT WINAPI RegisterFormatEnumerator(LPBC,IEnumFORMATETC*,DWORD);")
1201 cpp_quote
("HRESULT WINAPI RevokeFormatEnumerator(LPBC,IEnumFORMATETC*);")
1202 cpp_quote
("HRESULT WINAPI RevokeBindStatusCallback(LPBC,IBindStatusCallback*);")
1203 cpp_quote
("void WINAPI ReleaseBindInfo(BINDINFO*);")
1204 cpp_quote
("HRESULT WINAPI UrlMkGetSessionOption(DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1205 cpp_quote
("HRESULT WINAPI UrlMkSetSessionOption(DWORD,LPVOID,DWORD,DWORD);")
1207 cpp_quote
("#define OInetCombineUrl CoInternetCombineUrl")
1208 cpp_quote
("#define OInetCompareUrl CoInternetCompareUrl")
1209 cpp_quote
("#define OInetGetSession CoInternetGetSession")
1211 cpp_quote
("#define MKSYS_URLMONIKER 6")