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 * IInternetBindInfo interface
449 uuid(79EAC9E1-BAF9-11CE-8C82-00AA004BA90B),
450 pointer_default(unique)
452 interface IInternetBindInfo : IUnknown
454 typedef [unique] IInternetBindInfo *LPIINTERNETBINDINFO;
456 typedef enum tagBINDSTRING
458 BINDSTRING_HEADERS = 1,
459 BINDSTRING_ACCEPT_MIMES,
460 BINDSTRING_EXTRA_URL,
464 BINDSTRING_UA_PIXELS,
467 BINDSTRING_USER_AGENT,
468 BINDSTRING_ACCEPT_ENCODINGS,
469 BINDSTRING_POST_COOKIE,
470 BINDSTRING_POST_DATA_MIME,
475 [out] DWORD *grfBINDF,
476 [in, out, unique] BINDINFO *pbindinfo);
478 HRESULT GetBindString(
479 [in] ULONG ulStringType,
480 [in, out] LPOLESTR *ppwzStr,
482 [in, out] ULONG *pcElFetched);
485 /*****************************************************************************
486 * IInternetProtocolRoot interface
491 uuid(79EAC9E3-BAF9-11CE-8C82-00AA004BA90B),
492 pointer_default(unique)
494 interface IInternetProtocolRoot : IUnknown
496 typedef [unique] IInternetProtocolRoot *LPIINTERNETPROTOCOLROOT;
498 typedef enum _tagPI_FLAGS
500 PI_PARSE_URL = 0x00000001,
501 PI_FILTER_MODE = 0x00000002,
502 PI_FORCE_ASYNC = 0x00000004,
503 PI_USE_WORKERTHREAD = 0x00000008,
504 PI_MIMEVERIFICATION = 0x00000010,
505 PI_CLSIDLOOKUP = 0x00000020,
506 PI_DATAPROGRESS = 0x00000040,
507 PI_SYNCHRONOUS = 0x00000080,
508 PI_APARTMENTTHREADED = 0x00000100,
509 PI_CLASSINSTALL = 0x00000200,
510 PD_FORCE_SWITCH = 0x00010000
513 typedef struct _tagPROTOCOLDATA
523 [in] IInternetProtocolSink *pOIProtSink,
524 [in] IInternetBindInfo *pOIBindInfo,
526 [in] DWORD dwReserved);
529 [in] PROTOCOLDATA *pProtocolData);
532 [in] HRESULT hrReason,
533 [in] DWORD dwOptions);
536 [in] DWORD dwOptions);
543 /*****************************************************************************
544 * IInternetProtocolSink interface
549 uuid(79EAC9E5-BAF9-11CE-8C82-00AA004BA90B),
550 pointer_default(unique)
552 interface IInternetProtocolSink : IUnknown
554 typedef [unique] IInternetProtocolSink *LPIINTERNETPROTOCOLSINK;
557 [in] PROTOCOLDATA *pProtocolData);
559 HRESULT ReportProgress(
560 [in] ULONG ulStatusCode,
561 [in] LPCWSTR szStatusText);
565 [in] ULONG ulProgress,
566 [in] ULONG ulProgressMax);
568 HRESULT ReportResult(
569 [in] HRESULT hrResult,
571 [in] LPCWSTR szResult);
574 /*****************************************************************************
575 * IInternetProtocol interface
580 uuid(79EAC9E4-BAF9-11CE-8C82-00AA004BA90B),
581 pointer_default(unique)
583 interface IInternetProtocol : IInternetProtocolRoot
585 typedef [unique] IInternetProtocol *LPIINTERNETPROTOCOL;
588 [in,out, size_is(cb), length_is(*pcbRead)] void *pv,
590 [out] ULONG *pcbRead);
593 [in] LARGE_INTEGER dlibMove,
595 [out] ULARGE_INTEGER *plibNewPosition);
598 [in] DWORD dwOptions);
600 HRESULT UnlockRequest();
603 /*****************************************************************************
604 * IInternetProtocolInfo interface
609 uuid(79eac9ec-baf9-11ce-8c82-00aa004ba90b),
610 pointer_default(unique)
612 interface IInternetProtocolInfo : IUnknown
614 typedef [unique] IInternetProtocolInfo *LPIINTERNETPROTOCOLINFO;
616 typedef enum _tagPARSEACTION
618 PARSE_CANONICALIZE = 1,
634 PARSE_SECURITY_DOMAIN,
639 typedef enum _tagPSUACTION
642 PSU_SECURITY_URL_ONLY
645 typedef enum _tagQUERYOPTION
647 QUERY_EXPIRATION_DATE = 1,
648 QUERY_TIME_OF_LAST_CHANGE,
649 QUERY_CONTENT_ENCODING,
656 QUERY_IS_INSTALLEDENTRY,
657 QUERY_IS_CACHED_OR_MAPPED,
665 [in] PARSEACTION ParseAction,
666 [in] DWORD dwParseFlags,
667 [out] LPWSTR pwzResult,
668 [in] DWORD cchResult,
669 [out] DWORD *pcchResult,
670 [in] DWORD dwReserved);
673 [in] LPCWSTR pwzBaseUrl,
674 [in] LPCWSTR pwzRelativeUrl,
675 [in] DWORD dwCombineFlags,
676 [out] LPWSTR pwzResult,
677 [in] DWORD cchResult,
678 [out] DWORD *pcchResult,
679 [in] DWORD dwReserved);
682 [in] LPCWSTR pwzUrl1,
683 [in] LPCWSTR pwzUrl2,
684 [in] DWORD dwCompareFlags);
688 [in] QUERYOPTION OueryOption,
689 [in] DWORD dwQueryFlags,
690 [in, out,size_is(*pcbBuf)] LPVOID pBuffer,
692 [in, out] DWORD *pcbBuf,
693 [in] DWORD dwReserved);
696 /*****************************************************************************
697 * IInternetSession interface
702 uuid(79eac9e7-baf9-11ce-8c82-00aa004ba90b),
703 pointer_default(unique)
705 interface IInternetSession : IUnknown
707 typedef [unique] IInternetSession *LPIINTERNETSESSION;
709 typedef enum _tagOIBDG_FLAGS
711 OIBDG_APARTMENTTHREADED = 0x0100,
712 OIBDG_DATAONLY = 0x1000
715 HRESULT RegisterNameSpace(
716 [in] IClassFactory *pCF,
717 [in] REFCLSID rclsid,
718 [in] LPCWSTR pwzProtocol,
719 [in] ULONG cPatterns,
720 [in] const LPCWSTR *ppwzPatterns,
721 [in] DWORD dwReserved);
723 HRESULT UnregisterNameSpace(
724 [in] IClassFactory *pCF,
725 [in] LPCWSTR pszProtocol);
727 HRESULT RegisterMimeFilter(
728 [in] IClassFactory *pCF,
729 [in] REFCLSID rclsid,
730 [in] LPCWSTR pwzType);
732 HRESULT UnregisterMimeFilter(
733 [in] IClassFactory *pCF,
734 [in] LPCWSTR pwzType);
736 HRESULT CreateBinding(
739 [in] IUnknown *pUnkOuter,
740 [out, unique] IUnknown **ppUnk,
741 [out, unique] /*IInternetProtocol*/ void **ppOInetProt,
742 [in] DWORD dwOption);
744 HRESULT SetSessionOption(
747 [in] DWORD dwBufferLength,
748 [in] DWORD dwReserved);
751 /*****************************************************************************
752 * IInternetSecurityMgrSite interface
757 uuid(79eac9ed-baf9-11ce-8c82-00aa004ba90b),
758 pointer_default(unique)
760 interface IInternetSecurityMgrSite : IUnknown
765 HRESULT EnableModeless(
770 /*****************************************************************************
771 * IInternetSecurityManager interface
773 cpp_quote("#define SID_SInternetSecurityManager IID_IInternetSecurityManager")
777 uuid(79eac9ee-baf9-11ce-8c82-00aa004ba90b),
778 pointer_default(unique)
780 interface IInternetSecurityManager : IUnknown
782 HRESULT SetSecuritySite(
783 [in, unique] IInternetSecurityMgrSite *pSite);
785 HRESULT GetSecuritySite(
786 [out] IInternetSecurityMgrSite **ppSite);
788 HRESULT MapUrlToZone(
789 [in] LPCWSTR pwszUrl,
790 [out] DWORD *pdwZone,
793 cpp_quote("#define MAX_SIZE_SECURITY_ID 512")
795 HRESULT GetSecurityId(
796 [in] LPCWSTR pwszUrl,
797 [out, size_is(*pcbSecurityId)] BYTE *pbSecurityId,
798 [in, out] DWORD *pcbSecurityId,
799 [in] DWORD dwReserved);
806 PUAF_WARN_IF_DENIED = 0x04,
807 PUAF_FORCEUI_FOREGROUND = 0x08,
808 PUAF_CHECK_TIPS = 0x10
811 HRESULT ProcessUrlAction(
812 [in] LPCWSTR pwszUrl,
814 [out, size_is(cbPolicy)] BYTE *pPolicy,
817 [in] DWORD cbContext,
819 [in] DWORD dwReserved);
821 HRESULT QueryCustomPolicy(
822 [in] LPCWSTR pwszUrl,
823 [in] REFGUID guidKey,
824 [out, size_is(*pcbPolicy)] BYTE **ppPolicy,
825 [out] DWORD *pcbPolicy,
827 [in] DWORD cbContext,
828 [in] DWORD dwReserved);
835 HRESULT SetZoneMapping(
837 [in] LPCWSTR lpszPattern,
840 HRESULT GetZoneMappings(
842 [out] IEnumString **ppenumString,
846 /*****************************************************************************
847 * IInternetZoneManager interface
852 uuid(79EAC9EF-BAf9-11CE-8C82-00AA004BA90B),
853 pointer_default(unique)
855 interface IInternetZoneManager : IUnknown
857 typedef [unique] IInternetZoneManager* LPURLZONEMANAGER;
859 typedef enum tagURLZONE
861 URLZONE_PREDEFINED_MIN = 0,
862 URLZONE_LOCAL_MACHINE = 0,
863 URLZONE_INTRANET = 1,
865 URLZONE_INTERNET = 3,
866 URLZONE_UNTRUSTED = 4,
867 URLZONE_PREDEFINED_MAX = 999,
868 URLZONE_USER_MIN = 1000,
869 URLZONE_USER_MAX = 10000,
872 typedef enum tagURLTEMPLATE
874 URLTEMPLATE_CUSTOM = 0x00000,
875 URLTEMPLATE_PREDEFINED_MIN = 0x10000,
876 URLTEMPLATE_LOW = 0x10000,
877 URLTEMPLATE_MEDIUM = 0x11000,
878 URLTEMPLATE_HIGH = 0x12000,
879 URLTEMPLATE_PREDEFINED_MAX = 0x20000,
883 ZAFLAGS_CUSTOM_EDIT = 0x00000001,
884 ZAFLAGS_ADD_SITES = 0x00000002,
885 ZAFLAGS_REQUIRE_VERIFICATION = 0x00000004,
886 ZAFLAGS_INCLUDE_PROXY_OVERRIDE = 0x00000008,
887 ZAFLAGS_INCLUDE_INTRANET_SITES = 0x00000010,
888 ZAFLAGS_NO_UI = 0x00000020,
889 ZAFLAGS_SUPPORTS_VERIFICATION = 0x00000040,
890 ZAFLAGS_UNC_AS_INTRANET = 0x00000080,
895 MAX_ZONE_DESCRIPTION = 200
898 typedef struct _ZONEATTRIBUTES {
900 WCHAR szDisplayName[MAX_ZONE_PATH];
901 WCHAR szDescription[MAX_ZONE_DESCRIPTION];
902 WCHAR szIconPath[MAX_ZONE_PATH];
903 DWORD dwTemplateMinLevel;
904 DWORD dwTemplateRecommended;
905 DWORD dwTemplateCurrentLevel;
907 } ZONEATTRIBUTES, *LPZONEATTRIBUTES;
909 typedef enum _URLZONEREG {
915 HRESULT GetZoneAttributes(
917 [in, out, unique] ZONEATTRIBUTES* pZoneAttributes);
919 HRESULT SetZoneAttributes(
921 [in] ZONEATTRIBUTES* pZoneAttributes);
923 HRESULT GetZoneCustomPolicy(
925 [in] REFGUID guidKey,
926 [out] BYTE **ppPolicy,
927 [out] DWORD* pcbPolicy,
928 [in] URLZONEREG ulrZoneReg);
930 HRESULT SetZoneCustomPolicy(
932 [in] REFGUID guidKey,
934 [in] DWORD pcbPolicy,
935 [in] URLZONEREG ulrZoneReg);
937 HRESULT GetZoneActionPolicy(
942 [in] URLZONEREG urlZoneReg);
944 HRESULT SetZoneActionPolicy(
949 [in] URLZONEREG urlZoneReg);
953 [in] LPCWSTR pwszUrl,
954 [in] LPCWSTR pwszText,
955 [in] DWORD dwLogFlags);
957 HRESULT CreateZoneEnumerator(
958 [out] DWORD* pdwEnum,
959 [out] DWORD* pdwCount,
965 [out] DWORD* pdwZone);
967 HRESULT DestroyZoneEnumerator(
970 HRESULT CopyTemplatePoliciesToZone(
971 [in] DWORD dwTemplate,
973 [in] DWORD dwReserved);
976 cpp_quote("DEFINE_GUID(CLSID_InternetSecurityManager, 0x7b8a2d94, 0x0ac9, 0x11d1, 0x89, 0x6c, 0x00, 0xc0, 0x4f, 0xB6, 0xbf, 0xc4);")
977 cpp_quote("DEFINE_GUID(CLSID_InternetZoneManager, 0x7B8A2D95, 0x0AC9, 0x11D1, 0x89, 0x6C, 0x00, 0xC0, 0x4F, 0xB6, 0xBF, 0xC4);")
978 cpp_quote("DEFINE_GUID(IID_IAsyncMoniker, 0x79EAC9D3, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
979 cpp_quote("DEFINE_GUID(IID_IAsyncBindCtx, 0x79EAC9D4, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
980 cpp_quote("DEFINE_GUID(CLSID_StdURLMoniker, 0x79EAC9E0, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
982 cpp_quote("#define MK_S_ASYNCHRONOUS 0x000401E8")
983 cpp_quote("#define S_ASYNCHRONOUS MK_S_ASYNCHRONOUS")
985 cpp_quote("#define INET_E_ERROR_FIRST 0x800C0002L")
986 cpp_quote("#define INET_E_INVALID_URL 0x800C0002L")
987 cpp_quote("#define INET_E_NO_SESSION 0x800C0003L")
988 cpp_quote("#define INET_E_CANNOT_CONNECT 0x800C0004L")
989 cpp_quote("#define INET_E_RESOURCE_NOT_FOUND 0x800C0005L")
990 cpp_quote("#define INET_E_OBJECT_NOT_FOUND 0x800C0006L")
991 cpp_quote("#define INET_E_DATA_NOT_AVAILABLE 0x800C0007L")
992 cpp_quote("#define INET_E_DOWNLOAD_FAILURE 0x800C0008L")
993 cpp_quote("#define INET_E_AUTHENTICATION_REQUIRED 0x800C0009L")
994 cpp_quote("#define INET_E_NO_VALID_MEDIA 0x800C000AL")
995 cpp_quote("#define INET_E_CONNECTION_TIMEOUT 0x800C000BL")
996 cpp_quote("#define INET_E_INVALID_REQUEST 0x800C000CL")
997 cpp_quote("#define INET_E_UNKNOWN_PROTOCOL 0x800C000DL")
998 cpp_quote("#define INET_E_SECURITY_PROBLEM 0x800C000EL")
999 cpp_quote("#define INET_E_CANNOT_LOAD_DATA 0x800C000FL")
1000 cpp_quote("#define INET_E_CANNOT_INSTANTIATE_OBJECT 0x800C0010L")
1001 cpp_quote("#define INET_E_QUERYOPTION_UNKNOWN 0x800C0013L")
1002 cpp_quote("#define INET_E_REDIRECT_FAILED 0x800C0014L")
1003 cpp_quote("#define INET_E_REDIRECT_TO_DIR 0x800C0015L")
1004 cpp_quote("#define INET_E_CANNOT_LOCK_REQUEST 0x800C0016L")
1005 cpp_quote("#define INET_E_ERROR_LAST INET_E_REDIRECT_TO_DIR")
1007 cpp_quote("HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk);")
1008 cpp_quote("HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved);")
1009 cpp_quote("HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD);")
1010 cpp_quote("HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN pCaller, LPCSTR szURL, LPCSTR szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB);")
1011 cpp_quote("HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN pCaller, LPCWSTR szURL, LPCWSTR szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB);")
1012 cpp_quote("HRESULT WINAPI CoInternetGetSession(DWORD,IInternetSession**,DWORD);")
1013 cpp_quote("HRESULT WINAPI MkParseDisplayNameEx(IBindCtx*,LPCWSTR,ULONG*,IMoniker**);")
1014 cpp_quote("HRESULT WINAPI IsAsyncMoniker(IMoniker* pmk);")
1015 cpp_quote("HRESULT WINAPI CreateAsyncBindCtx(DWORD, IBindStatusCallback*, IEnumFORMATETC*, IBindCtx**);")
1016 cpp_quote("HRESULT WINAPI CoInternetCombineUrl(LPCWSTR,LPCWSTR,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1017 cpp_quote("HRESULT WINAPI CoInternetCompareUrl(LPCWSTR,LPCWSTR,DWORD);");
1018 cpp_quote("HRESULT WINAPI CoInternetCreateZoneManager(IServiceProvider*, IInternetZoneManager**, DWORD);");
1020 cpp_quote("#define OInetCombineUrl CoInternetCombineUrl")
1021 cpp_quote("#define OInetCompareUrl CoInternetCompareUrl")
1022 cpp_quote("#define OInetGetSession CoInternetGetSession")
1024 cpp_quote("#define MKSYS_URLMONIKER 6")