1 /* Copyright (C) 2007 C John Klehm
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.
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.
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
23 #include "wine/debug.h"
25 WINE_DEFAULT_DEBUG_CHANNEL(inkobj
);
27 static LONG INKOBJ_refCount
;
28 static HINSTANCE INKOBJ_hInstance
;
30 /*****************************************************
31 * DllMain (INKOBJ.init)
33 BOOL WINAPI
DllMain(HINSTANCE hinst
, DWORD reason
, LPVOID reserved
)
35 TRACE("(%p, %d, %p)\n", hinst
, reason
, reserved
);
39 case DLL_WINE_PREATTACH
:
40 return FALSE
; /* prefer native version */
41 case DLL_PROCESS_ATTACH
:
42 DisableThreadLibraryCalls( hinst
);
43 INKOBJ_hInstance
= hinst
;
49 /*****************************************************
50 * DllCanUnloadNow (INKOBJ.@)
52 HRESULT WINAPI
DllCanUnloadNow(void)
54 return (INKOBJ_refCount
!= 0)? S_FALSE
: S_OK
;
57 /*****************************************************
58 * DllGetClassObject [INKOBJ.@]
60 HRESULT WINAPI
DllGetClassObject(REFCLSID rclsid
, REFIID riid
, LPVOID
* ppv
)
62 FIXME("Not implemented. Requested class was:%s\n", debugstr_guid(rclsid
));
63 return CLASS_E_CLASSNOTAVAILABLE
;
66 /*****************************************************
67 * DllRegisterServer (INKOBJ.@)
69 HRESULT WINAPI
DllRegisterServer(void)
71 FIXME("Not implemented.\n");
72 return E_UNEXPECTED
; /* unable to register */
75 /*****************************************************
76 * DllUnregisterServer (INKOBJ.@)
78 HRESULT WINAPI
DllUnregisterServer(void)
80 FIXME("Not implemented.\n");
81 return E_UNEXPECTED
; /* unable to register */