diff --git a/Makefile.in b/Makefile.in index 002f42503e6f22ca190fd3b42293fa3b7c894cd4..d504ac6f24a126c950b92cfb3fc57d0eb489c2f4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -253,6 +253,7 @@ ALL_MAKEFILES = \ dlls/imm32/Makefile \ dlls/infosoft/Makefile \ dlls/infosoft/tests/Makefile \ + dlls/inkobj/Makefile \ dlls/inseng/Makefile \ dlls/iphlpapi/Makefile \ dlls/iphlpapi/tests/Makefile \ @@ -617,6 +618,7 @@ dlls/imagehlp/Makefile: dlls/imagehlp/Makefile.in dlls/Makedll.rules dlls/imm32/Makefile: dlls/imm32/Makefile.in dlls/Makedll.rules dlls/infosoft/Makefile: dlls/infosoft/Makefile.in dlls/Makedll.rules dlls/infosoft/tests/Makefile: dlls/infosoft/tests/Makefile.in dlls/Maketest.rules +dlls/inkobj/Makefile: dlls/inkobj/Makefile.in dlls/Makedll.rules dlls/inseng/Makefile: dlls/inseng/Makefile.in dlls/Makedll.rules dlls/iphlpapi/Makefile: dlls/iphlpapi/Makefile.in dlls/Makedll.rules dlls/iphlpapi/tests/Makefile: dlls/iphlpapi/tests/Makefile.in dlls/Maketest.rules diff --git a/configure b/configure index fdcdbd56727237ae18a1398f002cc13c8f545ea9..b9ea64f4500ad15b463d43bb33c612a718d90358 100755 --- a/configure +++ b/configure @@ -20456,6 +20456,8 @@ ac_config_files="$ac_config_files dlls/infosoft/Makefile" ac_config_files="$ac_config_files dlls/infosoft/tests/Makefile" +ac_config_files="$ac_config_files dlls/inkobj/Makefile" + ac_config_files="$ac_config_files dlls/inseng/Makefile" ac_config_files="$ac_config_files dlls/iphlpapi/Makefile" @@ -21625,6 +21627,7 @@ do "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;; "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;; + "dlls/inkobj/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inkobj/Makefile" ;; "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;; "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;; "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;; diff --git a/configure.ac b/configure.ac index e6088ec44631305fb2c219abbefbaf94ef16d637..ba5b4dae1ecec4582d8d81162842bdde886c0150 100644 --- a/configure.ac +++ b/configure.ac @@ -1654,6 +1654,7 @@ AC_CONFIG_FILES([dlls/imagehlp/Makefile]) AC_CONFIG_FILES([dlls/imm32/Makefile]) AC_CONFIG_FILES([dlls/infosoft/Makefile]) AC_CONFIG_FILES([dlls/infosoft/tests/Makefile]) +AC_CONFIG_FILES([dlls/inkobj/Makefile]) AC_CONFIG_FILES([dlls/inseng/Makefile]) AC_CONFIG_FILES([dlls/iphlpapi/Makefile]) AC_CONFIG_FILES([dlls/iphlpapi/tests/Makefile]) diff --git a/dlls/Makefile.in b/dlls/Makefile.in index a1bbfdc391de98f1fc7c8148df3d540854ad903e..2fdc360cdf7fb61f4f4d85100db84f5ff6accf11 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in @@ -88,6 +88,7 @@ BASEDIRS = \ imagehlp \ imm32 \ infosoft \ + inkobj \ inseng \ iphlpapi \ itss \ diff --git a/dlls/inkobj/Makefile.in b/dlls/inkobj/Makefile.in new file mode 100644 index 0000000000000000000000000000000000000000..932da81b614a27e7ed3fd3c6e5cdcf7568ca00b5 --- /dev/null +++ b/dlls/inkobj/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = inkobj.dll +IMPORTS = kernel32 + +C_SRCS = \ + inkobj.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/inkobj/inkobj.c b/dlls/inkobj/inkobj.c new file mode 100644 index 0000000000000000000000000000000000000000..517b6a7a6cef3307af24913762fea94b083379be --- /dev/null +++ b/dlls/inkobj/inkobj.c @@ -0,0 +1,83 @@ +/* Copyright (C) 2007 C John Klehm + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include <stdarg.h> + +#include "windef.h" +#include "winbase.h" +#include "winerror.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(inkobj); + +static LONG INKOBJ_refCount; +static HINSTANCE INKOBJ_hInstance; + +/***************************************************** + * DllMain (INKOBJ.init) + */ +BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) +{ + TRACE("(%p, %d, %p)\n", hinst, reason, reserved); + + switch(reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + break; + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls( hinst ); + INKOBJ_hInstance = hinst; + break; + } + return TRUE; +} + +/***************************************************** + * DllCanUnloadNow (INKOBJ.@) + */ +HRESULT WINAPI DllCanUnloadNow(void) +{ + return (INKOBJ_refCount != 0)? S_FALSE : S_OK; +} + +/***************************************************** + * DllGetClassObject [INKOBJ.@] + */ +HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) +{ + FIXME("Not implemented. Requested class was:%s\n", debugstr_guid(rclsid)); + return CLASS_E_CLASSNOTAVAILABLE; +} + +/***************************************************** + * DllRegisterServer (INKOBJ.@) + */ +HRESULT WINAPI DllRegisterServer(void) +{ + FIXME("Not implemented.\n"); + return E_UNEXPECTED; /* unable to register */ +} + +/***************************************************** + * DllUnregisterServer (INKOBJ.@) + */ +HRESULT WINAPI DllUnregisterServer(void) +{ + FIXME("Not implemented.\n"); + return E_UNEXPECTED; /* unable to register */ +} diff --git a/dlls/inkobj/inkobj.spec b/dlls/inkobj/inkobj.spec new file mode 100644 index 0000000000000000000000000000000000000000..b16365d0c9fc216f15ba2cbb479440656177b77e --- /dev/null +++ b/dlls/inkobj/inkobj.spec @@ -0,0 +1,4 @@ +@ stdcall -private DllCanUnloadNow() +@ stdcall -private DllGetClassObject(ptr ptr ptr) +@ stdcall -private DllRegisterServer() +@ stdcall -private DllUnregisterServer()