taskmgr: Replace malloc with HeapAlloc.
[wine/hacks.git] / include / urlmon.idl
bloba3dd39a76ec8f571d42b031a95930315d682cf89
1 /*
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
20 import "objidl.idl";
21 import "oleidl.idl";
22 import "servprov.idl";
23 import "msxml.idl";
25 cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
26 cpp_quote("#undef GetUserName")
27 cpp_quote("#endif")
29 interface IInternetProtocolSink;
31 /*****************************************************************************
32 * IInternet interface
35 object,
36 uuid(79eac9e0-baf9-11ce-8c82-00aa004ba90b),
37 pointer_default(unique),
38 local
40 interface IInternet : IUnknown
42 typedef [unique] IInternet *LPIINTERNET;
45 /*****************************************************************************
46 * IBinding interface
49 object,
50 uuid(79eac9c0-baf9-11ce-8c82-00aa004ba90b),
51 pointer_default(unique)
53 interface IBinding : IUnknown
55 typedef [unique] IBinding *LPBINDING;
57 HRESULT Abort();
58 HRESULT Suspend();
59 HRESULT Resume();
61 HRESULT SetPriority(
62 [in] LONG nPriority);
64 HRESULT GetPriority(
65 [out] LONG * pnPriority);
67 [local]
68 HRESULT GetBindResult(
69 [out] CLSID *pclsidProtocol,
70 [out] DWORD *pdwResult,
71 [out] LPOLESTR *pszResult,
72 [in, out] DWORD *pdwReserved);
74 [call_as(GetBindResult)]
75 HRESULT RemoteGetBindResult(
76 [out] CLSID *pclsidProtocol,
77 [out] DWORD *pdwResult,
78 [out] LPOLESTR *pszResult,
79 [in] DWORD dwReserved);
83 /*****************************************************************************
84 * IBindStatusCallback interface
87 object,
88 uuid(79eac9c1-baf9-11ce-8c82-00aa004ba90b),
89 pointer_default(unique)
91 interface IBindStatusCallback : IUnknown
93 typedef [unique] IBindStatusCallback *LPBINDSTATUSCALLBACK;
95 typedef enum
97 BINDVERB_GET = 0x00000000,
98 BINDVERB_POST = 0x00000001,
99 BINDVERB_PUT = 0x00000002,
100 BINDVERB_CUSTOM = 0x00000003
101 } BINDVERB;
103 typedef enum
105 BINDINFOF_URLENCODESTGMEDDATA = 0x00000001,
106 BINDINFOF_URLENCODEDEXTRAINFO = 0x00000002
107 } BINDINFOF;
109 typedef enum
111 BINDF_ASYNCHRONOUS = 0x00000001,
112 BINDF_ASYNCSTORAGE = 0x00000002,
113 BINDF_NOPROGRESSIVERENDERING = 0x00000004,
114 BINDF_OFFLINEOPERATION = 0x00000008,
115 BINDF_GETNEWESTVERSION = 0x00000010,
116 BINDF_NOWRITECACHE = 0x00000020,
117 BINDF_NEEDFILE = 0x00000040,
118 BINDF_PULLDATA = 0x00000080,
119 BINDF_IGNORESECURITYPROBLEM = 0x00000100,
120 BINDF_RESYNCHRONIZE = 0x00000200,
121 BINDF_HYPERLINK = 0x00000400,
122 BINDF_NO_UI = 0x00000800,
123 BINDF_SILENTOPERATION = 0x00001000,
124 BINDF_PRAGMA_NO_CACHE = 0x00002000,
125 BINDF_GETCLASSOBJECT = 0x00004000,
126 BINDF_RESERVED_1 = 0x00008000,
127 BINDF_FREE_THREADED = 0x00010000,
128 BINDF_DIRECT_READ = 0x00020000,
129 BINDF_FORMS_SUBMIT = 0x00040000,
130 BINDF_GETFROMCACHE_IF_NET_FAIL = 0x00080000,
131 BINDF_FROMURLMON = 0x00100000,
132 BINDF_FWD_BACK = 0x00200000,
133 BINDF_PREFERDEFAULTHANDLER = 0x00400000,
134 BINDF_ENFORCERESTRICTED = 0x00800000
135 } BINDF;
137 typedef enum
139 URL_ENCODING_NONE = 0x00000000,
140 URL_ENCODING_ENABLE_UTF8 = 0x10000000,
141 URL_ENCODING_DISABLE_UTF8 = 0x20000000
142 } URL_ENCODING;
144 typedef struct _tagBINDINFO
146 ULONG cbSize;
147 LPWSTR szExtraInfo;
148 STGMEDIUM stgmedData;
149 DWORD grfBindInfoF;
150 DWORD dwBindVerb;
151 LPWSTR szCustomVerb;
152 DWORD cbstgmedData;
153 DWORD dwOptions;
154 DWORD dwOptionsFlags;
155 DWORD dwCodePage;
156 SECURITY_ATTRIBUTES securityAttributes;
157 IID iid;
158 IUnknown *pUnk;
159 DWORD dwReserved;
160 } BINDINFO;
162 typedef struct _REMSECURITY_ATTRIBUTES
164 DWORD nLength;
165 DWORD lpSecurityDescriptor;
166 BOOL bInheritHandle;
167 } REMSECURITY_ATTRIBUTES, *PREMSECURITY_ATTRIBUTES, *LPREMSECURITY_ATTRIBUTES;
169 typedef struct _tagRemBINDINFO
171 ULONG cbSize;
172 LPWSTR szExtraInfo;
173 DWORD grfBindInfoF;
174 DWORD dwBindVerb;
175 LPWSTR szCustomVerb;
176 DWORD cbstgmedData;
177 DWORD dwOptions;
178 DWORD dwOptionsFlags;
179 DWORD dwCodePage;
180 REMSECURITY_ATTRIBUTES securityAttributes;
181 IID iid;
182 IUnknown *pUnk;
183 DWORD dwReserved;
184 } RemBINDINFO;
186 typedef struct tagRemFORMATETC
188 DWORD cfFormat;
189 DWORD ptd;
190 DWORD dwAspect;
191 LONG lindex;
192 DWORD tymed;
193 } RemFORMATETC, *LPREMFORMATETC;
195 typedef enum
197 BSCF_FIRSTDATANOTIFICATION = 0x01,
198 BSCF_INTERMEDIATEDATANOTIFICATION = 0x02,
199 BSCF_LASTDATANOTIFICATION = 0x04,
200 BSCF_DATAFULLYAVAILABLE = 0x08,
201 BSCF_AVAILABLEDATASIZEUNKNOWN = 0x10
202 } BSCF;
204 typedef enum BINDSTATUS
206 BINDSTATUS_FINDINGRESOURCE = 1,
207 BINDSTATUS_CONNECTING,
208 BINDSTATUS_REDIRECTING,
209 BINDSTATUS_BEGINDOWNLOADDATA,
210 BINDSTATUS_DOWNLOADINGDATA,
211 BINDSTATUS_ENDDOWNLOADDATA,
212 BINDSTATUS_BEGINDOWNLOADCOMPONENTS,
213 BINDSTATUS_INSTALLINGCOMPONENTS,
214 BINDSTATUS_ENDDOWNLOADCOMPONENTS,
215 BINDSTATUS_USINGCACHEDCOPY,
216 BINDSTATUS_SENDINGREQUEST,
217 BINDSTATUS_CLASSIDAVAILABLE,
218 BINDSTATUS_MIMETYPEAVAILABLE,
219 BINDSTATUS_CACHEFILENAMEAVAILABLE,
220 BINDSTATUS_BEGINSYNCOPERATION,
221 BINDSTATUS_ENDSYNCOPERATION,
222 BINDSTATUS_BEGINUPLOADDATA,
223 BINDSTATUS_UPLOADINGDATA,
224 BINDSTATUS_ENDUPLOADINGDATA,
225 BINDSTATUS_PROTOCOLCLASSID,
226 BINDSTATUS_ENCODING,
227 BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE,
228 BINDSTATUS_CLASSINSTALLLOCATION,
229 BINDSTATUS_DECODING,
230 BINDSTATUS_LOADINGMIMEHANDLER,
231 BINDSTATUS_CONTENTDISPOSITIONATTACH,
232 BINDSTATUS_FILTERREPORTMIMETYPE,
233 BINDSTATUS_CLSIDCANINSTANTIATE,
234 BINDSTATUS_IUNKNOWNAVAILABLE,
235 BINDSTATUS_DIRECTBIND,
236 BINDSTATUS_RAWMIMETYPE,
237 BINDSTATUS_PROXYDETECTING,
238 BINDSTATUS_ACCEPTRANGES,
239 BINDSTATUS_COOKIE_SENT,
240 BINDSTATUS_COMPACT_POLICY_RECEIVED,
241 BINDSTATUS_COOKIE_SUPPRESSED,
242 BINDSTATUS_COOKIE_STATE_UNKNOWN,
243 BINDSTATUS_COOKIE_STATE_ACCEPT,
244 BINDSTATUS_COOKIE_STATE_REJECT,
245 BINDSTATUS_COOKIE_STATE_PROMPT,
246 BINDSTATUS_COOKIE_STATE_LEASH,
247 BINDSTATUS_COOKIE_STATE_DOWNGRADE,
248 BINDSTATUS_POLICY_HREF,
249 BINDSTATUS_P3P_HEADER,
250 BINDSTATUS_SESSION_COOKIE_RECEIVED,
251 BINDSTATUS_PERSISTENT_COOKIE_RECEIVED,
252 BINDSTATUS_SESSION_COOKIES_ALLOWED,
253 BINDSTATUS_CACHECONTROL,
254 BINDSTATUS_CONTENTDISPOSITIONFILENAME,
255 BINDSTATUS_MIMETEXTPLAINMISMATCH,
256 BINDSTATUS_PUBLISHERAVAILABLE,
257 BINDSTATUS_DISPLAYNAMEAVAILABLE
258 } BINDSTATUS;
261 HRESULT OnStartBinding(
262 [in] DWORD dwReserved,
263 [in] IBinding * pib);
265 HRESULT GetPriority(
266 [out] LONG * pnPriority);
268 HRESULT OnLowResource(
269 [in] DWORD reserved);
271 HRESULT OnProgress(
272 [in] ULONG ulProgress,
273 [in] ULONG ulProgressMax,
274 [in] ULONG ulStatusCode,
275 [in] LPCWSTR szStatusText);
277 HRESULT OnStopBinding(
278 [in] HRESULT hresult,
279 [in, unique] LPCWSTR szError);
281 [local]
282 HRESULT GetBindInfo(
283 [out] DWORD *grfBINDF,
284 [in, out, unique] BINDINFO * pbindinfo);
286 [call_as(GetBindInfo)]
287 HRESULT RemoteGetBindInfo(
288 [out] DWORD *grfBINDF,
289 [in, out, unique] RemBINDINFO * pbindinfo,
290 [in, out, unique] RemSTGMEDIUM* pstgmed);
292 [local]
293 HRESULT OnDataAvailable(
294 [in] DWORD grfBSCF,
295 [in] DWORD dwSize,
296 [in] FORMATETC* pformatetc,
297 [in] STGMEDIUM* pstgmed);
299 [call_as(OnDataAvailable)]
300 HRESULT RemoteOnDataAvailable(
301 [in] DWORD grfBSCF,
302 [in] DWORD dwSize,
303 [in] RemFORMATETC *pformatetc,
304 [in] RemSTGMEDIUM* pstgmed);
306 HRESULT OnObjectAvailable(
307 [in] REFIID riid,
308 [in, iid_is(riid)] IUnknown* punk);
311 /*****************************************************************************
312 * IAuthenticate interface
315 local,
316 object,
317 uuid(79EAC9D0-BAf9-11CE-8C82-00AA004BA90B),
318 pointer_default(unique)
320 interface IAuthenticate : IUnknown
322 typedef [unique] IAuthenticate *LPAUTHENTICATION;
324 HRESULT Authenticate(
325 [out] HWND* phwnd,
326 [out] LPWSTR *pszUsername,
327 [out] LPWSTR *pszPassword);
330 /*****************************************************************************
331 * IHttpNegotiate interface
334 object,
335 uuid(79EAC9D2-BAF9-11CE-8C82-00AA004BA90B),
336 pointer_default(unique)
338 interface IHttpNegotiate : IUnknown
340 typedef [unique] IHttpNegotiate *LPHTTPNEGOTIATE;
342 HRESULT BeginningTransaction(
343 [in] LPCWSTR szURL,
344 [in, unique] LPCWSTR szHeaders,
345 [in] DWORD dwReserved,
346 [out] LPWSTR *pszAdditionalHeaders);
348 HRESULT OnResponse(
349 [in] DWORD dwResponseCode,
350 [in, unique] LPCWSTR szResponseHeaders,
351 [in, unique] LPCWSTR szRequestHeaders,
352 [out] LPWSTR *pszAdditionalRequestHeaders);
355 /*****************************************************************************
356 * IHttpNegotiate2 interface
359 object,
360 uuid(4F9F9FCB-E0F4-48eb-B7AB-FA2EA9365CB4),
361 pointer_default(unique)
363 interface IHttpNegotiate2 : IHttpNegotiate
365 typedef [unique] IHttpNegotiate2 *LPHTTPNEGOTIATE2;
367 HRESULT GetRootSecurityId(
368 [out, size_is(*pcbSecurityId)] BYTE *pbSecurityId,
369 [in, out] DWORD *pcbSecurityId,
370 [in] DWORD_PTR dwReserved);
373 /*****************************************************************************
374 * IBindHost interface
376 cpp_quote("#define SID_IBindHost IID_IBindHost")
377 cpp_quote("#define SID_SBindHost IID_IBindHost")
379 object,
380 uuid(fc4801a1-2ba9-11cf-a229-00aa003d7352),
381 pointer_default(unique)
383 interface IBindHost : IUnknown
385 typedef [unique] IBindHost *LPBINDHOST;
387 HRESULT CreateMoniker(
388 [in] LPOLESTR szName,
389 [in] IBindCtx *pBC,
390 [out] IMoniker** ppmk,
391 [in] DWORD dwReserved);
393 [local]
394 HRESULT MonikerBindToStorage(
395 [in] IMoniker *pMk,
396 [in] IBindCtx *pBC,
397 [in] IBindStatusCallback *pBSC,
398 [in] REFIID riid,
399 [out] void **ppvObj);
401 [call_as(MonikerBindToStorage)]
402 HRESULT RemoteMonikerBindToStorage(
403 [in, unique] IMoniker *pMk,
404 [in, unique] IBindCtx *pBC,
405 [in, unique] IBindStatusCallback *pBSC,
406 [in] REFIID riid,
407 [out, iid_is(riid)] IUnknown **ppvObj);
409 [local]
410 HRESULT MonikerBindToObject(
411 [in] IMoniker *pMk,
412 [in] IBindCtx *pBC,
413 [in] IBindStatusCallback *pBSC,
414 [in] REFIID riid,
415 [out] void **ppvObj);
417 [call_as(MonikerBindToObject)]
418 HRESULT RemoteMonikerBindToObject(
419 [in, unique] IMoniker *pMk,
420 [in, unique] IBindCtx *pBC,
421 [in, unique] IBindStatusCallback *pBSC,
422 [in] REFIID riid,
423 [out, iid_is(riid)] IUnknown **ppvObj);
427 /*****************************************************************************
428 * IWinInetInfo interface
431 object,
432 uuid(79eac9d6-bafa-11ce-8c82-00aa004ba90b),
433 pointer_default(unique)
435 interface IWinInetInfo : IUnknown
437 typedef [unique] IWinInetInfo *LPWININETINFO;
439 [local]
440 HRESULT QueryOption(
441 [in] DWORD dwOption,
442 [in, out, size_is(*pcbBuf)] LPVOID pBuffer,
443 [in, out] DWORD *pcbBuf);
445 [call_as(QueryOption)]
446 HRESULT RemoteQueryOption(
447 [in] DWORD dwOption,
448 [in, out, size_is(*pcbBuf)] BYTE *pBuffer,
449 [in, out] DWORD *pcbBuf);
454 /*****************************************************************************
455 * IWinInetHttpInfo interface
458 object,
459 uuid(79eac9d8-bafa-11ce-8c82-00aa004ba90b),
460 pointer_default(unique)
462 interface IWinInetHttpInfo : IWinInetInfo
464 typedef [unique] IWinInetHttpInfo *LPWININETHTTPINFO;
466 [local]
467 HRESULT QueryInfo(
468 [in] DWORD dwOption,
469 [in, out,size_is(*pcbBuf)] LPVOID pBuffer,
470 [in, out] DWORD *pcbBuf,
471 [in, out] DWORD *pdwFlags,
472 [in, out] DWORD *pdwReserved);
474 [call_as(QueryInfo)]
475 HRESULT RemoteQueryInfo(
476 [in] DWORD dwOption,
477 [in,out,size_is(*pcbBuf)] BYTE *pBuffer,
478 [in, out] DWORD *pcbBuf,
479 [in, out] DWORD *pdwFlags,
480 [in, out] DWORD *pdwReserved);
483 /*****************************************************************************
484 * IWindowForBindingUI interface
487 local,
488 object,
489 uuid(79eac9d5-bafa-11ce-8c82-00aa004ba90b),
490 pointer_default(unique)
492 interface IWindowForBindingUI : IUnknown
494 typedef [unique] IWindowForBindingUI *LPWINDOWFORBINDINGUI;
496 HRESULT GetWindow(
497 [in] REFGUID rguidReason,
498 [out] HWND *phwnd);
501 /*****************************************************************************
502 * IHttpSecurity interface
505 object,
506 uuid(79eac9d7-bafa-11ce-8c82-00aa004ba90b),
507 pointer_default(unique)
509 interface IHttpSecurity : IWindowForBindingUI
511 typedef [unique] IHttpSecurity *LPHTTPSECURITY;
513 HRESULT OnSecurityProblem(
514 [in] DWORD dwProblem);
518 /*****************************************************************************
519 * IPersistMoniker interface
522 object,
523 uuid(79eac9c9-baf9-11ce-8c82-00aa004ba90b),
524 pointer_default(unique)
526 interface IPersistMoniker : IUnknown
528 typedef [unique] IPersistMoniker *LPPERSISTMONIKER;
530 HRESULT GetClassID(
531 [out] CLSID *pClassID);
533 HRESULT IsDirty();
535 HRESULT Load(
536 [in] BOOL fFullyAvailable,
537 [in] IMoniker *pimkName,
538 [in] LPBC pibc,
539 [in] DWORD grfMode);
541 HRESULT Save(
542 [in] IMoniker *pimkName,
543 [in] LPBC pbc,
544 [in] BOOL fRemember);
546 HRESULT SaveCompleted(
547 [in] IMoniker *pimkName,
548 [in] LPBC pibc);
550 HRESULT GetCurMoniker(
551 [out] IMoniker **ppimkName);
554 /*****************************************************************************
555 * IMonikerProp interface
558 object,
559 uuid(A5CA5F7F-1847-4D87-9C5B-918509F7511D),
560 pointer_default(unique)
562 interface IMonikerProp : IUnknown
564 typedef [unique] IMonikerProp *LPMONIKERPROP;
566 typedef enum {
567 MIMETYPEPROP = 0,
568 USE_SRC_URL = 1,
569 CLASSIDPROP = 2,
570 TRUSTEDDOWNLOADPROP = 3,
571 POPUPLEVELPROP = 4
572 } MONIKERPROPERTY;
574 HRESULT PutProperty(
575 [in] MONIKERPROPERTY mkp,
576 [in] LPCWSTR val);
579 cpp_quote("#ifndef _LPBINDPROTOCOL_DEFINED")
580 cpp_quote("#define _LPBINDPROTOCOL_DEFINED")
582 /*****************************************************************************
583 * IBindProtocol interface
586 local,
587 object,
588 uuid(79EAC9CD-BAF9-11CE-8C82-00AA004BA90B),
589 pointer_default(unique)
591 interface IBindProtocol : IUnknown
593 typedef [unique] IBindProtocol *LPBINDPROTOCOL;
595 HRESULT CreateBinding(
596 [in] LPCWSTR szUrl,
597 [in] IBindCtx *pbc,
598 [out] IBinding **ppb);
601 cpp_quote("#endif /* !defined _LPBINDPROTOCOL_DEFINED */")
603 /*****************************************************************************
604 * IInternetBindInfo interface
607 local,
608 object,
609 uuid(79EAC9E1-BAF9-11CE-8C82-00AA004BA90B),
610 pointer_default(unique)
612 interface IInternetBindInfo : IUnknown
614 typedef [unique] IInternetBindInfo *LPIINTERNETBINDINFO;
616 typedef enum tagBINDSTRING
618 BINDSTRING_HEADERS = 1,
619 BINDSTRING_ACCEPT_MIMES,
620 BINDSTRING_EXTRA_URL,
621 BINDSTRING_LANGUAGE,
622 BINDSTRING_USERNAME,
623 BINDSTRING_PASSWORD,
624 BINDSTRING_UA_PIXELS,
625 BINDSTRING_UA_COLOR,
626 BINDSTRING_OS,
627 BINDSTRING_USER_AGENT,
628 BINDSTRING_ACCEPT_ENCODINGS,
629 BINDSTRING_POST_COOKIE,
630 BINDSTRING_POST_DATA_MIME,
631 BINDSTRING_URL,
632 BINDSTRING_IID,
633 BINDSTRING_FLAG_BIND_TO_OBJECT,
634 BINDSTRING_PTR_BIND_CONTEXT
635 } BINDSTRING;
637 HRESULT GetBindInfo(
638 [out] DWORD *grfBINDF,
639 [in, out, unique] BINDINFO *pbindinfo);
641 HRESULT GetBindString(
642 [in] ULONG ulStringType,
643 [in, out] LPOLESTR *ppwzStr,
644 [in] ULONG cEl,
645 [in, out] ULONG *pcElFetched);
648 /*****************************************************************************
649 * IInternetPriority interface
652 local,
653 object,
654 uuid(79EAC9EB-BAF9-11CE-8C82-00AA004BA90B),
655 pointer_default(unique)
657 interface IInternetPriority : IUnknown
659 typedef [unique] IInternetPriority *LPIINTERNETPRIORITY;
661 HRESULT SetPriority([in] LONG nPriority);
662 HRESULT GetPriority([out] LONG *pnPriority);
665 /*****************************************************************************
666 * IInternetProtocolRoot interface
669 local,
670 object,
671 uuid(79EAC9E3-BAF9-11CE-8C82-00AA004BA90B),
672 pointer_default(unique)
674 interface IInternetProtocolRoot : IUnknown
676 typedef [unique] IInternetProtocolRoot *LPIINTERNETPROTOCOLROOT;
678 typedef enum _tagPI_FLAGS
680 PI_PARSE_URL = 0x00000001,
681 PI_FILTER_MODE = 0x00000002,
682 PI_FORCE_ASYNC = 0x00000004,
683 PI_USE_WORKERTHREAD = 0x00000008,
684 PI_MIMEVERIFICATION = 0x00000010,
685 PI_CLSIDLOOKUP = 0x00000020,
686 PI_DATAPROGRESS = 0x00000040,
687 PI_SYNCHRONOUS = 0x00000080,
688 PI_APARTMENTTHREADED = 0x00000100,
689 PI_CLASSINSTALL = 0x00000200,
690 PD_FORCE_SWITCH = 0x00010000
691 } PI_FLAGS;
693 typedef struct _tagPROTOCOLDATA
695 DWORD grfFlags;
696 DWORD dwState;
697 LPVOID pData;
698 ULONG cbData;
699 } PROTOCOLDATA;
701 HRESULT Start(
702 [in] LPCWSTR szUrl,
703 [in] IInternetProtocolSink *pOIProtSink,
704 [in] IInternetBindInfo *pOIBindInfo,
705 [in] DWORD grfPI,
706 [in] DWORD dwReserved);
708 HRESULT Continue(
709 [in] PROTOCOLDATA *pProtocolData);
711 HRESULT Abort(
712 [in] HRESULT hrReason,
713 [in] DWORD dwOptions);
715 HRESULT Terminate(
716 [in] DWORD dwOptions);
718 HRESULT Suspend();
720 HRESULT Resume();
723 /*****************************************************************************
724 * IInternetProtocolSink interface
727 local,
728 object,
729 uuid(79EAC9E5-BAF9-11CE-8C82-00AA004BA90B),
730 pointer_default(unique)
732 interface IInternetProtocolSink : IUnknown
734 typedef [unique] IInternetProtocolSink *LPIINTERNETPROTOCOLSINK;
736 HRESULT Switch(
737 [in] PROTOCOLDATA *pProtocolData);
739 HRESULT ReportProgress(
740 [in] ULONG ulStatusCode,
741 [in] LPCWSTR szStatusText);
743 HRESULT ReportData(
744 [in] DWORD grfBSCF,
745 [in] ULONG ulProgress,
746 [in] ULONG ulProgressMax);
748 HRESULT ReportResult(
749 [in] HRESULT hrResult,
750 [in] DWORD dwError,
751 [in] LPCWSTR szResult);
754 /*****************************************************************************
755 * IInternetProtocol interface
758 local,
759 object,
760 uuid(79EAC9E4-BAF9-11CE-8C82-00AA004BA90B),
761 pointer_default(unique)
763 interface IInternetProtocol : IInternetProtocolRoot
765 typedef [unique] IInternetProtocol *LPIINTERNETPROTOCOL;
767 HRESULT Read(
768 [in,out, size_is(cb), length_is(*pcbRead)] void *pv,
769 [in] ULONG cb,
770 [out] ULONG *pcbRead);
772 HRESULT Seek(
773 [in] LARGE_INTEGER dlibMove,
774 [in] DWORD dwOrigin,
775 [out] ULARGE_INTEGER *plibNewPosition);
777 HRESULT LockRequest(
778 [in] DWORD dwOptions);
780 HRESULT UnlockRequest();
783 /*****************************************************************************
784 * IInternetProtocolInfo interface
787 local,
788 object,
789 uuid(79eac9ec-baf9-11ce-8c82-00aa004ba90b),
790 pointer_default(unique)
792 interface IInternetProtocolInfo : IUnknown
794 typedef [unique] IInternetProtocolInfo *LPIINTERNETPROTOCOLINFO;
796 typedef enum _tagPARSEACTION
798 PARSE_CANONICALIZE = 1,
799 PARSE_FRIENDLY,
800 PARSE_SECURITY_URL,
801 PARSE_ROOTDOCUMENT,
802 PARSE_DOCUMENT,
803 PARSE_ANCHOR,
804 PARSE_ENCODE,
805 PARSE_DECODE,
806 PARSE_PATH_FROM_URL,
807 PARSE_URL_FROM_PATH,
808 PARSE_MIME,
809 PARSE_SERVER,
810 PARSE_SCHEMA,
811 PARSE_SITE,
812 PARSE_DOMAIN,
813 PARSE_LOCATION,
814 PARSE_SECURITY_DOMAIN,
815 PARSE_ESCAPE,
816 PARSE_UNESCAPE
817 } PARSEACTION;
819 typedef enum _tagPSUACTION
821 PSU_DEFAULT = 1,
822 PSU_SECURITY_URL_ONLY
823 } PSUACTION;
825 typedef enum _tagQUERYOPTION
827 QUERY_EXPIRATION_DATE = 1,
828 QUERY_TIME_OF_LAST_CHANGE,
829 QUERY_CONTENT_ENCODING,
830 QUERY_CONTENT_TYPE,
831 QUERY_REFRESH,
832 QUERY_RECOMBINE,
833 QUERY_CAN_NAVIGATE,
834 QUERY_USES_NETWORK,
835 QUERY_IS_CACHED,
836 QUERY_IS_INSTALLEDENTRY,
837 QUERY_IS_CACHED_OR_MAPPED,
838 QUERY_USES_CACHE,
839 QUERY_IS_SECURE,
840 QUERY_IS_SAFE,
841 QUERY_USES_HISTORYFOLDER
842 } QUERYOPTION;
844 HRESULT ParseUrl(
845 [in] LPCWSTR pwzUrl,
846 [in] PARSEACTION ParseAction,
847 [in] DWORD dwParseFlags,
848 [out] LPWSTR pwzResult,
849 [in] DWORD cchResult,
850 [out] DWORD *pcchResult,
851 [in] DWORD dwReserved);
853 HRESULT CombineUrl(
854 [in] LPCWSTR pwzBaseUrl,
855 [in] LPCWSTR pwzRelativeUrl,
856 [in] DWORD dwCombineFlags,
857 [out] LPWSTR pwzResult,
858 [in] DWORD cchResult,
859 [out] DWORD *pcchResult,
860 [in] DWORD dwReserved);
862 HRESULT CompareUrl(
863 [in] LPCWSTR pwzUrl1,
864 [in] LPCWSTR pwzUrl2,
865 [in] DWORD dwCompareFlags);
867 HRESULT QueryInfo(
868 [in] LPCWSTR pwzUrl,
869 [in] QUERYOPTION OueryOption,
870 [in] DWORD dwQueryFlags,
871 [in, out,size_is(*pcbBuf)] LPVOID pBuffer,
872 [in] DWORD cbBuffer,
873 [in, out] DWORD *pcbBuf,
874 [in] DWORD dwReserved);
877 /*****************************************************************************
878 * IInternetSession interface
881 local,
882 object,
883 uuid(79eac9e7-baf9-11ce-8c82-00aa004ba90b),
884 pointer_default(unique)
886 interface IInternetSession : IUnknown
888 typedef [unique] IInternetSession *LPIINTERNETSESSION;
890 typedef enum _tagOIBDG_FLAGS
892 OIBDG_APARTMENTTHREADED = 0x0100,
893 OIBDG_DATAONLY = 0x1000
894 } OIBDG_FLAGS;
896 HRESULT RegisterNameSpace(
897 [in] IClassFactory *pCF,
898 [in] REFCLSID rclsid,
899 [in] LPCWSTR pwzProtocol,
900 [in] ULONG cPatterns,
901 [in] const LPCWSTR *ppwzPatterns,
902 [in] DWORD dwReserved);
904 HRESULT UnregisterNameSpace(
905 [in] IClassFactory *pCF,
906 [in] LPCWSTR pszProtocol);
908 HRESULT RegisterMimeFilter(
909 [in] IClassFactory *pCF,
910 [in] REFCLSID rclsid,
911 [in] LPCWSTR pwzType);
913 HRESULT UnregisterMimeFilter(
914 [in] IClassFactory *pCF,
915 [in] LPCWSTR pwzType);
917 HRESULT CreateBinding(
918 [in] LPBC pBC,
919 [in] LPCWSTR szUrl,
920 [in] IUnknown *pUnkOuter,
921 [out, unique] IUnknown **ppUnk,
922 [out, unique] IInternetProtocol **ppOInetProt,
923 [in] DWORD dwOption);
925 HRESULT SetSessionOption(
926 [in] DWORD dwOption,
927 [in] LPVOID pBuffer,
928 [in] DWORD dwBufferLength,
929 [in] DWORD dwReserved);
932 /*****************************************************************************
933 * IInternetSecurityMgrSite interface
936 local,
937 object,
938 uuid(79eac9ed-baf9-11ce-8c82-00aa004ba90b),
939 pointer_default(unique)
941 interface IInternetSecurityMgrSite : IUnknown
943 HRESULT GetWindow(
944 [out] HWND *phwnd);
946 HRESULT EnableModeless(
947 [in] BOOL fEnable);
951 /*****************************************************************************
952 * IInternetSecurityManager interface
954 cpp_quote("#define SID_SInternetSecurityManager IID_IInternetSecurityManager")
957 object,
958 uuid(79eac9ee-baf9-11ce-8c82-00aa004ba90b),
959 pointer_default(unique)
961 interface IInternetSecurityManager : IUnknown
963 HRESULT SetSecuritySite(
964 [in, unique] IInternetSecurityMgrSite *pSite);
966 HRESULT GetSecuritySite(
967 [out] IInternetSecurityMgrSite **ppSite);
969 HRESULT MapUrlToZone(
970 [in] LPCWSTR pwszUrl,
971 [out] DWORD *pdwZone,
972 [in] DWORD dwFlags);
974 cpp_quote("#define MAX_SIZE_SECURITY_ID 512")
976 HRESULT GetSecurityId(
977 [in] LPCWSTR pwszUrl,
978 [out, size_is(*pcbSecurityId)] BYTE *pbSecurityId,
979 [in, out] DWORD *pcbSecurityId,
980 [in] DWORD_PTR dwReserved);
983 typedef enum {
984 PUAF_DEFAULT = 0x00,
985 PUAF_NOUI = 0x01,
986 PUAF_ISFILE = 0x02,
987 PUAF_WARN_IF_DENIED = 0x04,
988 PUAF_FORCEUI_FOREGROUND = 0x08,
989 PUAF_CHECK_TIPS = 0x10
990 } PUAF;
992 HRESULT ProcessUrlAction(
993 [in] LPCWSTR pwszUrl,
994 [in] DWORD dwAction,
995 [out, size_is(cbPolicy)] BYTE *pPolicy,
996 [in] DWORD cbPolicy,
997 [in] BYTE *pContext,
998 [in] DWORD cbContext,
999 [in] DWORD dwFlags,
1000 [in] DWORD dwReserved);
1002 HRESULT QueryCustomPolicy(
1003 [in] LPCWSTR pwszUrl,
1004 [in] REFGUID guidKey,
1005 [out, size_is(,*pcbPolicy)] BYTE **ppPolicy,
1006 [out] DWORD *pcbPolicy,
1007 [in] BYTE *pContext,
1008 [in] DWORD cbContext,
1009 [in] DWORD dwReserved);
1011 typedef enum {
1012 SZM_CREATE = 0x0,
1013 SZM_DELETE = 0x1
1014 } SZM_FLAGS;
1016 HRESULT SetZoneMapping(
1017 [in] DWORD dwZone,
1018 [in] LPCWSTR lpszPattern,
1019 [in] DWORD dwFlags);
1021 HRESULT GetZoneMappings(
1022 [in] DWORD dwZone,
1023 [out] IEnumString **ppenumString,
1024 [in] DWORD dwFlags);
1027 cpp_quote("#define URLACTION_MIN 0x00001000")
1028 cpp_quote("#define URLACTION_DOWNLOAD_MIN 0x00001000")
1029 cpp_quote("#define URLACTION_DOWNLOAD_SIGNED_ACTIVEX 0x00001001")
1030 cpp_quote("#define URLACTION_DOWNLOAD_UNSIGNED_ACTIVEX 0x00001004")
1031 cpp_quote("#define URLACTION_DOWNLOAD_CURR_MAX 0x00001004")
1032 cpp_quote("#define URLACTION_DOWNLOAD_MAX 0x000011ff")
1034 cpp_quote("#define URLACTION_ACTIVEX_MIN 0x00001200")
1035 cpp_quote("#define URLACTION_ACTIVEX_RUN 0x00001200")
1036 cpp_quote("#define URLPOLICY_ACTIVEX_CHECK_LIST 0x00010000")
1037 cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_OBJECT_SAFETY 0x00001201")
1038 cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_DATA_SAFETY 0x00001202")
1039 cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_SCRIPT_SAFETY 0x00001203")
1040 cpp_quote("#define URLACTION_SCRIPT_OVERRIDE_SAFETY 0x00001401")
1041 cpp_quote("#define URLACTION_ACTIVEX_CONFIRM_NOOBJECTSAFETY 0x00001204")
1042 cpp_quote("#define URLACTION_ACTIVEX_TREATASUNTRUSTED 0x00001205")
1043 cpp_quote("#define URLACTION_ACTIVEX_CURR_MAX 0x00001205")
1044 cpp_quote("#define URLACTION_ACTIVEX_MAX 0x000013ff")
1046 cpp_quote("#define URLACTION_SCRIPT_MIN 0x00001400")
1047 cpp_quote("#define URLACTION_SCRIPT_RUN 0x00001400")
1048 cpp_quote("#define URLACTION_SCRIPT_JAVA_USE 0x00001402")
1049 cpp_quote("#define URLACTION_SCRIPT_SAFE_ACTIVEX 0x00001405")
1050 cpp_quote("#define URLACTION_CROSS_DOMAIN_DATA 0x00001406")
1051 cpp_quote("#define URLACTION_SCRIPT_PASTE 0x00001407")
1052 cpp_quote("#define URLACTION_SCRIPT_CURR_MAX 0x00001407")
1053 cpp_quote("#define URLACTION_SCRIPT_MAX 0x000015ff")
1055 cpp_quote("#define URLACTION_HTML_MIN 0x00001600")
1056 cpp_quote("#define URLACTION_HTML_SUBMIT_FORMS 0x00001601")
1057 cpp_quote("#define URLACTION_HTML_SUBMIT_FORMS_FROM 0x00001602")
1058 cpp_quote("#define URLACTION_HTML_SUBMIT_FORMS_TO 0x00001603")
1059 cpp_quote("#define URLACTION_HTML_FONT_DOWNLOAD 0x00001604")
1060 cpp_quote("#define URLACTION_HTML_JAVA_RUN 0x00001605")
1061 cpp_quote("#define URLACTION_HTML_USERDATA_SAVE 0x00001606")
1062 cpp_quote("#define URLACTION_HTML_SUBFRAME_NAVIGATE 0x00001607")
1063 cpp_quote("#define URLACTION_HTML_META_REFRESH 0x00001608")
1064 cpp_quote("#define URLACTION_HTML_MIXED_CONTENT 0x00001609")
1065 cpp_quote("#define URLACTION_HTML_MAX 0x000017ff")
1067 cpp_quote("#define URLACTION_SHELL_MIN 0x00001800")
1068 cpp_quote("#define URLACTION_SHELL_INSTALL_DTITEMS 0x00001800")
1069 cpp_quote("#define URLACTION_SHELL_MOVE_OR_COPY 0x00001802")
1070 cpp_quote("#define URLACTION_SHELL_FILE_DOWNLOAD 0x00001803")
1071 cpp_quote("#define URLACTION_SHELL_VERB 0x00001804")
1072 cpp_quote("#define URLACTION_SHELL_WEBVIEW_VERB 0x00001805")
1073 cpp_quote("#define URLACTION_SHELL_CURR_MAX 0x00001805")
1074 cpp_quote("#define URLACTION_SHELL_MAX 0x000019ff")
1076 cpp_quote("#define URLACTION_NETWORK_MIN 0x00001a00")
1077 cpp_quote("#define URLACTION_CREDENTIALS_USE 0x00001a00")
1078 cpp_quote("#define URLACTION_AUTHENTICATE_CLIENT 0x00001a01")
1079 cpp_quote("#define URLACTION_COOKIES 0x00001a02")
1080 cpp_quote("#define URLACTION_COOKIES_SESSION 0x00001a03")
1081 cpp_quote("#define URLACTION_CLIENT_CERT_PROMPT 0x00001a04")
1082 cpp_quote("#define URLACTION_COOKIES_THIRD_PARTY 0x00001a05")
1083 cpp_quote("#define URLACTION_COOKIES_SESSION_THIRD_PARTY 0x00001a06")
1084 cpp_quote("#define URLACTION_COOKIES_ENABLED 0x00001a10")
1085 cpp_quote("#define URLACTION_NETWORK_CURR_MAX 0x00001a10")
1086 cpp_quote("#define URLACTION_NETWORK_MAX 0x00001bff")
1088 cpp_quote("#define URLACTION_JAVA_MIN 0x00001c00")
1089 cpp_quote("#define URLACTION_JAVA_PERMISSIONS 0x00001c00")
1090 cpp_quote("#define URLPOLICY_JAVA_PROHIBIT 0x00000000")
1091 cpp_quote("#define URLPOLICY_JAVA_HIGH 0x00010000")
1092 cpp_quote("#define URLPOLICY_JAVA_MEDIUM 0x00020000")
1093 cpp_quote("#define URLPOLICY_JAVA_LOW 0x00030000")
1094 cpp_quote("#define URLPOLICY_JAVA_CUSTOM 0x00800000")
1095 cpp_quote("#define URLACTION_JAVA_CURR_MAX 0x00001c00")
1096 cpp_quote("#define URLACTION_JAVA_MAX 0x00001cff")
1098 cpp_quote("#define URLACTION_INFODELIVERY_MIN 0x00001d00")
1099 cpp_quote("#define URLACTION_INFODELIVERY_NO_ADDING_CHANNELS 0x00001d00")
1100 cpp_quote("#define URLACTION_INFODELIVERY_NO_EDITING_CHANNELS 0x00001d01")
1101 cpp_quote("#define URLACTION_INFODELIVERY_NO_REMOVING_CHANNELS 0x00001d02")
1102 cpp_quote("#define URLACTION_INFODELIVERY_NO_ADDING_SUBSCRIPTIONS 0x00001d03")
1103 cpp_quote("#define URLACTION_INFODELIVERY_NO_EDITING_SUBSCRIPTIONS 0x00001d04")
1104 cpp_quote("#define URLACTION_INFODELIVERY_NO_REMOVING_SUBSCRIPTIONS 0x00001d05")
1105 cpp_quote("#define URLACTION_INFODELIVERY_NO_CHANNEL_LOGGING 0x00001d06")
1106 cpp_quote("#define URLACTION_INFODELIVERY_CURR_MAX 0x00001d06")
1107 cpp_quote("#define URLACTION_INFODELIVERY_MAX 0x00001dff")
1109 cpp_quote("#define URLACTION_CHANNEL_SOFTDIST_MIN 0x00001e00")
1110 cpp_quote("#define URLACTION_CHANNEL_SOFTDIST_PERMISSIONS 0x00001e05")
1111 cpp_quote("#define URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT 0x00010000")
1112 cpp_quote("#define URLPOLICY_CHANNEL_SOFTDIST_PRECACHE 0x00020000")
1113 cpp_quote("#define URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL 0x00030000")
1114 cpp_quote("#define URLACTION_CHANNEL_SOFTDIST_MAX 0x00001eff")
1116 cpp_quote("#define URLPOLICY_ALLOW 0x00")
1117 cpp_quote("#define URLPOLICY_QUERY 0x01")
1118 cpp_quote("#define URLPOLICY_DISALLOW 0x03")
1120 cpp_quote("#define URLPOLICY_NOTIFY_ON_ALLOW 0x10")
1121 cpp_quote("#define URLPOLICY_NOTIFY_ON_DISALLOW 0x20")
1123 cpp_quote("#define URLPOLICY_LOG_ON_ALLOW 0x40")
1124 cpp_quote("#define URLPOLICY_LOG_ON_DISALLOW 0x80")
1126 cpp_quote("#define URLPOLICY_DONTCHECKDLGBOX 0x100")
1128 cpp_quote("#define URLPOLICY_CREDENTIALS_SILENT_LOGON_OK 0x00000000")
1129 cpp_quote("#define URLPOLICY_CREDENTIALS_MUST_PROMPT_USER 0x00010000")
1130 cpp_quote("#define URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT 0x00020000")
1131 cpp_quote("#define URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY 0x00030000")
1133 cpp_quote("#define URLPOLICY_AUTHENTICATE_CLEARTEXT_OK 0x00000000")
1134 cpp_quote("#define URLPOLICY_AUTHENTICATE_CHALLENGE_RESPONSE 0x00010000")
1135 cpp_quote("#define URLPOLICY_AUTHENTICATE_MUTUAL_ONLY 0x00030000")
1137 cpp_quote("#define URLPOLICY_MASK_PERMISSIONS 0x0f")
1138 cpp_quote("#define GetUrlPolicyPermissions(dw) (dw & URLPOLICY_MASK_PERMISSIONS)")
1139 cpp_quote("#define SetUrlPolicyPermissions(dw,dw2) ((dw) = ((dw) & ~URLPOLICY_MASK_PERMISSIONS) | (dw2))")
1141 /*****************************************************************************
1142 * IInternetZoneManager interface
1145 local,
1146 object,
1147 uuid(79EAC9EF-BAf9-11CE-8C82-00AA004BA90B),
1148 pointer_default(unique)
1150 interface IInternetZoneManager : IUnknown
1152 typedef [unique] IInternetZoneManager* LPURLZONEMANAGER;
1154 typedef enum tagURLZONE
1156 URLZONE_PREDEFINED_MIN = 0,
1157 URLZONE_LOCAL_MACHINE = 0,
1158 URLZONE_INTRANET = 1,
1159 URLZONE_TRUSTED = 2,
1160 URLZONE_INTERNET = 3,
1161 URLZONE_UNTRUSTED = 4,
1162 URLZONE_PREDEFINED_MAX = 999,
1163 URLZONE_USER_MIN = 1000,
1164 URLZONE_USER_MAX = 10000,
1165 } URLZONE;
1167 typedef enum tagURLTEMPLATE
1169 URLTEMPLATE_CUSTOM = 0x00000,
1170 URLTEMPLATE_PREDEFINED_MIN = 0x10000,
1171 URLTEMPLATE_LOW = 0x10000,
1172 URLTEMPLATE_MEDIUM = 0x11000,
1173 URLTEMPLATE_HIGH = 0x12000,
1174 URLTEMPLATE_PREDEFINED_MAX = 0x20000,
1175 } URLTEMPLATE ;
1177 typedef enum {
1178 ZAFLAGS_CUSTOM_EDIT = 0x00000001,
1179 ZAFLAGS_ADD_SITES = 0x00000002,
1180 ZAFLAGS_REQUIRE_VERIFICATION = 0x00000004,
1181 ZAFLAGS_INCLUDE_PROXY_OVERRIDE = 0x00000008,
1182 ZAFLAGS_INCLUDE_INTRANET_SITES = 0x00000010,
1183 ZAFLAGS_NO_UI = 0x00000020,
1184 ZAFLAGS_SUPPORTS_VERIFICATION = 0x00000040,
1185 ZAFLAGS_UNC_AS_INTRANET = 0x00000080,
1186 } ZAFLAGS ;
1188 enum {
1189 MAX_ZONE_PATH = 260,
1190 MAX_ZONE_DESCRIPTION = 200
1193 typedef struct _ZONEATTRIBUTES {
1194 ULONG cbSize;
1195 WCHAR szDisplayName[MAX_ZONE_PATH];
1196 WCHAR szDescription[MAX_ZONE_DESCRIPTION];
1197 WCHAR szIconPath[MAX_ZONE_PATH];
1198 DWORD dwTemplateMinLevel;
1199 DWORD dwTemplateRecommended;
1200 DWORD dwTemplateCurrentLevel;
1201 DWORD dwFlags;
1202 } ZONEATTRIBUTES, *LPZONEATTRIBUTES;
1204 typedef enum _URLZONEREG {
1205 URLZONEREG_DEFAULT,
1206 URLZONEREG_HKLM,
1207 URLZONEREG_HKCU
1208 } URLZONEREG;
1210 HRESULT GetZoneAttributes(
1211 [in] DWORD dwZone,
1212 [in, out, unique] ZONEATTRIBUTES* pZoneAttributes);
1214 HRESULT SetZoneAttributes(
1215 [in] DWORD dwZone,
1216 [in] ZONEATTRIBUTES* pZoneAttributes);
1218 HRESULT GetZoneCustomPolicy(
1219 [in] DWORD dwZone,
1220 [in] REFGUID guidKey,
1221 [out] BYTE **ppPolicy,
1222 [out] DWORD* pcbPolicy,
1223 [in] URLZONEREG ulrZoneReg);
1225 HRESULT SetZoneCustomPolicy(
1226 [in] DWORD dwZone,
1227 [in] REFGUID guidKey,
1228 [in] BYTE *ppPolicy,
1229 [in] DWORD pcbPolicy,
1230 [in] URLZONEREG ulrZoneReg);
1232 HRESULT GetZoneActionPolicy(
1233 [in] DWORD dwZone,
1234 [in] DWORD dwAction,
1235 [out] BYTE* pPolicy,
1236 [in] DWORD cbPolicy,
1237 [in] URLZONEREG urlZoneReg);
1239 HRESULT SetZoneActionPolicy(
1240 [in] DWORD dwZone,
1241 [in] DWORD dwAction,
1242 [in] BYTE* pPolicy,
1243 [in] DWORD cbPolicy,
1244 [in] URLZONEREG urlZoneReg);
1246 HRESULT PromptAction(
1247 [in] DWORD dwAction,
1248 [in] HWND hwndParent,
1249 [in] LPCWSTR pwszUrl,
1250 [in] LPCWSTR pwszText,
1251 [in] DWORD dwPromptFlags );
1253 HRESULT LogAction(
1254 [in] DWORD dwAction,
1255 [in] LPCWSTR pwszUrl,
1256 [in] LPCWSTR pwszText,
1257 [in] DWORD dwLogFlags);
1259 HRESULT CreateZoneEnumerator(
1260 [out] DWORD* pdwEnum,
1261 [out] DWORD* pdwCount,
1262 [in] DWORD dwFlags);
1264 HRESULT GetZoneAt(
1265 [in] DWORD dwEnum,
1266 [in] DWORD dwIndex,
1267 [out] DWORD* pdwZone);
1269 HRESULT DestroyZoneEnumerator(
1270 [in] DWORD dwEnum);
1272 HRESULT CopyTemplatePoliciesToZone(
1273 [in] DWORD dwTemplate,
1274 [in] DWORD dwZone,
1275 [in] DWORD dwReserved);
1278 typedef struct _tagSOFTDISTINFO
1280 ULONG cbSize;
1281 DWORD dwFlags;
1282 DWORD dwAdState;
1283 LPWSTR szTitle;
1284 LPWSTR szAbstract;
1285 LPWSTR szHREF;
1286 DWORD dwInstalledVersionMS;
1287 DWORD dwInstalledVersionLS;
1288 DWORD dwUpdateVersionMS;
1289 DWORD dwUpdateVersionLS;
1290 DWORD dwAdvertisedVersionMS;
1291 DWORD dwAdvertisedVersionLS;
1292 DWORD dwReserved;
1293 } SOFTDISTINFO, *LPSOFTDISTINFO;
1295 typedef struct _tagCODEBASEHOLD
1297 DWORD cbSize;
1298 LPWSTR szDistUnit;
1299 LPWSTR szCodeBase;
1300 DWORD dwVersionMS;
1301 DWORD dwVersionLS;
1302 DWORD dwStyle;
1303 } CODEBASEHOLD, *LPCODEBASEHOLD;
1306 local,
1307 object,
1308 uuid(b15b8dc1-c7e1-11d0-8680-00aa00bdcb71),
1309 pointer_default(unique)
1311 interface ISoftDistExt : IUnknown
1313 HRESULT ProcessSoftDist(
1314 [in] LPCWSTR szCDFURL,
1315 [in] IXMLElement *pSoftDistElement,
1316 [in, out] LPSOFTDISTINFO lpsdi );
1318 HRESULT GetFirstCodeBase(
1319 [in] LPWSTR *szCodeBase,
1320 [in] LPDWORD dwMaxSize );
1322 HRESULT GetNextCodeBase(
1323 [in] LPWSTR *szCodeBase,
1324 [in] LPDWORD dwMaxSize );
1326 HRESULT AsyncInstallDistributionUnit(
1327 [in] IBindCtx *pbc,
1328 [in] LPVOID lpReserved,
1329 [in] DWORD flags,
1330 [in] LPCODEBASEHOLD lpcbh);
1333 typedef enum _tagINTERNETFEATURELIST
1335 FEATURE_OBJECT_CACHING,
1336 FEATURE_ZONE_ELEVATION,
1337 FEATURE_MIME_HANDLING,
1338 FEATURE_MIME_SNIFFING,
1339 FEATURE_WINDOW_RESTRICTIONS,
1340 FEATURE_WEBOC_POPUPMANAGEMENT,
1341 FEATURE_BEHAVIORS,
1342 FEATURE_DISABLE_MK_PROTOCOL,
1343 FEATURE_LOCALMACHINE_LOCKDOWN,
1344 FEATURE_SECURITYBAND,
1345 FEATURE_RESTRICT_ACTIVEXINSTALL,
1346 FEATURE_VALIDATE_NAVIGATE_URL,
1347 FEATURE_RESTRICT_FILEDOWNLOAD,
1348 FEATURE_ADDON_MANAGEMENT,
1349 FEATURE_PROTOCOL_LOCKDOWN,
1350 FEATURE_HTTP_USERNAME_PASSWORD_DISABLE,
1351 FEATURE_SAFE_BINDTOOBJECT,
1352 FEATURE_UNC_SAVEDFILECHECK,
1353 FEATURE_GET_URL_DOM_FILEPATH_UNENCODED,
1354 FEATURE_TABBED_BROWSING,
1355 FEATURE_SSLUX,
1356 FEATURE_DISABLE_NAVIGATION_SOUNDS,
1357 FEATURE_DISABLE_LEGACY_COMPRESSION,
1358 FEATURE_FORCE_ADDR_AND_STATUS,
1359 FEATURE_XMLHTTP,
1360 FEATURE_DISABLE_TELNET_PROTOCOL,
1361 FEATURE_FEEDS,
1362 FEATURE_BLOCK_INPUT_PROMPTS,
1363 FEATURE_DOMSTORAGE,
1364 FEATURE_XDOMAINREQUEST,
1365 FEATURE_DATAURI,
1366 FEATURE_AJAX_CONNECTIONSERVICES,
1367 FEATURE_ENTRY_COUNT
1368 } INTERNETFEATURELIST;
1370 /*****************************************************************************
1371 * IUri interface
1374 local,
1375 object,
1376 uuid(a39ee748-6a27-4817-a6f2-13914bef5890),
1377 pointer_default(unique)
1379 interface IUri : IUnknown
1381 typedef enum
1383 Uri_PROPERTY_ABSOLUTE_URI = 0,
1384 Uri_PROPERTY_STRING_START = Uri_PROPERTY_ABSOLUTE_URI,
1385 Uri_PROPERTY_AUTHORITY = 1,
1386 Uri_PROPERTY_DISPLAY_URI = 2,
1387 Uri_PROPERTY_DOMAIN = 3,
1388 Uri_PROPERTY_EXTENSION = 4,
1389 Uri_PROPERTY_FRAGMENT = 5,
1390 Uri_PROPERTY_HOST = 6,
1391 Uri_PROPERTY_PASSWORD = 7,
1392 Uri_PROPERTY_PATH = 8,
1393 Uri_PROPERTY_PATH_AND_QUERY = 9,
1394 Uri_PROPERTY_QUERY = 10,
1395 Uri_PROPERTY_RAW_URI = 11,
1396 Uri_PROPERTY_SCHEME_NAME = 12,
1397 Uri_PROPERTY_USER_INFO = 13,
1398 Uri_PROPERTY_USER_NAME = 14,
1399 Uri_PROPERTY_STRING_LAST = Uri_PROPERTY_USER_NAME,
1400 Uri_PROPERTY_HOST_TYPE = 15,
1401 Uri_PROPERTY_DWORD_START = Uri_PROPERTY_HOST_TYPE,
1402 Uri_PROPERTY_PORT = 16,
1403 Uri_PROPERTY_SCHEME = 17,
1404 Uri_PROPERTY_ZONE = 18,
1405 Uri_PROPERTY_DWORD_LAST = Uri_PROPERTY_ZONE
1406 } Uri_PROPERTY;
1408 HRESULT GetPropertyBSTR(
1409 [in] Uri_PROPERTY uriProp,
1410 [out] BSTR *pbstrProperty,
1411 [in] DWORD dwFlags);
1413 HRESULT GetPropertyLength(
1414 [in] Uri_PROPERTY uriProp,
1415 [out] DWORD *pcchProperty,
1416 [in] DWORD dwFlags);
1418 HRESULT GetPropertyDWORD(
1419 [in] Uri_PROPERTY uriProp,
1420 [out] DWORD *pdwProperty,
1421 [in] DWORD dwFlags);
1423 HRESULT HasProperty(
1424 [in] Uri_PROPERTY uriProp,
1425 [out] BOOL *pfHasProperty);
1427 HRESULT GetAbsoluteUri(
1428 [out] BSTR *pbstrAbsoluteUri);
1430 HRESULT GetAuthority(
1431 [out] BSTR *pbstrAuthority);
1433 HRESULT GetDisplayUri(
1434 [out] BSTR *pbstrDisplayString);
1436 HRESULT GetDomain(
1437 [out] BSTR *pbstrDomain);
1439 HRESULT GetExtension(
1440 [out] BSTR *pbstrExtension);
1442 HRESULT GetFragment(
1443 [out] BSTR *pbstrFragment);
1445 HRESULT GetHost(
1446 [out] BSTR *pbstrHost);
1448 HRESULT GetPassword(
1449 [out] BSTR *pbstrPassword);
1451 HRESULT GetPath(
1452 [out] BSTR *pbstrPath);
1454 HRESULT GetPathAndQuery(
1455 [out] BSTR *pbstrPathAndQuery);
1457 HRESULT GetQuery(
1458 [out] BSTR *pbstrQuery);
1460 HRESULT GetRawUri(
1461 [out] BSTR *pbstrRawUri);
1463 HRESULT GetSchemeName(
1464 [out] BSTR *pbstrSchemeName);
1466 HRESULT GetUserInfo(
1467 [out] BSTR *pbstrUserInfo);
1469 HRESULT GetUserName(
1470 [out] BSTR *pbstrUserName);
1472 HRESULT GetHostType(
1473 [out] DWORD *pdwHostType);
1475 HRESULT GetPort(
1476 [out] DWORD *pdwPort);
1478 HRESULT GetScheme(
1479 [out] DWORD *pdwScheme);
1481 HRESULT GetZone(
1482 [out] DWORD *pdwZone);
1484 HRESULT GetProperties(
1485 [out] LPDWORD pdwFlags);
1487 HRESULT IsEqual(
1488 [in] IUri *pUri,
1489 [out] BOOL *pfEqual);
1492 /*****************************************************************************
1493 * IInternetProtocolEx interface
1496 local,
1497 object,
1498 uuid(c7a98e66-1010-492c-a1c8-c809e1f75905),
1499 pointer_default(unique)
1501 interface IInternetProtocolEx : IInternetProtocol
1503 HRESULT StartEx(
1504 [in] IUri *pUri,
1505 [in] IInternetProtocolSink *pOIProtSink,
1506 [in] IInternetBindInfo *pOIBindInfo,
1507 [in] DWORD grfPI,
1508 [in] HANDLE *dwReserved);
1511 cpp_quote("DEFINE_GUID(CLSID_InternetSecurityManager, 0x7b8a2d94, 0x0ac9, 0x11d1, 0x89, 0x6c, 0x00, 0xc0, 0x4f, 0xB6, 0xbf, 0xc4);")
1512 cpp_quote("DEFINE_GUID(CLSID_InternetZoneManager, 0x7B8A2D95, 0x0AC9, 0x11D1, 0x89, 0x6C, 0x00, 0xC0, 0x4F, 0xB6, 0xBF, 0xC4);")
1513 cpp_quote("DEFINE_GUID(IID_IAsyncMoniker, 0x79EAC9D3, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1514 cpp_quote("DEFINE_GUID(IID_IAsyncBindCtx, 0x79EAC9D4, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1515 cpp_quote("DEFINE_GUID(CLSID_StdURLMoniker, 0x79EAC9E0, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
1517 cpp_quote("DEFINE_GUID(CLSID_CdlProtocol, 0x3dd53d40, 0x7b8b, 0x11D0, 0xb0,0x13, 0x00,0xaa,0x00,0x59,0xce,0x02);")
1518 cpp_quote("DEFINE_GUID(CLSID_FileProtocol, 0x79EAC9E7, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1519 cpp_quote("DEFINE_GUID(CLSID_FtpProtocol, 0x79EAC9E3, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1520 cpp_quote("DEFINE_GUID(CLSID_GopherProtocol, 0x79EAC9E4, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1521 cpp_quote("DEFINE_GUID(CLSID_HttpProtocol, 0x79EAC9E2, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1522 cpp_quote("DEFINE_GUID(CLSID_HttpSProtocol, 0x79EAC9E5, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1523 cpp_quote("DEFINE_GUID(CLSID_MkProtocol, 0x79EAC9E6, 0xBAF9, 0x11CE, 0x8C,0x82, 0x00,0xAA,0x00,0x4B,0xA9,0x0B);")
1525 cpp_quote("#define URLMON_OPTION_USERAGENT 0x10000001")
1526 cpp_quote("#define URLMON_OPTION_USERAGENT_REFRESH 0x10000002")
1527 cpp_quote("#define URLMON_OPTION_URL_ENCODING 0x10000004")
1529 cpp_quote("#define MK_S_ASYNCHRONOUS _HRESULT_TYPEDEF_(0x000401E8)")
1530 cpp_quote("#ifndef S_ASYNCHRONOUS")
1531 cpp_quote("#define S_ASYNCHRONOUS MK_S_ASYNCHRONOUS")
1532 cpp_quote("#endif")
1534 cpp_quote("#define INET_E_ERROR_FIRST _HRESULT_TYPEDEF_(0x800C0002)")
1535 cpp_quote("#define INET_E_INVALID_URL _HRESULT_TYPEDEF_(0x800C0002)")
1536 cpp_quote("#define INET_E_NO_SESSION _HRESULT_TYPEDEF_(0x800C0003)")
1537 cpp_quote("#define INET_E_CANNOT_CONNECT _HRESULT_TYPEDEF_(0x800C0004)")
1538 cpp_quote("#define INET_E_RESOURCE_NOT_FOUND _HRESULT_TYPEDEF_(0x800C0005)")
1539 cpp_quote("#define INET_E_OBJECT_NOT_FOUND _HRESULT_TYPEDEF_(0x800C0006)")
1540 cpp_quote("#define INET_E_DATA_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x800C0007)")
1541 cpp_quote("#define INET_E_DOWNLOAD_FAILURE _HRESULT_TYPEDEF_(0x800C0008)")
1542 cpp_quote("#define INET_E_AUTHENTICATION_REQUIRED _HRESULT_TYPEDEF_(0x800C0009)")
1543 cpp_quote("#define INET_E_NO_VALID_MEDIA _HRESULT_TYPEDEF_(0x800C000A)")
1544 cpp_quote("#define INET_E_CONNECTION_TIMEOUT _HRESULT_TYPEDEF_(0x800C000B)")
1545 cpp_quote("#define INET_E_INVALID_REQUEST _HRESULT_TYPEDEF_(0x800C000C)")
1546 cpp_quote("#define INET_E_UNKNOWN_PROTOCOL _HRESULT_TYPEDEF_(0x800C000D)")
1547 cpp_quote("#define INET_E_SECURITY_PROBLEM _HRESULT_TYPEDEF_(0x800C000E)")
1548 cpp_quote("#define INET_E_CANNOT_LOAD_DATA _HRESULT_TYPEDEF_(0x800C000F)")
1549 cpp_quote("#define INET_E_CANNOT_INSTANTIATE_OBJECT _HRESULT_TYPEDEF_(0x800C0010)")
1550 cpp_quote("#define INET_E_USE_DEFAULT_PROTOCOLHANDLER _HRESULT_TYPEDEF_(0x800C0011)")
1551 cpp_quote("#define INET_E_QUERYOPTION_UNKNOWN _HRESULT_TYPEDEF_(0x800C0013)")
1552 cpp_quote("#define INET_E_REDIRECT_FAILED _HRESULT_TYPEDEF_(0x800C0014)")
1553 cpp_quote("#define INET_E_REDIRECT_TO_DIR _HRESULT_TYPEDEF_(0x800C0015)")
1554 cpp_quote("#define INET_E_CANNOT_LOCK_REQUEST _HRESULT_TYPEDEF_(0x800C0016)")
1555 cpp_quote("#define INET_E_ERROR_LAST INET_E_REDIRECT_TO_DIR")
1556 cpp_quote("#define INET_E_DEFAULT_ACTION INET_E_USE_DEFAULT_PROTOCOLHANDLER")
1558 cpp_quote("HRESULT WINAPI CoGetClassObjectFromURL(REFCLSID, LPCWSTR, DWORD, DWORD, LPCWSTR, LPBINDCTX, DWORD, LPVOID, REFIID, LPVOID*);")
1559 cpp_quote("HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk);")
1560 cpp_quote("HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved);")
1561 cpp_quote("HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD);")
1562 cpp_quote("HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN,LPCSTR,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1563 cpp_quote("HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN,LPCWSTR,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1564 cpp_quote("HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN,LPCSTR,LPSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1565 cpp_quote("HRESULT WINAPI URLDownloadToCacheFileW(LPUNKNOWN,LPCWSTR,LPWSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);")
1566 cpp_quote("HRESULT WINAPI CoInternetGetSession(DWORD,IInternetSession**,DWORD);")
1567 cpp_quote("HRESULT WINAPI MkParseDisplayNameEx(IBindCtx*,LPCWSTR,ULONG*,IMoniker**);")
1568 cpp_quote("HRESULT WINAPI IsAsyncMoniker(IMoniker* pmk);")
1569 cpp_quote("HRESULT WINAPI CreateAsyncBindCtx(DWORD, IBindStatusCallback*, IEnumFORMATETC*, IBindCtx**);")
1570 cpp_quote("HRESULT WINAPI CreateAsyncBindCtxEx(IBindCtx*,DWORD,IBindStatusCallback*,IEnumFORMATETC*,IBindCtx**,DWORD);")
1571 cpp_quote("HRESULT WINAPI CoInternetCreateSecurityManager(IServiceProvider*,IInternetSecurityManager**,DWORD);")
1572 cpp_quote("HRESULT WINAPI CoInternetCombineUrl(LPCWSTR,LPCWSTR,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1573 cpp_quote("HRESULT WINAPI CoInternetCompareUrl(LPCWSTR,LPCWSTR,DWORD);")
1574 cpp_quote("HRESULT WINAPI CoInternetCreateZoneManager(IServiceProvider*, IInternetZoneManager**, DWORD);")
1575 cpp_quote("HRESULT WINAPI CoInternetParseUrl(LPCWSTR,PARSEACTION,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
1576 cpp_quote("HRESULT WINAPI CoInternetQueryInfo(LPCWSTR,QUERYOPTION,DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1577 cpp_quote("HRESULT WINAPI CoInternetSetFeatureEnabled(INTERNETFEATURELIST,DWORD,BOOL);")
1578 cpp_quote("HRESULT WINAPI CreateFormatEnumerator(UINT,FORMATETC*,IEnumFORMATETC**);")
1579 cpp_quote("HRESULT WINAPI GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi);")
1580 cpp_quote("HRESULT WINAPI FaultInIEFeature(HWND,uCLSSPEC*,QUERYCONTEXT*,DWORD);")
1581 cpp_quote("HRESULT WINAPI FindMimeFromData(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,LPWSTR*,DWORD);")
1582 cpp_quote("HRESULT WINAPI GetClassFileOrMime(LPBC,LPCWSTR,LPVOID,DWORD,LPCWSTR,DWORD,CLSID*);")
1583 cpp_quote("HRESULT WINAPI HlinkGoBack(IUnknown*);")
1584 cpp_quote("HRESULT WINAPI HlinkGoForward(IUnknown*);")
1585 cpp_quote("HRESULT WINAPI HlinkNavigateMoniker(IUnknown*,IMoniker*);")
1586 cpp_quote("HRESULT WINAPI HlinkNavigateString(IUnknown*,LPCWSTR);")
1587 cpp_quote("HRESULT WINAPI HlinkSimpleNavigateToMoniker(IMoniker*,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1588 cpp_quote("HRESULT WINAPI HlinkSimpleNavigateToString(LPCWSTR,LPCWSTR,LPCWSTR,IUnknown*,IBindCtx*,IBindStatusCallback*,DWORD,DWORD);")
1589 cpp_quote("HRESULT WINAPI IsValidURL(LPBC,LPCWSTR,DWORD);")
1590 cpp_quote("HRESULT WINAPI ObtainUserAgentString(DWORD,LPSTR,DWORD*);")
1591 cpp_quote("HRESULT WINAPI RegisterFormatEnumerator(LPBC,IEnumFORMATETC*,DWORD);")
1592 cpp_quote("HRESULT WINAPI RevokeFormatEnumerator(LPBC,IEnumFORMATETC*);")
1593 cpp_quote("HRESULT WINAPI RevokeBindStatusCallback(LPBC,IBindStatusCallback*);")
1594 cpp_quote("HRESULT WINAPI CopyStgMedium(const STGMEDIUM*,STGMEDIUM*);")
1595 cpp_quote("void WINAPI ReleaseBindInfo(BINDINFO*);")
1596 cpp_quote("HRESULT WINAPI UrlMkGetSessionOption(DWORD,LPVOID,DWORD,DWORD*,DWORD);")
1597 cpp_quote("HRESULT WINAPI UrlMkSetSessionOption(DWORD,LPVOID,DWORD,DWORD);")
1598 cpp_quote("HRESULT WINAPI URLOpenStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1599 cpp_quote("HRESULT WINAPI URLOpenStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1600 cpp_quote("HRESULT WINAPI URLOpenPullStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
1601 cpp_quote("HRESULT WINAPI URLOpenPullStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
1602 cpp_quote("HRESULT WINAPI URLOpenBlockingStreamA(LPUNKNOWN,LPCSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
1603 cpp_quote("HRESULT WINAPI URLOpenBlockingStreamW(LPUNKNOWN,LPCWSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
1605 cpp_quote("#define OInetCombineUrl CoInternetCombineUrl")
1606 cpp_quote("#define OInetCompareUrl CoInternetCompareUrl")
1607 cpp_quote("#define OInetGetSession CoInternetGetSession")
1609 cpp_quote("BOOL WINAPI IsLoggingEnabledA(LPCSTR);")
1610 cpp_quote("BOOL WINAPI IsLoggingEnabledW(LPCWSTR);")
1611 cpp_quote("#define IsLoggingEnabled WINELIB_NAME_AW(IsLoggingEnabled)")
1613 cpp_quote("#define MKSYS_URLMONIKER 6")
1614 cpp_quote("#define URL_MK_LEGACY 0")
1615 cpp_quote("#define URL_MK_UNIFORM 1")