Jump to content

SplCopyJob

From EDM2
Revision as of 15:01, 13 December 2019 by Ak120 (talk | contribs) (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=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.
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.