From a8697b58f1cdc428d15a9a9438ac79bbad7bd4ea Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Tue, 19 Jun 2007 00:02:15 +0200 Subject: [PATCH] ntprint: Add a stub for ntprint.dll. --- Makefile.in | 2 ++ configure | 3 +++ configure.ac | 1 + dlls/Makefile.in | 1 + dlls/ntprint/Makefile.in | 13 +++++++++ dlls/ntprint/ntprint.c | 56 +++++++++++++++++++++++++++++++++++++++ dlls/ntprint/ntprint.spec | 35 ++++++++++++++++++++++++ 7 files changed, 111 insertions(+) create mode 100644 dlls/ntprint/Makefile.in create mode 100644 dlls/ntprint/ntprint.c create mode 100644 dlls/ntprint/ntprint.spec diff --git a/Makefile.in b/Makefile.in index c63c7826bd4..fe6731bcab2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -314,6 +314,7 @@ ALL_MAKEFILES = \ dlls/ntdll/tests/Makefile \ dlls/ntdsapi/Makefile \ dlls/ntoskrnl.exe/Makefile \ + dlls/ntprint/Makefile \ dlls/objsel/Makefile \ dlls/odbc32/Makefile \ dlls/odbccp32/Makefile \ @@ -669,6 +670,7 @@ dlls/ntdll/Makefile: dlls/ntdll/Makefile.in dlls/Makedll.rules dlls/ntdll/tests/Makefile: dlls/ntdll/tests/Makefile.in dlls/Maketest.rules dlls/ntdsapi/Makefile: dlls/ntdsapi/Makefile.in dlls/Makedll.rules dlls/ntoskrnl.exe/Makefile: dlls/ntoskrnl.exe/Makefile.in dlls/Makedll.rules +dlls/ntprint/Makefile: dlls/ntprint/Makefile.in dlls/Makedll.rules dlls/objsel/Makefile: dlls/objsel/Makefile.in dlls/Makedll.rules dlls/odbc32/Makefile: dlls/odbc32/Makefile.in dlls/Makedll.rules dlls/odbccp32/Makefile: dlls/odbccp32/Makefile.in dlls/Makedll.rules diff --git a/configure b/configure index 0828b37bd2e..05d20a36a96 100755 --- a/configure +++ b/configure @@ -20692,6 +20692,8 @@ ac_config_files="$ac_config_files dlls/ntdsapi/Makefile" ac_config_files="$ac_config_files dlls/ntoskrnl.exe/Makefile" +ac_config_files="$ac_config_files dlls/ntprint/Makefile" + ac_config_files="$ac_config_files dlls/objsel/Makefile" ac_config_files="$ac_config_files dlls/odbc32/Makefile" @@ -21782,6 +21784,7 @@ do "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;; "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;; "dlls/ntoskrnl.exe/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntoskrnl.exe/Makefile" ;; + "dlls/ntprint/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntprint/Makefile" ;; "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;; "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;; diff --git a/configure.ac b/configure.ac index 5d6fce79480..070faacbf6c 100644 --- a/configure.ac +++ b/configure.ac @@ -1597,6 +1597,7 @@ AC_CONFIG_FILES([dlls/ntdll/Makefile]) AC_CONFIG_FILES([dlls/ntdll/tests/Makefile]) AC_CONFIG_FILES([dlls/ntdsapi/Makefile]) AC_CONFIG_FILES([dlls/ntoskrnl.exe/Makefile]) +AC_CONFIG_FILES([dlls/ntprint/Makefile]) AC_CONFIG_FILES([dlls/objsel/Makefile]) AC_CONFIG_FILES([dlls/odbc32/Makefile]) AC_CONFIG_FILES([dlls/odbccp32/Makefile]) diff --git a/dlls/Makefile.in b/dlls/Makefile.in index 9c16a9aef35..265b5410d2d 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in @@ -132,6 +132,7 @@ BASEDIRS = \ ntdll \ ntdsapi \ ntoskrnl.exe \ + ntprint \ objsel \ odbc32 \ odbccp32 \ diff --git a/dlls/ntprint/Makefile.in b/dlls/ntprint/Makefile.in new file mode 100644 index 00000000000..93fbcf622e6 --- /dev/null +++ b/dlls/ntprint/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = ntprint.dll +IMPORTS = kernel32 + +C_SRCS = \ + ntprint.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/ntprint/ntprint.c b/dlls/ntprint/ntprint.c new file mode 100644 index 00000000000..d3f8503c251 --- /dev/null +++ b/dlls/ntprint/ntprint.c @@ -0,0 +1,56 @@ +/* + * Implementation of the Spooler Setup API (Printing) + * + * Copyright 2007 Detlef Riekenberg + * + * 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 + +#define COBJMACROS +#define NONAMELESSUNION + +#include "windef.h" +#include "winbase.h" +#include "winver.h" +#include "winnls.h" + +#include "wine/unicode.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(ntprint); + +HINSTANCE NTPRINT_hInstance = NULL; + +/***************************************************** + * DllMain + */ +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("(%p, %d, %p)\n",hinstDLL, fdwReason, lpvReserved); + + switch(fdwReason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + + case DLL_PROCESS_ATTACH: + NTPRINT_hInstance = hinstDLL; + DisableThreadLibraryCalls( hinstDLL ); + break; + } + return TRUE; +} diff --git a/dlls/ntprint/ntprint.spec b/dlls/ntprint/ntprint.spec new file mode 100644 index 00000000000..f703e963119 --- /dev/null +++ b/dlls/ntprint/ntprint.spec @@ -0,0 +1,35 @@ +@ stub ClassInstall32 +@ stub PSetupAssociateICMProfiles +@ stub PSetupBuildDriversFromPath +@ stub PSetupCreateDrvSetupPage +@ stub PSetupCreateMonitorInfo +@ stub PSetupCreatePrinterDeviceInfoList +@ stub PSetupDestroyDriverInfo3 +@ stub PSetupDestroyMonitorInfo +@ stub PSetupDestroyPrinterDeviceInfoList +@ stub PSetupDestroySelectedDriverInfo +@ stub PSetupDriverInfoFromName +@ stub PSetupEnumMonitor +@ stub PSetupFreeDrvField +@ stub PSetupGetDriverInfForPrinter +@ stub PSetupGetDriverInfo3 +@ stub PSetupGetLocalDataField +@ stub PSetupGetPathToSearch +@ stub PSetupGetSelectedDriverInfo +@ stub PSetupInstallICMProfiles +@ stub PSetupInstallMonitor +@ stub PSetupInstallPrinterDriver +@ stub PSetupInstallPrinterDriverFromTheWeb +@ stub PSetupIsCompatibleDriver +@ stub PSetupIsDriverInstalled +@ stub PSetupIsMonitorInstalled +@ stub PSetupIsOemDriver +@ stub PSetupIsTheDriverFoundInInfInstalled +@ stub PSetupKillBadUserConnections +@ stub PSetupPreSelectDriver +@ stub PSetupProcessPrinterAdded +@ stub PSetupRefreshDriverList +@ stub PSetupSelectDeviceButtons +@ stub PSetupSelectDriver +@ stub PSetupSetSelectDevTitleAndInstructions +@ stub PSetupThisPlatform