Porting fixes.
[wine.git] / dlls / urlmon / urlmon_main.c
blob2689bfbde47cc9df3832380cb11da2d090f93e03
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 "windef.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 URLMON_hInstance = hinstDLL;
43 break;
45 case DLL_PROCESS_DETACH:
46 URLMON_hInstance = 0;
47 break;
49 return TRUE;
53 /***********************************************************************
54 * DllInstall (URLMON.@)
56 HRESULT WINAPI URLMON_DllInstall(BOOL bInstall, LPCWSTR cmdline)
58 FIXME("(%s, %s): stub\n", bInstall?"TRUE":"FALSE",
59 debugstr_w(cmdline));
61 return S_OK;
64 /***********************************************************************
65 * DllCanUnloadNow (URLMON.@)
67 HRESULT WINAPI URLMON_DllCanUnloadNow(void)
69 FIXME("(void): stub\n");
71 return S_FALSE;
74 /***********************************************************************
75 * DllGetClassObject (URLMON.@)
77 HRESULT WINAPI URLMON_DllGetClassObject(REFCLSID rclsid, REFIID riid,
78 LPVOID *ppv)
80 FIXME("(%p, %p, %p): stub\n", debugstr_guid(rclsid),
81 debugstr_guid(riid), ppv);
83 return CLASS_E_CLASSNOTAVAILABLE;
86 /***********************************************************************
87 * DllRegisterServer (URLMON.@)
89 HRESULT WINAPI URLMON_DllRegisterServer(void)
91 FIXME("(void): stub\n");
93 return S_OK;
96 /***********************************************************************
97 * DllRegisterServerEx (URLMON.@)
99 HRESULT WINAPI URLMON_DllRegisterServerEx(void)
101 FIXME("(void): stub\n");
103 return E_FAIL;
106 /***********************************************************************
107 * DllUnregisterServer (URLMON.@)
109 HRESULT WINAPI URLMON_DllUnregisterServer(void)
111 FIXME("(void): stub\n");
113 return S_OK;
116 /**************************************************************************
117 * UrlMkSetSessionOption (URLMON.@)
119 HRESULT WINAPI UrlMkSetSessionOption(long lost, LPVOID *splat, long time,
120 long nosee)
122 FIXME("(%#lx, %p, %#lx, %#lx): stub\n", lost, splat, time, nosee);
124 return S_OK;
127 /**************************************************************************
128 * ObtainUserAgentString (URLMON.@)
130 HRESULT WINAPI ObtainUserAgentString(DWORD dwOption, LPCSTR pcszUAOut, DWORD *cbSize)
132 FIXME("(%ld, %p, %p): stub\n", dwOption, pcszUAOut, cbSize);
134 if(dwOption) {
135 ERR("dwOption: %ld, must be zero\n", dwOption);
138 return S_OK;