From 1f766011ca0e5714082e27296513c9a3c70bf437 Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Thu, 19 Oct 2006 23:48:29 +0200 Subject: [PATCH] localspl: Implement InitializePrintMonitor. --- dlls/localspl/localmon.c | 19 +++++++++++++------ dlls/localspl/localspl_main.c | 1 - 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/dlls/localspl/localmon.c b/dlls/localspl/localmon.c index 6665585f32b..1af54c5bc86 100644 --- a/dlls/localspl/localmon.c +++ b/dlls/localspl/localmon.c @@ -34,7 +34,6 @@ #include "winspool.h" #include "ddk/winsplp.h" -#include "wine/unicode.h" #include "wine/debug.h" @@ -53,18 +52,26 @@ WINE_DEFAULT_DEBUG_CHANNEL(localspl); * Failure: NULL * * NOTES - * Native localspl.dll fails, when the Section "Ports" is missing in "win.ini". + * The fixed location "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Ports" + * is used to store the Ports (IniFileMapping from "win.ini", Section "Ports"). + * Native localspl.dll fails, when no valid Port-Entry is present. * */ LPMONITOREX WINAPI InitializePrintMonitor(LPWSTR regroot) { - FIXME("(%s) stub\n", debugstr_w(regroot)); + static MONITOREX mymonitorex = + { + sizeof(MONITOREX) - sizeof(DWORD) + }; + + TRACE("(%s)\n", debugstr_w(regroot)); + /* Parameter "regroot" is ignored on NT4.0 (localmon.dll) */ if (!regroot || !regroot[0]) { SetLastError(ERROR_INVALID_PARAMETER); return NULL; } - - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return NULL; + TRACE("=> %p\n", &mymonitorex); + /* Native windows returns always the same pointer on success */ + return &mymonitorex; } diff --git a/dlls/localspl/localspl_main.c b/dlls/localspl/localspl_main.c index b1de4466e63..b9ce877f2de 100644 --- a/dlls/localspl/localspl_main.c +++ b/dlls/localspl/localspl_main.c @@ -34,7 +34,6 @@ #include "winspool.h" #include "ddk/winsplp.h" -#include "wine/unicode.h" #include "wine/debug.h"