NWPSComAbortPrintJob(3nw)


NWPSComAbortPrintJob -- aborts current print job and clears buffer

Synopsis

   #include <nwps_com.h> 
   or 
   #include <nwpsrv.h> 
   

NWCCODE NWAPI NWPSComAbortPrintJob (WORD spxID, WORD printerID, BYTE jobOutcome);

Description

The parameters are as follows:

spxID
(IN) Specifies the SPX(TM) connection to the print server.

printerID
(IN) Specifies the printer (from 0 to the maximum number of printers minus 1).

jobOutcome
(IN) Specifies what to do with the print job after it is aborted.

Return values

0x0000
NWPSE_SUCCESSFUL

0x00ED
NWPSE_PSC_CONNECTION_TERMIN

0x0301
NWPSE_NOT_ENOUGH_MEMORY

0x0302
NWPSE_NO_SUCH_PRINTER

0x0303
NWPSE_INVALID_PARAMETER

0x0307
NWPSE_NOT_CONNECTED

0x0306
NWPSE_GOING_DOWN

0x0309
NWPSE_NO_JOB_ACTIVE

0x030C
NWPSE_DOWN

0x030E
NWPSE_NO_RIGHTS

Notices

NWPSComAbortPrintJob ejects one blank page unless suppress form feed is set. It is for operators and users who have attached and logged in to the print server.

jobOutcome values are as follows:

   0 = NWPS_PLACE_ON_HOLD 
   1 = NWPS_RETURN_TO_QUEUE 
   2 = NWPS_THROW_AWAY 

Services

Print Server

NCP calls

None

References

NWPSComAttachToPrintServer(3nw), NWPSComLoginToPrintServer(3nw), NWPSComStopPrinter(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.