NWPSComGetQueuesServiced(3nw)
NWPSComGetQueuesServiced --
returns printer queue information
Synopsis
#include <nwps_com.h>
or
#include <nwpsrv.h>
NWCCODE NWAPI NWPSComGetQueuesServiced
(WORD spxID,
WORD printerID,
WORD NWFAR *sequence,
char NWFAR *nServerName,
char NWFAR *queueName,
WORD NWFAR *priority);
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 minus 1).
- sequence
-
(IN/OUT) Points to the index. sequence must be set to 0 before
the first call; it is incremented by NWPSComGetQueuesServiced
on every return.
- nServerName
-
(OUT) Points to the name of the object's NetWare server.
- queueName
-
(OUT) Points to the name of the queue being serviced.
- priority
-
(OUT) Points to the priority of this queue.
Return values
- 0x0000
-
NWPSE_SUCCESSFUL
- 0x00ED
-
NWPSE_CONNECTION_TERMINATED
- 0x0103
-
NWPSE_BINDERY_LOCKED
- 0x0301
-
NWPSE_NOT_ENOUGH_MEMORY
- 0x0302
-
NWPSE_NO_SUCH_PRINTER
- 0x0307
-
NWPSE_NOT_CONNECTED
- 0x030C
-
NWPSE_DOWN
- 0x030D
-
NWPSE_NOT_IN_LIST
- 0x030E
-
NWPSE_NO_RIGHTS
Notices
NWPSComGetQueuesServiced returns NWPSE_NOT_IN_LIST
when no queues are left. priority is a value between 1 and 10.
NWPSComGetQueuesServiced is for operators and users.
Services
Print Server
NCP calls
None
References
NWPSComAttachToPrintServer(3nw),
NWPSComLoginToPrintServer(3nw),
NWPSComDeleteQueueFromPrinter(3nw),
NWPSComAddQueueToPrinter(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.