Austin English : xpsprint: Add stub dll.

Alexandre Julliard julliard at winehq.org
Fri Jan 13 11:44:31 CST 2012


Module: wine
Branch: master
Commit: 1c92d2022547fcc536f92c0e7f5e4bd42de335e4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1c92d2022547fcc536f92c0e7f5e4bd42de335e4

Author: Austin English <austinenglish at gmail.com>
Date:   Wed Jan 11 11:13:08 2012 -0800

xpsprint: Add stub dll.

---

 configure                   |    1 +
 configure.ac                |    1 +
 dlls/xpsprint/Makefile.in   |    8 ++++++++
 dlls/xpsprint/main.c        |   43 +++++++++++++++++++++++++++++++++++++++++++
 dlls/xpsprint/xpsprint.rc   |   28 ++++++++++++++++++++++++++++
 dlls/xpsprint/xpsprint.spec |    6 ++++++
 6 files changed, 87 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 59bcd7d..91f6a8a 100755
--- a/configure
+++ b/configure
@@ -15416,6 +15416,7 @@ wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
 wine_fn_config_dll xmllite enable_xmllite
 wine_fn_config_test dlls/xmllite/tests xmllite_test
 wine_fn_config_dll xolehlp enable_xolehlp
+wine_fn_config_dll xpsprint enable_xpsprint
 wine_fn_config_makefile documentation enable_documentation
 wine_fn_config_makefile fonts enable_fonts install-lib
 wine_fn_config_makefile include enable_include install-dev
diff --git a/configure.ac b/configure.ac
index 5dc111c..8e6d96a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2925,6 +2925,7 @@ WINE_CONFIG_DLL(xinput9_1_0)
 WINE_CONFIG_DLL(xmllite)
 WINE_CONFIG_TEST(dlls/xmllite/tests)
 WINE_CONFIG_DLL(xolehlp)
+WINE_CONFIG_DLL(xpsprint)
 WINE_CONFIG_MAKEFILE([documentation])
 WINE_CONFIG_MAKEFILE([fonts],,[install-lib])
 WINE_CONFIG_MAKEFILE([include],,[install-dev])
diff --git a/dlls/xpsprint/Makefile.in b/dlls/xpsprint/Makefile.in
new file mode 100644
index 0000000..6dc46d5
--- /dev/null
+++ b/dlls/xpsprint/Makefile.in
@@ -0,0 +1,8 @@
+MODULE = xpsprint.dll
+
+C_SRCS = \
+	main.c
+
+RC_SRCS = xpsprint.rc
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/xpsprint/main.c b/dlls/xpsprint/main.c
new file mode 100644
index 0000000..0604665
--- /dev/null
+++ b/dlls/xpsprint/main.c
@@ -0,0 +1,43 @@
+/*
+ * XPS printing support
+ *
+ * Copyright 2012 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"
+#include "wine/debug.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/xpsprint/xpsprint.rc b/dlls/xpsprint/xpsprint.rc
new file mode 100644
index 0000000..647ca08
--- /dev/null
+++ b/dlls/xpsprint/xpsprint.rc
@@ -0,0 +1,28 @@
+/*
+ * Resources for XPS Print
+ *
+ * Copyright 2012 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
+ */
+
+#define WINE_FILEDESCRIPTION_STR "Wine XPS Print dll"
+#define WINE_FILENAME_STR "xpsprint.dll"
+#define WINE_FILEVERSION 7,0,6002,18363
+#define WINE_FILEVERSION_STR "7.0.6002.18363"
+#define WINE_PRODUCTVERSION 7,0,6002,18363
+#define WINE_PRODUCTVERSION_STR "7.0.6002.18363"
+
+#include "wine/wine_common_ver.rc"
diff --git a/dlls/xpsprint/xpsprint.spec b/dlls/xpsprint/xpsprint.spec
new file mode 100644
index 0000000..1fed74a
--- /dev/null
+++ b/dlls/xpsprint/xpsprint.spec
@@ -0,0 +1,6 @@
+3 stub @
+5 stub @
+
+@ stub DllMain
+@ stub StartXpsPrintJob1
+@ stub StartXpsPrintJob




More information about the wine-cvs mailing list