Detlef Riekenberg : spoolss: Implement DeleteMonitorW.
Alexandre Julliard
julliard at winehq.org
Mon Mar 2 09:01:57 CST 2009
Module: wine
Branch: master
Commit: 393c3817b1d4e062ba22fed716c3eebd21f48d45
URL: http://source.winehq.org/git/wine.git/?a=commit;h=393c3817b1d4e062ba22fed716c3eebd21f48d45
Author: Detlef Riekenberg <wine.dev at web.de>
Date: Sun Mar 1 00:15:50 2009 +0100
spoolss: Implement DeleteMonitorW.
---
dlls/spoolss/router.c | 34 ++++++++++++++++++++++++++++++++++
dlls/spoolss/spoolss.spec | 2 +-
2 files changed, 35 insertions(+), 1 deletions(-)
diff --git a/dlls/spoolss/router.c b/dlls/spoolss/router.c
index d5c4be3..6fc7b59 100644
--- a/dlls/spoolss/router.c
+++ b/dlls/spoolss/router.c
@@ -355,6 +355,40 @@ BOOL WINAPI AddMonitorW(LPWSTR pName, DWORD Level, LPBYTE pMonitors)
}
/******************************************************************
+ * DeleteMonitorW (spoolss.@)
+ *
+ * Delete a specific Printmonitor from a Printing-Environment
+ *
+ * PARAMS
+ * pName [I] Servername or NULL (local Computer)
+ * pEnvironment [I] Printing-Environment of the Monitor or NULL (Default)
+ * pMonitorName [I] Name of the Monitor, that should be deleted
+ *
+ * RETURNS
+ * Success: TRUE
+ * Failure: FALSE
+ *
+ */
+BOOL WINAPI DeleteMonitorW(LPWSTR pName, LPWSTR pEnvironment, LPWSTR pMonitorName)
+{
+ backend_t * pb;
+ DWORD res = ROUTER_UNKNOWN;
+
+ TRACE("(%s, %s, %s)\n", debugstr_w(pName), debugstr_w(pEnvironment), debugstr_w(pMonitorName));
+
+ pb = backend_first(pName);
+ if (pb && pb->fpDeleteMonitor)
+ res = pb->fpDeleteMonitor(pName, pEnvironment, pMonitorName);
+ else
+ {
+ SetLastError(ERROR_PROC_NOT_FOUND);
+ }
+
+ TRACE("got %u with %u\n", res, GetLastError());
+ return (res == ROUTER_SUCCESS);
+}
+
+/******************************************************************
* EnumMonitorsW (spoolss.@)
*
* Enumerate available Port-Monitors
diff --git a/dlls/spoolss/spoolss.spec b/dlls/spoolss/spoolss.spec
index 8d9fae3..ad1ea60 100644
--- a/dlls/spoolss/spoolss.spec
+++ b/dlls/spoolss/spoolss.spec
@@ -25,7 +25,7 @@
@ stub CreatePrinterIC
@ stub DbgGetPointers
@ stub DeleteFormW
-@ stub DeleteMonitorW
+@ stdcall DeleteMonitorW(wstr wstr wstr)
@ stub DeletePerMachineConnectionW
@ stub DeletePortW
@ stub DeletePrintProcessorW
More information about the wine-cvs
mailing list