From 1c92d2022547fcc536f92c0e7f5e4bd42de335e4 Mon Sep 17 00:00:00 2001 From: Austin English Date: Wed, 11 Jan 2012 11:13:08 -0800 Subject: [PATCH] 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(+) create mode 100644 dlls/xpsprint/Makefile.in create mode 100644 dlls/xpsprint/main.c create mode 100644 dlls/xpsprint/xpsprint.rc create mode 100644 dlls/xpsprint/xpsprint.spec diff --git a/configure b/configure index 59bcd7db077..91f6a8a5d02 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 5dc111c1746..8e6d96af2fa 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 00000000000..6dc46d57acf --- /dev/null +++ b/dlls/xpsprint/Makefile.in @@ -0,0 +1,8 @@ +MODULE = xpsprint.dll + +C_SRCS = \ + main.c + +RC_SRCS = xpsprint.rc + +@MAKE_DLL_RULES@ diff --git a/dlls/xpsprint/main.c b/dlls/xpsprint/main.c new file mode 100644 index 00000000000..0604665d760 --- /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 + +#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 00000000000..647ca088018 --- /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 00000000000..1fed74a9d5f --- /dev/null +++ b/dlls/xpsprint/xpsprint.spec @@ -0,0 +1,6 @@ +3 stub @ +5 stub @ + +@ stub DllMain +@ stub StartXpsPrintJob1 +@ stub StartXpsPrintJob -- 2.11.4.GIT