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";
23 /*import "msxml.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_VERFIEDMIMETYPEAVAILABLE,
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
226 HRESULT OnStartBinding(
227 [in] DWORD dwReserved,
228 [in] IBinding * pib);
231 [out] LONG * pnPriority);
233 HRESULT OnLowResource(
234 [in] DWORD reserved);
237 [in] ULONG ulProgress,
238 [in] ULONG ulProgressMax,
239 [in] ULONG ulStatusCode,
240 [in] LPCWSTR szStatusText);
242 HRESULT OnStopBinding(
243 [in] HRESULT hresult,
244 [in, unique] LPCWSTR szError);
248 [out] DWORD *grfBINDF,
249 [in, out, unique] BINDINFO * pbindinfo);
251 [call_as(GetBindInfo)]
252 HRESULT RemoteGetBindInfo(
253 [out] DWORD *grfBINDF,
254 [in, out, unique] RemBINDINFO * pbindinfo,
255 [in, out, unique] RemSTGMEDIUM* pstgmed);
258 HRESULT OnDataAvailable(
261 [in] FORMATETC* pformatetc,
262 [in] STGMEDIUM* pstgmed);
264 [call_as(OnDataAvailable)]
265 HRESULT RemoteOnDataAvailable(
268 [in] RemFORMATETC *pformatetc,
269 [in] RemSTGMEDIUM* pstgmed);
271 HRESULT OnObjectAvailable(
273 [in, iid_is(riid)] IUnknown* punk);
276 /*****************************************************************************
277 * IAuthenticate interface
282 uuid(79EAC9D0-BAf9-11CE-8C82-00AA004BA90B),
283 pointer_default(unique)
285 interface IAuthenticate : IUnknown
287 typedef [unique] IAuthenticate *LPAUTHENTICATION;
289 HRESULT Authenticate(
291 [out] LPWSTR *pszUsername,
292 [out] LPWSTR *pszPassword);
295 /*****************************************************************************
296 * IBindHost interface
298 cpp_quote("#define SID_IBindHost IID_IBindHost")
299 cpp_quote("#define SID_SBindHost IID_IBindHost")
302 uuid(fc4801a1-2ba9-11cf-a229-00aa003d7352),
303 pointer_default(unique)
305 interface IBindHost : IUnknown
307 typedef [unique] IBindHost *LPBINDHOST;
309 HRESULT CreateMoniker(
310 [in] LPOLESTR szName,
312 [out] IMoniker** ppmk,
313 [in] DWORD dwReserved);
316 HRESULT MonikerBindToStorage(
319 [in] IBindStatusCallback *pBSC,
321 [out] void **ppvObj);
323 [call_as(MonikerBindToStorage)]
324 HRESULT RemoteMonikerBindToStorage(
325 [in, unique] IMoniker *pMk,
326 [in, unique] IBindCtx *pBC,
327 [in, unique] IBindStatusCallback *pBSC,
329 [out, iid_is(riid)] IUnknown **ppvObj);
332 HRESULT MonikerBindToObject(
335 [in] IBindStatusCallback *pBSC,
337 [out] void **ppvObj);
339 [call_as(MonikerBindToObject)]
340 HRESULT RemoteMonikerBindToObject(
341 [in, unique] IMoniker *pMk,
342 [in, unique] IBindCtx *pBC,
343 [in, unique] IBindStatusCallback *pBSC,
345 [out, iid_is(riid)] IUnknown **ppvObj);
349 /*****************************************************************************
350 * IWinInetInfo interface
354 uuid(79eac9d6-bafa-11ce-8c82-00aa004ba90b),
355 pointer_default(unique)
357 interface IWinInetInfo : IUnknown
359 typedef [unique] IWinInetInfo *LPWININETINFO;
364 [in, out, size_is(*pcbBuf)] LPVOID pBuffer,
365 [in, out] DWORD *pcbBuf);
367 [call_as(QueryOption)]
368 HRESULT RemoteQueryOption(
370 [in, out, size_is(*pcbBuf)] BYTE *pBuffer,
371 [in, out] DWORD *pcbBuf);
376 /*****************************************************************************
377 * IWinInetHttpInfo interface
381 uuid(79eac9d8-bafa-11ce-8c82-00aa004ba90b),
382 pointer_default(unique)
384 interface IWinInetHttpInfo : IWinInetInfo
386 typedef [unique] IWinInetHttpInfo *LPWININETHTTPINFO;
391 [in, out,size_is(*pcbBuf)] LPVOID pBuffer,
392 [in, out] DWORD *pcbBuf,
393 [in, out] DWORD *pdwFlags,
394 [in, out] DWORD *pdwReserved);
397 HRESULT RemoteQueryInfo(
399 [in,out,size_is(*pcbBuf)] BYTE *pBuffer,
400 [in, out] DWORD *pcbBuf,
401 [in, out] DWORD *pdwFlags,
402 [in, out] DWORD *pdwReserved);
407 /*****************************************************************************
408 * IPersistMoniker interface
412 uuid(79eac9c9-baf9-11ce-8c82-00aa004ba90b),
413 pointer_default(unique)
415 interface IPersistMoniker : IUnknown
417 typedef [unique] IPersistMoniker *LPPERSISTMONIKER;
420 [out] CLSID *pClassID);
425 [in] BOOL fFullyAvailable,
426 [in] IMoniker *pimkName,
431 [in] IMoniker *pimkName,
433 [in] BOOL fRemember);
435 HRESULT SaveCompleted(
436 [in] IMoniker *pimkName,
439 HRESULT GetCurMoniker(
440 [out] IMoniker **ppimkName);
443 /*****************************************************************************
444 * IMonikerProp interface
448 uuid(A5CA5F7F-1847-4D87-9C5B-918509F7511D),
449 pointer_default(unique)
451 interface IMonikerProp : IUnknown
453 typedef [unique] IMonikerProp *LPMONIKERPROP;
456 MIMETYPEPROP = 0x00000000,
457 USE_SRC_URL = 0x00000001
461 [in] MONIKERPROPERTY mkp,
465 /*****************************************************************************
466 * IInternetBindInfo interface
471 uuid(79EAC9E1-BAF9-11CE-8C82-00AA004BA90B),
472 pointer_default(unique)
474 interface IInternetBindInfo : IUnknown
476 typedef [unique] IInternetBindInfo *LPIINTERNETBINDINFO;
478 typedef enum tagBINDSTRING
480 BINDSTRING_HEADERS = 1,
481 BINDSTRING_ACCEPT_MIMES,
482 BINDSTRING_EXTRA_URL,
486 BINDSTRING_UA_PIXELS,
489 BINDSTRING_USER_AGENT,
490 BINDSTRING_ACCEPT_ENCODINGS,
491 BINDSTRING_POST_COOKIE,
492 BINDSTRING_POST_DATA_MIME,
497 [out] DWORD *grfBINDF,
498 [in, out, unique] BINDINFO *pbindinfo);
500 HRESULT GetBindString(
501 [in] ULONG ulStringType,
502 [in, out] LPOLESTR *ppwzStr,
504 [in, out] ULONG *pcElFetched);
507 /*****************************************************************************
508 * IInternetPriority interface
513 uuid(79EAC9EB-BAF9-11CE-8C82-00AA004BA90B),
514 pointer_default(unique)
516 interface IInternetPriority : IUnknown
518 typedef [unique] IInternetPriority *LPIINTERNETPRIORITY;
520 HRESULT SetPriority([in] LONG nPriority);
521 HRESULT GetPriority([out] LONG *pnPriority);
524 /*****************************************************************************
525 * IInternetProtocolRoot interface
530 uuid(79EAC9E3-BAF9-11CE-8C82-00AA004BA90B),
531 pointer_default(unique)
533 interface IInternetProtocolRoot : IUnknown
535 typedef [unique] IInternetProtocolRoot *LPIINTERNETPROTOCOLROOT;
537 typedef enum _tagPI_FLAGS
539 PI_PARSE_URL = 0x00000001,
540 PI_FILTER_MODE = 0x00000002,
541 PI_FORCE_ASYNC = 0x00000004,
542 PI_USE_WORKERTHREAD = 0x00000008,
543 PI_MIMEVERIFICATION = 0x00000010,
544 PI_CLSIDLOOKUP = 0x00000020,
545 PI_DATAPROGRESS = 0x00000040,
546 PI_SYNCHRONOUS = 0x00000080,
547 PI_APARTMENTTHREADED = 0x00000100,
548 PI_CLASSINSTALL = 0x00000200,
549 PD_FORCE_SWITCH = 0x00010000
552 typedef struct _tagPROTOCOLDATA
562 [in] IInternetProtocolSink *pOIProtSink,
563 [in] IInternetBindInfo *pOIBindInfo,
565 [in] DWORD dwReserved);
568 [in] PROTOCOLDATA *pProtocolData);
571 [in] HRESULT hrReason,
572 [in] DWORD dwOptions);
575 [in] DWORD dwOptions);
582 /*****************************************************************************
583 * IInternetProtocolSink interface
588 uuid(79EAC9E5-BAF9-11CE-8C82-00AA004BA90B),
589 pointer_default(unique)
591 interface IInternetProtocolSink : IUnknown
593 typedef [unique] IInternetProtocolSink *LPIINTERNETPROTOCOLSINK;
596 [in] PROTOCOLDATA *pProtocolData);
598 HRESULT ReportProgress(
599 [in] ULONG ulStatusCode,
600 [in] LPCWSTR szStatusText);
604 [in] ULONG ulProgress,
605 [in] ULONG ulProgressMax);
607 HRESULT ReportResult(
608 [in] HRESULT hrResult,
610 [in] LPCWSTR szResult);
613 /*****************************************************************************
614 * IInternetProtocol interface
619 uuid(79EAC9E4-BAF9-11CE-8C82-00AA004BA90B),
620 pointer_default(unique)
622 interface IInternetProtocol : IInternetProtocolRoot
624 typedef [unique] IInternetProtocol *LPIINTERNETPROTOCOL;
627 [in,out, size_is(cb), length_is(*pcbRead)] void *pv,
629 [out] ULONG *pcbRead);
632 [in] LARGE_INTEGER dlibMove,
634 [out] ULARGE_INTEGER *plibNewPosition);
637 [in] DWORD dwOptions);
639 HRESULT UnlockRequest();
642 /*****************************************************************************
643 * IInternetProtocolInfo interface
648 uuid(79eac9ec-baf9-11ce-8c82-00aa004ba90b),
649 pointer_default(unique)
651 interface IInternetProtocolInfo : IUnknown
653 typedef [unique] IInternetProtocolInfo *LPIINTERNETPROTOCOLINFO;
655 typedef enum _tagPARSEACTION
657 PARSE_CANONICALIZE = 1,
673 PARSE_SECURITY_DOMAIN,
678 typedef enum _tagPSUACTION
681 PSU_SECURITY_URL_ONLY
684 typedef enum _tagQUERYOPTION
686 QUERY_EXPIRATION_DATE = 1,
687 QUERY_TIME_OF_LAST_CHANGE,
688 QUERY_CONTENT_ENCODING,
695 QUERY_IS_INSTALLEDENTRY,
696 QUERY_IS_CACHED_OR_MAPPED,
704 [in] PARSEACTION ParseAction,
705 [in] DWORD dwParseFlags,
706 [out] LPWSTR pwzResult,
707 [in] DWORD cchResult,
708 [out] DWORD *pcchResult,
709 [in] DWORD dwReserved);
712 [in] LPCWSTR pwzBaseUrl,
713 [in] LPCWSTR pwzRelativeUrl,
714 [in] DWORD dwCombineFlags,
715 [out] LPWSTR pwzResult,
716 [in] DWORD cchResult,
717 [out] DWORD *pcchResult,
718 [in] DWORD dwReserved);
721 [in] LPCWSTR pwzUrl1,
722 [in] LPCWSTR pwzUrl2,
723 [in] DWORD dwCompareFlags);
727 [in] QUERYOPTION OueryOption,
728 [in] DWORD dwQueryFlags,
729 [in, out,size_is(*pcbBuf)] LPVOID pBuffer,
731 [in, out] DWORD *pcbBuf,
732 [in] DWORD dwReserved);
735 /*****************************************************************************
736 * IInternetSession interface
741 uuid(79eac9e7-baf9-11ce-8c82-00aa004ba90b),
742 pointer_default(unique)
744 interface IInternetSession : IUnknown
746 typedef [unique] IInternetSession *LPIINTERNETSESSION;
748 typedef enum _tagOIBDG_FLAGS
750 OIBDG_APARTMENTTHREADED = 0x0100,
751 OIBDG_DATAONLY = 0x1000
754 HRESULT RegisterNameSpace(
755 [in] IClassFactory *pCF,
756 [in] REFCLSID rclsid,
757 [in] LPCWSTR pwzProtocol,
758 [in] ULONG cPatterns,
759 [in] const LPCWSTR *ppwzPatterns,
760 [in] DWORD dwReserved);
762 HRESULT UnregisterNameSpace(
763 [in] IClassFactory *pCF,
764 [in] LPCWSTR pszProtocol);
766 HRESULT RegisterMimeFilter(
767 [in] IClassFactory *pCF,
768 [in] REFCLSID rclsid,
769 [in] LPCWSTR pwzType);
771 HRESULT UnregisterMimeFilter(
772 [in] IClassFactory *pCF,
773 [in] LPCWSTR pwzType);
775 HRESULT CreateBinding(
778 [in] IUnknown *pUnkOuter,
779 [out, unique] IUnknown **ppUnk,
780 [out, unique] /*IInternetProtocol*/ void **ppOInetProt,
781 [in] DWORD dwOption);
783 HRESULT SetSessionOption(
786 [in] DWORD dwBufferLength,
787 [in] DWORD dwReserved);
790 /*****************************************************************************
791 * IInternetSecurityMgrSite interface
796 uuid(79eac9ed-baf9-11ce-8c82-00aa004ba90b),
797 pointer_default(unique)
799 interface IInternetSecurityMgrSite : IUnknown
804 HRESULT EnableModeless(
809 /*****************************************************************************
810 * IInternetSecurityManager interface
812 cpp_quote("#define SID_SInternetSecurityManager IID_IInternetSecurityManager")
816 uuid(79eac9ee-baf9-11ce-8c82-00aa004ba90b),
817 pointer_default(unique)
819 interface IInternetSecurityManager : IUnknown
821 HRESULT SetSecuritySite(
822 [in, unique] IInternetSecurityMgrSite *pSite);
824 HRESULT GetSecuritySite(
825 [out] IInternetSecurityMgrSite **ppSite);
827 HRESULT MapUrlToZone(
828 [in] LPCWSTR pwszUrl,
829 [out] DWORD *pdwZone,
832 cpp_quote("#define MAX_SIZE_SECURITY_ID 512")
834 HRESULT GetSecurityId(
835 [in] LPCWSTR pwszUrl,
836 [out, size_is(*pcbSecurityId)] BYTE *pbSecurityId,
837 [in, out] DWORD *pcbSecurityId,
838 [in] DWORD dwReserved);
845 PUAF_WARN_IF_DENIED = 0x04,
846 PUAF_FORCEUI_FOREGROUND = 0x08,
847 PUAF_CHECK_TIPS = 0x10
850 HRESULT ProcessUrlAction(
851 [in] LPCWSTR pwszUrl,
853 [out, size_is(cbPolicy)] BYTE *pPolicy,
856 [in] DWORD cbContext,
858 [in] DWORD dwReserved);
860 HRESULT QueryCustomPolicy(
861 [in] LPCWSTR pwszUrl,
862 [in] REFGUID guidKey,
863 [out, size_is(*pcbPolicy)] BYTE **ppPolicy,
864 [out] DWORD *pcbPolicy,
866 [in] DWORD cbContext,
867 [in] DWORD dwReserved);
874 HRESULT SetZoneMapping(
876 [in] LPCWSTR lpszPattern,
879 HRESULT GetZoneMappings(
881 [out] IEnumString **ppenumString,
885 /*****************************************************************************
886 * IInternetZoneManager interface
891 uuid(79EAC9EF-BAf9-11CE-8C82-00AA004BA90B),
892 pointer_default(unique)
894 interface IInternetZoneManager : IUnknown
896 typedef [unique] IInternetZoneManager* LPURLZONEMANAGER;
898 typedef enum tagURLZONE
900 URLZONE_PREDEFINED_MIN = 0,
901 URLZONE_LOCAL_MACHINE = 0,
902 URLZONE_INTRANET = 1,
904 URLZONE_INTERNET = 3,
905 URLZONE_UNTRUSTED = 4,
906 URLZONE_PREDEFINED_MAX = 999,
907 URLZONE_USER_MIN = 1000,
908 URLZONE_USER_MAX = 10000,
911 typedef enum tagURLTEMPLATE
913 URLTEMPLATE_CUSTOM = 0x00000,
914 URLTEMPLATE_PREDEFINED_MIN = 0x10000,
915 URLTEMPLATE_LOW = 0x10000,
916 URLTEMPLATE_MEDIUM = 0x11000,
917 URLTEMPLATE_HIGH = 0x12000,
918 URLTEMPLATE_PREDEFINED_MAX = 0x20000,
922 ZAFLAGS_CUSTOM_EDIT = 0x00000001,
923 ZAFLAGS_ADD_SITES = 0x00000002,
924 ZAFLAGS_REQUIRE_VERIFICATION = 0x00000004,
925 ZAFLAGS_INCLUDE_PROXY_OVERRIDE = 0x00000008,
926 ZAFLAGS_INCLUDE_INTRANET_SITES = 0x00000010,
927 ZAFLAGS_NO_UI = 0x00000020,
928 ZAFLAGS_SUPPORTS_VERIFICATION = 0x00000040,
929 ZAFLAGS_UNC_AS_INTRANET = 0x00000080,
934 MAX_ZONE_DESCRIPTION = 200
937 typedef struct _ZONEATTRIBUTES {
939 WCHAR szDisplayName[MAX_ZONE_PATH];
940 WCHAR szDescription[MAX_ZONE_DESCRIPTION];
941 WCHAR szIconPath[MAX_ZONE_PATH];
942 DWORD dwTemplateMinLevel;
943 DWORD dwTemplateRecommended;
944 DWORD dwTemplateCurrentLevel;
946 } ZONEATTRIBUTES, *LPZONEATTRIBUTES;
948 typedef enum _URLZONEREG {
954 HRESULT GetZoneAttributes(
956 [in, out, unique] ZONEATTRIBUTES* pZoneAttributes);
958 HRESULT SetZoneAttributes(
960 [in] ZONEATTRIBUTES* pZoneAttributes);
962 HRESULT GetZoneCustomPolicy(
964 [in] REFGUID guidKey,
965 [out] BYTE **ppPolicy,
966 [out] DWORD* pcbPolicy,
967 [in] URLZONEREG ulrZoneReg);
969 HRESULT SetZoneCustomPolicy(
971 [in] REFGUID guidKey,
973 [in] DWORD pcbPolicy,
974 [in] URLZONEREG ulrZoneReg);
976 HRESULT GetZoneActionPolicy(
981 [in] URLZONEREG urlZoneReg);
983 HRESULT SetZoneActionPolicy(
988 [in] URLZONEREG urlZoneReg);
992 [in] LPCWSTR pwszUrl,
993 [in] LPCWSTR pwszText,
994 [in] DWORD dwLogFlags);
996 HRESULT CreateZoneEnumerator(
997 [out] DWORD* pdwEnum,
998 [out] DWORD* pdwCount,
1004 [out] DWORD* pdwZone);
1006 HRESULT DestroyZoneEnumerator(
1009 HRESULT CopyTemplatePoliciesToZone(
1010 [in] DWORD dwTemplate,
1012 [in] DWORD dwReserved);
1015 cpp_quote("DEFINE_GUID(CLSID_InternetSecurityManager, 0x7b8a2d94, 0x0ac9, 0x11d1, 0x89, 0x6c, 0x00, 0xc0, 0x4f, 0xB6, 0xbf, 0xc4);")
1016 cpp_quote("DEFINE_GUID(CLSID_InternetZoneManager, 0x7B8A2D95, 0x0AC9, 0x11D1, 0x89, 0x6C, 0x00, 0xC0, 0x4F, 0xB6, 0xBF, 0xC4);")
1017 cpp_quote("DEFINE_GUID(IID_IAsyncMoniker, 0x79EAC9D3, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1018 cpp_quote("DEFINE_GUID(IID_IAsyncBindCtx, 0x79EAC9D4, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1019 cpp_quote("DEFINE_GUID(CLSID_StdURLMoniker, 0x79EAC9E0, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1021 cpp_quote("#define MK_S_ASYNCHRONOUS 0x000401E8")
1022 cpp_quote("#define S_ASYNCHRONOUS MK_S_ASYNCHRONOUS")
1024 cpp_quote("#define INET_E_ERROR_FIRST 0x800C0002L")
1025 cpp_quote("#define INET_E_INVALID_URL 0x800C0002L")
1026 cpp_quote("#define INET_E_NO_SESSION 0x800C0003L")
1027 cpp_quote("#define INET_E_CANNOT_CONNECT 0x800C0004L")
1028 cpp_quote("#define INET_E_RESOURCE_NOT_FOUND 0x800C0005L")
1029 cpp_quote("#define INET_E_OBJECT_NOT_FOUND 0x800C0006L")
1030 cpp_quote("#define INET_E_DATA_NOT_AVAILABLE 0x800C0007L")
1031 cpp_quote("#define INET_E_DOWNLOAD_FAILURE 0x800C0008L")
1032 cpp_quote("#define INET_E_AUTHENTICATION_REQUIRED 0x800C0009L")
1033 cpp_quote("#define INET_E_NO_VALID_MEDIA 0x800C000AL")
1034 cpp_quote("#define INET_E_CONNECTION_TIMEOUT 0x800C000BL")
1035 cpp_quote("#define INET_E_INVALID_REQUEST 0x800C000CL")
1036 cpp_quote("#define INET_E_UNKNOWN_PROTOCOL 0x800C000DL")
1037 cpp_quote("#define INET_E_SECURITY_PROBLEM 0x800C000EL")
1038 cpp_quote("#define INET_E_CANNOT_LOAD_DATA 0x800C000FL")
1039 cpp_quote("#define INET_E_CANNOT_INSTANTIATE_OBJECT 0x800C0010L")
1040 cpp_quote("#define INET_E_USE_DEFAULT_PROTOCOLHANDLER 0x800C0011L")
1041 cpp_quote("#define INET_E_QUERYOPTION_UNKNOWN 0x800C0013L")
1042 cpp_quote("#define INET_E_REDIRECT_FAILED 0x800C0014L")
1043 cpp_quote("#define INET_E_REDIRECT_TO_DIR 0x800C0015L")
1044 cpp_quote("#define INET_E_CANNOT_LOCK_REQUEST 0x800C0016L")
1045 cpp_quote("#define INET_E_ERROR_LAST INET_E_REDIRECT_TO_DIR")
1047 cpp_quote("HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk);")
1048 cpp_quote("HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved);")
1049 cpp_quote("HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD);")
1050 cpp_quote("HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN pCaller, LPCSTR szURL, LPCSTR szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB);")
1051 cpp_quote("HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN pCaller, LPCWSTR szURL, LPCWSTR szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB);")
1052 cpp_quote("HRESULT WINAPI CoInternetGetSession(DWORD,IInternetSession**,DWORD);")
1053 cpp_quote("HRESULT WINAPI MkParseDisplayNameEx(IBindCtx*,LPCWSTR,ULONG*,IMoniker**);")
1054 cpp_quote("HRESULT WINAPI IsAsyncMoniker(IMoniker* pmk);")
1055 cpp_quote("HRESULT WINAPI CreateAsyncBindCtx(DWORD, IBindStatusCallback*, IEnumFORMATETC*, IBindCtx**);")
1056 cpp_quote("HRESULT WINAPI CoInternetCombineUrl(LPCWSTR,LPCWSTR,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1057 cpp_quote("HRESULT WINAPI CoInternetCompareUrl(LPCWSTR,LPCWSTR,DWORD);");
1058 cpp_quote("HRESULT WINAPI CoInternetCreateZoneManager(IServiceProvider*, IInternetZoneManager**, DWORD);");
1060 cpp_quote("#define OInetCombineUrl CoInternetCombineUrl")
1061 cpp_quote("#define OInetCompareUrl CoInternetCompareUrl")
1062 cpp_quote("#define OInetGetSession CoInternetGetSession")
1064 cpp_quote("#define MKSYS_URLMONIKER 6")