2000-04-24 20:03:54 +02:00
|
|
|
/*
|
|
|
|
* UrlMon
|
|
|
|
*
|
|
|
|
* Copyright (c) 2000 Patrik Stridvall
|
|
|
|
*
|
2002-03-10 00:29:33 +01:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2000-04-24 20:03:54 +02:00
|
|
|
*/
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2007-12-13 20:26:51 +01:00
|
|
|
#include "urlmon_main.h"
|
2004-10-07 05:06:48 +02:00
|
|
|
|
2005-09-12 22:12:40 +02:00
|
|
|
#include "winreg.h"
|
|
|
|
|
2004-05-05 03:32:00 +02:00
|
|
|
#define NO_SHLWAPI_REG
|
|
|
|
#include "shlwapi.h"
|
2010-12-22 19:01:07 +01:00
|
|
|
#include "advpub.h"
|
2012-01-13 14:29:47 +01:00
|
|
|
#include "initguid.h"
|
2010-12-22 19:01:07 +01:00
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
2000-04-24 20:03:54 +02:00
|
|
|
|
2004-09-28 21:18:52 +02:00
|
|
|
#include "urlmon.h"
|
2002-08-13 20:20:24 +02:00
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
|
|
|
|
|
2012-01-13 14:29:47 +01:00
|
|
|
DEFINE_GUID(CLSID_CUri, 0xDF2FCE13, 0x25EC, 0x45BB, 0x9D,0x4C, 0xCE,0xCD,0x47,0xC2,0x43,0x0C);
|
|
|
|
|
2005-02-03 20:38:37 +01:00
|
|
|
LONG URLMON_refCount = 0;
|
2012-11-02 13:49:53 +01:00
|
|
|
HINSTANCE urlmon_instance;
|
2005-02-03 20:38:37 +01:00
|
|
|
|
2006-08-04 13:55:37 +02:00
|
|
|
static HMODULE hCabinet = NULL;
|
2009-05-24 23:16:21 +02:00
|
|
|
static DWORD urlmon_tls = TLS_OUT_OF_INDEXES;
|
2002-08-13 20:20:24 +02:00
|
|
|
|
2012-03-13 14:09:30 +01:00
|
|
|
static void init_session(void);
|
2006-07-07 20:31:59 +02:00
|
|
|
|
2009-05-11 13:14:45 +02:00
|
|
|
static struct list tls_list = LIST_INIT(tls_list);
|
|
|
|
|
|
|
|
static CRITICAL_SECTION tls_cs;
|
|
|
|
static CRITICAL_SECTION_DEBUG tls_cs_dbg =
|
|
|
|
{
|
|
|
|
0, 0, &tls_cs,
|
|
|
|
{ &tls_cs_dbg.ProcessLocksList, &tls_cs_dbg.ProcessLocksList },
|
|
|
|
0, 0, { (DWORD_PTR)(__FILE__ ": tls") }
|
|
|
|
};
|
|
|
|
|
|
|
|
static CRITICAL_SECTION tls_cs = { &tls_cs_dbg, -1, 0, 0, 0, 0 };
|
|
|
|
|
|
|
|
tls_data_t *get_tls_data(void)
|
|
|
|
{
|
|
|
|
tls_data_t *data;
|
|
|
|
|
2009-05-24 23:16:21 +02:00
|
|
|
if(urlmon_tls == TLS_OUT_OF_INDEXES) {
|
2009-05-11 13:14:45 +02:00
|
|
|
DWORD tls = TlsAlloc();
|
2009-05-24 23:16:21 +02:00
|
|
|
if(tls == TLS_OUT_OF_INDEXES)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
tls = InterlockedCompareExchange((LONG*)&urlmon_tls, tls, TLS_OUT_OF_INDEXES);
|
2009-05-11 13:14:45 +02:00
|
|
|
if(tls != urlmon_tls)
|
|
|
|
TlsFree(tls);
|
|
|
|
}
|
|
|
|
|
|
|
|
data = TlsGetValue(urlmon_tls);
|
|
|
|
if(!data) {
|
|
|
|
data = heap_alloc_zero(sizeof(tls_data_t));
|
|
|
|
if(!data)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
EnterCriticalSection(&tls_cs);
|
|
|
|
list_add_tail(&tls_list, &data->entry);
|
|
|
|
LeaveCriticalSection(&tls_cs);
|
|
|
|
|
|
|
|
TlsSetValue(urlmon_tls, data);
|
|
|
|
}
|
|
|
|
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void free_tls_list(void)
|
|
|
|
{
|
|
|
|
tls_data_t *data;
|
|
|
|
|
2009-05-24 23:16:21 +02:00
|
|
|
if(urlmon_tls == TLS_OUT_OF_INDEXES)
|
2009-05-11 13:14:45 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
while(!list_empty(&tls_list)) {
|
|
|
|
data = LIST_ENTRY(list_head(&tls_list), tls_data_t, entry);
|
|
|
|
list_remove(&data->entry);
|
|
|
|
heap_free(data);
|
|
|
|
}
|
|
|
|
|
|
|
|
TlsFree(urlmon_tls);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void detach_thread(void)
|
|
|
|
{
|
|
|
|
tls_data_t *data;
|
|
|
|
|
2009-05-24 23:16:21 +02:00
|
|
|
if(urlmon_tls == TLS_OUT_OF_INDEXES)
|
2009-05-11 13:14:45 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
data = TlsGetValue(urlmon_tls);
|
|
|
|
if(!data)
|
|
|
|
return;
|
|
|
|
|
|
|
|
EnterCriticalSection(&tls_cs);
|
|
|
|
list_remove(&data->entry);
|
|
|
|
LeaveCriticalSection(&tls_cs);
|
|
|
|
|
|
|
|
if(data->notif_hwnd) {
|
|
|
|
WARN("notif_hwnd not destroyed\n");
|
|
|
|
DestroyWindow(data->notif_hwnd);
|
|
|
|
}
|
|
|
|
|
|
|
|
heap_free(data);
|
|
|
|
}
|
|
|
|
|
2009-08-02 00:11:46 +02:00
|
|
|
static void process_detach(void)
|
|
|
|
{
|
|
|
|
HINTERNET internet_session;
|
|
|
|
|
|
|
|
internet_session = get_internet_session(NULL);
|
|
|
|
if(internet_session)
|
|
|
|
InternetCloseHandle(internet_session);
|
|
|
|
|
|
|
|
if (hCabinet)
|
|
|
|
FreeLibrary(hCabinet);
|
|
|
|
|
|
|
|
free_session();
|
|
|
|
free_tls_list();
|
2014-02-13 18:02:24 +01:00
|
|
|
unregister_notif_wnd_class();
|
2009-08-02 00:11:46 +02:00
|
|
|
}
|
|
|
|
|
2002-08-13 20:20:24 +02:00
|
|
|
/***********************************************************************
|
2002-11-05 00:53:41 +01:00
|
|
|
* DllMain (URLMON.init)
|
2002-08-13 20:20:24 +02:00
|
|
|
*/
|
2002-11-05 00:53:41 +01:00
|
|
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
|
2002-08-13 20:20:24 +02:00
|
|
|
{
|
2006-10-05 23:49:11 +02:00
|
|
|
TRACE("%p 0x%x %p\n", hinstDLL, fdwReason, fImpLoad);
|
2002-08-13 20:20:24 +02:00
|
|
|
|
2010-04-08 19:24:04 +02:00
|
|
|
URLMON_DllMain( hinstDLL, fdwReason, fImpLoad );
|
|
|
|
|
2002-08-13 20:20:24 +02:00
|
|
|
switch(fdwReason) {
|
|
|
|
case DLL_PROCESS_ATTACH:
|
2012-11-02 13:49:53 +01:00
|
|
|
urlmon_instance = hinstDLL;
|
2012-03-13 14:09:30 +01:00
|
|
|
init_session();
|
2009-08-02 00:11:46 +02:00
|
|
|
break;
|
2002-08-13 20:20:24 +02:00
|
|
|
|
|
|
|
case DLL_PROCESS_DETACH:
|
2013-05-15 10:29:17 +02:00
|
|
|
if (fImpLoad) break;
|
2009-08-02 00:11:46 +02:00
|
|
|
process_detach();
|
2011-11-17 09:54:13 +01:00
|
|
|
DeleteCriticalSection(&tls_cs);
|
2009-08-02 00:11:46 +02:00
|
|
|
break;
|
2009-05-11 13:14:45 +02:00
|
|
|
|
|
|
|
case DLL_THREAD_DETACH:
|
|
|
|
detach_thread();
|
|
|
|
break;
|
2002-08-13 20:20:24 +02:00
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2012-09-03 13:58:18 +02:00
|
|
|
const char *debugstr_bindstatus(ULONG status)
|
|
|
|
{
|
|
|
|
switch(status) {
|
2012-09-16 15:14:02 +02:00
|
|
|
#define X(x) case x: return #x
|
2012-09-03 13:58:18 +02:00
|
|
|
X(BINDSTATUS_FINDINGRESOURCE);
|
|
|
|
X(BINDSTATUS_CONNECTING);
|
|
|
|
X(BINDSTATUS_REDIRECTING);
|
|
|
|
X(BINDSTATUS_BEGINDOWNLOADDATA);
|
|
|
|
X(BINDSTATUS_DOWNLOADINGDATA);
|
|
|
|
X(BINDSTATUS_ENDDOWNLOADDATA);
|
|
|
|
X(BINDSTATUS_BEGINDOWNLOADCOMPONENTS);
|
|
|
|
X(BINDSTATUS_INSTALLINGCOMPONENTS);
|
|
|
|
X(BINDSTATUS_ENDDOWNLOADCOMPONENTS);
|
|
|
|
X(BINDSTATUS_USINGCACHEDCOPY);
|
|
|
|
X(BINDSTATUS_SENDINGREQUEST);
|
|
|
|
X(BINDSTATUS_CLASSIDAVAILABLE);
|
|
|
|
X(BINDSTATUS_MIMETYPEAVAILABLE);
|
|
|
|
X(BINDSTATUS_CACHEFILENAMEAVAILABLE);
|
|
|
|
X(BINDSTATUS_BEGINSYNCOPERATION);
|
|
|
|
X(BINDSTATUS_ENDSYNCOPERATION);
|
|
|
|
X(BINDSTATUS_BEGINUPLOADDATA);
|
|
|
|
X(BINDSTATUS_UPLOADINGDATA);
|
|
|
|
X(BINDSTATUS_ENDUPLOADINGDATA);
|
|
|
|
X(BINDSTATUS_PROTOCOLCLASSID);
|
|
|
|
X(BINDSTATUS_ENCODING);
|
|
|
|
X(BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE);
|
|
|
|
X(BINDSTATUS_CLASSINSTALLLOCATION);
|
|
|
|
X(BINDSTATUS_DECODING);
|
|
|
|
X(BINDSTATUS_LOADINGMIMEHANDLER);
|
|
|
|
X(BINDSTATUS_CONTENTDISPOSITIONATTACH);
|
|
|
|
X(BINDSTATUS_FILTERREPORTMIMETYPE);
|
|
|
|
X(BINDSTATUS_CLSIDCANINSTANTIATE);
|
|
|
|
X(BINDSTATUS_IUNKNOWNAVAILABLE);
|
|
|
|
X(BINDSTATUS_DIRECTBIND);
|
|
|
|
X(BINDSTATUS_RAWMIMETYPE);
|
|
|
|
X(BINDSTATUS_PROXYDETECTING);
|
|
|
|
X(BINDSTATUS_ACCEPTRANGES);
|
|
|
|
X(BINDSTATUS_COOKIE_SENT);
|
|
|
|
X(BINDSTATUS_COMPACT_POLICY_RECEIVED);
|
|
|
|
X(BINDSTATUS_COOKIE_SUPPRESSED);
|
|
|
|
X(BINDSTATUS_COOKIE_STATE_UNKNOWN);
|
|
|
|
X(BINDSTATUS_COOKIE_STATE_ACCEPT);
|
|
|
|
X(BINDSTATUS_COOKIE_STATE_REJECT);
|
|
|
|
X(BINDSTATUS_COOKIE_STATE_PROMPT);
|
|
|
|
X(BINDSTATUS_COOKIE_STATE_LEASH);
|
|
|
|
X(BINDSTATUS_COOKIE_STATE_DOWNGRADE);
|
|
|
|
X(BINDSTATUS_POLICY_HREF);
|
|
|
|
X(BINDSTATUS_P3P_HEADER);
|
|
|
|
X(BINDSTATUS_SESSION_COOKIE_RECEIVED);
|
|
|
|
X(BINDSTATUS_PERSISTENT_COOKIE_RECEIVED);
|
|
|
|
X(BINDSTATUS_SESSION_COOKIES_ALLOWED);
|
|
|
|
X(BINDSTATUS_CACHECONTROL);
|
|
|
|
X(BINDSTATUS_CONTENTDISPOSITIONFILENAME);
|
|
|
|
X(BINDSTATUS_MIMETEXTPLAINMISMATCH);
|
|
|
|
X(BINDSTATUS_PUBLISHERAVAILABLE);
|
|
|
|
X(BINDSTATUS_DISPLAYNAMEAVAILABLE);
|
|
|
|
#undef X
|
|
|
|
default:
|
|
|
|
return wine_dbg_sprintf("(invalid status %u)", status);
|
|
|
|
}
|
|
|
|
}
|
2000-04-24 20:03:54 +02:00
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* DllInstall (URLMON.@)
|
2000-04-24 20:03:54 +02:00
|
|
|
*/
|
2005-08-08 19:35:28 +02:00
|
|
|
HRESULT WINAPI DllInstall(BOOL bInstall, LPCWSTR cmdline)
|
2000-04-24 20:03:54 +02:00
|
|
|
{
|
2002-06-01 01:06:46 +02:00
|
|
|
FIXME("(%s, %s): stub\n", bInstall?"TRUE":"FALSE",
|
2000-04-24 20:03:54 +02:00
|
|
|
debugstr_w(cmdline));
|
|
|
|
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
2002-05-05 21:40:57 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* DllCanUnloadNow (URLMON.@)
|
|
|
|
*/
|
2005-08-08 19:35:28 +02:00
|
|
|
HRESULT WINAPI DllCanUnloadNow(void)
|
2002-05-05 21:40:57 +02:00
|
|
|
{
|
2005-02-03 20:38:37 +01:00
|
|
|
return URLMON_refCount != 0 ? S_FALSE : S_OK;
|
2002-05-05 21:40:57 +02:00
|
|
|
}
|
|
|
|
|
2004-09-28 21:18:52 +02:00
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* Urlmon ClassFactory
|
2002-05-05 21:40:57 +02:00
|
|
|
*/
|
2004-09-28 21:18:52 +02:00
|
|
|
typedef struct {
|
2010-12-30 01:51:12 +01:00
|
|
|
IClassFactory IClassFactory_iface;
|
2004-09-28 21:18:52 +02:00
|
|
|
|
|
|
|
HRESULT (*pfnCreateInstance)(IUnknown *pUnkOuter, LPVOID *ppObj);
|
2006-07-07 20:31:25 +02:00
|
|
|
} ClassFactory;
|
2004-09-28 21:18:52 +02:00
|
|
|
|
2010-12-30 01:51:12 +01:00
|
|
|
static inline ClassFactory *impl_from_IClassFactory(IClassFactory *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, ClassFactory, IClassFactory_iface);
|
|
|
|
}
|
2004-09-28 21:18:52 +02:00
|
|
|
|
2006-07-07 20:31:25 +02:00
|
|
|
static HRESULT WINAPI CF_QueryInterface(IClassFactory *iface, REFIID riid, LPVOID *ppv)
|
2004-09-28 21:18:52 +02:00
|
|
|
{
|
2006-07-07 20:31:25 +02:00
|
|
|
*ppv = NULL;
|
|
|
|
|
|
|
|
if(IsEqualGUID(riid, &IID_IUnknown)) {
|
|
|
|
TRACE("(%p)->(IID_IUnknown %p)\n", iface, ppv);
|
|
|
|
*ppv = iface;
|
|
|
|
}else if(IsEqualGUID(riid, &IID_IClassFactory)) {
|
|
|
|
TRACE("(%p)->(IID_IClassFactory %p)\n", iface, ppv);
|
|
|
|
*ppv = iface;
|
|
|
|
}
|
2004-09-28 21:18:52 +02:00
|
|
|
|
2006-07-07 20:31:25 +02:00
|
|
|
if(*ppv) {
|
|
|
|
IUnknown_AddRef((IUnknown*)*ppv);
|
2004-09-28 21:18:52 +02:00
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
2006-07-07 20:31:25 +02:00
|
|
|
WARN("(%p)->(%s,%p),not found\n", iface, debugstr_guid(riid), ppv);
|
2004-09-28 21:18:52 +02:00
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
2006-07-07 20:31:25 +02:00
|
|
|
static ULONG WINAPI CF_AddRef(IClassFactory *iface)
|
2004-09-28 21:18:52 +02:00
|
|
|
{
|
2006-07-07 20:31:25 +02:00
|
|
|
URLMON_LockModule();
|
|
|
|
return 2;
|
2004-09-28 21:18:52 +02:00
|
|
|
}
|
|
|
|
|
2006-07-07 20:31:25 +02:00
|
|
|
static ULONG WINAPI CF_Release(IClassFactory *iface)
|
2002-05-05 21:40:57 +02:00
|
|
|
{
|
2006-07-07 20:31:25 +02:00
|
|
|
URLMON_UnlockModule();
|
|
|
|
return 1;
|
2002-05-05 21:40:57 +02:00
|
|
|
}
|
|
|
|
|
2004-09-28 21:18:52 +02:00
|
|
|
|
2006-07-07 20:31:25 +02:00
|
|
|
static HRESULT WINAPI CF_CreateInstance(IClassFactory *iface, IUnknown *pOuter,
|
2004-09-28 21:18:52 +02:00
|
|
|
REFIID riid, LPVOID *ppobj)
|
|
|
|
{
|
2010-12-30 01:51:12 +01:00
|
|
|
ClassFactory *This = impl_from_IClassFactory(iface);
|
2004-09-28 21:18:52 +02:00
|
|
|
HRESULT hres;
|
|
|
|
LPUNKNOWN punk;
|
|
|
|
|
|
|
|
TRACE("(%p)->(%p,%s,%p)\n",This,pOuter,debugstr_guid(riid),ppobj);
|
|
|
|
|
|
|
|
*ppobj = NULL;
|
|
|
|
if(SUCCEEDED(hres = This->pfnCreateInstance(pOuter, (LPVOID *) &punk))) {
|
|
|
|
hres = IUnknown_QueryInterface(punk, riid, ppobj);
|
|
|
|
IUnknown_Release(punk);
|
|
|
|
}
|
|
|
|
return hres;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI CF_LockServer(LPCLASSFACTORY iface,BOOL dolock)
|
|
|
|
{
|
2005-02-03 20:38:37 +01:00
|
|
|
TRACE("(%d)\n", dolock);
|
|
|
|
|
|
|
|
if (dolock)
|
|
|
|
URLMON_LockModule();
|
|
|
|
else
|
|
|
|
URLMON_UnlockModule();
|
|
|
|
|
2004-09-28 21:18:52 +02:00
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
2006-07-07 20:31:25 +02:00
|
|
|
static const IClassFactoryVtbl ClassFactoryVtbl =
|
2004-09-28 21:18:52 +02:00
|
|
|
{
|
|
|
|
CF_QueryInterface,
|
|
|
|
CF_AddRef,
|
|
|
|
CF_Release,
|
|
|
|
CF_CreateInstance,
|
|
|
|
CF_LockServer
|
|
|
|
};
|
|
|
|
|
2010-12-30 01:51:12 +01:00
|
|
|
static ClassFactory FileProtocolCF =
|
|
|
|
{ { &ClassFactoryVtbl }, FileProtocol_Construct};
|
|
|
|
static ClassFactory FtpProtocolCF =
|
|
|
|
{ { &ClassFactoryVtbl }, FtpProtocol_Construct};
|
|
|
|
static ClassFactory GopherProtocolCF =
|
|
|
|
{ { &ClassFactoryVtbl }, GopherProtocol_Construct};
|
|
|
|
static ClassFactory HttpProtocolCF =
|
|
|
|
{ { &ClassFactoryVtbl }, HttpProtocol_Construct};
|
|
|
|
static ClassFactory HttpSProtocolCF =
|
|
|
|
{ { &ClassFactoryVtbl }, HttpSProtocol_Construct};
|
|
|
|
static ClassFactory MkProtocolCF =
|
|
|
|
{ { &ClassFactoryVtbl }, MkProtocol_Construct};
|
|
|
|
static ClassFactory SecurityManagerCF =
|
|
|
|
{ { &ClassFactoryVtbl }, SecManagerImpl_Construct};
|
|
|
|
static ClassFactory ZoneManagerCF =
|
|
|
|
{ { &ClassFactoryVtbl }, ZoneMgrImpl_Construct};
|
|
|
|
static ClassFactory StdURLMonikerCF =
|
|
|
|
{ { &ClassFactoryVtbl }, StdURLMoniker_Construct};
|
|
|
|
static ClassFactory MimeFilterCF =
|
|
|
|
{ { &ClassFactoryVtbl }, MimeFilter_Construct};
|
2012-01-13 14:29:47 +01:00
|
|
|
static ClassFactory CUriCF =
|
|
|
|
{ { &ClassFactoryVtbl }, Uri_Construct};
|
2010-12-30 01:51:12 +01:00
|
|
|
|
2006-07-07 20:31:25 +02:00
|
|
|
struct object_creation_info
|
|
|
|
{
|
|
|
|
const CLSID *clsid;
|
|
|
|
IClassFactory *cf;
|
2006-07-07 20:31:59 +02:00
|
|
|
LPCWSTR protocol;
|
2006-07-07 20:31:25 +02:00
|
|
|
};
|
|
|
|
|
2006-07-07 20:31:59 +02:00
|
|
|
static const WCHAR wszFile[] = {'f','i','l','e',0};
|
|
|
|
static const WCHAR wszFtp[] = {'f','t','p',0};
|
2009-03-04 19:06:42 +01:00
|
|
|
static const WCHAR wszGopher[] = {'g','o','p','h','e','r',0};
|
2006-07-07 20:31:59 +02:00
|
|
|
static const WCHAR wszHttp[] = {'h','t','t','p',0};
|
2007-11-04 17:09:20 +01:00
|
|
|
static const WCHAR wszHttps[] = {'h','t','t','p','s',0};
|
2007-01-12 12:31:54 +01:00
|
|
|
static const WCHAR wszMk[] = {'m','k',0};
|
2006-07-07 20:31:59 +02:00
|
|
|
|
2006-07-07 20:31:25 +02:00
|
|
|
static const struct object_creation_info object_creation[] =
|
|
|
|
{
|
2010-12-30 01:51:12 +01:00
|
|
|
{ &CLSID_FileProtocol, &FileProtocolCF.IClassFactory_iface, wszFile },
|
|
|
|
{ &CLSID_FtpProtocol, &FtpProtocolCF.IClassFactory_iface, wszFtp },
|
|
|
|
{ &CLSID_GopherProtocol, &GopherProtocolCF.IClassFactory_iface, wszGopher },
|
|
|
|
{ &CLSID_HttpProtocol, &HttpProtocolCF.IClassFactory_iface, wszHttp },
|
|
|
|
{ &CLSID_HttpSProtocol, &HttpSProtocolCF.IClassFactory_iface, wszHttps },
|
|
|
|
{ &CLSID_MkProtocol, &MkProtocolCF.IClassFactory_iface, wszMk },
|
|
|
|
{ &CLSID_InternetSecurityManager, &SecurityManagerCF.IClassFactory_iface, NULL },
|
|
|
|
{ &CLSID_InternetZoneManager, &ZoneManagerCF.IClassFactory_iface, NULL },
|
|
|
|
{ &CLSID_StdURLMoniker, &StdURLMonikerCF.IClassFactory_iface, NULL },
|
2012-01-13 14:29:47 +01:00
|
|
|
{ &CLSID_DeCompMimeFilter, &MimeFilterCF.IClassFactory_iface, NULL },
|
|
|
|
{ &CLSID_CUri, &CUriCF.IClassFactory_iface, NULL }
|
2006-07-07 20:31:25 +02:00
|
|
|
};
|
|
|
|
|
2012-03-13 14:09:30 +01:00
|
|
|
static void init_session(void)
|
2006-07-07 20:31:59 +02:00
|
|
|
{
|
2008-11-13 23:20:48 +01:00
|
|
|
unsigned int i;
|
2006-07-07 20:31:59 +02:00
|
|
|
|
|
|
|
for(i=0; i < sizeof(object_creation)/sizeof(object_creation[0]); i++) {
|
2008-02-21 13:07:41 +01:00
|
|
|
if(object_creation[i].protocol)
|
2012-03-13 14:09:30 +01:00
|
|
|
register_namespace(object_creation[i].cf, object_creation[i].clsid,
|
|
|
|
object_creation[i].protocol, TRUE);
|
2008-02-21 13:07:41 +01:00
|
|
|
}
|
2006-07-07 20:31:59 +02:00
|
|
|
}
|
|
|
|
|
2004-09-28 21:18:52 +02:00
|
|
|
/*******************************************************************************
|
|
|
|
* DllGetClassObject [URLMON.@]
|
|
|
|
* Retrieves class object from a DLL object
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* Docs say returns STDAPI
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* rclsid [I] CLSID for the class object
|
|
|
|
* riid [I] Reference to identifier of interface for class object
|
|
|
|
* ppv [O] Address of variable to receive interface pointer for riid
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: S_OK
|
|
|
|
* Failure: CLASS_E_CLASSNOTAVAILABLE, E_OUTOFMEMORY, E_INVALIDARG,
|
|
|
|
* E_UNEXPECTED
|
|
|
|
*/
|
|
|
|
|
2005-08-08 19:35:28 +02:00
|
|
|
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
|
2004-09-28 21:18:52 +02:00
|
|
|
{
|
2008-11-13 23:20:48 +01:00
|
|
|
unsigned int i;
|
2009-12-08 16:02:19 +01:00
|
|
|
HRESULT hr;
|
2004-09-28 21:18:52 +02:00
|
|
|
|
|
|
|
TRACE("(%s,%s,%p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
|
|
|
|
|
|
|
|
for (i=0; i < sizeof(object_creation)/sizeof(object_creation[0]); i++)
|
|
|
|
{
|
|
|
|
if (IsEqualGUID(object_creation[i].clsid, rclsid))
|
2006-07-07 20:31:25 +02:00
|
|
|
return IClassFactory_QueryInterface(object_creation[i].cf, riid, ppv);
|
2004-09-28 21:18:52 +02:00
|
|
|
}
|
|
|
|
|
2009-12-08 16:02:19 +01:00
|
|
|
hr = URLMON_DllGetClassObject(rclsid, riid, ppv);
|
|
|
|
if(SUCCEEDED(hr))
|
|
|
|
return hr;
|
|
|
|
|
2006-07-07 20:31:25 +02:00
|
|
|
FIXME("%s: no class found.\n", debugstr_guid(rclsid));
|
|
|
|
return CLASS_E_CLASSNOTAVAILABLE;
|
2004-09-28 21:18:52 +02:00
|
|
|
}
|
|
|
|
|
2010-12-22 19:01:07 +01:00
|
|
|
static HRESULT register_inf(BOOL doregister)
|
|
|
|
{
|
|
|
|
HRESULT (WINAPI *pRegInstall)(HMODULE hm, LPCSTR pszSection, const STRTABLEA* pstTable);
|
|
|
|
HMODULE hAdvpack;
|
|
|
|
|
|
|
|
static const WCHAR wszAdvpack[] = {'a','d','v','p','a','c','k','.','d','l','l',0};
|
|
|
|
|
|
|
|
hAdvpack = LoadLibraryW(wszAdvpack);
|
|
|
|
pRegInstall = (void *)GetProcAddress(hAdvpack, "RegInstall");
|
|
|
|
|
|
|
|
return pRegInstall(hProxyDll, doregister ? "RegisterDll" : "UnregisterDll", NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* DllRegisterServer (URLMON.@)
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI DllRegisterServer(void)
|
|
|
|
{
|
|
|
|
HRESULT hr;
|
|
|
|
|
|
|
|
TRACE("\n");
|
|
|
|
|
|
|
|
hr = URLMON_DllRegisterServer();
|
|
|
|
return SUCCEEDED(hr) ? register_inf(TRUE) : hr;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* DllUnregisterServer (URLMON.@)
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI DllUnregisterServer(void)
|
|
|
|
{
|
|
|
|
HRESULT hr;
|
|
|
|
|
|
|
|
TRACE("\n");
|
|
|
|
|
|
|
|
hr = URLMON_DllUnregisterServer();
|
|
|
|
return SUCCEEDED(hr) ? register_inf(FALSE) : hr;
|
|
|
|
}
|
2004-09-28 21:18:52 +02:00
|
|
|
|
2000-04-29 16:26:13 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* DllRegisterServerEx (URLMON.@)
|
|
|
|
*/
|
2005-08-08 19:35:28 +02:00
|
|
|
HRESULT WINAPI DllRegisterServerEx(void)
|
2000-04-29 16:26:13 +02:00
|
|
|
{
|
|
|
|
FIXME("(void): stub\n");
|
|
|
|
|
|
|
|
return E_FAIL;
|
|
|
|
}
|
|
|
|
|
2004-09-09 21:17:57 +02:00
|
|
|
/**************************************************************************
|
|
|
|
* IsValidURL (URLMON.@)
|
|
|
|
*
|
|
|
|
* Determines if a specified string is a valid URL.
|
|
|
|
*
|
|
|
|
* PARAMS
|
2011-03-21 02:45:51 +01:00
|
|
|
* pBC [I] ignored, should be NULL.
|
2004-09-09 21:17:57 +02:00
|
|
|
* szURL [I] string that represents the URL in question.
|
|
|
|
* dwReserved [I] reserved and must be zero.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: S_OK.
|
|
|
|
* Failure: S_FALSE.
|
|
|
|
* returns E_INVALIDARG if one or more of the args is invalid.
|
|
|
|
*
|
|
|
|
* TODO:
|
|
|
|
* test functionality against windows to see what a valid URL is.
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI IsValidURL(LPBC pBC, LPCWSTR szURL, DWORD dwReserved)
|
|
|
|
{
|
2006-10-05 23:49:11 +02:00
|
|
|
FIXME("(%p, %s, %d): stub\n", pBC, debugstr_w(szURL), dwReserved);
|
2009-09-02 13:12:03 +02:00
|
|
|
|
2011-03-21 02:45:51 +01:00
|
|
|
if (dwReserved || !szURL)
|
2004-09-09 21:17:57 +02:00
|
|
|
return E_INVALIDARG;
|
2009-09-02 13:12:03 +02:00
|
|
|
|
2004-09-09 21:17:57 +02:00
|
|
|
return S_OK;
|
|
|
|
}
|
2005-04-11 14:58:58 +02:00
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* FaultInIEFeature (URLMON.@)
|
|
|
|
*
|
|
|
|
* Undocumented. Appears to be used by native shdocvw.dll.
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI FaultInIEFeature( HWND hwnd, uCLSSPEC * pClassSpec,
|
|
|
|
QUERYCONTEXT *pQuery, DWORD flags )
|
|
|
|
{
|
2006-10-05 23:49:11 +02:00
|
|
|
FIXME("%p %p %p %08x\n", hwnd, pClassSpec, pQuery, flags);
|
2005-04-11 14:58:58 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
2005-05-05 11:50:57 +02:00
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* CoGetClassObjectFromURL (URLMON.@)
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI CoGetClassObjectFromURL( REFCLSID rclsid, LPCWSTR szCodeURL, DWORD dwFileVersionMS,
|
|
|
|
DWORD dwFileVersionLS, LPCWSTR szContentType,
|
|
|
|
LPBINDCTX pBindCtx, DWORD dwClsContext, LPVOID pvReserved,
|
2005-05-06 16:32:48 +02:00
|
|
|
REFIID riid, LPVOID *ppv )
|
2005-05-05 11:50:57 +02:00
|
|
|
{
|
2006-10-05 23:49:11 +02:00
|
|
|
FIXME("(%s %s %d %d %s %p %d %p %s %p) Stub!\n", debugstr_guid(rclsid), debugstr_w(szCodeURL),
|
2005-05-05 11:50:57 +02:00
|
|
|
dwFileVersionMS, dwFileVersionLS, debugstr_w(szContentType), pBindCtx, dwClsContext, pvReserved,
|
|
|
|
debugstr_guid(riid), ppv);
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
2005-09-08 13:01:46 +02:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* ReleaseBindInfo (URLMON.@)
|
|
|
|
*
|
|
|
|
* Release the resources used by the specified BINDINFO structure.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* pbindinfo [I] BINDINFO to release.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Nothing.
|
|
|
|
*/
|
|
|
|
void WINAPI ReleaseBindInfo(BINDINFO* pbindinfo)
|
|
|
|
{
|
2006-05-25 18:43:34 +02:00
|
|
|
DWORD size;
|
|
|
|
|
2005-09-08 13:01:46 +02:00
|
|
|
TRACE("(%p)\n", pbindinfo);
|
|
|
|
|
2006-05-25 18:43:34 +02:00
|
|
|
if(!pbindinfo || !(size = pbindinfo->cbSize))
|
2005-09-08 13:01:46 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
CoTaskMemFree(pbindinfo->szExtraInfo);
|
2006-05-25 18:43:34 +02:00
|
|
|
ReleaseStgMedium(&pbindinfo->stgmedData);
|
|
|
|
|
|
|
|
if(offsetof(BINDINFO, szExtraInfo) < size)
|
|
|
|
CoTaskMemFree(pbindinfo->szCustomVerb);
|
2005-09-08 13:01:46 +02:00
|
|
|
|
2006-05-25 18:43:34 +02:00
|
|
|
if(pbindinfo->pUnk && offsetof(BINDINFO, pUnk) < size)
|
2005-09-08 13:01:46 +02:00
|
|
|
IUnknown_Release(pbindinfo->pUnk);
|
2006-05-25 18:43:34 +02:00
|
|
|
|
|
|
|
memset(pbindinfo, 0, size);
|
|
|
|
pbindinfo->cbSize = size;
|
2005-09-08 13:01:46 +02:00
|
|
|
}
|
2005-09-12 22:12:40 +02:00
|
|
|
|
2008-01-31 18:09:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* CopyStgMedium (URLMON.@)
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI CopyStgMedium(const STGMEDIUM *src, STGMEDIUM *dst)
|
|
|
|
{
|
|
|
|
TRACE("(%p %p)\n", src, dst);
|
|
|
|
|
|
|
|
if(!src || !dst)
|
|
|
|
return E_POINTER;
|
|
|
|
|
2008-03-18 22:42:20 +01:00
|
|
|
*dst = *src;
|
2008-01-31 18:09:04 +01:00
|
|
|
|
|
|
|
switch(dst->tymed) {
|
|
|
|
case TYMED_NULL:
|
|
|
|
break;
|
2008-02-18 01:04:10 +01:00
|
|
|
case TYMED_FILE:
|
|
|
|
if(src->u.lpszFileName && !src->pUnkForRelease) {
|
|
|
|
DWORD size = (strlenW(src->u.lpszFileName)+1)*sizeof(WCHAR);
|
|
|
|
dst->u.lpszFileName = CoTaskMemAlloc(size);
|
2012-03-08 13:45:12 +01:00
|
|
|
if(!dst->u.lpszFileName)
|
|
|
|
return E_OUTOFMEMORY;
|
2008-02-18 01:04:10 +01:00
|
|
|
memcpy(dst->u.lpszFileName, src->u.lpszFileName, size);
|
|
|
|
}
|
|
|
|
break;
|
2008-01-31 18:09:04 +01:00
|
|
|
case TYMED_ISTREAM:
|
|
|
|
if(dst->u.pstm)
|
|
|
|
IStream_AddRef(dst->u.pstm);
|
|
|
|
break;
|
|
|
|
case TYMED_ISTORAGE:
|
|
|
|
if(dst->u.pstg)
|
|
|
|
IStorage_AddRef(dst->u.pstg);
|
|
|
|
break;
|
2012-05-19 00:06:06 +02:00
|
|
|
case TYMED_HGLOBAL:
|
|
|
|
if(dst->u.hGlobal) {
|
|
|
|
SIZE_T size = GlobalSize(src->u.hGlobal);
|
|
|
|
char *src_ptr, *dst_ptr;
|
|
|
|
|
|
|
|
dst->u.hGlobal = GlobalAlloc(GMEM_FIXED, size);
|
|
|
|
if(!dst->u.hGlobal)
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
dst_ptr = GlobalLock(dst->u.hGlobal);
|
|
|
|
src_ptr = GlobalLock(src->u.hGlobal);
|
|
|
|
memcpy(dst_ptr, src_ptr, size);
|
|
|
|
GlobalUnlock(src_ptr);
|
|
|
|
GlobalUnlock(dst_ptr);
|
|
|
|
}
|
|
|
|
break;
|
2008-01-31 18:09:04 +01:00
|
|
|
default:
|
|
|
|
FIXME("Unimplemented tymed %d\n", src->tymed);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(dst->pUnkForRelease)
|
|
|
|
IUnknown_AddRef(dst->pUnkForRelease);
|
|
|
|
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
2012-03-08 13:45:12 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* CopyBindInfo (URLMON.@)
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI CopyBindInfo(const BINDINFO *pcbiSrc, BINDINFO *pcbiDest)
|
|
|
|
{
|
|
|
|
DWORD size;
|
|
|
|
HRESULT hres;
|
|
|
|
|
|
|
|
TRACE("(%p %p)\n", pcbiSrc, pcbiDest);
|
|
|
|
|
|
|
|
if(!pcbiSrc || !pcbiDest)
|
|
|
|
return E_POINTER;
|
|
|
|
if(!pcbiSrc->cbSize || !pcbiDest->cbSize)
|
|
|
|
return E_INVALIDARG;
|
|
|
|
|
|
|
|
size = pcbiDest->cbSize;
|
|
|
|
if(size > pcbiSrc->cbSize) {
|
|
|
|
memcpy(pcbiDest, pcbiSrc, pcbiSrc->cbSize);
|
|
|
|
memset((char*)pcbiDest+pcbiSrc->cbSize, 0, size-pcbiSrc->cbSize);
|
|
|
|
} else {
|
|
|
|
memcpy(pcbiDest, pcbiSrc, size);
|
|
|
|
}
|
|
|
|
pcbiDest->cbSize = size;
|
|
|
|
|
|
|
|
size = FIELD_OFFSET(BINDINFO, szExtraInfo)+sizeof(void*);
|
|
|
|
if(pcbiSrc->cbSize>=size && pcbiDest->cbSize>=size && pcbiSrc->szExtraInfo) {
|
|
|
|
size = (strlenW(pcbiSrc->szExtraInfo)+1)*sizeof(WCHAR);
|
|
|
|
pcbiDest->szExtraInfo = CoTaskMemAlloc(size);
|
|
|
|
if(!pcbiDest->szExtraInfo)
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
memcpy(pcbiDest->szExtraInfo, pcbiSrc->szExtraInfo, size);
|
|
|
|
}
|
|
|
|
|
|
|
|
size = FIELD_OFFSET(BINDINFO, stgmedData)+sizeof(STGMEDIUM);
|
|
|
|
if(pcbiSrc->cbSize>=size && pcbiDest->cbSize>=size) {
|
|
|
|
hres = CopyStgMedium(&pcbiSrc->stgmedData, &pcbiDest->stgmedData);
|
|
|
|
if(FAILED(hres)) {
|
|
|
|
CoTaskMemFree(pcbiDest->szExtraInfo);
|
|
|
|
return hres;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
size = FIELD_OFFSET(BINDINFO, szCustomVerb)+sizeof(void*);
|
|
|
|
if(pcbiSrc->cbSize>=size && pcbiDest->cbSize>=size && pcbiSrc->szCustomVerb) {
|
|
|
|
size = (strlenW(pcbiSrc->szCustomVerb)+1)*sizeof(WCHAR);
|
|
|
|
pcbiDest->szCustomVerb = CoTaskMemAlloc(size);
|
|
|
|
if(!pcbiDest->szCustomVerb) {
|
|
|
|
CoTaskMemFree(pcbiDest->szExtraInfo);
|
|
|
|
ReleaseStgMedium(&pcbiDest->stgmedData);
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
}
|
2012-03-12 14:45:59 +01:00
|
|
|
memcpy(pcbiDest->szCustomVerb, pcbiSrc->szCustomVerb, size);
|
2012-03-08 13:45:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
size = FIELD_OFFSET(BINDINFO, securityAttributes)+sizeof(SECURITY_ATTRIBUTES);
|
|
|
|
if(pcbiDest->cbSize >= size)
|
|
|
|
memset(&pcbiDest->securityAttributes, 0, sizeof(SECURITY_ATTRIBUTES));
|
|
|
|
|
|
|
|
if(pcbiSrc->pUnk)
|
|
|
|
IUnknown_AddRef(pcbiDest->pUnk);
|
|
|
|
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
2007-10-21 16:24:47 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* GetClassFileOrMime (URLMON.@)
|
|
|
|
*
|
|
|
|
* Determines the class ID from the bind context, file name or MIME type.
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI GetClassFileOrMime(LPBC pBC, LPCWSTR pszFilename,
|
|
|
|
LPVOID pBuffer, DWORD cbBuffer, LPCWSTR pszMimeType, DWORD dwReserved,
|
|
|
|
CLSID *pclsid)
|
|
|
|
{
|
2012-03-21 23:40:35 +01:00
|
|
|
FIXME("(%p, %s, %p, %d, %s, 0x%08x, %p): stub\n", pBC, debugstr_w(pszFilename), pBuffer,
|
|
|
|
cbBuffer, debugstr_w(pszMimeType), dwReserved, pclsid);
|
2007-10-21 16:24:47 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2006-08-04 13:55:37 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* Extract (URLMON.@)
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI Extract(void *dest, LPCSTR szCabName)
|
|
|
|
{
|
|
|
|
HRESULT (WINAPI *pExtract)(void *, LPCSTR);
|
|
|
|
|
|
|
|
if (!hCabinet)
|
|
|
|
hCabinet = LoadLibraryA("cabinet.dll");
|
|
|
|
|
|
|
|
if (!hCabinet) return HRESULT_FROM_WIN32(GetLastError());
|
|
|
|
pExtract = (void *)GetProcAddress(hCabinet, "Extract");
|
|
|
|
if (!pExtract) return HRESULT_FROM_WIN32(GetLastError());
|
|
|
|
|
|
|
|
return pExtract(dest, szCabName);
|
|
|
|
}
|
2008-10-24 01:19:27 +02:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* IsLoggingEnabledA (URLMON.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI IsLoggingEnabledA(LPCSTR url)
|
|
|
|
{
|
|
|
|
FIXME("(%s)\n", debugstr_a(url));
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* IsLoggingEnabledW (URLMON.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI IsLoggingEnabledW(LPCWSTR url)
|
|
|
|
{
|
|
|
|
FIXME("(%s)\n", debugstr_w(url));
|
|
|
|
return FALSE;
|
|
|
|
}
|
2010-12-14 20:23:09 +01:00
|
|
|
|
2011-09-16 11:21:24 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* IsProtectedModeURL (URLMON.111)
|
|
|
|
* Undocumented, added in IE7
|
|
|
|
*/
|
|
|
|
BOOL WINAPI IsProtectedModeURL(const WCHAR *url)
|
|
|
|
{
|
|
|
|
FIXME("stub: %s\n", debugstr_w(url));
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2010-12-14 20:23:09 +01:00
|
|
|
/***********************************************************************
|
2011-12-15 10:12:01 +01:00
|
|
|
* LogSqmBits (URLMON.410)
|
2010-12-14 20:23:09 +01:00
|
|
|
* Undocumented, added in IE8
|
|
|
|
*/
|
2011-12-15 10:12:01 +01:00
|
|
|
int WINAPI LogSqmBits(DWORD unk1, DWORD unk2)
|
2010-12-14 20:23:09 +01:00
|
|
|
{
|
2011-12-15 10:12:01 +01:00
|
|
|
FIXME("stub: %d %d\n", unk1, unk2);
|
|
|
|
return 0;
|
2010-12-14 20:23:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2011-12-15 10:12:01 +01:00
|
|
|
* LogSqmUXCommandOffsetInternal (URLMON.423)
|
2010-12-14 20:23:09 +01:00
|
|
|
* Undocumented, added in IE8
|
|
|
|
*/
|
2011-12-15 10:12:01 +01:00
|
|
|
void WINAPI LogSqmUXCommandOffsetInternal(DWORD unk1, DWORD unk2, DWORD unk3, DWORD unk4)
|
2010-12-14 20:23:09 +01:00
|
|
|
{
|
2011-12-15 10:12:01 +01:00
|
|
|
FIXME("stub: %d %d %d %d\n", unk1, unk2, unk3, unk4);
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MapUriToBrowserEmulationState (URLMON.444)
|
|
|
|
* Undocumented, added in IE8
|
|
|
|
*/
|
|
|
|
int WINAPI MapUriToBrowserEmulationState(DWORD unk1, DWORD unk2, DWORD unk3)
|
|
|
|
{
|
|
|
|
FIXME("stub: %d %d %d\n", unk1, unk2, unk3);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MapBrowserEmulationModeToUserAgent (URLMON.445)
|
|
|
|
* Undocumented, added in IE8
|
|
|
|
*/
|
|
|
|
int WINAPI MapBrowserEmulationModeToUserAgent(DWORD unk1, DWORD unk2)
|
|
|
|
{
|
|
|
|
FIXME("stub: %d %d\n", unk1, unk2);
|
|
|
|
return 0;
|
2010-12-14 20:23:09 +01:00
|
|
|
}
|
2011-09-19 23:24:02 +02:00
|
|
|
|
2012-12-26 13:32:33 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* FlushUrlmonZonesCache (URLMON.455)
|
|
|
|
* Undocumented, added in IE8
|
|
|
|
*/
|
|
|
|
void WINAPI FlushUrlmonZonesCache(void)
|
|
|
|
{
|
|
|
|
FIXME("stub\n");
|
|
|
|
}
|
|
|
|
|
2011-09-19 23:24:02 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* RegisterMediaTypes
|
|
|
|
* Added in IE3, registers known MIME-type strings.
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI RegisterMediaTypes(UINT types, LPCSTR *szTypes, CLIPFORMAT *cfTypes)
|
|
|
|
{
|
|
|
|
FIXME("stub: %u %p %p\n", types, szTypes, cfTypes);
|
|
|
|
return E_INVALIDARG;
|
|
|
|
}
|