Detlef Riekenberg : printui: Add stub for printui.dll.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 18 08:05:07 CDT 2007


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

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Mon Jun 18 00:32:12 2007 +0200

printui: Add stub for printui.dll.

---

 Makefile.in               |    2 +
 configure                 |    3 ++
 configure.ac              |    1 +
 dlls/Makefile.in          |    1 +
 dlls/printui/Makefile.in  |   13 ++++++++
 dlls/printui/printui.c    |   70 +++++++++++++++++++++++++++++++++++++++++++++
 dlls/printui/printui.spec |   23 +++++++++++++++
 7 files changed, 113 insertions(+), 0 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index fbf9268..763851f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -329,6 +329,7 @@ ALL_MAKEFILES = \
 	dlls/opengl32/Makefile \
 	dlls/pdh/Makefile \
 	dlls/powrprof/Makefile \
+	dlls/printui/Makefile \
 	dlls/psapi/Makefile \
 	dlls/psapi/tests/Makefile \
 	dlls/pstorec/Makefile \
@@ -682,6 +683,7 @@ dlls/olesvr32/Makefile: dlls/olesvr32/Makefile.in dlls/Makedll.rules
 dlls/opengl32/Makefile: dlls/opengl32/Makefile.in dlls/Makedll.rules
 dlls/pdh/Makefile: dlls/pdh/Makefile.in dlls/Makedll.rules
 dlls/powrprof/Makefile: dlls/powrprof/Makefile.in dlls/Makedll.rules
+dlls/printui/Makefile: dlls/printui/Makefile.in dlls/Makedll.rules
 dlls/psapi/Makefile: dlls/psapi/Makefile.in dlls/Makedll.rules
 dlls/psapi/tests/Makefile: dlls/psapi/tests/Makefile.in dlls/Maketest.rules
 dlls/pstorec/Makefile: dlls/pstorec/Makefile.in dlls/Makedll.rules
diff --git a/configure b/configure
index 13e43e2..d6abf81 100755
--- a/configure
+++ b/configure
@@ -20722,6 +20722,8 @@ ac_config_files="$ac_config_files dlls/pdh/Makefile"
 
 ac_config_files="$ac_config_files dlls/powrprof/Makefile"
 
+ac_config_files="$ac_config_files dlls/printui/Makefile"
+
 ac_config_files="$ac_config_files dlls/psapi/Makefile"
 
 ac_config_files="$ac_config_files dlls/psapi/tests/Makefile"
@@ -21793,6 +21795,7 @@ do
     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
     "dlls/pdh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/Makefile" ;;
     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
+    "dlls/printui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/printui/Makefile" ;;
     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
     "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index 72359fe..96b2c5c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1612,6 +1612,7 @@ AC_CONFIG_FILES([dlls/olesvr32/Makefile])
 AC_CONFIG_FILES([dlls/opengl32/Makefile])
 AC_CONFIG_FILES([dlls/pdh/Makefile])
 AC_CONFIG_FILES([dlls/powrprof/Makefile])
+AC_CONFIG_FILES([dlls/printui/Makefile])
 AC_CONFIG_FILES([dlls/psapi/Makefile])
 AC_CONFIG_FILES([dlls/psapi/tests/Makefile])
 AC_CONFIG_FILES([dlls/pstorec/Makefile])
diff --git a/dlls/Makefile.in b/dlls/Makefile.in
index 9a56e3b..f1366f6 100644
--- a/dlls/Makefile.in
+++ b/dlls/Makefile.in
@@ -143,6 +143,7 @@ BASEDIRS = \
 	olesvr32 \
 	pdh \
 	powrprof \
+	printui \
 	psapi \
 	pstorec \
 	qcap \
diff --git a/dlls/printui/Makefile.in b/dlls/printui/Makefile.in
new file mode 100644
index 0000000..20fde18
--- /dev/null
+++ b/dlls/printui/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = printui.dll
+IMPORTS   = kernel32
+
+C_SRCS = \
+	printui.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/printui/printui.c b/dlls/printui/printui.c
new file mode 100644
index 0000000..06cbaa2
--- /dev/null
+++ b/dlls/printui/printui.c
@@ -0,0 +1,70 @@
+/*
+ * Implementation of the Printer User Interface Dialogs
+ *
+ * Copyright 2006 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 "wingdi.h"
+#include "winuser.h"
+#include "winreg.h"
+#include "winver.h"
+#include "winnls.h"
+
+#include "wine/unicode.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(printui);
+
+HINSTANCE PRINTUI_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:
+            PRINTUI_hInstance = hinstDLL;
+            DisableThreadLibraryCalls( hinstDLL );
+            break;
+    }
+    return TRUE;
+}
+
+
+/*****************************************************
+ *  PrintUIEntryW                [printui.@]
+ *  Commandline-Interface for using printui.dll with rundll32.exe
+ *
+ */
+void WINAPI PrintUIEntryW(HWND hWnd, HINSTANCE hInst, LPCWSTR pCommand, DWORD nCmdShow)
+{
+    FIXME("(%p, %p, %s, 0x%x) stub\n", hWnd, hInst, debugstr_w(pCommand), nCmdShow);
+}
diff --git a/dlls/printui/printui.spec b/dlls/printui/printui.spec
new file mode 100644
index 0000000..dcea8dc
--- /dev/null
+++ b/dlls/printui/printui.spec
@@ -0,0 +1,23 @@
+@ stub ConnectToPrinterDlg
+@ stub ConnectToPrinterPropertyPage
+@ stub ConstructPrinterFriendlyName
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DocumentPropertiesWrap
+@ stub PnPInterface
+@ stub PrintNotifyTray_Exit
+@ stub PrintNotifyTray_Init
+@ stdcall PrintUIEntryW(ptr ptr wstr long)
+@ stub PrinterPropPageProvider
+@ stub RegisterPrintNotify
+@ stub ShowErrorMessageHR
+@ stub ShowErrorMessageSC
+@ stub UnregisterPrintNotify
+@ stub bFolderEnumPrinters
+@ stub bFolderGetPrinter
+@ stub bFolderRefresh
+@ stub bPrinterSetup
+@ stub vDocumentDefaults
+@ stub vPrinterPropPages
+@ stub vQueueCreate
+@ stub vServerPropPages




More information about the wine-cvs mailing list