blob: 6191d7eb76de150977d8dab73dff51d277a1a401 [file] [log] [blame]
John Klehme9252252007-07-31 11:58:02 -05001/* Copyright (C) 2007 C John Klehm
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16 */
17
John Klehme92819d2007-10-11 20:38:25 -050018#include "inkobj_internal.h"
John Klehme9252252007-07-31 11:58:02 -050019
20WINE_DEFAULT_DEBUG_CHANNEL(inkobj);
21
Andrew Talbot8aeaa422009-01-05 22:14:22 +000022static LONG INKOBJ_refCount;
John Klehme92819d2007-10-11 20:38:25 -050023HINSTANCE INKOBJ_hInstance;
John Klehme9252252007-07-31 11:58:02 -050024
25/*****************************************************
26 * DllMain (INKOBJ.init)
27 */
28BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
29{
30 TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
31
32 switch(reason)
33 {
34 case DLL_WINE_PREATTACH:
35 return FALSE; /* prefer native version */
John Klehme9252252007-07-31 11:58:02 -050036 case DLL_PROCESS_ATTACH:
37 DisableThreadLibraryCalls( hinst );
38 INKOBJ_hInstance = hinst;
39 break;
40 }
41 return TRUE;
42}
43
44/*****************************************************
45 * DllCanUnloadNow (INKOBJ.@)
46 */
47HRESULT WINAPI DllCanUnloadNow(void)
48{
49 return (INKOBJ_refCount != 0)? S_FALSE : S_OK;
50}
51
52/*****************************************************
53 * DllGetClassObject [INKOBJ.@]
54 */
55HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
56{
57 FIXME("Not implemented. Requested class was:%s\n", debugstr_guid(rclsid));
58 return CLASS_E_CLASSNOTAVAILABLE;
59}
60
61/*****************************************************
62 * DllRegisterServer (INKOBJ.@)
63 */
64HRESULT WINAPI DllRegisterServer(void)
65{
66 FIXME("Not implemented.\n");
67 return E_UNEXPECTED; /* unable to register */
68}
69
70/*****************************************************
71 * DllUnregisterServer (INKOBJ.@)
72 */
73HRESULT WINAPI DllUnregisterServer(void)
74{
75 FIXME("Not implemented.\n");
76 return E_UNEXPECTED; /* unable to register */
77}