3.1.4.3.5 RpcScheduleJob (Opnum 25)

RpcScheduleJob does not perform any function, but returns a nonzero Windows error code to indicate failure.

 DWORD RpcScheduleJob(
   [in] PRINTER_HANDLE hPrinter,
   [in] DWORD JobId
 );

hPrinter: A handle to a printer object that was opened using RpcAddPrinter, RpcAddPrinterEx, RpcOpenPrinter, or RpcOpenPrinterEx.

JobId: The identifier of the print job.

Return Values: This method MUST return a nonzero Windows error code to indicate failure [MS-ERREF].

Upon receiving this message, the server SHOULD validate parameters as follows:

If parameter validation fails, the server SHOULD fail the operation immediately and return a nonzero error response to the client. Otherwise, the server MUST return ERROR_SPL_NO_ADDJOB.

This method MUST be implemented to ensure compatibility with protocol clients.