localspl: [1/2] Implement GetDefaultCommConfig for XcvDataPort
Detlef Riekenberg
wine.dev at web.de
Tue Feb 20 11:11:53 CST 2007
localspl: Implement GetDefaultCommConfig for XcvDataPort
--
By by ... Detlef
-------------- next part --------------
>From 711bc33fe044844de2e769edcaa3d4fd28c90939 Mon Sep 17 00:00:00 2001
From: Detlef Riekenberg <wine.dev at web.de>
Date: Tue, 20 Feb 2007 16:43:12 +0100
Subject: [PATCH] localspl: Implement GetDefaultCommConfig for XcvDataPort
---
dlls/localspl/localmon.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/dlls/localspl/localmon.c b/dlls/localspl/localmon.c
index fc57217..15fd6ee 100644
--- a/dlls/localspl/localmon.c
+++ b/dlls/localspl/localmon.c
@@ -68,6 +68,11 @@ static struct list xcv_handles = LIST_IN
static const WCHAR cmd_ConfigureLPTPortCommandOKW[] = {'C','o','n','f','i','g','u','r','e',
'L','P','T','P','o','r','t',
'C','o','m','m','a','n','d','O','K',0};
+
+static const WCHAR cmd_GetDefaultCommConfigW[] = {'G','e','t',
+ 'D','e','f','a','u','l','t',
+ 'C','o','m','m','C','o','n','f','i','g',0};
+
static const WCHAR cmd_GetTransmissionRetryTimeoutW[] = {'G','e','t',
'T','r','a','n','s','m','i','s','s','i','o','n',
'R','e','t','r','y','T','i','m','e','o','u','t',0};
@@ -459,6 +464,14 @@ DWORD WINAPI localmon_XcvDataPort(HANDLE
return res;
}
+ if (!lstrcmpW(pszDataName, cmd_GetDefaultCommConfigW)) {
+ TRACE("InputData (%d): %s\n", cbInputData, debugstr_w( (LPWSTR) pInputData));
+ *pcbOutputNeeded = cbOutputData;
+ res = GetDefaultCommConfigW((LPWSTR) pInputData, (LPCOMMCONFIG) pOutputData, pcbOutputNeeded);
+ TRACE("got %u with %u\n", res, GetLastError() );
+ return res ? ERROR_SUCCESS : GetLastError();
+ }
+
if (!lstrcmpW(pszDataName, cmd_GetTransmissionRetryTimeoutW)) {
* pcbOutputNeeded = sizeof(DWORD);
if (cbOutputData >= sizeof(DWORD)) {
--
1.4.1
More information about the wine-patches
mailing list