NWPSComAddQueueToPrinter(3nw)


NWPSComAddQueueToPrinter -- assigns queue to printer and assigns priority to queue

Synopsis

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

NWCCODE NWAPI NWPSComAddQueueToPrinter (WORD spxID, WORD printerID, char NWFAR *nServerName, char NWFAR *queueName, WORD priority);

Description

The parameters are as follows:

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

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

nServerName
(IN) Points to the name of the queue NetWare server.

queueName
(IN) Points to the name of the queue to be added.

priority
(IN) Specifies the priority of this queue.

Return values

0x0000
NWPSE_SUCCESSFUL

0x00ED
NWPSE_CONNECTION_TERMINATED

0x0103
NWPSE_BINDERY_LOCKED

0x0201
NWPSE_NOT_AUTHORIZED_FOR_QUEUE

0x0202
NWPSE_QUEUE_HALTED

0x0203
NWPSE_UNABLE_TO_ATTACH_TO_QUEUE

0x0204
NWPSE_TOO_MANY_QUEUE_SERVERS

0x0301
NWPSE_NOT_ENOUGH_MEMORY

0x0302
NWPSE_NO_SUCH_PRINTER

0x030A
NWPSE_NOT_ATTACHED_TO_SERVER

0x030B
NWPSE_ALREADY_IN_LIST

0x030C
NWPSE_DOWN

0x030E
NWPSE_NO_RIGHTS

Notices

The print server must be attached to the NetWare server where the queue is to be added. NWPSComAddQueueToPrinter attaches a queue server to the queue. The queue cannot have more than 25 print servers servicing it.

NWPSComAddQueueToPrinter is for operators only.

Services

Print Server

NCP calls

None

References

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