localspl: [1/3] DeletePort is now in localui.dll

Detlef Riekenberg wine.dev at web.de
Wed Apr 18 17:41:19 CDT 2007


localspl: DeletePort is now in localui.dll


-- 
 
By by ... Detlef

-------------- next part --------------
>From 016b463d4bb9be576a2cc0ac678185e237132238 Mon Sep 17 00:00:00 2001
From: Detlef Riekenberg <wine.dev at web.de>
Date: Wed, 18 Apr 2007 22:01:43 +0200
Subject: [PATCH] localspl: DeletePort is now in localui.dll
---
 dlls/localspl/localmon.c |   35 +----------------------------------
 1 files changed, 1 insertions(+), 34 deletions(-)

diff --git a/dlls/localspl/localmon.c b/dlls/localspl/localmon.c
index 4dd0664..384e1f1 100644
--- a/dlls/localspl/localmon.c
+++ b/dlls/localspl/localmon.c
@@ -342,39 +342,6 @@ BOOL WINAPI localmon_ConfigurePortW(LPWS
 }
 
 /*****************************************************
- *   localmon_DeletePortW [exported through MONITOREX]
- *
- * Delete a specific Port
- *
- * PARAMS
- *  pName     [I] Servername or NULL (local Computer)
- *  hWnd      [I] Handle to parent Window
- *  pPortName [I] Name of the Port, that should be deleted
- *
- * RETURNS
- *  Success: TRUE
- *  Failure: FALSE
- *
- */
-BOOL WINAPI localmon_DeletePortW(LPWSTR pName, HWND hWnd, LPWSTR pPortName)
-{
-    DWORD   res;
-    HKEY    hroot;
-
-    TRACE("(%s, %p, %s)\n", debugstr_w(pName), hWnd, debugstr_w(pPortName));
-
-    if ((!pPortName) || (!pPortName[0])) return FALSE;
-
-    res = RegOpenKeyW(HKEY_LOCAL_MACHINE, WinNT_CV_PortsW, &hroot);
-    if (res == ERROR_SUCCESS) {
-        res = RegDeleteValueW(hroot, pPortName);
-        RegCloseKey(hroot);
-    }
-    TRACE("=> %d\n", (res == ERROR_SUCCESS));
-    return (res == ERROR_SUCCESS);
-}
-
-/*****************************************************
  *   localmon_EnumPortsW [exported through MONITOREX]
  *
  * Enumerate all local Ports
@@ -685,7 +652,7 @@ LPMONITOREX WINAPI InitializePrintMonito
             NULL,       /* localmon_AddPortW */
             NULL,       /* localmon_AddPortExW */
             localmon_ConfigurePortW,
-            localmon_DeletePortW,
+            NULL,       /* Use DeletePortUI in localui.dll */
             NULL,       /* localmon_GetPrinterDataFromPort */
             NULL,       /* localmon_SetPortTimeOuts */
             localmon_XcvOpenPort,
-- 
1.4.1



More information about the wine-patches mailing list