localspl: [2/3] Start implementation of InitializePrintMonitor
Detlef Riekenberg
wine.dev at web.de
Wed Sep 27 05:59:12 CDT 2006
The Printmonitor was merged from localmon.dll to
localspl.dll for w2k and is Unicode-Only
Changelog:
localspl: Start implementation of InitializePrintMonitor
The Rest of the ~20k for localmon.c will follow
in small Patches with tests.
--
By by ... Detlef
-------------- next part --------------
Subject: [PATCH] localspl: Start implementation of InitializePrintMonitor
Start implementation of InitializePrintMonitor
Simple Test follows
---
dlls/localspl/Makefile.in | 1 +
dlls/localspl/localmon.c | 70 +++++++++++++++++++++++++++++++++++++++++
dlls/localspl/localspl_main.c | 10 ------
3 files changed, 71 insertions(+), 10 deletions(-)
create mode 100644 dlls/localspl/localmon.c
ac446da357c24f4c37b63c1a85a3156fb111fca3
diff --git a/dlls/localspl/Makefile.in b/dlls/localspl/Makefile.in
index 20bd299..bb39c29 100644
--- a/dlls/localspl/Makefile.in
+++ b/dlls/localspl/Makefile.in
@@ -7,6 +7,7 @@ IMPORTLIB = liblocalspl.$(IMPLIBEXT)
IMPORTS = kernel32
C_SRCS = \
+ localmon.c \
localspl_main.c
@MAKE_DLL_RULES@
diff --git a/dlls/localspl/localmon.c b/dlls/localspl/localmon.c
new file mode 100644
index 0000000..6665585
--- /dev/null
+++ b/dlls/localspl/localmon.c
@@ -0,0 +1,70 @@
+/*
+ * Implementation of the Local Printmonitor
+ *
+ * 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 "winspool.h"
+#include "ddk/winsplp.h"
+
+#include "wine/unicode.h"
+#include "wine/debug.h"
+
+
+WINE_DEFAULT_DEBUG_CHANNEL(localspl);
+
+/*****************************************************
+ * InitializePrintMonitor (LOCALSPL.@)
+ *
+ * Initialize the Monitor for the Local Ports
+ *
+ * PARAMS
+ * regroot [I] Registry-Path, where the settings are stored
+ *
+ * RETURNS
+ * Success: Pointer to a MONITOREX Structure
+ * Failure: NULL
+ *
+ * NOTES
+ * Native localspl.dll fails, when the Section "Ports" is missing in "win.ini".
+ *
+ */
+
+LPMONITOREX WINAPI InitializePrintMonitor(LPWSTR regroot)
+{
+ FIXME("(%s) stub\n", debugstr_w(regroot));
+ if (!regroot || !regroot[0]) {
+ SetLastError(ERROR_INVALID_PARAMETER);
+ return NULL;
+ }
+
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return NULL;
+}
diff --git a/dlls/localspl/localspl_main.c b/dlls/localspl/localspl_main.c
index 0bc94f6..2beb635 100644
--- a/dlls/localspl/localspl_main.c
+++ b/dlls/localspl/localspl_main.c
@@ -59,13 +59,3 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,
return TRUE;
}
-
-/*****************************************************
- * InitializePrintMonitor (LOCALSPL.@)
- */
-
-LPMONITOREX WINAPI InitializePrintMonitor(LPWSTR regroot)
-{
- FIXME("(%s) stub\n", debugstr_w(regroot));
- return NULL;
-}
--
1.1.3
More information about the wine-patches
mailing list