3.2.5.9 NetPrintJobPause Command
The Remote Administration Protocol server MUST process the NetPrintJobPauseRequest as follows:
The server MUST validate that the incoming ParamDesc field of the Remote Administration Protocol request contains the ASCII string "W"; if it does not, the server SHOULD format a Remote Administration Protocol response with the Win32ErrorCode set to ERROR_INVALID_PARAMETER (0x0057), and then return the response to the client.<80>
The server MUST call RpcOpenPrinter with the following parameters:
Parameter
Value
pPrinterName
The local machine name
pDatatype
"RAW"
pDevModeContainer
NULL
AccessRequired
If this call succeeds, the server MUST call RpcSetJob with the following parameters:
Parameter
Value
hPrinter
A handle to the printer returned from RpcOpenPrinter
JobId
The value of NetPrintJobDeleteRequest.JobID
pJobContainer
NULL
Command
JOB_CONTROL_PAUSE
If an error occurs during the response processing, the Remote Administration Protocol server MUST fill in the Win32ErrorCode value in the Remote Administration Protocol response message with the Win32 error code corresponding to the error. Otherwise, the Remote Administration Protocol server MUST fill in the Win32ErrorCode value in the Remote Administration Protocol response message with ERROR_SUCCESS (0X0000).