Fix Finnish keyboard layout to better match the XFree86 one.
[wine] / dlls / urlmon / urlmon_main.c
1 /*
2  * UrlMon
3  *
4  * Copyright (c) 2000 Patrik Stridvall
5  *
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.
10  *
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.
15  *
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
19  */
20
21 #include <stdarg.h>
22
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winerror.h"
26 #include "wtypes.h"
27
28 #include "wine/debug.h"
29
30 #include "urlmon_main.h"
31
32 WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
33
34 HINSTANCE URLMON_hInstance = 0;
35
36 /***********************************************************************
37  *              DllMain (URLMON.init)
38  */
39 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
40 {
41     TRACE("%p 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
42
43     switch(fdwReason) {
44     case DLL_PROCESS_ATTACH:
45         DisableThreadLibraryCalls(hinstDLL);
46         URLMON_hInstance = hinstDLL;
47         break;
48
49     case DLL_PROCESS_DETACH:
50         URLMON_hInstance = 0;
51         break;
52     }
53     return TRUE;
54 }
55
56
57 /***********************************************************************
58  *              DllInstall (URLMON.@)
59  */
60 HRESULT WINAPI URLMON_DllInstall(BOOL bInstall, LPCWSTR cmdline)
61 {
62   FIXME("(%s, %s): stub\n", bInstall?"TRUE":"FALSE",
63         debugstr_w(cmdline));
64
65   return S_OK;
66 }
67
68 /***********************************************************************
69  *              DllCanUnloadNow (URLMON.@)
70  */
71 HRESULT WINAPI URLMON_DllCanUnloadNow(void)
72 {
73     FIXME("(void): stub\n");
74
75     return S_FALSE;
76 }
77
78 /***********************************************************************
79  *              DllGetClassObject (URLMON.@)
80  */
81 HRESULT WINAPI URLMON_DllGetClassObject(REFCLSID rclsid, REFIID riid,
82                                         LPVOID *ppv)
83 {
84     FIXME("(%p, %p, %p): stub\n", debugstr_guid(rclsid),
85           debugstr_guid(riid), ppv);
86
87     return CLASS_E_CLASSNOTAVAILABLE;
88 }
89
90 /***********************************************************************
91  *              DllRegisterServer (URLMON.@)
92  */
93 HRESULT WINAPI URLMON_DllRegisterServer(void)
94 {
95     FIXME("(void): stub\n");
96
97     return S_OK;
98 }
99
100 /***********************************************************************
101  *              DllRegisterServerEx (URLMON.@)
102  */
103 HRESULT WINAPI URLMON_DllRegisterServerEx(void)
104 {
105     FIXME("(void): stub\n");
106
107     return E_FAIL;
108 }
109
110 /***********************************************************************
111  *              DllUnregisterServer (URLMON.@)
112  */
113 HRESULT WINAPI URLMON_DllUnregisterServer(void)
114 {
115     FIXME("(void): stub\n");
116
117     return S_OK;
118 }
119
120 /**************************************************************************
121  *                 UrlMkSetSessionOption (URLMON.@)
122  */
123  HRESULT WINAPI UrlMkSetSessionOption(long lost, LPVOID *splat, long time,
124                                         long nosee)
125 {
126     FIXME("(%#lx, %p, %#lx, %#lx): stub\n", lost, splat, time, nosee);
127
128     return S_OK;
129 }
130
131 /**************************************************************************
132  *                 ObtainUserAgentString (URLMON.@)
133  */
134 HRESULT WINAPI ObtainUserAgentString(DWORD dwOption, LPCSTR pcszUAOut, DWORD *cbSize)
135 {
136     FIXME("(%ld, %p, %p): stub\n", dwOption, pcszUAOut, cbSize);
137
138     if(dwOption) {
139       ERR("dwOption: %ld, must be zero\n", dwOption);
140     }
141
142     return S_OK;
143 }