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
d10ca7d9
Commit
d10ca7d9
authored
Feb 16, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Feb 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spoolss: Implement EnumPorts.
parent
190ed7fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
1 deletion
+45
-1
router.c
dlls/spoolss/router.c
+44
-0
spoolss.spec
dlls/spoolss/spoolss.spec
+1
-1
No files found.
dlls/spoolss/router.c
View file @
d10ca7d9
...
...
@@ -355,3 +355,47 @@ BOOL WINAPI EnumMonitorsW(LPWSTR pName, DWORD Level, LPBYTE pMonitors, DWORD cbB
return
(
res
==
ROUTER_SUCCESS
);
}
/******************************************************************
* EnumPortsW (spoolss.@)
*
* Enumerate available Ports
*
* PARAMS
* pName [I] Servername or NULL (local Computer)
* Level [I] Structure-Level (1 or 2)
* pPorts [O] PTR to Buffer that receives the Result
* cbBuf [I] Size of Buffer at pPorts
* pcbNeeded [O] PTR to DWORD that receives the size in Bytes used / required for pPorts
* pcReturned [O] PTR to DWORD that receives the number of Ports in pPorts
*
* RETURNS
* Success: TRUE
* Failure: FALSE and in pcbNeeded the Bytes required for pPorts, if cbBuf is too small
*
*/
BOOL
WINAPI
EnumPortsW
(
LPWSTR
pName
,
DWORD
Level
,
LPBYTE
pPorts
,
DWORD
cbBuf
,
LPDWORD
pcbNeeded
,
LPDWORD
pcReturned
)
{
backend_t
*
pb
;
DWORD
res
=
ROUTER_UNKNOWN
;
TRACE
(
"(%s, %d, %p, %d, %p, %p)
\n
"
,
debugstr_w
(
pName
),
Level
,
pPorts
,
cbBuf
,
pcbNeeded
,
pcReturned
);
if
(
pcbNeeded
)
*
pcbNeeded
=
0
;
if
(
pcReturned
)
*
pcReturned
=
0
;
pb
=
backend_first
(
pName
);
if
(
pb
&&
pb
->
fpEnumPorts
)
res
=
pb
->
fpEnumPorts
(
pName
,
Level
,
pPorts
,
cbBuf
,
pcbNeeded
,
pcReturned
);
else
{
SetLastError
(
ERROR_PROC_NOT_FOUND
);
}
TRACE
(
"got %u with %u (%u byte for %u entries)
\n
"
,
res
,
GetLastError
(),
pcbNeeded
?
*
pcbNeeded
:
0
,
pcReturned
?
*
pcReturned
:
0
);
return
(
res
==
ROUTER_SUCCESS
);
}
dlls/spoolss/spoolss.spec
View file @
d10ca7d9
...
...
@@ -47,7 +47,7 @@
@ stub EnumJobsW
@ stdcall EnumMonitorsW(wstr long ptr long ptr ptr)
@ stub EnumPerMachineConnectionsW
@ stdcall EnumPortsW(wstr long ptr
ptr ptr ptr) winspool.drv.EnumPortsW
@ stdcall EnumPortsW(wstr long ptr
long ptr ptr)
@ stub EnumPrintProcessorDatatypesW
@ stub EnumPrintProcessorsW
@ stub EnumPrinterDataExW
...
...
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