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")
27 cpp_quote
("#undef SetPort")
30 interface IInternetProtocolSink
;
33 /*****************************************************************************
38 uuid(79eac9e0
-baf9
-11ce
-8c82
-00aa004ba90b
),
39 pointer_default(unique),
42 interface IInternet
: IUnknown
44 typedef [unique] IInternet
*LPIINTERNET
;
47 /*****************************************************************************
52 uuid(79eac9c0
-baf9
-11ce
-8c82
-00aa004ba90b
),
53 pointer_default(unique)
55 interface IBinding
: IUnknown
57 typedef [unique] IBinding
*LPBINDING
;
67 [out] LONG * pnPriority
);
70 HRESULT GetBindResult
(
71 [out] CLSID
*pclsidProtocol
,
72 [out] DWORD
*pdwResult
,
73 [out] LPOLESTR
*pszResult
,
74 [in, out] DWORD
*pdwReserved
);
76 [call_as
(GetBindResult
)]
77 HRESULT RemoteGetBindResult
(
78 [out] CLSID
*pclsidProtocol
,
79 [out] DWORD
*pdwResult
,
80 [out] LPOLESTR
*pszResult
,
81 [in] DWORD dwReserved
);
85 /*****************************************************************************
86 * IBindStatusCallback interface
90 uuid(79eac9c1
-baf9
-11ce
-8c82
-00aa004ba90b
),
91 pointer_default(unique)
93 interface IBindStatusCallback
: IUnknown
95 typedef [unique] IBindStatusCallback
*LPBINDSTATUSCALLBACK
;
99 BINDVERB_GET
= 0x00000000,
100 BINDVERB_POST
= 0x00000001,
101 BINDVERB_PUT
= 0x00000002,
102 BINDVERB_CUSTOM
= 0x00000003
107 BINDINFOF_URLENCODESTGMEDDATA
= 0x00000001,
108 BINDINFOF_URLENCODEDEXTRAINFO
= 0x00000002
113 BINDF_ASYNCHRONOUS
= 0x00000001,
114 BINDF_ASYNCSTORAGE
= 0x00000002,
115 BINDF_NOPROGRESSIVERENDERING
= 0x00000004,
116 BINDF_OFFLINEOPERATION
= 0x00000008,
117 BINDF_GETNEWESTVERSION
= 0x00000010,
118 BINDF_NOWRITECACHE
= 0x00000020,
119 BINDF_NEEDFILE
= 0x00000040,
120 BINDF_PULLDATA
= 0x00000080,
121 BINDF_IGNORESECURITYPROBLEM
= 0x00000100,
122 BINDF_RESYNCHRONIZE
= 0x00000200,
123 BINDF_HYPERLINK
= 0x00000400,
124 BINDF_NO_UI
= 0x00000800,
125 BINDF_SILENTOPERATION
= 0x00001000,
126 BINDF_PRAGMA_NO_CACHE
= 0x00002000,
127 BINDF_GETCLASSOBJECT
= 0x00004000,
128 BINDF_RESERVED_1
= 0x00008000,
129 BINDF_FREE_THREADED
= 0x00010000,
130 BINDF_DIRECT_READ
= 0x00020000,
131 BINDF_FORMS_SUBMIT
= 0x00040000,
132 BINDF_GETFROMCACHE_IF_NET_FAIL
= 0x00080000,
133 BINDF_FROMURLMON
= 0x00100000,
134 BINDF_FWD_BACK
= 0x00200000,
135 BINDF_PREFERDEFAULTHANDLER
= 0x00400000,
136 BINDF_ENFORCERESTRICTED
= 0x00800000
141 URL_ENCODING_NONE
= 0x00000000,
142 URL_ENCODING_ENABLE_UTF8
= 0x10000000,
143 URL_ENCODING_DISABLE_UTF8
= 0x20000000
146 typedef struct _tagBINDINFO
150 STGMEDIUM stgmedData
;
156 DWORD dwOptionsFlags
;
158 SECURITY_ATTRIBUTES securityAttributes
;
164 typedef struct _REMSECURITY_ATTRIBUTES
167 DWORD lpSecurityDescriptor
;
169 } REMSECURITY_ATTRIBUTES
, *PREMSECURITY_ATTRIBUTES
, *LPREMSECURITY_ATTRIBUTES
;
171 typedef struct _tagRemBINDINFO
180 DWORD dwOptionsFlags
;
182 REMSECURITY_ATTRIBUTES securityAttributes
;
188 typedef struct tagRemFORMATETC
195 } RemFORMATETC
, *LPREMFORMATETC
;
199 BSCF_FIRSTDATANOTIFICATION
= 0x01,
200 BSCF_INTERMEDIATEDATANOTIFICATION
= 0x02,
201 BSCF_LASTDATANOTIFICATION
= 0x04,
202 BSCF_DATAFULLYAVAILABLE
= 0x08,
203 BSCF_AVAILABLEDATASIZEUNKNOWN
= 0x10,
204 BSCF_SKIPDRAINDATAFORFILEURLS
= 0x20,
205 BSCF_64BITLENGTHDOWNLOAD
= 0x40
208 typedef enum BINDSTATUS
210 BINDSTATUS_FINDINGRESOURCE
= 1,
211 BINDSTATUS_CONNECTING
,
212 BINDSTATUS_REDIRECTING
,
213 BINDSTATUS_BEGINDOWNLOADDATA
,
214 BINDSTATUS_DOWNLOADINGDATA
,
215 BINDSTATUS_ENDDOWNLOADDATA
,
216 BINDSTATUS_BEGINDOWNLOADCOMPONENTS
,
217 BINDSTATUS_INSTALLINGCOMPONENTS
,
218 BINDSTATUS_ENDDOWNLOADCOMPONENTS
,
219 BINDSTATUS_USINGCACHEDCOPY
,
220 BINDSTATUS_SENDINGREQUEST
,
221 BINDSTATUS_CLASSIDAVAILABLE
,
222 BINDSTATUS_MIMETYPEAVAILABLE
,
223 BINDSTATUS_CACHEFILENAMEAVAILABLE
,
224 BINDSTATUS_BEGINSYNCOPERATION
,
225 BINDSTATUS_ENDSYNCOPERATION
,
226 BINDSTATUS_BEGINUPLOADDATA
,
227 BINDSTATUS_UPLOADINGDATA
,
228 BINDSTATUS_ENDUPLOADINGDATA
,
229 BINDSTATUS_PROTOCOLCLASSID
,
231 BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE
,
232 BINDSTATUS_CLASSINSTALLLOCATION
,
234 BINDSTATUS_LOADINGMIMEHANDLER
,
235 BINDSTATUS_CONTENTDISPOSITIONATTACH
,
236 BINDSTATUS_FILTERREPORTMIMETYPE
,
237 BINDSTATUS_CLSIDCANINSTANTIATE
,
238 BINDSTATUS_IUNKNOWNAVAILABLE
,
239 BINDSTATUS_DIRECTBIND
,
240 BINDSTATUS_RAWMIMETYPE
,
241 BINDSTATUS_PROXYDETECTING
,
242 BINDSTATUS_ACCEPTRANGES
,
243 BINDSTATUS_COOKIE_SENT
,
244 BINDSTATUS_COMPACT_POLICY_RECEIVED
,
245 BINDSTATUS_COOKIE_SUPPRESSED
,
246 BINDSTATUS_COOKIE_STATE_UNKNOWN
,
247 BINDSTATUS_COOKIE_STATE_ACCEPT
,
248 BINDSTATUS_COOKIE_STATE_REJECT
,
249 BINDSTATUS_COOKIE_STATE_PROMPT
,
250 BINDSTATUS_COOKIE_STATE_LEASH
,
251 BINDSTATUS_COOKIE_STATE_DOWNGRADE
,
252 BINDSTATUS_POLICY_HREF
,
253 BINDSTATUS_P3P_HEADER
,
254 BINDSTATUS_SESSION_COOKIE_RECEIVED
,
255 BINDSTATUS_PERSISTENT_COOKIE_RECEIVED
,
256 BINDSTATUS_SESSION_COOKIES_ALLOWED
,
257 BINDSTATUS_CACHECONTROL
,
258 BINDSTATUS_CONTENTDISPOSITIONFILENAME
,
259 BINDSTATUS_MIMETEXTPLAINMISMATCH
,
260 BINDSTATUS_PUBLISHERAVAILABLE
,
261 BINDSTATUS_DISPLAYNAMEAVAILABLE
,
262 BINDSTATUS_SSLUX_NAVBLOCKED
,
263 BINDSTATUS_SERVER_MIMETYPEAVAILABLE
,
264 BINDSTATUS_SNIFFED_CLASSIDAVAILABLE
,
265 BINDSTATUS_64BIT_PROGRESS
,
266 BINDSTATUS_LAST
= BINDSTATUS_64BIT_PROGRESS
,
267 BINDSTATUS_RESERVED_0
= (BINDSTATUS_LAST
+1),
268 BINDSTATUS_RESERVED_1
= (BINDSTATUS_RESERVED_0
+1),
269 BINDSTATUS_RESERVED_2
= (BINDSTATUS_RESERVED_1
+1),
270 BINDSTATUS_RESERVED_3
= (BINDSTATUS_RESERVED_2
+1),
271 BINDSTATUS_RESERVED_4
= (BINDSTATUS_RESERVED_3
+1),
272 BINDSTATUS_RESERVED_5
= (BINDSTATUS_RESERVED_4
+1),
273 BINDSTATUS_RESERVED_6
= (BINDSTATUS_RESERVED_5
+1),
274 BINDSTATUS_RESERVED_7
= (BINDSTATUS_RESERVED_6
+1),
275 BINDSTATUS_RESERVED_8
= (BINDSTATUS_RESERVED_7
+1),
276 BINDSTATUS_RESERVED_9
= (BINDSTATUS_RESERVED_8
+1),
277 BINDSTATUS_LAST_PRIVATE
= BINDSTATUS_RESERVED_9
281 HRESULT OnStartBinding
(
282 [in] DWORD dwReserved
,
283 [in] IBinding
* pib
);
286 [out] LONG * pnPriority
);
288 HRESULT OnLowResource
(
289 [in] DWORD reserved
);
292 [in] ULONG ulProgress
,
293 [in] ULONG ulProgressMax
,
294 [in] ULONG ulStatusCode
,
295 [in, unique] LPCWSTR szStatusText
);
297 HRESULT OnStopBinding
(
298 [in] HRESULT hresult,
299 [in, unique] LPCWSTR szError
);
303 [out] DWORD
*grfBINDF
,
304 [in, out, unique] BINDINFO
* pbindinfo
);
306 [call_as
(GetBindInfo
)]
307 HRESULT RemoteGetBindInfo
(
308 [out] DWORD
*grfBINDF
,
309 [in, out, unique] RemBINDINFO
* pbindinfo
,
310 [in, out, unique] RemSTGMEDIUM
* pstgmed
);
313 HRESULT OnDataAvailable
(
316 [in] FORMATETC
* pformatetc
,
317 [in] STGMEDIUM
* pstgmed
);
319 [call_as
(OnDataAvailable
)]
320 HRESULT RemoteOnDataAvailable
(
323 [in] RemFORMATETC
*pformatetc
,
324 [in] RemSTGMEDIUM
* pstgmed
);
326 HRESULT OnObjectAvailable
(
328 [in, iid_is(riid
)] IUnknown
* punk
);
331 /*****************************************************************************
332 * IBindStatusCallbackEx interface
336 uuid(aaa74ef9
-8ee7
-4659-88d9
-f8c504da73cc
),
337 pointer_default(unique)
339 interface IBindStatusCallbackEx
: IBindStatusCallback
341 typedef [unique] IBindStatusCallbackEx
*LPBINDSTATUSCALLBACKEX
;
344 BINDF2_DISABLEBASICOVERHTTP
= 0x00000001,
345 BINDF2_DISABLEAUTOCOOKIEHANDLING
= 0x00000002,
346 BINDF2_READ_DATA_GREATER_THAN_4GB
= 0x00000004,
347 BINDF2_DISABLE_HTTP_REDIRECT_XSECURITYID
= 0x00000008,
348 BINDF2_RESERVED_3
= 0x20000000,
349 BINDF2_RESERVED_2
= 0x40000000,
350 BINDF2_RESERVED_1
= 0x80000000,
354 HRESULT GetBindInfoEx
(
355 [out] DWORD
*grfBINDF
,
356 [in, out, unique] BINDINFO
*pbindinfo
,
357 [out] DWORD
*grfBINDF2
,
358 [out] DWORD
*pdwReserved
);
360 [call_as
(GetBindInfoEx
)]
361 HRESULT RemoteGetBindInfoEx
(
362 [out] DWORD
*grfBINDF
,
363 [in, out, unique] RemBINDINFO
*pbindinfo
,
364 [in, out, unique] RemSTGMEDIUM
*pstgmed
,
365 [out] DWORD
*grfBINDF2
,
366 [out] DWORD
*pdwReserved
);
370 /*****************************************************************************
371 * IAuthenticate interface
375 uuid(79EAC9D0
-BAf9
-11CE
-8C82
-00AA004BA90B
),
376 pointer_default(unique)
378 interface IAuthenticate
: IUnknown
380 typedef [unique] IAuthenticate
*LPAUTHENTICATION
;
382 HRESULT Authenticate
(
384 [out] LPWSTR
*pszUsername
,
385 [out] LPWSTR
*pszPassword
);
388 /*****************************************************************************
389 * IHttpNegotiate interface
393 uuid(79EAC9D2
-BAF9
-11CE
-8C82
-00AA004BA90B
),
394 pointer_default(unique)
396 interface IHttpNegotiate
: IUnknown
398 typedef [unique] IHttpNegotiate
*LPHTTPNEGOTIATE
;
400 HRESULT BeginningTransaction
(
402 [in, unique] LPCWSTR szHeaders
,
403 [in] DWORD dwReserved
,
404 [out] LPWSTR
*pszAdditionalHeaders
);
407 [in] DWORD dwResponseCode
,
408 [in, unique] LPCWSTR szResponseHeaders
,
409 [in, unique] LPCWSTR szRequestHeaders
,
410 [out] LPWSTR
*pszAdditionalRequestHeaders
);
413 /*****************************************************************************
414 * IHttpNegotiate2 interface
418 uuid(4F9F9FCB
-E0F4
-48eb
-B7AB
-FA2EA9365CB4
),
419 pointer_default(unique)
421 interface IHttpNegotiate2
: IHttpNegotiate
423 typedef [unique] IHttpNegotiate2
*LPHTTPNEGOTIATE2
;
425 HRESULT GetRootSecurityId
(
426 [out, size_is(*pcbSecurityId
)] BYTE *pbSecurityId
,
427 [in, out] DWORD
*pcbSecurityId
,
428 [in] DWORD_PTR dwReserved
);
431 /*****************************************************************************
432 * IBindHost interface
434 cpp_quote
("#define SID_IBindHost IID_IBindHost")
435 cpp_quote
("#define SID_SBindHost IID_IBindHost")
438 uuid(fc4801a1
-2ba9
-11cf
-a229
-00aa003d7352
),
439 pointer_default(unique)
441 interface IBindHost
: IUnknown
443 typedef [unique] IBindHost
*LPBINDHOST
;
445 HRESULT CreateMoniker
(
446 [in] LPOLESTR szName
,
448 [out] IMoniker
** ppmk
,
449 [in] DWORD dwReserved
);
452 HRESULT MonikerBindToStorage
(
455 [in] IBindStatusCallback
*pBSC
,
457 [out] void **ppvObj
);
459 [call_as
(MonikerBindToStorage
)]
460 HRESULT RemoteMonikerBindToStorage
(
461 [in, unique] IMoniker
*pMk
,
462 [in, unique] IBindCtx
*pBC
,
463 [in, unique] IBindStatusCallback
*pBSC
,
465 [out, iid_is(riid
)] IUnknown
**ppvObj
);
468 HRESULT MonikerBindToObject
(
471 [in] IBindStatusCallback
*pBSC
,
473 [out] void **ppvObj
);
475 [call_as
(MonikerBindToObject
)]
476 HRESULT RemoteMonikerBindToObject
(
477 [in, unique] IMoniker
*pMk
,
478 [in, unique] IBindCtx
*pBC
,
479 [in, unique] IBindStatusCallback
*pBSC
,
481 [out, iid_is(riid
)] IUnknown
**ppvObj
);
485 /*****************************************************************************
486 * IWinInetInfo interface
490 uuid(79eac9d6
-bafa
-11ce
-8c82
-00aa004ba90b
),
491 pointer_default(unique)
493 interface IWinInetInfo
: IUnknown
495 typedef [unique] IWinInetInfo
*LPWININETINFO
;
500 [in, out, size_is(*pcbBuf
)] LPVOID pBuffer
,
501 [in, out] DWORD
*pcbBuf
);
503 [call_as
(QueryOption
)]
504 HRESULT RemoteQueryOption
(
506 [in, out, size_is(*pcbBuf
)] BYTE *pBuffer
,
507 [in, out] DWORD
*pcbBuf
);
512 /*****************************************************************************
513 * IWinInetHttpInfo interface
517 uuid(79eac9d8
-bafa
-11ce
-8c82
-00aa004ba90b
),
518 pointer_default(unique)
520 interface IWinInetHttpInfo
: IWinInetInfo
522 typedef [unique] IWinInetHttpInfo
*LPWININETHTTPINFO
;
527 [in, out,size_is(*pcbBuf
)] LPVOID pBuffer
,
528 [in, out] DWORD
*pcbBuf
,
529 [in, out] DWORD
*pdwFlags
,
530 [in, out] DWORD
*pdwReserved
);
533 HRESULT RemoteQueryInfo
(
535 [in,out,size_is(*pcbBuf
)] BYTE *pBuffer
,
536 [in, out] DWORD
*pcbBuf
,
537 [in, out] DWORD
*pdwFlags
,
538 [in, out] DWORD
*pdwReserved
);
541 /*****************************************************************************
542 * IWindowForBindingUI interface
547 uuid(79eac9d5
-bafa
-11ce
-8c82
-00aa004ba90b
),
548 pointer_default(unique)
550 interface IWindowForBindingUI
: IUnknown
552 typedef [unique] IWindowForBindingUI
*LPWINDOWFORBINDINGUI
;
555 [in] REFGUID rguidReason
,
559 /*****************************************************************************
560 * ICodeInstall interface
565 uuid(79eac9d1
-baf9
-11ce
-8c82
-00aa004ba90b
),
566 pointer_default(unique)
568 interface ICodeInstall
: IWindowForBindingUI
570 typedef [unique] ICodeInstall
*LPCODEINSTALL
;
575 CIP_NEWER_VERSION_EXISTS
,
576 CIP_OLDER_VERSION_EXISTS
,
578 CIP_TRUST_VERIFICATION_COMPONENT_MISSING
,
579 CIP_EXE_SELF_REGISTERATION_TIMEOUT
,
582 CIP_NEED_REBOOT_UI_PERMISSION
585 HRESULT OnCodeInstallProblem
(
586 [in] ULONG ulStatusCode
,
587 [in, unique] LPCWSTR szDestination
,
588 [in, unique] LPCWSTR szSource
,
589 [in] DWORD dwReserved
);
592 /*****************************************************************************
593 * IHttpSecurity interface
598 uuid(79eac9d7
-bafa
-11ce
-8c82
-00aa004ba90b
),
599 pointer_default(unique)
601 interface IHttpSecurity
: IWindowForBindingUI
603 typedef [unique] IHttpSecurity
*LPHTTPSECURITY
;
605 HRESULT OnSecurityProblem
(
606 [in] DWORD dwProblem
);
610 /*****************************************************************************
611 * IPersistMoniker interface
615 uuid(79eac9c9
-baf9
-11ce
-8c82
-00aa004ba90b
),
616 pointer_default(unique)
618 interface IPersistMoniker
: IUnknown
620 typedef [unique] IPersistMoniker
*LPPERSISTMONIKER
;
623 [out] CLSID
*pClassID
);
628 [in] BOOL fFullyAvailable
,
629 [in] IMoniker
*pimkName
,
634 [in] IMoniker
*pimkName
,
636 [in] BOOL fRemember
);
638 HRESULT SaveCompleted
(
639 [in] IMoniker
*pimkName
,
642 HRESULT GetCurMoniker
(
643 [out] IMoniker
**ppimkName
);
646 /*****************************************************************************
647 * IMonikerProp interface
651 uuid(A5CA5F7F
-1847-4D87
-9C5B
-918509F7511D
),
652 pointer_default(unique)
654 interface IMonikerProp
: IUnknown
656 typedef [unique] IMonikerProp
*LPMONIKERPROP
;
662 TRUSTEDDOWNLOADPROP
= 3,
667 [in] MONIKERPROPERTY mkp
,
671 cpp_quote
("#ifndef _LPBINDPROTOCOL_DEFINED")
672 cpp_quote
("#define _LPBINDPROTOCOL_DEFINED")
674 /*****************************************************************************
675 * IBindProtocol interface
680 uuid(79EAC9CD
-BAF9
-11CE
-8C82
-00AA004BA90B
),
681 pointer_default(unique)
683 interface IBindProtocol
: IUnknown
685 typedef [unique] IBindProtocol
*LPBINDPROTOCOL
;
687 HRESULT CreateBinding
(
690 [out] IBinding
**ppb
);
693 cpp_quote
("#endif /* !defined _LPBINDPROTOCOL_DEFINED */")
695 /*****************************************************************************
696 * IInternetBindInfo interface
701 uuid(79EAC9E1
-BAF9
-11CE
-8C82
-00AA004BA90B
),
702 pointer_default(unique)
704 interface IInternetBindInfo
: IUnknown
706 typedef [unique] IInternetBindInfo
*LPIINTERNETBINDINFO
;
708 typedef enum tagBINDSTRING
710 BINDSTRING_HEADERS
= 1,
711 BINDSTRING_ACCEPT_MIMES
,
712 BINDSTRING_EXTRA_URL
,
716 BINDSTRING_UA_PIXELS
,
719 BINDSTRING_USER_AGENT
,
720 BINDSTRING_ACCEPT_ENCODINGS
,
721 BINDSTRING_POST_COOKIE
,
722 BINDSTRING_POST_DATA_MIME
,
725 BINDSTRING_FLAG_BIND_TO_OBJECT
,
726 BINDSTRING_PTR_BIND_CONTEXT
,
727 BINDSTRING_XDR_ORIGIN
,
728 BINDSTRING_DOWNLOADPATH
,
729 BINDSTRING_ROOTDOC_URL
,
730 BINDSTRING_INITIAL_FILENAME
,
731 BINDSTRING_PROXY_USERNAME
,
732 BINDSTRING_PROXY_PASSWORD
,
733 BINDSTRING_ENTERPRISE_ID
737 [out] DWORD
*grfBINDF
,
738 [in, out, unique] BINDINFO
*pbindinfo
);
740 HRESULT GetBindString
(
741 [in] ULONG ulStringType
,
742 [in, out] LPOLESTR
*ppwzStr
,
744 [in, out] ULONG
*pcElFetched
);
747 /*****************************************************************************
748 * IInternetPriority interface
753 uuid(79EAC9EB
-BAF9
-11CE
-8C82
-00AA004BA90B
),
754 pointer_default(unique)
756 interface IInternetPriority
: IUnknown
758 typedef [unique] IInternetPriority
*LPIINTERNETPRIORITY
;
760 HRESULT SetPriority
([in] LONG nPriority
);
761 HRESULT GetPriority
([out] LONG *pnPriority
);
764 /*****************************************************************************
765 * IInternetProtocolRoot interface
770 uuid(79EAC9E3
-BAF9
-11CE
-8C82
-00AA004BA90B
),
771 pointer_default(unique)
773 interface IInternetProtocolRoot
: IUnknown
775 typedef [unique] IInternetProtocolRoot
*LPIINTERNETPROTOCOLROOT
;
777 typedef enum _tagPI_FLAGS
779 PI_PARSE_URL
= 0x00000001,
780 PI_FILTER_MODE
= 0x00000002,
781 PI_FORCE_ASYNC
= 0x00000004,
782 PI_USE_WORKERTHREAD
= 0x00000008,
783 PI_MIMEVERIFICATION
= 0x00000010,
784 PI_CLSIDLOOKUP
= 0x00000020,
785 PI_DATAPROGRESS
= 0x00000040,
786 PI_SYNCHRONOUS
= 0x00000080,
787 PI_APARTMENTTHREADED
= 0x00000100,
788 PI_CLASSINSTALL
= 0x00000200,
789 PD_FORCE_SWITCH
= 0x00010000
792 typedef struct _tagPROTOCOLDATA
802 [in] IInternetProtocolSink
*pOIProtSink
,
803 [in] IInternetBindInfo
*pOIBindInfo
,
805 [in] HANDLE_PTR dwReserved
);
808 [in] PROTOCOLDATA
*pProtocolData
);
811 [in] HRESULT hrReason
,
812 [in] DWORD dwOptions
);
815 [in] DWORD dwOptions
);
822 /*****************************************************************************
823 * IInternetProtocolSink interface
828 uuid(79EAC9E5
-BAF9
-11CE
-8C82
-00AA004BA90B
),
829 pointer_default(unique)
831 interface IInternetProtocolSink
: IUnknown
833 typedef [unique] IInternetProtocolSink
*LPIINTERNETPROTOCOLSINK
;
836 [in] PROTOCOLDATA
*pProtocolData
);
838 HRESULT ReportProgress
(
839 [in] ULONG ulStatusCode
,
840 [in] LPCWSTR szStatusText
);
844 [in] ULONG ulProgress
,
845 [in] ULONG ulProgressMax
);
847 HRESULT ReportResult
(
848 [in] HRESULT hrResult
,
850 [in] LPCWSTR szResult
);
853 /*****************************************************************************
854 * IInternetProtocol interface
859 uuid(79EAC9E4
-BAF9
-11CE
-8C82
-00AA004BA90B
),
860 pointer_default(unique)
862 interface IInternetProtocol
: IInternetProtocolRoot
864 typedef [unique] IInternetProtocol
*LPIINTERNETPROTOCOL
;
867 [in,out, size_is(cb
), length_is(*pcbRead
)] void *pv
,
869 [out] ULONG
*pcbRead
);
872 [in] LARGE_INTEGER dlibMove
,
874 [out] ULARGE_INTEGER
*plibNewPosition
);
877 [in] DWORD dwOptions
);
879 HRESULT UnlockRequest
();
882 /*****************************************************************************
883 * IInternetProtocolInfo interface
888 uuid(79eac9ec
-baf9
-11ce
-8c82
-00aa004ba90b
),
889 pointer_default(unique)
891 interface IInternetProtocolInfo
: IUnknown
893 typedef [unique] IInternetProtocolInfo
*LPIINTERNETPROTOCOLINFO
;
895 typedef enum _tagPARSEACTION
897 PARSE_CANONICALIZE
= 1,
913 PARSE_SECURITY_DOMAIN
,
918 typedef enum _tagPSUACTION
921 PSU_SECURITY_URL_ONLY
924 typedef enum _tagQUERYOPTION
926 QUERY_EXPIRATION_DATE
= 1,
927 QUERY_TIME_OF_LAST_CHANGE
,
928 QUERY_CONTENT_ENCODING
,
935 QUERY_IS_INSTALLEDENTRY
,
936 QUERY_IS_CACHED_OR_MAPPED
,
940 QUERY_USES_HISTORYFOLDER
,
941 QUERY_IS_CACHED_AND_USABLE_OFFLINE
946 [in] PARSEACTION ParseAction
,
947 [in] DWORD dwParseFlags
,
948 [out] LPWSTR pwzResult
,
949 [in] DWORD cchResult
,
950 [out] DWORD
*pcchResult
,
951 [in] DWORD dwReserved
);
954 [in] LPCWSTR pwzBaseUrl
,
955 [in] LPCWSTR pwzRelativeUrl
,
956 [in] DWORD dwCombineFlags
,
957 [out] LPWSTR pwzResult
,
958 [in] DWORD cchResult
,
959 [out] DWORD
*pcchResult
,
960 [in] DWORD dwReserved
);
963 [in] LPCWSTR pwzUrl1
,
964 [in] LPCWSTR pwzUrl2
,
965 [in] DWORD dwCompareFlags
);
969 [in] QUERYOPTION OueryOption
,
970 [in] DWORD dwQueryFlags
,
971 [in, out,size_is(*pcbBuf
)] LPVOID pBuffer
,
973 [in, out] DWORD
*pcbBuf
,
974 [in] DWORD dwReserved
);
977 /*****************************************************************************
978 * IInternetSession interface
983 uuid(79eac9e7
-baf9
-11ce
-8c82
-00aa004ba90b
),
984 pointer_default(unique)
986 interface IInternetSession
: IUnknown
988 typedef [unique] IInternetSession
*LPIINTERNETSESSION
;
990 typedef enum _tagOIBDG_FLAGS
992 OIBDG_APARTMENTTHREADED
= 0x0100,
993 OIBDG_DATAONLY
= 0x1000
996 HRESULT RegisterNameSpace
(
997 [in] IClassFactory
*pCF
,
998 [in] REFCLSID rclsid
,
999 [in] LPCWSTR pwzProtocol
,
1000 [in] ULONG cPatterns
,
1001 [in] const LPCWSTR
*ppwzPatterns
,
1002 [in] DWORD dwReserved
);
1004 HRESULT UnregisterNameSpace
(
1005 [in] IClassFactory
*pCF
,
1006 [in] LPCWSTR pszProtocol
);
1008 HRESULT RegisterMimeFilter
(
1009 [in] IClassFactory
*pCF
,
1010 [in] REFCLSID rclsid
,
1011 [in] LPCWSTR pwzType
);
1013 HRESULT UnregisterMimeFilter
(
1014 [in] IClassFactory
*pCF
,
1015 [in] LPCWSTR pwzType
);
1017 HRESULT CreateBinding
(
1020 [in] IUnknown
*pUnkOuter
,
1021 [out, unique] IUnknown
**ppUnk
,
1022 [out, unique] IInternetProtocol
**ppOInetProt
,
1023 [in] DWORD dwOption
);
1025 HRESULT SetSessionOption
(
1026 [in] DWORD dwOption
,
1027 [in] LPVOID pBuffer
,
1028 [in] DWORD dwBufferLength
,
1029 [in] DWORD dwReserved
);
1032 /*****************************************************************************
1033 * IInternetSecurityMgrSite interface
1038 uuid(79eac9ed
-baf9
-11ce
-8c82
-00aa004ba90b
),
1039 pointer_default(unique)
1041 interface IInternetSecurityMgrSite
: IUnknown
1046 HRESULT EnableModeless
(
1051 /*****************************************************************************
1052 * IInternetSecurityManager interface
1054 cpp_quote
("#define SID_SInternetSecurityManager IID_IInternetSecurityManager")
1058 uuid(79eac9ee
-baf9
-11ce
-8c82
-00aa004ba90b
),
1059 pointer_default(unique)
1061 interface IInternetSecurityManager
: IUnknown
1063 HRESULT SetSecuritySite
(
1064 [in, unique] IInternetSecurityMgrSite
*pSite
);
1066 HRESULT GetSecuritySite
(
1067 [out] IInternetSecurityMgrSite
**ppSite
);
1069 HRESULT MapUrlToZone
(
1070 [in] LPCWSTR pwszUrl
,
1071 [out] DWORD
*pdwZone
,
1072 [in] DWORD dwFlags
);
1074 cpp_quote
("#define MAX_SIZE_SECURITY_ID 512")
1076 HRESULT GetSecurityId
(
1077 [in] LPCWSTR pwszUrl
,
1078 [out, size_is(*pcbSecurityId
)] BYTE *pbSecurityId
,
1079 [in, out] DWORD
*pcbSecurityId
,
1080 [in] DWORD_PTR dwReserved
);
1084 PUAF_DEFAULT
= 0x00,
1087 PUAF_WARN_IF_DENIED
= 0x04,
1088 PUAF_FORCEUI_FOREGROUND
= 0x08,
1089 PUAF_CHECK_TIPS
= 0x10
1092 HRESULT ProcessUrlAction
(
1093 [in] LPCWSTR pwszUrl
,
1094 [in] DWORD dwAction
,
1095 [out, size_is(cbPolicy
)] BYTE *pPolicy
,
1096 [in] DWORD cbPolicy
,
1097 [in, unique] BYTE *pContext
,
1098 [in] DWORD cbContext
,
1100 [in] DWORD dwReserved
);
1102 HRESULT QueryCustomPolicy
(
1103 [in] LPCWSTR pwszUrl
,
1104 [in] REFGUID guidKey
,
1105 [out, size_is(,*pcbPolicy
)] BYTE **ppPolicy
,
1106 [out] DWORD
*pcbPolicy
,
1107 [in] BYTE *pContext
,
1108 [in] DWORD cbContext
,
1109 [in] DWORD dwReserved
);
1116 HRESULT SetZoneMapping
(
1118 [in] LPCWSTR lpszPattern
,
1119 [in] DWORD dwFlags
);
1121 HRESULT GetZoneMappings
(
1123 [out] IEnumString
**ppenumString
,
1124 [in] DWORD dwFlags
);
1127 /*****************************************************************************
1128 * IInternetSecurityManagerEx interface
1130 cpp_quote
("#define SID_SInternetSecurityManagerEx IID_IInternetSecurityManagerEx")
1134 uuid(f164edf1
-cc7c
-4f0d
-9a94
-34222625C393
),
1135 pointer_default(unique)
1137 interface IInternetSecurityManagerEx
: IInternetSecurityManager
1139 HRESULT ProcessUrlActionEx
(
1140 [in] LPCWSTR pwszUrl
,
1141 [in] DWORD dwAction
,
1142 [out, size_is(cbPolicy
)] BYTE *pPolicy
,
1143 [in] DWORD cbPolicy
,
1144 [in] BYTE *pContext
,
1145 [in] DWORD cbContext
,
1147 [in] DWORD dwReserved
,
1148 [out] DWORD
*pdwOutFlags
);
1151 /*****************************************************************************
1152 * IInternetSecurityManagerEx2 interface
1154 cpp_quote
("#define SID_SInternetSecurityManagerEx2 IID_IInternetSecurityManagerEx2")
1158 uuid(f1e50292
-a795
-4117-8e09
-2b560a72ac60
),
1159 pointer_default(unique)
1161 interface IInternetSecurityManagerEx2
: IInternetSecurityManagerEx
1163 HRESULT MapUrlToZoneEx2
(
1165 [out] DWORD
*pdwZone
,
1167 [out] LPWSTR
*ppwszMappedUrl
,
1168 [out] DWORD
*pdwOutFlags
);
1170 HRESULT ProcessUrlActionEx2
(
1172 [in] DWORD dwAction
,
1173 [out, size_is(cbPolicy
)] BYTE *pPolicy
,
1174 [in] DWORD cbPolicy
,
1175 [in, unique] BYTE *pContext
,
1176 [in] DWORD cbContext
,
1178 [in] DWORD_PTR dwReserved
,
1179 [out] DWORD
*pdwOutFlags
);
1181 HRESULT GetSecurityIdEx2
(
1183 [out, size_is(*pcbSecurityId
)] BYTE *pbSecurityId
,
1184 [in, out] DWORD
*pcbSecurityId
,
1185 [in] DWORD_PTR dwReserved
);
1187 HRESULT QueryCustomPolicyEx2
(
1189 [in] REFGUID guidKey
,
1190 [out, size_is(,*pcbPolicy
)] BYTE **ppPolicy
,
1191 [out] DWORD
*pcbPolicy
,
1192 [in] BYTE *pContext
,
1193 [in] DWORD cbContext
,
1194 [in] DWORD_PTR dwReserved
);
1197 /*****************************************************************************
1198 * IInternetHostSecurityManager interface
1200 cpp_quote
("#define SID_SInternetHostSecurityManager IID_IInternetHostSecurityManager")
1205 uuid(3af280b6
-cb3f
-11d0
-891e-00c04fb6bfc4
),
1206 pointer_default(unique)
1208 interface IInternetHostSecurityManager
: IUnknown
1210 HRESULT GetSecurityId
(
1211 [out, size_is(*pcbSecurityId
)] BYTE *pbSecurityId
,
1212 [in, out] DWORD
*pcbSecurityId
,
1213 [in] DWORD_PTR dwReserved
);
1215 HRESULT ProcessUrlAction
(
1216 [in] DWORD dwAction
,
1217 [out, size_is(cbPolicy
)] BYTE *pPolicy
,
1218 [in] DWORD cbPolicy
,
1219 [in] BYTE *pContext
,
1220 [in] DWORD cbContext
,
1222 [in] DWORD dwReserved
);
1224 HRESULT QueryCustomPolicy
(
1225 [in] REFGUID guidKey
,
1226 [out, size_is(,*pcbPolicy
)] BYTE **ppPolicy
,
1227 [out] DWORD
*pcbPolicy
,
1228 [in] BYTE *pContext
,
1229 [in] DWORD cbContext
,
1230 [in] DWORD dwReserved
);
1233 cpp_quote
("#define URLACTION_MIN 0x00001000")
1234 cpp_quote
("#define URLACTION_DOWNLOAD_MIN 0x00001000")
1235 cpp_quote
("#define URLACTION_DOWNLOAD_SIGNED_ACTIVEX 0x00001001")
1236 cpp_quote
("#define URLACTION_DOWNLOAD_UNSIGNED_ACTIVEX 0x00001004")
1237 cpp_quote
("#define URLACTION_DOWNLOAD_CURR_MAX 0x00001004")
1238 cpp_quote
("#define URLACTION_DOWNLOAD_MAX 0x000011ff")
1240 cpp_quote
("#define URLACTION_ACTIVEX_MIN 0x00001200")
1241 cpp_quote
("#define URLACTION_ACTIVEX_RUN 0x00001200")
1242 cpp_quote
("#define URLPOLICY_ACTIVEX_CHECK_LIST 0x00010000")
1243 cpp_quote
("#define URLACTION_ACTIVEX_OVERRIDE_OBJECT_SAFETY 0x00001201")
1244 cpp_quote
("#define URLACTION_ACTIVEX_OVERRIDE_DATA_SAFETY 0x00001202")
1245 cpp_quote
("#define URLACTION_ACTIVEX_OVERRIDE_SCRIPT_SAFETY 0x00001203")
1246 cpp_quote
("#define URLACTION_SCRIPT_OVERRIDE_SAFETY 0x00001401")
1247 cpp_quote
("#define URLACTION_ACTIVEX_CONFIRM_NOOBJECTSAFETY 0x00001204")
1248 cpp_quote
("#define URLACTION_ACTIVEX_TREATASUNTRUSTED 0x00001205")
1249 cpp_quote
("#define URLACTION_ACTIVEX_CURR_MAX 0x00001205")
1250 cpp_quote
("#define URLACTION_ACTIVEX_MAX 0x000013ff")
1252 cpp_quote
("#define URLACTION_SCRIPT_MIN 0x00001400")
1253 cpp_quote
("#define URLACTION_SCRIPT_RUN 0x00001400")
1254 cpp_quote
("#define URLACTION_SCRIPT_JAVA_USE 0x00001402")
1255 cpp_quote
("#define URLACTION_SCRIPT_SAFE_ACTIVEX 0x00001405")
1256 cpp_quote
("#define URLACTION_CROSS_DOMAIN_DATA 0x00001406")
1257 cpp_quote
("#define URLACTION_SCRIPT_PASTE 0x00001407")
1258 cpp_quote
("#define URLACTION_SCRIPT_CURR_MAX 0x00001407")
1259 cpp_quote
("#define URLACTION_SCRIPT_MAX 0x000015ff")
1261 cpp_quote
("#define URLACTION_HTML_MIN 0x00001600")
1262 cpp_quote
("#define URLACTION_HTML_SUBMIT_FORMS 0x00001601")
1263 cpp_quote
("#define URLACTION_HTML_SUBMIT_FORMS_FROM 0x00001602")
1264 cpp_quote
("#define URLACTION_HTML_SUBMIT_FORMS_TO 0x00001603")
1265 cpp_quote
("#define URLACTION_HTML_FONT_DOWNLOAD 0x00001604")
1266 cpp_quote
("#define URLACTION_HTML_JAVA_RUN 0x00001605")
1267 cpp_quote
("#define URLACTION_HTML_USERDATA_SAVE 0x00001606")
1268 cpp_quote
("#define URLACTION_HTML_SUBFRAME_NAVIGATE 0x00001607")
1269 cpp_quote
("#define URLACTION_HTML_META_REFRESH 0x00001608")
1270 cpp_quote
("#define URLACTION_HTML_MIXED_CONTENT 0x00001609")
1271 cpp_quote
("#define URLACTION_HTML_MAX 0x000017ff")
1273 cpp_quote
("#define URLACTION_SHELL_MIN 0x00001800")
1274 cpp_quote
("#define URLACTION_SHELL_INSTALL_DTITEMS 0x00001800")
1275 cpp_quote
("#define URLACTION_SHELL_MOVE_OR_COPY 0x00001802")
1276 cpp_quote
("#define URLACTION_SHELL_FILE_DOWNLOAD 0x00001803")
1277 cpp_quote
("#define URLACTION_SHELL_VERB 0x00001804")
1278 cpp_quote
("#define URLACTION_SHELL_WEBVIEW_VERB 0x00001805")
1279 cpp_quote
("#define URLACTION_SHELL_CURR_MAX 0x00001805")
1280 cpp_quote
("#define URLACTION_SHELL_MAX 0x000019ff")
1282 cpp_quote
("#define URLACTION_NETWORK_MIN 0x00001a00")
1283 cpp_quote
("#define URLACTION_CREDENTIALS_USE 0x00001a00")
1284 cpp_quote
("#define URLACTION_AUTHENTICATE_CLIENT 0x00001a01")
1285 cpp_quote
("#define URLACTION_COOKIES 0x00001a02")
1286 cpp_quote
("#define URLACTION_COOKIES_SESSION 0x00001a03")
1287 cpp_quote
("#define URLACTION_CLIENT_CERT_PROMPT 0x00001a04")
1288 cpp_quote
("#define URLACTION_COOKIES_THIRD_PARTY 0x00001a05")
1289 cpp_quote
("#define URLACTION_COOKIES_SESSION_THIRD_PARTY 0x00001a06")
1290 cpp_quote
("#define URLACTION_COOKIES_ENABLED 0x00001a10")
1291 cpp_quote
("#define URLACTION_NETWORK_CURR_MAX 0x00001a10")
1292 cpp_quote
("#define URLACTION_NETWORK_MAX 0x00001bff")
1294 cpp_quote
("#define URLACTION_JAVA_MIN 0x00001c00")
1295 cpp_quote
("#define URLACTION_JAVA_PERMISSIONS 0x00001c00")
1296 cpp_quote
("#define URLPOLICY_JAVA_PROHIBIT 0x00000000")
1297 cpp_quote
("#define URLPOLICY_JAVA_HIGH 0x00010000")
1298 cpp_quote
("#define URLPOLICY_JAVA_MEDIUM 0x00020000")
1299 cpp_quote
("#define URLPOLICY_JAVA_LOW 0x00030000")
1300 cpp_quote
("#define URLPOLICY_JAVA_CUSTOM 0x00800000")
1301 cpp_quote
("#define URLACTION_JAVA_CURR_MAX 0x00001c00")
1302 cpp_quote
("#define URLACTION_JAVA_MAX 0x00001cff")
1304 cpp_quote
("#define URLACTION_INFODELIVERY_MIN 0x00001d00")
1305 cpp_quote
("#define URLACTION_INFODELIVERY_NO_ADDING_CHANNELS 0x00001d00")
1306 cpp_quote
("#define URLACTION_INFODELIVERY_NO_EDITING_CHANNELS 0x00001d01")
1307 cpp_quote
("#define URLACTION_INFODELIVERY_NO_REMOVING_CHANNELS 0x00001d02")
1308 cpp_quote
("#define URLACTION_INFODELIVERY_NO_ADDING_SUBSCRIPTIONS 0x00001d03")
1309 cpp_quote
("#define URLACTION_INFODELIVERY_NO_EDITING_SUBSCRIPTIONS 0x00001d04")
1310 cpp_quote
("#define URLACTION_INFODELIVERY_NO_REMOVING_SUBSCRIPTIONS 0x00001d05")
1311 cpp_quote
("#define URLACTION_INFODELIVERY_NO_CHANNEL_LOGGING 0x00001d06")
1312 cpp_quote
("#define URLACTION_INFODELIVERY_CURR_MAX 0x00001d06")
1313 cpp_quote
("#define URLACTION_INFODELIVERY_MAX 0x00001dff")
1315 cpp_quote
("#define URLACTION_CHANNEL_SOFTDIST_MIN 0x00001e00")
1316 cpp_quote
("#define URLACTION_CHANNEL_SOFTDIST_PERMISSIONS 0x00001e05")
1317 cpp_quote
("#define URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT 0x00010000")
1318 cpp_quote
("#define URLPOLICY_CHANNEL_SOFTDIST_PRECACHE 0x00020000")
1319 cpp_quote
("#define URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL 0x00030000")
1320 cpp_quote
("#define URLACTION_CHANNEL_SOFTDIST_MAX 0x00001eff")
1322 cpp_quote
("#define URLACTION_BEHAVIOR_MIN 0x00002000")
1323 cpp_quote
("#define URLACTION_BEHAVIOR_RUN 0x00002000")
1324 cpp_quote
("#define URLPOLICY_BEHAVIOR_CHECK_LIST 0x00010000")
1326 cpp_quote
("#define URLACTION_FEATURE_MIN 0x00002100")
1327 cpp_quote
("#define URLACTION_FEATURE_MIME_SNIFFING 0x00002100")
1328 cpp_quote
("#define URLACTION_FEATURE_ZONE_ELEVATION 0x00002101")
1329 cpp_quote
("#define URLACTION_FEATURE_WINDOW_RESTRICTIONS 0x00002102")
1330 cpp_quote
("#define URLACTION_FEATURE_SCRIPT_STATUS_BAR 0x00002103")
1331 cpp_quote
("#define URLACTION_FEATURE_FORCE_ADDR_AND_STATUS 0x00002104")
1332 cpp_quote
("#define URLACTION_FEATURE_BLOCK_INPUT_PROMPTS 0x00002105")
1334 cpp_quote
("#define URLPOLICY_ALLOW 0x00")
1335 cpp_quote
("#define URLPOLICY_QUERY 0x01")
1336 cpp_quote
("#define URLPOLICY_DISALLOW 0x03")
1338 cpp_quote
("#define URLPOLICY_NOTIFY_ON_ALLOW 0x10")
1339 cpp_quote
("#define URLPOLICY_NOTIFY_ON_DISALLOW 0x20")
1341 cpp_quote
("#define URLPOLICY_LOG_ON_ALLOW 0x40")
1342 cpp_quote
("#define URLPOLICY_LOG_ON_DISALLOW 0x80")
1344 cpp_quote
("#define URLPOLICY_DONTCHECKDLGBOX 0x100")
1346 cpp_quote
("#define URLPOLICY_CREDENTIALS_SILENT_LOGON_OK 0x00000000")
1347 cpp_quote
("#define URLPOLICY_CREDENTIALS_MUST_PROMPT_USER 0x00010000")
1348 cpp_quote
("#define URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT 0x00020000")
1349 cpp_quote
("#define URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY 0x00030000")
1351 cpp_quote
("#define URLPOLICY_AUTHENTICATE_CLEARTEXT_OK 0x00000000")
1352 cpp_quote
("#define URLPOLICY_AUTHENTICATE_CHALLENGE_RESPONSE 0x00010000")
1353 cpp_quote
("#define URLPOLICY_AUTHENTICATE_MUTUAL_ONLY 0x00030000")
1355 cpp_quote
("#define URLPOLICY_MASK_PERMISSIONS 0x0f")
1356 cpp_quote
("#define GetUrlPolicyPermissions(dw) (dw & URLPOLICY_MASK_PERMISSIONS)")
1357 cpp_quote
("#define SetUrlPolicyPermissions(dw,dw2) ((dw) = ((dw) & ~URLPOLICY_MASK_PERMISSIONS) | (dw2))")
1359 /*****************************************************************************
1360 * IInternetZoneManager interface
1365 uuid(79EAC9EF
-BAf9
-11CE
-8C82
-00AA004BA90B
),
1366 pointer_default(unique)
1368 interface IInternetZoneManager
: IUnknown
1370 typedef [unique] IInternetZoneManager
* LPURLZONEMANAGER
;
1372 typedef enum tagURLZONE
1374 URLZONE_INVALID
= -1,
1375 URLZONE_PREDEFINED_MIN
= 0,
1376 URLZONE_LOCAL_MACHINE
= 0,
1377 URLZONE_INTRANET
= 1,
1378 URLZONE_TRUSTED
= 2,
1379 URLZONE_INTERNET
= 3,
1380 URLZONE_UNTRUSTED
= 4,
1381 URLZONE_PREDEFINED_MAX
= 999,
1382 URLZONE_USER_MIN
= 1000,
1383 URLZONE_USER_MAX
= 10000,
1386 typedef enum tagURLTEMPLATE
1388 URLTEMPLATE_CUSTOM
= 0x00000,
1389 URLTEMPLATE_PREDEFINED_MIN
= 0x10000,
1390 URLTEMPLATE_LOW
= 0x10000,
1391 URLTEMPLATE_MEDLOW
= 0x10500,
1392 URLTEMPLATE_MEDIUM
= 0x11000,
1393 URLTEMPLATE_MEDHIGH
= 0x11500,
1394 URLTEMPLATE_HIGH
= 0x12000,
1395 URLTEMPLATE_PREDEFINED_MAX
= 0x20000,
1399 ZAFLAGS_CUSTOM_EDIT
= 0x00000001,
1400 ZAFLAGS_ADD_SITES
= 0x00000002,
1401 ZAFLAGS_REQUIRE_VERIFICATION
= 0x00000004,
1402 ZAFLAGS_INCLUDE_PROXY_OVERRIDE
= 0x00000008,
1403 ZAFLAGS_INCLUDE_INTRANET_SITES
= 0x00000010,
1404 ZAFLAGS_NO_UI
= 0x00000020,
1405 ZAFLAGS_SUPPORTS_VERIFICATION
= 0x00000040,
1406 ZAFLAGS_UNC_AS_INTRANET
= 0x00000080,
1407 ZAFLAGS_DETECT_INTRANET
= 0x00000100,
1408 ZAFLAGS_USE_LOCKED_ZONES
= 0x00010000,
1409 ZAFLAGS_VERIFY_TEMPLATE_SETTINGS
= 0x00020000,
1410 ZAFLAGS_NO_CACHE
= 0x00040000,
1414 MAX_ZONE_PATH
= 260,
1415 MAX_ZONE_DESCRIPTION
= 200
1418 typedef struct _ZONEATTRIBUTES
{
1420 WCHAR szDisplayName
[MAX_ZONE_PATH
];
1421 WCHAR szDescription
[MAX_ZONE_DESCRIPTION
];
1422 WCHAR szIconPath
[MAX_ZONE_PATH
];
1423 DWORD dwTemplateMinLevel
;
1424 DWORD dwTemplateRecommended
;
1425 DWORD dwTemplateCurrentLevel
;
1427 } ZONEATTRIBUTES
, *LPZONEATTRIBUTES
;
1429 typedef enum _URLZONEREG
{
1435 HRESULT GetZoneAttributes
(
1437 [in, out, unique] ZONEATTRIBUTES
* pZoneAttributes
);
1439 HRESULT SetZoneAttributes
(
1441 [in] ZONEATTRIBUTES
* pZoneAttributes
);
1443 HRESULT GetZoneCustomPolicy
(
1445 [in] REFGUID guidKey
,
1446 [out, size_is(,*pcbPolicy
)] BYTE **ppPolicy
,
1447 [out] DWORD
* pcbPolicy
,
1448 [in] URLZONEREG ulrZoneReg
);
1450 HRESULT SetZoneCustomPolicy
(
1452 [in] REFGUID guidKey
,
1453 [in, size_is(pcbPolicy
)] BYTE *ppPolicy
,
1454 [in] DWORD pcbPolicy
,
1455 [in] URLZONEREG ulrZoneReg
);
1457 HRESULT GetZoneActionPolicy
(
1459 [in] DWORD dwAction
,
1460 [out, size_is(cbPolicy
)] BYTE* pPolicy
,
1461 [in] DWORD cbPolicy
,
1462 [in] URLZONEREG urlZoneReg
);
1464 HRESULT SetZoneActionPolicy
(
1466 [in] DWORD dwAction
,
1467 [in, size_is(cbPolicy
)] BYTE* pPolicy
,
1468 [in] DWORD cbPolicy
,
1469 [in] URLZONEREG urlZoneReg
);
1471 HRESULT PromptAction
(
1472 [in] DWORD dwAction
,
1473 [in] HWND hwndParent
,
1474 [in] LPCWSTR pwszUrl
,
1475 [in] LPCWSTR pwszText
,
1476 [in] DWORD dwPromptFlags
);
1479 [in] DWORD dwAction
,
1480 [in] LPCWSTR pwszUrl
,
1481 [in] LPCWSTR pwszText
,
1482 [in] DWORD dwLogFlags
);
1484 HRESULT CreateZoneEnumerator
(
1485 [out] DWORD
* pdwEnum
,
1486 [out] DWORD
* pdwCount
,
1487 [in] DWORD dwFlags
);
1492 [out] DWORD
* pdwZone
);
1494 HRESULT DestroyZoneEnumerator
(
1497 HRESULT CopyTemplatePoliciesToZone
(
1498 [in] DWORD dwTemplate
,
1500 [in] DWORD dwReserved
);
1503 /*****************************************************************************
1504 * IInternetZoneManagerEx interface
1509 uuid(A4C23339
-8E06
-431E-9BF4
-7E711C085648
),
1510 pointer_default(unique)
1512 interface IInternetZoneManagerEx
: IInternetZoneManager
1514 HRESULT GetZoneActionPolicyEx
(
1516 [in] DWORD dwAction
,
1517 [out, size_is(cbPolicy
)] BYTE *pPolicy
,
1518 [in] DWORD cbPolicy
,
1519 [in] URLZONEREG urlZoneReg
,
1520 [in] DWORD dwFlags
);
1522 HRESULT SetZoneActionPolicyEx
(
1524 [in] DWORD dwAction
,
1525 [in, size_is(cbPolicy
)] BYTE *pPolicy
,
1526 [in] DWORD cbPolicy
,
1527 [in] URLZONEREG urlZoneReg
,
1528 [in] DWORD dwFlags
);
1532 /*****************************************************************************
1533 * IInternetZoneManagerEx2 interface
1536 cpp_quote
("#define SECURITY_IE_STATE_GREEN 0")
1537 cpp_quote
("#define SECURITY_IE_STATE_RED 1")
1542 uuid(EDC17559
-DD5D
-4846-8EEF
-8BECBA5A4ABF
),
1543 pointer_default(unique)
1545 interface IInternetZoneManagerEx2
: IInternetZoneManagerEx
1547 HRESULT GetZoneAttributesEx
(
1549 [in, out, unique] ZONEATTRIBUTES
* pZoneAttributes
,
1550 [in] DWORD dwFlags
);
1552 HRESULT GetZoneSecurityState
(
1553 [in] DWORD dwZoneIndex
,
1554 [in] BOOL fRespectPolicy
,
1555 [in, out] LPDWORD pdwState
,
1556 [in, out] BOOL
*pfPolicyEncountered
);
1558 HRESULT GetIESecurityState
(
1559 [in] BOOL fRespectPolicy
,
1560 [in, out] LPDWORD pdwState
,
1561 [in, out] BOOL
*pfPolicyEncountered
,
1562 [in] BOOL fNoCache
);
1564 HRESULT FixInsecureSettings
(void);
1569 typedef struct _tagSOFTDISTINFO
1577 DWORD dwInstalledVersionMS
;
1578 DWORD dwInstalledVersionLS
;
1579 DWORD dwUpdateVersionMS
;
1580 DWORD dwUpdateVersionLS
;
1581 DWORD dwAdvertisedVersionMS
;
1582 DWORD dwAdvertisedVersionLS
;
1584 } SOFTDISTINFO
, *LPSOFTDISTINFO
;
1586 typedef struct _tagCODEBASEHOLD
1594 } CODEBASEHOLD
, *LPCODEBASEHOLD
;
1599 uuid(b15b8dc1
-c7e1
-11d0
-8680-00aa00bdcb71
),
1600 pointer_default(unique)
1602 interface ISoftDistExt
: IUnknown
1604 HRESULT ProcessSoftDist
(
1605 [in] LPCWSTR szCDFURL
,
1606 [in] IXMLElement
*pSoftDistElement
,
1607 [in, out] LPSOFTDISTINFO lpsdi
);
1609 HRESULT GetFirstCodeBase
(
1610 [in] LPWSTR
*szCodeBase
,
1611 [in] LPDWORD dwMaxSize
);
1613 HRESULT GetNextCodeBase
(
1614 [in] LPWSTR
*szCodeBase
,
1615 [in] LPDWORD dwMaxSize
);
1617 HRESULT AsyncInstallDistributionUnit
(
1619 [in] LPVOID lpReserved
,
1621 [in] LPCODEBASEHOLD lpcbh
);
1624 typedef enum _tagINTERNETFEATURELIST
1626 FEATURE_OBJECT_CACHING
,
1627 FEATURE_ZONE_ELEVATION
,
1628 FEATURE_MIME_HANDLING
,
1629 FEATURE_MIME_SNIFFING
,
1630 FEATURE_WINDOW_RESTRICTIONS
,
1631 FEATURE_WEBOC_POPUPMANAGEMENT
,
1633 FEATURE_DISABLE_MK_PROTOCOL
,
1634 FEATURE_LOCALMACHINE_LOCKDOWN
,
1635 FEATURE_SECURITYBAND
,
1636 FEATURE_RESTRICT_ACTIVEXINSTALL
,
1637 FEATURE_VALIDATE_NAVIGATE_URL
,
1638 FEATURE_RESTRICT_FILEDOWNLOAD
,
1639 FEATURE_ADDON_MANAGEMENT
,
1640 FEATURE_PROTOCOL_LOCKDOWN
,
1641 FEATURE_HTTP_USERNAME_PASSWORD_DISABLE
,
1642 FEATURE_SAFE_BINDTOOBJECT
,
1643 FEATURE_UNC_SAVEDFILECHECK
,
1644 FEATURE_GET_URL_DOM_FILEPATH_UNENCODED
,
1645 FEATURE_TABBED_BROWSING
,
1647 FEATURE_DISABLE_NAVIGATION_SOUNDS
,
1648 FEATURE_DISABLE_LEGACY_COMPRESSION
,
1649 FEATURE_FORCE_ADDR_AND_STATUS
,
1651 FEATURE_DISABLE_TELNET_PROTOCOL
,
1653 FEATURE_BLOCK_INPUT_PROMPTS
,
1655 } INTERNETFEATURELIST
;
1657 cpp_quote
("#define SET_FEATURE_ON_THREAD 0x00000001")
1658 cpp_quote
("#define SET_FEATURE_ON_PROCESS 0x00000002")
1659 cpp_quote
("#define SET_FEATURE_IN_REGISTRY 0x00000004")
1660 cpp_quote
("#define SET_FEATURE_ON_THREAD_LOCALMACHINE 0x00000008")
1661 cpp_quote
("#define SET_FEATURE_ON_THREAD_INTRANET 0x00000010")
1662 cpp_quote
("#define SET_FEATURE_ON_THREAD_TRUSTED 0x00000020")
1663 cpp_quote
("#define SET_FEATURE_ON_THREAD_INTERNET 0x00000040")
1664 cpp_quote
("#define SET_FEATURE_ON_THREAD_RESTRICTED 0x00000080")
1666 cpp_quote
("#define GET_FEATURE_FROM_THREAD 0x00000001")
1667 cpp_quote
("#define GET_FEATURE_FROM_PROCESS 0x00000002")
1668 cpp_quote
("#define GET_FEATURE_FROM_REGISTRY 0x00000004")
1669 cpp_quote
("#define GET_FEATURE_FROM_THREAD_LOCALMACHINE 0x00000008")
1670 cpp_quote
("#define GET_FEATURE_FROM_THREAD_INTRANET 0x00000010")
1671 cpp_quote
("#define GET_FEATURE_FROM_THREAD_TRUSTED 0x00000020")
1672 cpp_quote
("#define GET_FEATURE_FROM_THREAD_INTERNET 0x00000040")
1673 cpp_quote
("#define GET_FEATURE_FROM_THREAD_RESTRICTED 0x00000080")
1675 typedef struct _tagPROTOCOLFILTERDATA
{
1677 IInternetProtocolSink
*pProtocolSink
;
1678 IInternetProtocol
*pProtocol
;
1680 DWORD dwFilterFlags
;
1681 } PROTOCOLFILTERDATA
;
1683 /*****************************************************************************
1688 uuid(a39ee748
-6a27
-4817-a6f2
-13914bef5890
),
1689 pointer_default(unique)
1691 interface IUri
: IUnknown
1695 Uri_PROPERTY_ABSOLUTE_URI
= 0,
1696 Uri_PROPERTY_STRING_START
= Uri_PROPERTY_ABSOLUTE_URI
,
1697 Uri_PROPERTY_AUTHORITY
= 1,
1698 Uri_PROPERTY_DISPLAY_URI
= 2,
1699 Uri_PROPERTY_DOMAIN
= 3,
1700 Uri_PROPERTY_EXTENSION
= 4,
1701 Uri_PROPERTY_FRAGMENT
= 5,
1702 Uri_PROPERTY_HOST
= 6,
1703 Uri_PROPERTY_PASSWORD
= 7,
1704 Uri_PROPERTY_PATH
= 8,
1705 Uri_PROPERTY_PATH_AND_QUERY
= 9,
1706 Uri_PROPERTY_QUERY
= 10,
1707 Uri_PROPERTY_RAW_URI
= 11,
1708 Uri_PROPERTY_SCHEME_NAME
= 12,
1709 Uri_PROPERTY_USER_INFO
= 13,
1710 Uri_PROPERTY_USER_NAME
= 14,
1711 Uri_PROPERTY_STRING_LAST
= Uri_PROPERTY_USER_NAME
,
1712 Uri_PROPERTY_HOST_TYPE
= 15,
1713 Uri_PROPERTY_DWORD_START
= Uri_PROPERTY_HOST_TYPE
,
1714 Uri_PROPERTY_PORT
= 16,
1715 Uri_PROPERTY_SCHEME
= 17,
1716 Uri_PROPERTY_ZONE
= 18,
1717 Uri_PROPERTY_DWORD_LAST
= Uri_PROPERTY_ZONE
1722 Uri_HOST_UNKNOWN
= 0,
1729 HRESULT GetPropertyBSTR
(
1730 [in] Uri_PROPERTY uriProp
,
1731 [out] BSTR *pbstrProperty
,
1732 [in] DWORD dwFlags
);
1734 HRESULT GetPropertyLength
(
1735 [in] Uri_PROPERTY uriProp
,
1736 [out] DWORD
*pcchProperty
,
1737 [in] DWORD dwFlags
);
1739 HRESULT GetPropertyDWORD
(
1740 [in] Uri_PROPERTY uriProp
,
1741 [out] DWORD
*pdwProperty
,
1742 [in] DWORD dwFlags
);
1744 HRESULT HasProperty
(
1745 [in] Uri_PROPERTY uriProp
,
1746 [out] BOOL
*pfHasProperty
);
1748 HRESULT GetAbsoluteUri
(
1749 [out] BSTR *pbstrAbsoluteUri
);
1751 HRESULT GetAuthority
(
1752 [out] BSTR *pbstrAuthority
);
1754 HRESULT GetDisplayUri
(
1755 [out] BSTR *pbstrDisplayString
);
1758 [out] BSTR *pbstrDomain
);
1760 HRESULT GetExtension
(
1761 [out] BSTR *pbstrExtension
);
1763 HRESULT GetFragment
(
1764 [out] BSTR *pbstrFragment
);
1767 [out] BSTR *pbstrHost
);
1769 HRESULT GetPassword
(
1770 [out] BSTR *pbstrPassword
);
1773 [out] BSTR *pbstrPath
);
1775 HRESULT GetPathAndQuery
(
1776 [out] BSTR *pbstrPathAndQuery
);
1779 [out] BSTR *pbstrQuery
);
1782 [out] BSTR *pbstrRawUri
);
1784 HRESULT GetSchemeName
(
1785 [out] BSTR *pbstrSchemeName
);
1787 HRESULT GetUserInfo
(
1788 [out] BSTR *pbstrUserInfo
);
1790 HRESULT GetUserName
(
1791 [out] BSTR *pbstrUserName
);
1793 HRESULT GetHostType
(
1794 [out] DWORD
*pdwHostType
);
1797 [out] DWORD
*pdwPort
);
1800 [out] DWORD
*pdwScheme
);
1803 [out] DWORD
*pdwZone
);
1805 HRESULT GetProperties
(
1806 [out] LPDWORD pdwFlags
);
1810 [out] BOOL
*pfEqual
);
1813 cpp_quote
("HRESULT WINAPI CreateUri(LPCWSTR,DWORD,DWORD_PTR,IUri**);")
1814 cpp_quote
("HRESULT WINAPI CreateUriWithFragment(LPCWSTR,LPCWSTR,DWORD,DWORD_PTR,IUri**);")
1815 cpp_quote
("HRESULT WINAPI CreateUriFromMultiByteString(LPCSTR,DWORD,DWORD,DWORD,DWORD_PTR,IUri**);")
1817 cpp_quote
("#define Uri_HAS_ABSOLUTE_URI (1 << Uri_PROPERTY_ABSOLUTE_URI)")
1818 cpp_quote
("#define Uri_HAS_AUTHORITY (1 << Uri_PROPERTY_AUTHORITY)")
1819 cpp_quote
("#define Uri_HAS_DISPLAY_URI (1 << Uri_PROPERTY_DISPLAY_URI)")
1820 cpp_quote
("#define Uri_HAS_DOMAIN (1 << Uri_PROPERTY_DOMAIN)")
1821 cpp_quote
("#define Uri_HAS_EXTENSION (1 << Uri_PROPERTY_EXTENSION)")
1822 cpp_quote
("#define Uri_HAS_FRAGMENT (1 << Uri_PROPERTY_FRAGMENT)")
1823 cpp_quote
("#define Uri_HAS_HOST (1 << Uri_PROPERTY_HOST)")
1824 cpp_quote
("#define Uri_HAS_PASSWORD (1 << Uri_PROPERTY_PASSWORD)")
1825 cpp_quote
("#define Uri_HAS_PATH (1 << Uri_PROPERTY_PATH)")
1826 cpp_quote
("#define Uri_HAS_QUERY (1 << Uri_PROPERTY_QUERY)")
1827 cpp_quote
("#define Uri_HAS_RAW_URI (1 << Uri_PROPERTY_RAW_URI)")
1828 cpp_quote
("#define Uri_HAS_SCHEME_NAME (1 << Uri_PROPERTY_SCHEME_NAME)")
1829 cpp_quote
("#define Uri_HAS_USER_NAME (1 << Uri_PROPERTY_USER_NAME)")
1830 cpp_quote
("#define Uri_HAS_PATH_AND_QUERY (1 << Uri_PROPERTY_PATH_AND_QUERY)")
1831 cpp_quote
("#define Uri_HAS_USER_INFO (1 << Uri_PROPERTY_USER_INFO)")
1832 cpp_quote
("#define Uri_HAS_HOST_TYPE (1 << Uri_PROPERTY_HOST_TYPE)")
1833 cpp_quote
("#define Uri_HAS_PORT (1 << Uri_PROPERTY_PORT)")
1834 cpp_quote
("#define Uri_HAS_SCHEME (1 << Uri_PROPERTY_SCHEME)")
1835 cpp_quote
("#define Uri_HAS_ZONE (1 << Uri_PROPERTY_ZONE)")
1837 cpp_quote
("#define Uri_CREATE_ALLOW_RELATIVE 0x0001")
1838 cpp_quote
("#define Uri_CREATE_ALLOW_IMPLICIT_WILDCARD_SCHEME 0x0002")
1839 cpp_quote
("#define Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME 0x0004")
1840 cpp_quote
("#define Uri_CREATE_NOFRAG 0x0008")
1841 cpp_quote
("#define Uri_CREATE_NO_CANONICALIZE 0x0010")
1842 cpp_quote
("#define Uri_CREATE_CANONICALIZE 0x0100")
1843 cpp_quote
("#define Uri_CREATE_FILE_USE_DOS_PATH 0x0020")
1844 cpp_quote
("#define Uri_CREATE_DECODE_EXTRA_INFO 0x0040")
1845 cpp_quote
("#define Uri_CREATE_NO_DECODE_EXTRA_INFO 0x0080")
1846 cpp_quote
("#define Uri_CREATE_CRACK_UNKNOWN_SCHEMES 0x0200")
1847 cpp_quote
("#define Uri_CREATE_NO_CRACK_UNKNOWN_SCHEMES 0x0400")
1848 cpp_quote
("#define Uri_CREATE_PRE_PROCESS_HTML_URI 0x0800")
1849 cpp_quote
("#define Uri_CREATE_NO_PRE_PROCESS_HTML_URI 0x1000")
1850 cpp_quote
("#define Uri_CREATE_IE_SETTINGS 0x2000")
1851 cpp_quote
("#define Uri_CREATE_NO_IE_SETTINGS 0x4000")
1852 cpp_quote
("#define Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS 0x8000")
1853 cpp_quote
("#define Uri_CREATE_NORMALIZE_INTL_CHARACTERS 0x00010000")
1854 cpp_quote
("#define Uri_CREATE_CANONICALIZE_ABSOLUTE 0x00020000")
1856 cpp_quote
("#define Uri_DISPLAY_NO_FRAGMENT 0x00000001")
1857 cpp_quote
("#define Uri_PUNYCODE_IDN_HOST 0x00000002")
1858 cpp_quote
("#define Uri_DISPLAY_IDN_HOST 0x00000004")
1860 cpp_quote
("#define Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8 0x00000001")
1861 cpp_quote
("#define Uri_ENCODING_USER_INFO_AND_PATH_IS_CP 0x00000002")
1862 cpp_quote
("#define Uri_ENCODING_HOST_IS_IDN 0x00000004")
1863 cpp_quote
("#define Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8 0x00000008")
1864 cpp_quote
("#define Uri_ENCODING_HOST_IS_PERCENT_ENCODED_CP 0x00000010")
1865 cpp_quote
("#define Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8 0x00000020")
1866 cpp_quote
("#define Uri_ENCODING_QUERY_AND_FRAGMENT_IS_CP 0x00000040")
1867 cpp_quote
("#define Uri_ENCODING_RFC (Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8|Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8|Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8)")
1869 cpp_quote
("#define UriBuilder_USE_ORIGINAL_FLAGS 0x00000001")
1871 /*****************************************************************************
1872 * IUriContainer interface
1877 uuid(a158a630
-ed6f
-45fb
-b987
-f68676f57752
),
1878 pointer_default(unique)
1880 interface IUriContainer
: IUnknown
1882 HRESULT GetIUri
([out] IUri
**ppIUri
);
1885 /*****************************************************************************
1886 * IUriBuilder interface
1891 uuid(4221b2e1
-8955-46c0
-bd5b
-de9897565de7
),
1892 pointer_default(unique)
1894 interface IUriBuilder
: IUnknown
1896 HRESULT CreateUriSimple
(
1897 [in] DWORD dwAllowEncodingPropertyMask
,
1898 [in] DWORD_PTR dwReserved
,
1899 [out] IUri
**ppIUri
);
1902 [in] DWORD dwCreateFlags
,
1903 [in] DWORD dwAllowEncodingPropertyMask
,
1904 [in] DWORD_PTR dwReserved
,
1905 [out] IUri
**ppIUri
);
1907 HRESULT CreateUriWithFlags
(
1908 [in] DWORD dwCreateFlags
,
1909 [in] DWORD dwUriBuilderFlags
,
1910 [in] DWORD dwAllowEncodingPropertyMask
,
1911 [in] DWORD_PTR dwReserved
,
1912 [out] IUri
**ppIUri
);
1915 [out] IUri
**ppIUri
);
1918 [in, unique] IUri
*pIUri
);
1920 HRESULT GetFragment
(
1921 [out] DWORD
*pcchFragment
,
1922 [out] LPCWSTR
*ppwzFragment
);
1925 [out] DWORD
*pcchHost
,
1926 [out] LPCWSTR
*ppwzHost
);
1928 HRESULT GetPassword
(
1929 [out] DWORD
*pcchPassword
,
1930 [out] LPCWSTR
*ppwzPassword
);
1933 [out] DWORD
*pcchPath
,
1934 [out] LPCWSTR
*ppwzPath
);
1937 [out] BOOL
*pfHasPort
,
1938 [out] DWORD
*pdwPort
);
1941 [out] DWORD
*pcchQuery
,
1942 [out] LPCWSTR
*ppwzQuery
);
1944 HRESULT GetSchemeName
(
1945 [out] DWORD
*pcchSchemeName
,
1946 [out] LPCWSTR
*ppwzSchemeName
);
1948 HRESULT GetUserName
(
1949 [out] DWORD
*pcchUserName
,
1950 [out] LPCWSTR
*ppwzUserName
);
1952 HRESULT SetFragment
(
1953 [in] LPCWSTR pwzNewValue
);
1956 [in] LPCWSTR pwzNewValue
);
1958 HRESULT SetPassword
(
1959 [in] LPCWSTR pwzNewValue
);
1962 [in] LPCWSTR pwzNewValue
);
1966 [in] DWORD dwNewValue
);
1969 [in] LPCWSTR pwzNewValue
);
1971 HRESULT SetSchemeName
(
1972 [in] LPCWSTR pwzNewValue
);
1974 HRESULT SetUserName
(
1975 [in] LPCWSTR pwzNewValue
);
1977 HRESULT RemoveProperties
(
1978 [in] DWORD dwPropertyMask
);
1980 HRESULT HasBeenModified
(
1981 [out] BOOL
*pfModified
);
1984 cpp_quote
("HRESULT WINAPI CreateIUriBuilder(IUri*,DWORD,DWORD_PTR,IUriBuilder**);")
1986 /*****************************************************************************
1987 * IUriBuilderFactory interface
1992 uuid(e982ce48
-0b96
-440c
-bc37
-0c869b27a29e
),
1993 pointer_default(unique)
1995 interface IUriBuilderFactory
: IUnknown
1997 HRESULT CreateIUriBuilder
(
1999 [in] DWORD_PTR dwReserved
,
2000 [out] IUriBuilder
**ppIUriBuilder
);
2002 HRESULT CreateInitializedIUriBuilder
(
2004 [in] DWORD_PTR dwReserved
,
2005 [out] IUriBuilder
**ppIUriBuilder
);
2008 /*****************************************************************************
2009 * IInternetProtocolEx interface
2014 uuid(c7a98e66
-1010-492c
-a1c8
-c809e1f75905
),
2015 pointer_default(unique)
2017 interface IInternetProtocolEx
: IInternetProtocol
2021 [in] IInternetProtocolSink
*pOIProtSink
,
2022 [in] IInternetBindInfo
*pOIBindInfo
,
2024 [in] HANDLE *dwReserved
);
2027 /*****************************************************************************
2028 * IGetBindHandle interface
2033 uuid(AF0FF408
-129D
-4b20
-91F0
-02BD23D88352
),
2034 pointer_default(unique)
2036 interface IGetBindHandle
: IUnknown
2038 typedef [unique] IGetBindHandle
*LPGETBINDHANDLE
;
2041 BINDHANDLETYPES_APPCACHE
= 0x00000000,
2042 BINDHANDLETYPES_DEPENDENCY
= 0x00000001,
2043 BINDHANDLETYPES_COUNT
2046 HRESULT GetBindHandle
(
2047 [in] BINDHANDLETYPES enumRequestedHandle
,
2048 [out] HANDLE *pRetHandle
);
2051 cpp_quote
("#define CONFIRMSAFETYACTION_LOADOBJECT 0x00000001")
2053 struct CONFIRMSAFETY
2060 cpp_quote
("EXTERN_C const GUID GUID_CUSTOM_CONFIRMOBJECTSAFETY;")
2062 cpp_quote
("DEFINE_GUID(CLSID_InternetSecurityManager, 0x7b8a2d94, 0x0ac9, 0x11d1, 0x89, 0x6c, 0x00, 0xc0, 0x4f, 0xB6, 0xbf, 0xc4);")
2063 cpp_quote
("DEFINE_GUID(CLSID_InternetZoneManager, 0x7B8A2D95, 0x0AC9, 0x11D1, 0x89, 0x6C, 0x00, 0xC0, 0x4F, 0xB6, 0xBF, 0xC4);")
2064 cpp_quote
("DEFINE_GUID(IID_IAsyncMoniker, 0x79EAC9D3, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
2065 cpp_quote
("DEFINE_GUID(IID_IAsyncBindCtx, 0x79EAC9D4, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
2066 cpp_quote
("DEFINE_GUID(CLSID_StdURLMoniker, 0x79EAC9E0, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
2067 cpp_quote
("DEFINE_GUID(CLSID_DeCompMimeFilter, 0x8f6b0360, 0xb80d, 0x11d0, 0xa9,0xb3, 0x00,0x60,0x97,0x94,0x23,0x11);")
2069 cpp_quote
("DEFINE_GUID(CLSID_CdlProtocol, 0x3dd53d40, 0x7b8b, 0x11D0, 0xb0,0x13, 0x00,0xaa,0x00,0x59,0xce,0x02);")
2070 cpp_quote
("DEFINE_GUID(CLSID_FileProtocol, 0x79EAC9E7, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
2071 cpp_quote
("DEFINE_GUID(CLSID_FtpProtocol, 0x79EAC9E3, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
2072 cpp_quote
("DEFINE_GUID(CLSID_GopherProtocol, 0x79EAC9E4, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
2073 cpp_quote
("DEFINE_GUID(CLSID_HttpProtocol, 0x79EAC9E2, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
2074 cpp_quote
("DEFINE_GUID(CLSID_HttpSProtocol, 0x79EAC9E5, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
2075 cpp_quote
("DEFINE_GUID(CLSID_MkProtocol, 0x79EAC9E6, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
2077 cpp_quote
("#define URLMON_OPTION_USERAGENT 0x10000001")
2078 cpp_quote
("#define URLMON_OPTION_USERAGENT_REFRESH 0x10000002")
2079 cpp_quote
("#define URLMON_OPTION_URL_ENCODING 0x10000004")
2081 cpp_quote
("#define MK_S_ASYNCHRONOUS _HRESULT_TYPEDEF_(0x000401E8)")
2082 cpp_quote
("#ifndef S_ASYNCHRONOUS")
2083 cpp_quote
("#define S_ASYNCHRONOUS MK_S_ASYNCHRONOUS")
2086 cpp_quote
("#define INET_E_ERROR_FIRST _HRESULT_TYPEDEF_(0x800C0002)")
2087 cpp_quote
("#define INET_E_INVALID_URL _HRESULT_TYPEDEF_(0x800C0002)")
2088 cpp_quote
("#define INET_E_NO_SESSION _HRESULT_TYPEDEF_(0x800C0003)")
2089 cpp_quote
("#define INET_E_CANNOT_CONNECT _HRESULT_TYPEDEF_(0x800C0004)")
2090 cpp_quote
("#define INET_E_RESOURCE_NOT_FOUND _HRESULT_TYPEDEF_(0x800C0005)")
2091 cpp_quote
("#define INET_E_OBJECT_NOT_FOUND _HRESULT_TYPEDEF_(0x800C0006)")
2092 cpp_quote
("#define INET_E_DATA_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x800C0007)")
2093 cpp_quote
("#define INET_E_DOWNLOAD_FAILURE _HRESULT_TYPEDEF_(0x800C0008)")
2094 cpp_quote
("#define INET_E_AUTHENTICATION_REQUIRED _HRESULT_TYPEDEF_(0x800C0009)")
2095 cpp_quote
("#define INET_E_NO_VALID_MEDIA _HRESULT_TYPEDEF_(0x800C000A)")
2096 cpp_quote
("#define INET_E_CONNECTION_TIMEOUT _HRESULT_TYPEDEF_(0x800C000B)")
2097 cpp_quote
("#define INET_E_INVALID_REQUEST _HRESULT_TYPEDEF_(0x800C000C)")
2098 cpp_quote
("#define INET_E_UNKNOWN_PROTOCOL _HRESULT_TYPEDEF_(0x800C000D)")
2099 cpp_quote
("#define INET_E_SECURITY_PROBLEM _HRESULT_TYPEDEF_(0x800C000E)")
2100 cpp_quote
("#define INET_E_CANNOT_LOAD_DATA _HRESULT_TYPEDEF_(0x800C000F)")
2101 cpp_quote
("#define INET_E_CANNOT_INSTANTIATE_OBJECT _HRESULT_TYPEDEF_(0x800C0010)")
2102 cpp_quote
("#define INET_E_USE_DEFAULT_PROTOCOLHANDLER _HRESULT_TYPEDEF_(0x800C0011)")
2103 cpp_quote
("#define INET_E_USE_DEFAULT_SETTING _HRESULT_TYPEDEF_(0x800C0012L)")
2104 cpp_quote
("#define INET_E_DEFAULT_ACTION INET_E_USE_DEFAULT_PROTOCOLHANDLER")
2105 cpp_quote
("#define INET_E_QUERYOPTION_UNKNOWN _HRESULT_TYPEDEF_(0x800C0013)")
2106 cpp_quote
("#define INET_E_REDIRECT_FAILED _HRESULT_TYPEDEF_(0x800C0014)")
2107 cpp_quote
("#define INET_E_REDIRECT_TO_DIR _HRESULT_TYPEDEF_(0x800C0015)")
2108 cpp_quote
("#define INET_E_CANNOT_LOCK_REQUEST _HRESULT_TYPEDEF_(0x800C0016)")
2109 cpp_quote
("#define INET_E_USE_EXTENDED_BINDING _HRESULT_TYPEDEF_(0x800C0017)")
2110 cpp_quote
("#define INET_E_TERMINATED_BIND _HRESULT_TYPEDEF_(0x800C0018)")
2111 cpp_quote
("#define INET_E_INVALID_CERTIFICATE _HRESULT_TYPEDEF_(0x800C0019)")
2112 cpp_quote
("#define INET_E_CODE_DOWNLOAD_DECLINED _HRESULT_TYPEDEF_(0x800C0100)")
2113 cpp_quote
("#define INET_E_RESULT_DISPATCHED _HRESULT_TYPEDEF_(0x800C0200)")
2114 cpp_quote
("#define INET_E_CANNOT_REPLACE_SFP_FILE _HRESULT_TYPEDEF_(0x800C0300)")
2115 cpp_quote
("#define INET_E_CODE_INSTALL_SUPPRESSED _HRESULT_TYPEDEF_(0x800C0400)")
2116 cpp_quote
("#define INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY _HRESULT_TYPEDEF_(0x800C0500)")
2117 cpp_quote
("#define INET_E_DOWNLOAD_BLOCKED_BY_INPRIVATE _HRESULT_TYPEDEF_(0x800C0501)")
2118 cpp_quote
("#define INET_E_ERROR_LAST INET_E_DOWNLOAD_BLOCKED_BY_INPRIVATE")
2120 cpp_quote
("HRESULT WINAPI CoGetClassObjectFromURL(REFCLSID, LPCWSTR, DWORD, DWORD, LPCWSTR, LPBINDCTX, DWORD, LPVOID, REFIID, LPVOID*);")
2121 cpp_quote
("HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk);")
2122 cpp_quote
("HRESULT WINAPI CreateURLMonikerEx(IMoniker*,LPCWSTR,IMoniker**,DWORD);")
2123 cpp_quote
("HRESULT WINAPI CreateURLMonikerEx2(IMoniker*,IUri*,IMoniker**,DWORD);")
2124 cpp_quote
("HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved);")
2125 cpp_quote
("HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD);")
2126 cpp_quote
("HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN,LPCSTR,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
2127 cpp_quote
("HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN,LPCWSTR,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
2128 cpp_quote
("HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN,LPCSTR,LPSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
2129 cpp_quote
("HRESULT WINAPI URLDownloadToCacheFileW(LPUNKNOWN,LPCWSTR,LPWSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
2130 cpp_quote
("HRESULT WINAPI CoInternetGetSession(DWORD,IInternetSession**,DWORD);")
2131 cpp_quote
("HRESULT WINAPI MkParseDisplayNameEx(IBindCtx*,LPCWSTR,ULONG*,IMoniker**);")
2132 cpp_quote
("HRESULT WINAPI IsAsyncMoniker(IMoniker* pmk);")
2133 cpp_quote
("HRESULT WINAPI CreateAsyncBindCtx(DWORD, IBindStatusCallback*, IEnumFORMATETC*, IBindCtx**);")
2134 cpp_quote
("HRESULT WINAPI CreateAsyncBindCtxEx(IBindCtx*,DWORD,IBindStatusCallback*,IEnumFORMATETC*,IBindCtx**,DWORD);")
2135 cpp_quote
("HRESULT WINAPI CoInternetCreateSecurityManager(IServiceProvider*,IInternetSecurityManager**,DWORD);")
2136 cpp_quote
("HRESULT WINAPI CoInternetCombineUrl(LPCWSTR,LPCWSTR,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
2137 cpp_quote
("HRESULT WINAPI CoInternetCombineUrlEx(IUri*,LPCWSTR,DWORD,IUri**,DWORD_PTR);")
2138 cpp_quote
("HRESULT WINAPI CoInternetCompareUrl(LPCWSTR,LPCWSTR,DWORD);")
2139 cpp_quote
("HRESULT WINAPI CoInternetCombineIUri(IUri*,IUri*,DWORD,IUri**,DWORD_PTR);")
2140 cpp_quote
("HRESULT WINAPI CoInternetCreateZoneManager(IServiceProvider*, IInternetZoneManager**, DWORD);")
2141 cpp_quote
("HRESULT WINAPI CoInternetParseUrl(LPCWSTR,PARSEACTION,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
2142 cpp_quote
("HRESULT WINAPI CoInternetParseIUri(IUri*,PARSEACTION,DWORD,LPWSTR,DWORD,DWORD*,DWORD_PTR);")
2143 cpp_quote
("HRESULT WINAPI CoInternetQueryInfo(LPCWSTR,QUERYOPTION,DWORD,LPVOID,DWORD,DWORD*,DWORD);")
2144 cpp_quote
("HRESULT WINAPI CoInternetSetFeatureEnabled(INTERNETFEATURELIST,DWORD,BOOL);")
2145 cpp_quote
("HRESULT WINAPI CoInternetIsFeatureEnabled(INTERNETFEATURELIST,DWORD dwFlags);")
2146 cpp_quote
("HRESULT WINAPI CoInternetIsFeatureEnabledForUrl(INTERNETFEATURELIST,DWORD,LPCWSTR,IInternetSecurityManager*);")
2147 cpp_quote
("HRESULT WINAPI CoInternetGetSecurityUrl(LPCWSTR,LPWSTR*,PSUACTION,DWORD);")
2148 cpp_quote
("HRESULT WINAPI CoInternetGetSecurityUrlEx(IUri*,IUri**,PSUACTION,DWORD_PTR);")
2149 cpp_quote
("HRESULT WINAPI AsyncInstallDistributionUnit(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,DWORD,LPCWSTR,IBindCtx*,LPVOID,DWORD);")
2150 cpp_quote
("HRESULT WINAPI CreateFormatEnumerator(UINT,FORMATETC*,IEnumFORMATETC**);")
2151 cpp_quote
("HRESULT WINAPI GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi);")
2152 cpp_quote
("HRESULT WINAPI FaultInIEFeature(HWND,uCLSSPEC*,QUERYCONTEXT*,DWORD);")
2153 cpp_quote
("HRESULT WINAPI FindMimeFromData(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,LPWSTR*,DWORD);")
2154 cpp_quote
("HRESULT WINAPI GetClassFileOrMime(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,CLSID*);")
2155 cpp_quote
("HRESULT WINAPI HlinkGoBack(IUnknown*);")
2156 cpp_quote
("HRESULT WINAPI HlinkGoForward(IUnknown*);")
2157 cpp_quote
("HRESULT WINAPI HlinkNavigateMoniker(IUnknown*,IMoniker*);")
2158 cpp_quote
("HRESULT WINAPI HlinkNavigateString(IUnknown*,LPCWSTR);")
2159 cpp_quote
("HRESULT WINAPI HlinkSimpleNavigateToMoniker(IMoniker*,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
2160 cpp_quote
("HRESULT WINAPI HlinkSimpleNavigateToString(LPCWSTR,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
2161 cpp_quote
("HRESULT WINAPI IsValidURL(LPBC,LPCWSTR,DWORD);")
2162 cpp_quote
("HRESULT WINAPI ObtainUserAgentString(DWORD,LPSTR,DWORD*);")
2163 cpp_quote
("HRESULT WINAPI RegisterFormatEnumerator(LPBC,IEnumFORMATETC*,DWORD);")
2164 cpp_quote
("HRESULT WINAPI RevokeFormatEnumerator(LPBC,IEnumFORMATETC*);")
2165 cpp_quote
("HRESULT WINAPI RevokeBindStatusCallback(LPBC,IBindStatusCallback*);")
2166 cpp_quote
("HRESULT WINAPI CopyStgMedium(const STGMEDIUM*,STGMEDIUM*);")
2167 cpp_quote
("HRESULT WINAPI CopyBindInfo(const BINDINFO*,BINDINFO*);")
2168 cpp_quote
("void WINAPI ReleaseBindInfo(BINDINFO*);")
2169 cpp_quote
("HRESULT WINAPI UrlMkGetSessionOption(DWORD,LPVOID,DWORD,DWORD*,DWORD);")
2170 cpp_quote
("HRESULT WINAPI UrlMkSetSessionOption(DWORD,LPVOID,DWORD,DWORD);")
2171 cpp_quote
("HRESULT WINAPI URLOpenStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
2172 cpp_quote
("HRESULT WINAPI URLOpenStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
2173 cpp_quote
("HRESULT WINAPI URLOpenPullStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
2174 cpp_quote
("HRESULT WINAPI URLOpenPullStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
2175 cpp_quote
("HRESULT WINAPI URLOpenBlockingStreamA(LPUNKNOWN,LPCSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
2176 cpp_quote
("HRESULT WINAPI URLOpenBlockingStreamW(LPUNKNOWN,LPCWSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
2178 cpp_quote
("#define OInetCombineUrl CoInternetCombineUrl")
2179 cpp_quote
("#define OInetCompareUrl CoInternetCompareUrl")
2180 cpp_quote
("#define OInetGetSession CoInternetGetSession")
2182 cpp_quote
("BOOL WINAPI IsLoggingEnabledA(LPCSTR);")
2183 cpp_quote
("BOOL WINAPI IsLoggingEnabledW(LPCWSTR);")
2184 cpp_quote
("#define IsLoggingEnabled WINELIB_NAME_AW(IsLoggingEnabled)")
2186 cpp_quote
("#define MKSYS_URLMONIKER 6")
2187 cpp_quote
("#define URL_MK_LEGACY 0")
2188 cpp_quote
("#define URL_MK_UNIFORM 1")
2189 cpp_quote
("#define URL_MK_NO_CANONICALIZE 2")