SplCopyJob: Difference between revisions
Appearance
Created page with "This function copies a job in a print queue. Currently there is a restriction that a job can only be copied onto the same queue (and computer) as the original job. ==Syntax=..." |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 9: | Line 9: | ||
==Parameters== | ==Parameters== | ||
;pszSrcComputerName (PSZ) - input:Name of computer where job is to be copied from. | ;''pszSrcComputerName'' (PSZ) - input:Name of computer where job is to be copied from. | ||
:A NULL string specifies the local workstation. | :A NULL string specifies the local workstation. | ||
;pszSrcQueueName (PSZ) - input:Name of queue where job is to be copied from. | ;''pszSrcQueueName'' (PSZ) - input:Name of queue where job is to be copied from. | ||
;ulSrcJob (ULONG) - input:Source Job identification number. | ;''ulSrcJob'' (ULONG) - input:Source Job identification number. | ||
;pszTrgComputerName (PSZ) - input:Name of computer where job is to be copied to. | ;''pszTrgComputerName'' (PSZ) - input:Name of computer where job is to be copied to. | ||
:A NULL string specifies the local workstation. | :A NULL string specifies the local workstation. | ||
;pszTrgQueueName (PSZ) - input:Name of queue where job is to be copied to. | ;''pszTrgQueueName'' (PSZ) - input:Name of queue where job is to be copied to. | ||
:A NULL string specifies the same queue as the original job. | :A NULL string specifies the same queue as the original job. | ||
;pulTrgJob (PULONG) - output:Job identification number of new job. | ;''pulTrgJob'' (PULONG) - output:Job identification number of new job. | ||
==Returns== | |||
;rc (SPLERR) - returns:Return code. | ;rc (SPLERR) - returns:Return code. | ||
::NO_ERROR (0) No errors occurred. | ::NO_ERROR (0) No errors occurred. | ||
Line 27: | Line 28: | ||
::NERR_QNotFound (2150) The printer queue does not exist. | ::NERR_QNotFound (2150) The printer queue does not exist. | ||
::NERR_JobNotFound (2151) The print job does not exist. | ::NERR_JobNotFound (2151) The print job does not exist. | ||
::NERR_SpoolerNotLoaded (2161) The spooler is not running. | ::NERR_SpoolerNotLoaded (2161) The spooler is not running. | ||
::NERR_InvalidComputer (2351) The computer name is invalid. | ::NERR_InvalidComputer (2351) The computer name is invalid. | ||
[[Category:Spl]] | [[Category:Spl]] |
Latest revision as of 04:36, 3 September 2025
This function copies a job in a print queue.
Currently there is a restriction that a job can only be copied onto the same queue (and computer) as the original job.
Syntax
SplCopyJob(pszSrcComputerName, pszSrcQueueName, ulSrcJob, pszTrgComputerName, pszTrgQueueName, pulTrgJob)
Parameters
- pszSrcComputerName (PSZ) - input
- Name of computer where job is to be copied from.
- A NULL string specifies the local workstation.
- pszSrcQueueName (PSZ) - input
- Name of queue where job is to be copied from.
- ulSrcJob (ULONG) - input
- Source Job identification number.
- pszTrgComputerName (PSZ) - input
- Name of computer where job is to be copied to.
- A NULL string specifies the local workstation.
- pszTrgQueueName (PSZ) - input
- Name of queue where job is to be copied to.
- A NULL string specifies the same queue as the original job.
- pulTrgJob (PULONG) - output
- Job identification number of new job.
Returns
- 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_INVALID_PARAMETER (87) An invalid parameter is specified.
- NERR_NetNotStarted (2102) The network program is not started.
- NERR_QNotFound (2150) The printer queue does not exist.
- NERR_JobNotFound (2151) The print job does not exist.
- NERR_SpoolerNotLoaded (2161) The spooler is not running.
- NERR_InvalidComputer (2351) The computer name is invalid.