t2embed: add stub dll (resend)
Austin English
austinenglish at gmail.com
Tue May 5 01:09:42 CDT 2009
With patch this time.
--
-Austin
-------------- next part --------------
From 6b2a780718210b35cff17f519559a2c8faa80a07 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Mon, 4 May 2009 22:52:37 -0500
Subject: [PATCH] t2embed: add stub dll
---
configure.ac | 1 +
dlls/t2embed/Makefile.in | 13 +++++++++++++
dlls/t2embed/main.c | 43 +++++++++++++++++++++++++++++++++++++++++++
dlls/t2embed/t2embed.spec | 25 +++++++++++++++++++++++++
4 files changed, 82 insertions(+), 0 deletions(-)
create mode 100644 dlls/t2embed/Makefile.in
create mode 100644 dlls/t2embed/main.c
create mode 100644 dlls/t2embed/t2embed.spec
diff --git a/configure.ac b/configure.ac
index 322b6e9..5f8b86f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2227,6 +2227,7 @@ WINE_CONFIG_MAKEFILE([dlls/stress.dll16/Makefile],[dlls/Makedll.rules],[dlls],[A
WINE_CONFIG_MAKEFILE([dlls/strmiids/Makefile],[dlls/Makeimplib.rules],[dlls],[ALL_IMPLIB_DIRS])
WINE_CONFIG_MAKEFILE([dlls/svrapi/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/sxs/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
+WINE_CONFIG_MAKEFILE([dlls/t2embed/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/tapi32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/traffic/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/twain.dll16/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS],[enable_win16])
diff --git a/dlls/t2embed/Makefile.in b/dlls/t2embed/Makefile.in
new file mode 100644
index 0000000..3445c0c
--- /dev/null
+++ b/dlls/t2embed/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR = @srcdir@
+VPATH = @srcdir@
+MODULE = t2embed.dll
+IMPORTS = kernel32
+
+C_SRCS = \
+ main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@ # everything below this line is overwritten by make depend
diff --git a/dlls/t2embed/main.c b/dlls/t2embed/main.c
new file mode 100644
index 0000000..8962248
--- /dev/null
+++ b/dlls/t2embed/main.c
@@ -0,0 +1,43 @@
+/*
+ *
+ * Copyright 2009 Austin English
+ *
+ * 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 "config.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+
+ switch (fdwReason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinstDLL);
+ break;
+ case DLL_PROCESS_DETACH:
+ break;
+ }
+
+ return TRUE;
+}
diff --git a/dlls/t2embed/t2embed.spec b/dlls/t2embed/t2embed.spec
new file mode 100644
index 0000000..ed0c71f
--- /dev/null
+++ b/dlls/t2embed/t2embed.spec
@@ -0,0 +1,25 @@
+@ stub TTCharToUnicode
+@ stub TTDeleteEmbeddedFont
+@ stub TTEmbedFont
+@ stub TTEmbedFontFromFileA
+@ stub TTEnableEmbeddingForFacename
+@ stub TTGetEmbeddedFontInfo
+@ stub TTGetEmbeddingType
+@ stub TTIsEmbeddingEnabled
+@ stub TTIsEmbeddingEnabledForFacename
+@ stub TTLoadEmbeddedFont
+@ stub TTRunValidationTests
+@ stub _TTCharToUnicode at 24
+@ stub _TTDeleteEmbeddedFont at 12
+@ stub _TTEmbedFont at 44
+@ stub _TTEmbedFontFromFileA at 52
+@ stub _TTEnableEmbeddingForFacename at 8
+@ stub _TTGetEmbeddedFontInfo at 28
+@ stub _TTGetEmbeddingType at 8
+@ stub _TTIsEmbeddingEnabled at 8
+@ stub _TTIsEmbeddingEnabledForFacename at 8
+@ stub _TTLoadEmbeddedFont at 40
+@ stub _TTRunValidationTests at 8
+@ stub TTEmbedFontEx
+@ stub TTRunValidationTestsEx
+@ stub TTGetNewFontName
--
1.6.0.4
More information about the wine-patches
mailing list