Detlef Riekenberg : localspl:
Implement GetDefaultCommConfig for XcvDataPort.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Feb 20 14:19:09 CST 2007
Module: wine
Branch: master
Commit: 87947fce7f685aaf791ac3db843417d28b064f85
URL: http://source.winehq.org/git/wine.git/?a=commit;h=87947fce7f685aaf791ac3db843417d28b064f85
Author: Detlef Riekenberg <wine.dev at web.de>
Date: Tue Feb 20 18:11:53 2007 +0100
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_INIT( xcv_handles );
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 hXcv, LPCWSTR pszDataName, PBYTE pInput
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)) {
More information about the wine-cvs
mailing list