NWPSComChangeServiceMode(3nw)


NWPSComChangeServiceMode -- changes queue service mode of printer

Synopsis

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

NWCCODE NWAPI NWPSComChangeServiceMode (WORD spxID, WORD printerID, BYTE serviceMode);

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

serviceMode
(IN) Specifies the new service mode; it must be a valid number (0-3).

Return values

0x0000
NWPSE_SUCCESSFUL

0x00ED
NWPSE_CONNECTION_TERMINATED

0x0103
NWPSE_BINDERY_LOCKED

0x0301
NWPSE_NOT_ENOUGH_MEMORY

0x0302
NWPSE_NO_SUCH_PRINTER

0x0303
NWPSE_INVALID_PARAMETER

0x030C
NWPSE_DOWN

0x030E
NWPSE_NO_RIGHTS

Notices

serviceMode indicates whether forms should be changed as needed (NWPS_QUEUE_ONLY), form changes should be minimized within queues (NWPS_QUEUE_BEFORE_FORM), forms should never be changed (NWPS_FORM_ONLY), or form changes should be minimized across queues (NWPS_FORM_BEFORE_QUEUE). Valid numbers are listed below:

0
NWPS_QUEUE_ONLY

1
NWPS_QUEUE_BEFORE_FORM

2
NWPS_FORM_ONLY

3
NWPS_FORM_BEFORE_QUEUE
NWPSComChangeServiceMode is for operators only.

Services

Print Server

NCP calls

None

References

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