Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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:
Perform the validation steps specified in PRINTER_HANDLE Parameters (section 3.1.4.1.11).
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.