printui: Add stub for printui.dll

Detlef Riekenberg wine.dev at web.de
Sun Jun 17 17:41:03 CDT 2007


localui.dll is ready, so we can go one level up:


Changelog:
printui: Add stub for printui.dll


-- 
 
By by ... Detlef

-------------- next part --------------
>From e42525b8c7951018d343d6ece2d7aa1105aa267c Mon Sep 17 00:00:00 2001
From: Detlef Riekenberg <wine.dev at web.de>
Date: Mon, 18 Jun 2007 00:32:12 +0200
Subject: [PATCH] printui: Add stub for printui.dll
---
 dlls/printui/Makefile.in  |   14 +++++++++
 dlls/printui/printui.c    |   72 +++++++++++++++++++++++++++++++++++++++++++++
 dlls/printui/printui.spec |   25 ++++++++++++++++
 3 files changed, 111 insertions(+), 0 deletions(-)

diff --git a/dlls/printui/Makefile.in b/dlls/printui/Makefile.in
new file mode 100644
index 0000000..1fcf7a1
--- /dev/null
+++ b/dlls/printui/Makefile.in
@@ -0,0 +1,14 @@
+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..47c3ea1
--- /dev/null
+++ b/dlls/printui/printui.c
@@ -0,0 +1,72 @@
+/*
+ * 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..27c2141
--- /dev/null
+++ b/dlls/printui/printui.spec
@@ -0,0 +1,25 @@
+@ 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
+
+
-- 
1.4.1



More information about the wine-patches mailing list