From: Jactry Zeng Subject: [PATCH] prntvpt: Add stub dll. Message-Id: <54478B8C.9080202@codeweavers.com> Date: Wed, 22 Oct 2014 18:48:44 +0800 Needed by 4D v14. --- configure | 2 ++ configure.ac | 1 + dlls/prntvpt/Makefile.in | 4 ++++ dlls/prntvpt/main.c | 43 +++++++++++++++++++++++++++++++++++++++++++ dlls/prntvpt/prntvpt.spec | 27 +++++++++++++++++++++++++++ 5 files changed, 77 insertions(+) create mode 100644 dlls/prntvpt/Makefile.in create mode 100644 dlls/prntvpt/main.c create mode 100644 dlls/prntvpt/prntvpt.spec diff --git a/configure b/configure index a11c3d7..d2bada5 100755 --- a/configure +++ b/configure @@ -1180,6 +1180,7 @@ enable_photometadatahandler enable_pidgen enable_powrprof enable_printui +enable_prntvpt enable_propsys enable_psapi enable_pstorec @@ -17224,6 +17225,7 @@ wine_fn_config_dll photometadatahandler enable_photometadatahandler wine_fn_config_dll pidgen enable_pidgen wine_fn_config_dll powrprof enable_powrprof implib wine_fn_config_dll printui enable_printui +wine_fn_config_dll prntvpt enable_prntvpt wine_fn_config_dll propsys enable_propsys clean,implib wine_fn_config_test dlls/propsys/tests propsys_test wine_fn_config_dll psapi enable_psapi implib diff --git a/configure.ac b/configure.ac index 5ebc2c3..ea016b1 100644 --- a/configure.ac +++ b/configure.ac @@ -3108,6 +3108,7 @@ WINE_CONFIG_DLL(photometadatahandler) WINE_CONFIG_DLL(pidgen) WINE_CONFIG_DLL(powrprof,,[implib]) WINE_CONFIG_DLL(printui) +WINE_CONFIG_DLL(prntvpt) WINE_CONFIG_DLL(propsys,,[clean,implib]) WINE_CONFIG_TEST(dlls/propsys/tests) WINE_CONFIG_DLL(psapi,,[implib]) diff --git a/dlls/prntvpt/Makefile.in b/dlls/prntvpt/Makefile.in new file mode 100644 index 0000000..255c67c --- /dev/null +++ b/dlls/prntvpt/Makefile.in @@ -0,0 +1,4 @@ +MODULE = prntvpt.dll + +C_SRCS = \ + main.c diff --git a/dlls/prntvpt/main.c b/dlls/prntvpt/main.c new file mode 100644 index 0000000..f5abde9 --- /dev/null +++ b/dlls/prntvpt/main.c @@ -0,0 +1,43 @@ +/* + * Print Ticket Services Module + * + * Copyright 2014 Jactry Zeng for CodeWeavers + * + * 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" + +WINE_DEFAULT_DEBUG_CHANNEL(prntvpt); + +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 */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinst); + break; + } + return TRUE; +} diff --git a/dlls/prntvpt/prntvpt.spec b/dlls/prntvpt/prntvpt.spec new file mode 100644 index 0000000..3f5e329 --- /dev/null +++ b/dlls/prntvpt/prntvpt.spec @@ -0,0 +1,27 @@ +1 stub PTQuerySchemaVersionSupport +2 stub PTOpenProvider +3 stub PTOpenProviderEx +4 stub PTCloseProvider +5 stub BindPTProviderThunk +6 stub PTGetPrintCapabilities +7 stub PTMergeAndValidatePrintTicket +8 stub PTConvertPrintTicketToDevMode +9 stub PTConvertDevModeToPrintTicket +10 stub PTReleaseMemory +11 stub ConvertDevModeToPrintTicketThunk2 +12 stub ConvertDevModeToPrintTicketThunk +13 stub ConvertPrintTicketToDevModeThunk2 +14 stub ConvertPrintTicketToDevModeThunk +15 stub DllCanUnloadNow +16 stub DllGetClassObject +17 stdcall -private DllMain(long long ptr) +18 stub DllRegisterServer +19 stub DllUnregisterServer +20 stub GetDeviceDefaultPrintTicketThunk +21 stub GetDeviceNamespacesThunk +22 stub GetPrintCapabilitiesThunk2 +23 stub GetPrintCapabilitiesThunk +24 stub GetSchemaVersionThunk +25 stub MergeAndValidatePrintTicketThunk2 +26 stub MergeAndValidatePrintTicketThunk +27 stub UnbindPTProviderThunk