spoolss: Implement AddMonitorW.
This commit is contained in:
parent
2a7d98a52c
commit
f45cb5ce7f
|
@ -312,6 +312,48 @@ static backend_t * backend_first(LPWSTR name)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************
|
||||||
|
* 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.@)
|
* EnumMonitorsW (spoolss.@)
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@ stub AbortPrinter
|
@ stub AbortPrinter
|
||||||
@ stub AddFormW
|
@ stub AddFormW
|
||||||
@ stub AddJobW
|
@ stub AddJobW
|
||||||
@ stub AddMonitorW
|
@ stdcall AddMonitorW(wstr long ptr)
|
||||||
@ stub AddPerMachineConnectionW
|
@ stub AddPerMachineConnectionW
|
||||||
@ stub AddPortExW
|
@ stub AddPortExW
|
||||||
@ stub AddPortW
|
@ stub AddPortW
|
||||||
|
|
Loading…
Reference in New Issue