ntprint: [1/2] Add a stub for ntprint.dll

Detlef Riekenberg wine.dev at web.de
Mon Jun 18 17:19:14 CDT 2007


printui.dll need ntprint.dll for various things

Add a Port as Example:
Unhandled exception: unimplemented function
ntprint.dll.PSetupCreateMonitorInfo called in 32-bit code (0x7ee3fb30).


Changelog:
ntprint: Add a stub for ntprint.dll


-- 
 
By by ... Detlef

-------------- next part --------------
>From 5de7599e84c72c40cab70a935ede3ffb70a86875 Mon Sep 17 00:00:00 2001
From: Detlef Riekenberg <wine.dev at web.de>
Date: Tue, 19 Jun 2007 00:02:15 +0200
Subject: [PATCH] ntprint: Add stub for ntprint.dll
---
 dlls/ntprint/Makefile.in  |   13 ++++++++++
 dlls/ntprint/ntprint.c    |   57 +++++++++++++++++++++++++++++++++++++++++++++
 dlls/ntprint/ntprint.spec |   36 ++++++++++++++++++++++++++++
 3 files changed, 106 insertions(+), 0 deletions(-)

diff --git a/dlls/ntprint/Makefile.in b/dlls/ntprint/Makefile.in
new file mode 100644
index 0000000..93fbcf6
--- /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
+
+ at MAKE_DLL_RULES@
+
+ at 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 0000000..13a5d89
--- /dev/null
+++ b/dlls/ntprint/ntprint.c
@@ -0,0 +1,57 @@
+/*
+ * 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 <stdarg.h>
+
+#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 0000000..f9f92f5
--- /dev/null
+++ b/dlls/ntprint/ntprint.spec
@@ -0,0 +1,36 @@
+@ 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
+
-- 
1.4.1



More information about the wine-patches mailing list