#include <nwprint.h> or #include <nwcalls. h>NWCCODE NWAPI NWStartQueueCapture (NWCONN_HANDLE conn, nuint8 LPTDevice, nuint32 queueID, pnstr8 queueName);
When trying to capture to a different server, ensure you pass in the connection handle for the server to whose queue you want to attach. Otherwise, NWStartQueueCapture will return an error that the queue is unknown.
When an application sends data to the captured LPT device, the workstation shell traps the data and redirects it to a capture file on a NetWare server.
The NetWare server creates the capture file and an associated print queue job number when the first character is sent to the redirected LPT device. The NetWare server also places a hold on the print queue job number while data is captured to the file. Once the application closes the capture file with NWEndCapture or NWFlushCapture, a printer servicing the queue can print the file.
Under Netx, LPTDevice can have the following values:
0x2222 | 23 | 17 | Get File Server Information |
0x2222 | 23 | 102 | Read Queue Current Status |
0x2222 | 23 | 125 | Read Queue Current Status |