SplHoldQueue
Appearance
This function holds a job in a print queue.
Syntax
SplHoldJob(pszComputerName, pszQueueName, ulJob)
Parameters
- pszComputerName (PSZ) - input
- Name of computer where job is to be paused.
- A NULL string specifies the local workstation.
- pszQueueName (PSZ) - input
- Queue Name.
- ulJob (ULONG) - input
- Job identification number.
- rc (SPLERR) - returns
- Return code.
- NO_ERROR (0) No errors occurred.
- ERROR_ACCESS_DENIED (5) Access is denied.
- ERROR_NOT_SUPPORTED (50) This request is not supported by the network.
- ERROR_BAD_NETPATH (53) The network path cannot be located.
- NERR_NetNotStarted (2102) The network program is not installed.
- NERR_JobNotFound (2151) The print job does not exist.
- NERR_SpoolerNotLoaded (2161) The spooler is not running.
- NERR_JobInvalidState (2164) This operation cannot be performed on the print job in its current state.
- NERR_InvalidComputer (2351) The computer name is invalid.