NWPSComRewindPrintJob(3nw)
NWPSComRewindPrintJob --
rewinds and restarts print job
Synopsis
#include <nwps_com.h>
or
#include <nwpsrv.h>
NWCCODE NWAPI NWPSComRewindPrintJob
(WORD spxID,
WORD printerID,
BYTE byPage,
BYTE relative,
WORD copy,
DWORD offset);
Description
The parameters are as follows:
- spxID
-
(IN) Specifies the SPX connection to the print server.
- printerID
-
(IN) Specifies the printer (0 to maximum number of printers).
- byPage
-
(IN) Specifies whether to rewind by page: FALSE = by byte; TRUE = by page.
- relative
-
(IN) Specifies whether to rewind an absolute value: FALSE = absolute;
TRUE = relative.
- copy
-
(IN) Specifies the copy number to rewind to. If relative = TRUE,
copy is not used.
- offset
-
(IN) Specifies the page number or byte offset to restart from.
Return values
- 0x0000
-
NWPSE_SUCCESSFUL
- 0x00ED
-
NWPSE_CONNECTION_TERMINATED
- 0x0301
-
NWPSE_NOT_ENOUGH_MEMORY
- 0x0302
-
NWPSE_NO_SUCH_PRINTER
- 0x0304
-
NWPSE_PRINTER_BUSY
- 0x0305
-
NWPSE_NOT_CONNECTED
- 0x0309
-
NWPSE_NO_JOB_ACTIVE
- 0x030C
-
NWPSE_DOWN
- 0x030E
-
NWPSE_NO_RIGHTS
Notices
If absolute is selected, the printer rewinds to the specified page number
or byte offset. If relative is selected, the printer rewinds the specified
number of pages or bytes from the current page or byte.
If byPage is TRUE and relative is FALSE,
offset indicates the page number to restart at. If
relative is TRUE, offset indicates the number of
pages to rewind forward or backward.
If byPage is FALSE and relative is FALSE,
offset indicates the byte offset to restart at. If
relative is TRUE, offset indicates
the number of bytes to rewind forward or backward.
NWPSComRewindPrintJob is for operators only.
Services
Print Server
NCP calls
None
References
NWPSComAttachToPrintServer(3nw),
NWPSComGetPrintJobStatus(3nw),
NWPSComLoginToPrintServer(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.