SplControlDevice
Appearance
This function cancels, holds, continues, or restarts a print device.
Syntax
SplControlDevice(pszComputerName, pszPortName, ulControl)
Parameters
- pszComputerName (PSZ) - input
- Name of computer where print device is to be controlled.
- A NULL string specifies the local workstation.
- pszPortName (PSZ) - input
- Port name.
- ulControl (ULONG) - input
- Operation to perform.
- PRD_DELETE Delete current print job
- PRD_PAUSE Pause printing
- PRD_CONT Continue paused print job
- PRD_RESTART Restart print job.
- rc (SPLERR) - returns
- Return code.
- NO_ERROR (0) No errors occurred.
- 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 started.
- NERR_DestNotFound (2152) The print device cannot be found.
- NERR_DestIdle (2158) This print device is idle and cannot accept control operations.
- NERR_DestInvalidOp (2159) This print device request contains an invalid control function.
- NERR_ProcNoRespond (2160) The queue processor is not responding.
- NERR_SpoolerNotLoaded (2161) The spooler is not running.
- NERR_InvalidComputer (2351) The computer name is invalid.