NWGetPrinterQueueID(3nw)
NWGetPrinterQueueID --
returns the object ID of the queue servicing the specified printer
Synopsis
#include <nwqms.h>
or
#include <nwcalls.h>
NWCCODE N_API NWGetPrinterQueueID
(NWCONN_HANDLE conn,
nuint16 printerNum,
pnuint32 queueID);
Description
The parameters are as follows:
- conn
-
(IN) Specifies the NetWare server connection handle.
- printerNum
-
(IN) Specifies the local LPT device number whose output is assigned to the queue.
- queueID
-
(OUT) Points to the bindery object ID of the print queue.
Return values
- 0x0000
-
SUCCESSFUL
- 0x8801
-
INVALID_CONNECTION
- 0x8996
-
SERVER_OUT_OF_MEMORY
- 0x89FF
-
BAD_PRINTER_ERROR
Notices
printerNum can have one of the following values which are assigned to the server not the workstation:
1 = LPT1
2 = LPT2
3 = LPT
For example, with LPT1 on queue name RIGHT_BRAIN, type on the server console screen:
spool LPT1 RIGHT_BRAIN
Services
Queue Management
NCP calls
- 0x2222 17 10
-
Get Printer's Queue
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.