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
f45cb5ce
Commit
f45cb5ce
authored
Feb 28, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Mar 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spoolss: Implement AddMonitorW.
parent
2a7d98a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
router.c
dlls/spoolss/router.c
+42
-0
spoolss.spec
dlls/spoolss/spoolss.spec
+1
-1
No files found.
dlls/spoolss/router.c
View file @
f45cb5ce
...
...
@@ -313,6 +313,48 @@ static backend_t * backend_first(LPWSTR name)
}
/******************************************************************
* AddMonitorW (spoolss.@)
*
* Install a Printmonitor
*
* PARAMS
* pName [I] Servername or NULL (local Computer)
* Level [I] Structure-Level (Must be 2)
* pMonitors [I] PTR to MONITOR_INFO_2
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*
* NOTES
* All Files for the Monitor must already be copied to %winsysdir% ("%SystemRoot%\system32")
*
*/
BOOL
WINAPI
AddMonitorW
(
LPWSTR
pName
,
DWORD
Level
,
LPBYTE
pMonitors
)
{
backend_t
*
pb
;
DWORD
res
=
ROUTER_UNKNOWN
;
TRACE
(
"(%s, %d, %p)
\n
"
,
debugstr_w
(
pName
),
Level
,
pMonitors
);
if
(
Level
!=
2
)
{
SetLastError
(
ERROR_INVALID_LEVEL
);
return
FALSE
;
}
pb
=
backend_first
(
pName
);
if
(
pb
&&
pb
->
fpAddMonitor
)
res
=
pb
->
fpAddMonitor
(
pName
,
Level
,
pMonitors
);
else
{
SetLastError
(
ERROR_PROC_NOT_FOUND
);
}
TRACE
(
"got %u with %u
\n
"
,
res
,
GetLastError
());
return
(
res
==
ROUTER_SUCCESS
);
}
/******************************************************************
* EnumMonitorsW (spoolss.@)
*
* Enumerate available Port-Monitors
...
...
dlls/spoolss/spoolss.spec
View file @
f45cb5ce
@ stub AbortPrinter
@ stub AddFormW
@ stub AddJobW
@ st
ub AddMonitorW
@ st
dcall AddMonitorW(wstr long ptr)
@ stub AddPerMachineConnectionW
@ stub AddPortExW
@ stub AddPortW
...
...
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