2 * PROJECT: ReactOS Print Spooler Service
3 * LICENSE: GNU GPLv2 or any later version as published by the Free Software Foundation
4 * PURPOSE: Unimplemented RPC calls
5 * COPYRIGHT: Copyright 2015 Colin Finck <colin@reactos.org>
11 _RpcEnumJobs(WINSPOOL_PRINTER_HANDLE hPrinter
, DWORD FirstJob
, DWORD NoJobs
, DWORD Level
, BYTE
*pJob
, DWORD cbBuf
, DWORD
*pcbNeeded
, DWORD
*pcReturned
)
14 return ERROR_INVALID_FUNCTION
;
18 _RpcAddPrinter(WINSPOOL_HANDLE pName
, WINSPOOL_PRINTER_CONTAINER
*pPrinterContainer
, WINSPOOL_DEVMODE_CONTAINER
*pDevModeContainer
, WINSPOOL_SECURITY_CONTAINER
*pSecurityContainer
, WINSPOOL_PRINTER_HANDLE
*pHandle
)
21 return ERROR_INVALID_FUNCTION
;
25 _RpcDeletePrinter(WINSPOOL_PRINTER_HANDLE hPrinter
)
28 return ERROR_INVALID_FUNCTION
;
32 _RpcSetPrinter(WINSPOOL_PRINTER_HANDLE hPrinter
, WINSPOOL_PRINTER_CONTAINER
*pPrinterContainer
, WINSPOOL_DEVMODE_CONTAINER
*pDevModeContainer
, WINSPOOL_SECURITY_CONTAINER
*pSecurityContainer
, DWORD Command
)
35 return ERROR_INVALID_FUNCTION
;
39 _RpcGetPrinter(WINSPOOL_PRINTER_HANDLE hPrinter
, DWORD Level
, BYTE
*pPrinter
, DWORD cbBuf
, DWORD
*pcbNeeded
)
42 return ERROR_INVALID_FUNCTION
;
46 _RpcAddPrinterDriver(WINSPOOL_HANDLE pName
, WINSPOOL_DRIVER_CONTAINER
*pDriverContainer
)
49 return ERROR_INVALID_FUNCTION
;
53 _RpcEnumPrinterDrivers(WINSPOOL_HANDLE pName
, WCHAR
*pEnvironment
, DWORD Level
, BYTE
*pDrivers
, DWORD cbBuf
, DWORD
*pcbNeeded
, DWORD
*pcReturned
)
56 return ERROR_INVALID_FUNCTION
;
60 _RpcGetPrinterDriver(WINSPOOL_PRINTER_HANDLE hPrinter
, WCHAR
*pEnvironment
, DWORD Level
, BYTE
*pDriver
, DWORD cbBuf
, DWORD
*pcbNeeded
)
63 return ERROR_INVALID_FUNCTION
;
67 _RpcGetPrinterDriverDirectory(WINSPOOL_HANDLE pName
, WCHAR
*pEnvironment
, DWORD Level
, BYTE
*pDriverDirectory
, DWORD cbBuf
, DWORD
*pcbNeeded
)
70 return ERROR_INVALID_FUNCTION
;
74 _RpcDeletePrinterDriver(WINSPOOL_HANDLE pName
, WCHAR
*pEnvironment
, WCHAR
*pDriverName
)
77 return ERROR_INVALID_FUNCTION
;
81 _RpcStartDocPrinter(WINSPOOL_PRINTER_HANDLE hPrinter
, WINSPOOL_DOC_INFO_CONTAINER
*pDocInfoContainer
, DWORD
*pJobId
)
84 return ERROR_INVALID_FUNCTION
;
88 _RpcStartPagePrinter(WINSPOOL_PRINTER_HANDLE hPrinter
)
91 return ERROR_INVALID_FUNCTION
;
95 _RpcWritePrinter(WINSPOOL_PRINTER_HANDLE hPrinter
, BYTE
*pBuf
, DWORD cbBuf
, DWORD
*pcWritten
)
98 return ERROR_INVALID_FUNCTION
;
102 _RpcEndPagePrinter(WINSPOOL_PRINTER_HANDLE hPrinter
)
105 return ERROR_INVALID_FUNCTION
;
109 _RpcAbortPrinter(WINSPOOL_PRINTER_HANDLE hPrinter
)
112 return ERROR_INVALID_FUNCTION
;
116 _RpcReadPrinter(WINSPOOL_PRINTER_HANDLE hPrinter
, BYTE
*pBuf
, DWORD cbBuf
, DWORD
*pcNoBytesRead
)
119 return ERROR_INVALID_FUNCTION
;
123 _RpcEndDocPrinter(WINSPOOL_PRINTER_HANDLE hPrinter
)
126 return ERROR_INVALID_FUNCTION
;
130 _RpcGetPrinterData(WINSPOOL_PRINTER_HANDLE hPrinter
, WCHAR
*pValueName
, DWORD
*pType
, BYTE
*pData
, DWORD nSize
, DWORD
*pcbNeeded
)
133 return ERROR_INVALID_FUNCTION
;
137 _RpcSetPrinterData(WINSPOOL_PRINTER_HANDLE hPrinter
, WCHAR
*pValueName
, DWORD Type
, BYTE
*pData
, DWORD cbData
)
140 return ERROR_INVALID_FUNCTION
;
144 _RpcWaitForPrinterChange(WINSPOOL_PRINTER_HANDLE hPrinter
, DWORD Flags
, DWORD
*pFlags
)
147 return ERROR_INVALID_FUNCTION
;
151 _RpcClosePrinter(WINSPOOL_PRINTER_HANDLE
*phPrinter
)
154 return ERROR_INVALID_FUNCTION
;
158 _RpcAddForm(WINSPOOL_PRINTER_HANDLE hPrinter
, WINSPOOL_FORM_CONTAINER
*pFormInfoContainer
)
161 return ERROR_INVALID_FUNCTION
;
165 _RpcDeleteForm(WINSPOOL_PRINTER_HANDLE hPrinter
, WCHAR
*pFormName
)
168 return ERROR_INVALID_FUNCTION
;
172 _RpcGetForm(WINSPOOL_PRINTER_HANDLE hPrinter
, WCHAR
*pFormName
, DWORD Level
, BYTE
*pForm
, DWORD cbBuf
, DWORD
*pcbNeeded
)
175 return ERROR_INVALID_FUNCTION
;
179 _RpcSetForm(WINSPOOL_PRINTER_HANDLE hPrinter
, WCHAR
*pFormName
, WINSPOOL_FORM_CONTAINER
*pFormInfoContainer
)
182 return ERROR_INVALID_FUNCTION
;
186 _RpcEnumForms(WINSPOOL_PRINTER_HANDLE hPrinter
, DWORD Level
, BYTE
*pForm
, DWORD cbBuf
, DWORD
*pcbNeeded
, DWORD
*pcReturned
)
189 return ERROR_INVALID_FUNCTION
;
193 _RpcEnumPorts(WINSPOOL_HANDLE pName
, DWORD Level
, BYTE
*pPort
, DWORD cbBuf
, DWORD
*pcbNeeded
, DWORD
*pcReturned
)
196 return ERROR_INVALID_FUNCTION
;
200 _RpcEnumMonitors(WINSPOOL_HANDLE pName
, DWORD Level
, BYTE
*pMonitor
, DWORD cbBuf
, DWORD
*pcbNeeded
, DWORD
*pcReturned
)
203 return ERROR_INVALID_FUNCTION
;
207 _RpcAddPort(WINSPOOL_HANDLE pName
, ULONG_PTR hWnd
, WCHAR
*pMonitorName
)
210 return ERROR_INVALID_FUNCTION
;
214 _RpcConfigurePort(WINSPOOL_HANDLE pName
, ULONG_PTR hWnd
, WCHAR
*pPortName
)
217 return ERROR_INVALID_FUNCTION
;
221 _RpcDeletePort(WINSPOOL_HANDLE pName
, ULONG_PTR hWnd
, WCHAR
*pPortName
)
224 return ERROR_INVALID_FUNCTION
;
228 _RpcCreatePrinterIC(WINSPOOL_PRINTER_HANDLE hPrinter
, WINSPOOL_GDI_HANDLE
*pHandle
, WINSPOOL_DEVMODE_CONTAINER
*pDevModeContainer
)
231 return ERROR_INVALID_FUNCTION
;
235 _RpcPlayGdiScriptOnPrinterIC(WINSPOOL_GDI_HANDLE hPrinterIC
, BYTE
*pIn
, DWORD cIn
, BYTE
*pOut
, DWORD cOut
, DWORD ul
)
238 return ERROR_INVALID_FUNCTION
;
242 _RpcDeletePrinterIC(WINSPOOL_GDI_HANDLE
*phPrinterIC
)
245 return ERROR_INVALID_FUNCTION
;
249 _RpcAddPrinterConnection(WINSPOOL_HANDLE pName
)
252 return ERROR_INVALID_FUNCTION
;
256 _RpcDeletePrinterConnection(WINSPOOL_HANDLE pName
)
259 return ERROR_INVALID_FUNCTION
;
263 _RpcPrinterMessageBox(WINSPOOL_PRINTER_HANDLE hPrinter
, DWORD Error
, ULONG_PTR hWnd
, WCHAR
*pText
, WCHAR
*pCaption
, DWORD dwType
)
266 return ERROR_INVALID_FUNCTION
;
270 _RpcAddMonitor(WINSPOOL_HANDLE pName
, WINSPOOL_MONITOR_CONTAINER
*pMonitorContainer
)
273 return ERROR_INVALID_FUNCTION
;
277 _RpcDeleteMonitor(WINSPOOL_HANDLE pName
, WCHAR
*pEnvironment
, WCHAR
*pMonitorName
)
280 return ERROR_INVALID_FUNCTION
;
284 _RpcDeletePrintProcessor(WINSPOOL_HANDLE pName
, WCHAR
*pEnvironment
, WCHAR
*pPrintProcessorName
)
287 return ERROR_INVALID_FUNCTION
;
291 _RpcAddPrintProvidor(WINSPOOL_HANDLE pName
, WINSPOOL_PROVIDOR_CONTAINER
*pProvidorContainer
)
294 return ERROR_INVALID_FUNCTION
;
298 _RpcDeletePrintProvidor(WINSPOOL_HANDLE pName
, WCHAR
*pEnvironment
, WCHAR
*pPrintProviderName
)
301 return ERROR_INVALID_FUNCTION
;
305 _RpcResetPrinter(WINSPOOL_PRINTER_HANDLE hPrinter
, WCHAR
*pDatatype
, WINSPOOL_DEVMODE_CONTAINER
*pDevModeContainer
)
308 return ERROR_INVALID_FUNCTION
;
312 _RpcGetPrinterDriver2(WINSPOOL_PRINTER_HANDLE hPrinter
, WCHAR
*pEnvironment
, DWORD Level
, BYTE
*pDriver
, DWORD cbBuf
, DWORD
*pcbNeeded
, DWORD dwClientMajorVersion
, DWORD dwClientMinorVersion
, DWORD
*pdwServerMaxVersion
, DWORD
*pdwServerMinVersion
)
315 return ERROR_INVALID_FUNCTION
;
319 _RpcClientFindFirstPrinterChangeNotification()
322 return ERROR_INVALID_FUNCTION
;
326 _RpcFindNextPrinterChangeNotification()
329 return ERROR_INVALID_FUNCTION
;
333 _RpcFindClosePrinterChangeNotification()
336 return ERROR_INVALID_FUNCTION
;
340 _RpcRouterFindFirstPrinterChangeNotificationOld()
343 return ERROR_INVALID_FUNCTION
;
347 _RpcReplyOpenPrinter(WINSPOOL_HANDLE pMachine
, WINSPOOL_PRINTER_HANDLE
*phPrinterNotify
, DWORD dwPrinterRemote
, DWORD dwType
, DWORD cbBuffer
, BYTE
*pBuffer
)
350 return ERROR_INVALID_FUNCTION
;
354 _RpcRouterReplyPrinter(WINSPOOL_PRINTER_HANDLE hNotify
, DWORD fdwFlags
, DWORD cbBuffer
, BYTE
*pBuffer
)
357 return ERROR_INVALID_FUNCTION
;
361 _RpcReplyClosePrinter(WINSPOOL_PRINTER_HANDLE
*phNotify
)
364 return ERROR_INVALID_FUNCTION
;
368 _RpcAddPortEx(WINSPOOL_HANDLE pName
, WINSPOOL_PORT_CONTAINER
*pPortContainer
, WINSPOOL_PORT_VAR_CONTAINER
*pPortVarContainer
, WCHAR
*pMonitorName
)
371 return ERROR_INVALID_FUNCTION
;
375 _RpcRemoteFindFirstPrinterChangeNotification(WINSPOOL_PRINTER_HANDLE hPrinter
, DWORD fdwFlags
, DWORD fdwOptions
, WCHAR
*pszLocalMachine
, DWORD dwPrinterLocal
, DWORD cbBuffer
, BYTE
*pBuffer
)
378 return ERROR_INVALID_FUNCTION
;
385 return ERROR_INVALID_FUNCTION
;
389 _RpcRemoteFindFirstPrinterChangeNotificationEx(WINSPOOL_PRINTER_HANDLE hPrinter
, DWORD fdwFlags
, DWORD fdwOptions
, WCHAR
*pszLocalMachine
, DWORD dwPrinterLocal
, WINSPOOL_V2_NOTIFY_OPTIONS
*pOptions
)
392 return ERROR_INVALID_FUNCTION
;
396 _RpcRouterReplyPrinterEx(WINSPOOL_PRINTER_HANDLE hNotify
, DWORD dwColor
, DWORD fdwFlags
, DWORD
*pdwResult
, DWORD dwReplyType
, WINSPOOL_V2_UREPLY_PRINTER Reply
)
399 return ERROR_INVALID_FUNCTION
;
403 _RpcRouterRefreshPrinterChangeNotification(WINSPOOL_PRINTER_HANDLE hPrinter
, DWORD dwColor
, WINSPOOL_V2_NOTIFY_OPTIONS
*pOptions
, WINSPOOL_V2_NOTIFY_INFO
**ppInfo
)
406 return ERROR_INVALID_FUNCTION
;
410 _RpcSetAllocFailCount()
413 return ERROR_INVALID_FUNCTION
;
417 _RpcOpenPrinterEx(WINSPOOL_HANDLE pPrinterName
, WINSPOOL_PRINTER_HANDLE
*pHandle
, WCHAR
*pDatatype
, WINSPOOL_DEVMODE_CONTAINER
*pDevModeContainer
, DWORD AccessRequired
, WINSPOOL_SPLCLIENT_CONTAINER
*pClientInfo
)
420 return ERROR_INVALID_FUNCTION
;
424 _RpcAddPrinterEx(WINSPOOL_HANDLE pName
, WINSPOOL_PRINTER_CONTAINER
*pPrinterContainer
, WINSPOOL_DEVMODE_CONTAINER
*pDevModeContainer
, WINSPOOL_SECURITY_CONTAINER
*pSecurityContainer
, WINSPOOL_SPLCLIENT_CONTAINER
*pClientInfo
, WINSPOOL_PRINTER_HANDLE
*pHandle
)
427 return ERROR_INVALID_FUNCTION
;
431 _RpcSetPort(WINSPOOL_HANDLE pName
, WCHAR
*pPortName
, WINSPOOL_PORT_CONTAINER
*pPortContainer
)
434 return ERROR_INVALID_FUNCTION
;
438 _RpcEnumPrinterData(WINSPOOL_PRINTER_HANDLE hPrinter
, DWORD dwIndex
, WCHAR
*pValueName
, DWORD cbValueName
, DWORD
*pcbValueName
, DWORD
*pType
, BYTE
*pData
, DWORD cbData
, DWORD
*pcbData
)
441 return ERROR_INVALID_FUNCTION
;
445 _RpcDeletePrinterData(WINSPOOL_PRINTER_HANDLE hPrinter
, WCHAR
*pValueName
)
448 return ERROR_INVALID_FUNCTION
;
455 return ERROR_INVALID_FUNCTION
;
459 _RpcClusterSplClose()
462 return ERROR_INVALID_FUNCTION
;
466 _RpcClusterSplIsAlive()
469 return ERROR_INVALID_FUNCTION
;
473 _RpcSetPrinterDataEx(WINSPOOL_PRINTER_HANDLE hPrinter
, const WCHAR
*pKeyName
, const WCHAR
*pValueName
, DWORD Type
, BYTE
*pData
, DWORD cbData
)
476 return ERROR_INVALID_FUNCTION
;
480 _RpcGetPrinterDataEx(WINSPOOL_PRINTER_HANDLE hPrinter
, const WCHAR
*pKeyName
, const WCHAR
*pValueName
, DWORD
*pType
, BYTE
*pData
, DWORD nSize
, DWORD
*pcbNeeded
)
483 return ERROR_INVALID_FUNCTION
;
487 _RpcEnumPrinterDataEx(WINSPOOL_PRINTER_HANDLE hPrinter
, const WCHAR
*pKeyName
, BYTE
*pEnumValues
, DWORD cbEnumValues
, DWORD
*pcbEnumValues
, DWORD
*pnEnumValues
)
490 return ERROR_INVALID_FUNCTION
;
494 _RpcEnumPrinterKey(WINSPOOL_PRINTER_HANDLE hPrinter
, const WCHAR
*pKeyName
, WCHAR
*pSubkey
, DWORD cbSubkey
, DWORD
*pcbSubkey
)
497 return ERROR_INVALID_FUNCTION
;
501 _RpcDeletePrinterDataEx(WINSPOOL_PRINTER_HANDLE hPrinter
, const WCHAR
*pKeyName
, const WCHAR
*pValueName
)
504 return ERROR_INVALID_FUNCTION
;
508 _RpcDeletePrinterKey(WINSPOOL_PRINTER_HANDLE hPrinter
, const WCHAR
*pKeyName
)
511 return ERROR_INVALID_FUNCTION
;
518 return ERROR_INVALID_FUNCTION
;
522 _RpcDeletePrinterDriverEx(WINSPOOL_HANDLE pName
, WCHAR
*pEnvironment
, WCHAR
*pDriverName
, DWORD dwDeleteFlag
, DWORD dwVersionNum
)
525 return ERROR_INVALID_FUNCTION
;
529 _RpcAddPerMachineConnection(WINSPOOL_HANDLE pServer
, const WCHAR
*pPrinterName
, const WCHAR
*pPrintServer
, const WCHAR
*pProvider
)
532 return ERROR_INVALID_FUNCTION
;
536 _RpcDeletePerMachineConnection(WINSPOOL_HANDLE pServer
, const WCHAR
*pPrinterName
)
539 return ERROR_INVALID_FUNCTION
;
543 _RpcEnumPerMachineConnections(WINSPOOL_HANDLE pServer
, BYTE
*pPrinterEnum
, DWORD cbBuf
, DWORD
*pcbNeeded
, DWORD
*pcReturned
)
546 return ERROR_INVALID_FUNCTION
;
550 _RpcXcvData(WINSPOOL_PRINTER_HANDLE hXcv
, const WCHAR
*pszDataName
, BYTE
*pInputData
, DWORD cbInputData
, BYTE
*pOutputData
, DWORD cbOutputData
, DWORD
*pcbOutputNeeded
, DWORD
*pdwStatus
)
553 return ERROR_INVALID_FUNCTION
;
557 _RpcAddPrinterDriverEx(WINSPOOL_HANDLE pName
, WINSPOOL_DRIVER_CONTAINER
*pDriverContainer
, DWORD dwFileCopyFlags
)
560 return ERROR_INVALID_FUNCTION
;
567 return ERROR_INVALID_FUNCTION
;
571 _RpcGetSpoolFileInfo()
574 return ERROR_INVALID_FUNCTION
;
578 _RpcCommitSpoolData()
581 return ERROR_INVALID_FUNCTION
;
585 _RpcCloseSpoolFileHandle()
588 return ERROR_INVALID_FUNCTION
;
592 _RpcFlushPrinter(WINSPOOL_PRINTER_HANDLE hPrinter
, BYTE
*pBuf
, DWORD cbBuf
, DWORD
*pcWritten
, DWORD cSleep
)
595 return ERROR_INVALID_FUNCTION
;
599 _RpcSendRecvBidiData(WINSPOOL_PRINTER_HANDLE hPrinter
, const WCHAR
*pAction
, WINSPOOL_BIDI_REQUEST_CONTAINER
*pReqData
, WINSPOOL_BIDI_RESPONSE_CONTAINER
**ppRespData
)
602 return ERROR_INVALID_FUNCTION
;
606 _RpcAddDriverCatalog()
609 return ERROR_INVALID_FUNCTION
;