Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8163e504
Commit
8163e504
authored
Feb 20, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Feb 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Implement SetDefaultCommConfig for XcvDataPort.
parent
87947fce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
localmon.c
dlls/localspl/localmon.c
+16
-1
No files found.
dlls/localspl/localmon.c
View file @
8163e504
...
...
@@ -79,6 +79,10 @@ static const WCHAR cmd_GetTransmissionRetryTimeoutW[] = {'G','e','t',
static
const
WCHAR
cmd_MonitorUIW
[]
=
{
'M'
,
'o'
,
'n'
,
'i'
,
't'
,
'o'
,
'r'
,
'U'
,
'I'
,
0
};
static
const
WCHAR
cmd_PortIsValidW
[]
=
{
'P'
,
'o'
,
'r'
,
't'
,
'I'
,
's'
,
'V'
,
'a'
,
'l'
,
'i'
,
'd'
,
0
};
static
const
WCHAR
cmd_SetDefaultCommConfigW
[]
=
{
'S'
,
'e'
,
't'
,
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
'C'
,
'o'
,
'm'
,
'm'
,
'C'
,
'o'
,
'n'
,
'f'
,
'i'
,
'g'
,
0
};
static
const
WCHAR
dllnameuiW
[]
=
{
'l'
,
'o'
,
'c'
,
'a'
,
'l'
,
'u'
,
'i'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
portname_LPT
[]
=
{
'L'
,
'P'
,
'T'
,
0
};
...
...
@@ -446,11 +450,11 @@ DWORD WINAPI localmon_XcvDataPort(HANDLE hXcv, LPCWSTR pszDataName, PBYTE pInput
PBYTE
pOutputData
,
DWORD
cbOutputData
,
PDWORD
pcbOutputNeeded
)
{
WCHAR
buffer
[
16
];
/* buffer for a decimal number */
LPWSTR
ptr
;
DWORD
res
;
DWORD
needed
;
HKEY
hroot
;
TRACE
(
"(%p, %s, %p, %d, %p, %d, %p)
\n
"
,
hXcv
,
debugstr_w
(
pszDataName
),
pInputData
,
cbInputData
,
pOutputData
,
cbOutputData
,
pcbOutputNeeded
);
...
...
@@ -513,6 +517,17 @@ DWORD WINAPI localmon_XcvDataPort(HANDLE hXcv, LPCWSTR pszDataName, PBYTE pInput
return
GetLastError
();
}
if
(
!
lstrcmpW
(
pszDataName
,
cmd_SetDefaultCommConfigW
))
{
/* get the portname from the Handle */
ptr
=
strchrW
(((
xcv_t
*
)
hXcv
)
->
nameW
,
' '
);
ptr
++
;
/* skip the space */
lstrcpynW
(
buffer
,
ptr
,
sizeof
(
buffer
)
/
sizeof
(
WCHAR
));
if
(
buffer
[
0
])
buffer
[
lstrlenW
(
buffer
)
-
1
]
=
'\0'
;
/* remove the ':' */
res
=
SetDefaultCommConfigW
(
buffer
,
(
LPCOMMCONFIG
)
pInputData
,
cbInputData
);
TRACE
(
"got %u with %u
\n
"
,
res
,
GetLastError
()
);
return
res
?
ERROR_SUCCESS
:
GetLastError
();
}
FIXME
(
"command not supported: %s
\n
"
,
debugstr_w
(
pszDataName
));
return
ERROR_INVALID_PARAMETER
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment