[inkobj] Add stub implementation of inkobj dll
John Klehm
xixsimplicityxix at gmail.com
Tue Jul 31 12:11:03 CDT 2007
Hello,
Differences in this submission:
The attachment should now be correctly encoded as text/plain. Dllmain
also now handles DLL_WINE_PREATTACH.
Regards,
John
-------------- next part --------------
From ddc024f7c2f2eee78a474a25d4e1c4d32ccf1777 Mon Sep 17 00:00:00 2001
From: John Klehm <xixsimplicityxix at gmail.com>
Date: Tue, 31 Jul 2007 11:58:02 -0500
Subject: Add stub implementation of inkobj dll
---
dlls/inkobj/Makefile.in | 14 ++++++++
dlls/inkobj/inkobj.c | 86 +++++++++++++++++++++++++++++++++++++++++++++++
dlls/inkobj/inkobj.spec | 4 ++
3 files changed, 104 insertions(+), 0 deletions(-)
create mode 100644 dlls/inkobj/Makefile.in
create mode 100644 dlls/inkobj/inkobj.c
create mode 100644 dlls/inkobj/inkobj.spec
diff --git a/dlls/inkobj/Makefile.in b/dlls/inkobj/Makefile.in
new file mode 100644
index 0000000..408b105
--- /dev/null
+++ b/dlls/inkobj/Makefile.in
@@ -0,0 +1,14 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR = @srcdir@
+VPATH = @srcdir@
+MODULE = inkobj.dll
+IMPORTLIB = libinkobj.$(IMPLIBEXT)
+IMPORTS = advapi32 gdi32 gdiplus kernel32 ole32 oleaut32 user32
+
+C_SRCS = \
+ inkobj.c
+
+ at MAKE_DLL_RULES@
+
+ at 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 0000000..cbd1e3e
--- /dev/null
+++ b/dlls/inkobj/inkobj.c
@@ -0,0 +1,86 @@
+/* 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);
+
+LONG INKOBJ_refCount = 0;
+HINSTANCE INKOBJ_hInstance = 0;
+
+/*****************************************************
+ * 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;
+ case DLL_PROCESS_DETACH:
+ INKOBJ_hInstance = 0;
+ 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 0000000..b16365d
--- /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()
--
1.5.1.6
More information about the wine-patches
mailing list