Ensure MIPMAP levels is reset when rebinding an existing texture to a
[wine/dcerpc.git] / dlls / urlmon / urlmon_main.c
blob8f883616053fff16af1acf53197ee627331d831a
1 /*
2 * UrlMon
4 * Copyright (c) 2000 Patrik Stridvall
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "winbase.h"
22 #include "winerror.h"
23 #include "wtypes.h"
25 #include "wine/debug.h"
27 #include "urlmon_main.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
31 HINSTANCE URLMON_hInstance = 0;
33 /***********************************************************************
34 * DllMain (URLMON.init)
36 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
38 TRACE("%p 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
40 switch(fdwReason) {
41 case DLL_PROCESS_ATTACH:
42 DisableThreadLibraryCalls(hinstDLL);
43 URLMON_hInstance = hinstDLL;
44 break;
46 case DLL_PROCESS_DETACH:
47 URLMON_hInstance = 0;
48 break;
50 return TRUE;
54 /***********************************************************************
55 * DllInstall (URLMON.@)
57 HRESULT WINAPI URLMON_DllInstall(BOOL bInstall, LPCWSTR cmdline)
59 FIXME("(%s, %s): stub\n", bInstall?"TRUE":"FALSE",
60 debugstr_w(cmdline));
62 return S_OK;
65 /***********************************************************************
66 * DllCanUnloadNow (URLMON.@)
68 HRESULT WINAPI URLMON_DllCanUnloadNow(void)
70 FIXME("(void): stub\n");
72 return S_FALSE;
75 /***********************************************************************
76 * DllGetClassObject (URLMON.@)
78 HRESULT WINAPI URLMON_DllGetClassObject(REFCLSID rclsid, REFIID riid,
79 LPVOID *ppv)
81 FIXME("(%p, %p, %p): stub\n", debugstr_guid(rclsid),
82 debugstr_guid(riid), ppv);
84 return CLASS_E_CLASSNOTAVAILABLE;
87 /***********************************************************************
88 * DllRegisterServer (URLMON.@)
90 HRESULT WINAPI URLMON_DllRegisterServer(void)
92 FIXME("(void): stub\n");
94 return S_OK;
97 /***********************************************************************
98 * DllRegisterServerEx (URLMON.@)
100 HRESULT WINAPI URLMON_DllRegisterServerEx(void)
102 FIXME("(void): stub\n");
104 return E_FAIL;
107 /***********************************************************************
108 * DllUnregisterServer (URLMON.@)
110 HRESULT WINAPI URLMON_DllUnregisterServer(void)
112 FIXME("(void): stub\n");
114 return S_OK;
117 /**************************************************************************
118 * UrlMkSetSessionOption (URLMON.@)
120 HRESULT WINAPI UrlMkSetSessionOption(long lost, LPVOID *splat, long time,
121 long nosee)
123 FIXME("(%#lx, %p, %#lx, %#lx): stub\n", lost, splat, time, nosee);
125 return S_OK;
128 /**************************************************************************
129 * ObtainUserAgentString (URLMON.@)
131 HRESULT WINAPI ObtainUserAgentString(DWORD dwOption, LPCSTR pcszUAOut, DWORD *cbSize)
133 FIXME("(%ld, %p, %p): stub\n", dwOption, pcszUAOut, cbSize);
135 if(dwOption) {
136 ERR("dwOption: %ld, must be zero\n", dwOption);
139 return S_OK;