Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
03daa608
Commit
03daa608
authored
Nov 28, 2006
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Implement AddPortW.
parent
df4d2931
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
5 deletions
+38
-5
info.c
dlls/winspool.drv/info.c
+38
-5
No files found.
dlls/winspool.drv/info.c
View file @
03daa608
...
...
@@ -5772,14 +5772,47 @@ BOOL WINAPI AddPortA(LPSTR pName, HWND hWnd, LPSTR pMonitorName)
* Success: TRUE
* Failure: FALSE
*
* BUGS
* only a Stub
*
*/
BOOL
WINAPI
AddPortW
(
LPWSTR
pName
,
HWND
hWnd
,
LPWSTR
pMonitorName
)
{
FIXME
(
"(%s, %p, %s), stub!
\n
"
,
debugstr_w
(
pName
),
hWnd
,
debugstr_w
(
pMonitorName
));
return
FALSE
;
monitor_t
*
pm
;
DWORD
res
=
ROUTER_UNKNOWN
;
TRACE
(
"(%s, %p, %s)
\n
"
,
debugstr_w
(
pName
),
hWnd
,
debugstr_w
(
pMonitorName
));
if
(
pName
&&
pName
[
0
])
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
if
(
!
pMonitorName
)
{
SetLastError
(
RPC_X_NULL_REF_POINTER
);
return
FALSE
;
}
/* an empty Monitorname is Invalid */
if
(
!
pMonitorName
[
0
])
goto
cleanup
;
pm
=
monitor_load
(
pMonitorName
,
NULL
);
if
(
pm
&&
pm
->
monitor
)
{
if
(
pm
->
monitor
->
pfnAddPort
!=
NULL
)
{
res
=
pm
->
monitor
->
pfnAddPort
(
pName
,
hWnd
,
pMonitorName
);
TRACE
(
"got %d with %d
\n
"
,
res
,
GetLastError
());
}
else
if
(
pm
->
monitor
->
pfnXcvOpenPort
!=
NULL
)
{
FIXME
(
"XcvOpenPort not implemented (dwMonitorSize: %d)
\n
"
,
pm
->
dwMonitorSize
);
}
/* invalidate cached PORT_INFO_2W */
if
(
res
==
ROUTER_SUCCESS
)
monitor_flush
(
pm
);
}
monitor_unload
(
pm
);
cleanup
:
/* XP: ERROR_NOT_SUPPORTED, NT351,9x: ERROR_INVALID_PARAMETER */
if
(
res
==
ROUTER_UNKNOWN
)
SetLastError
(
ERROR_NOT_SUPPORTED
);
TRACE
(
"returning %d with %d
\n
"
,
(
res
==
ROUTER_SUCCESS
),
GetLastError
());
return
(
res
==
ROUTER_SUCCESS
);
}
/******************************************************************************
...
...
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