Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetpsaddq()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSADDQ()
 Adds a queue to a print server printer
------------------------------------------------------------------------------
 Syntax

     NNETPSADDQ(<cPServer>,<nPrinter>,<cQueue>,[<nPrior>],
        [<cServer>|<nConId>) --> lSuccess

     Netware: 2.2 and 3.11

 Arguments

     <cPServer>  Designates the name of the print server that is
     accessed.

     <nPrinter>  Designates the number of the printer on <cPServer>.
     Values between 0 and 15 are possible.

     <cQueue>  Designates the name of the print queue that is added.

     <nPrior>  Designates the priority for <cQueue>.  The highest
     priority is 1, which is also the default value.

     <cServer> Designates the name of the file server used to access
     <cPServer>.  The print server checks login information on <cServer>.
     Therefore, the access rights can depend on the specified file server.
     Your workstation must be attached to <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NNETPSADDQ() returns .T. if <cQueue> has been added successfully to
     <nPrinter>.  If an error occurs (for example, insufficient rights), the
     function returns .F..

 Description

     NOVELL NET PRINT SERVER ADD QUEUE (TO PRINTER)
     NNETPSADDQ() allows you to add a print queue to a print server printer
     (<nPrinter>).  This function requires operator rights and access rights
     for <cPServer> and <cQueue>.

 Example

     Add the print queue TOOLSQ_1 to print server printer 0 on print server
     PSERVER:

     IF NNETPSADDQ('PSERVER',0,'TOOLSQ_1')
        ? 'Queue TOOLSQ_1 has been added!'
     ELSE
        ? 'Error!'
     ENDIF

See Also: NNETADDQSV() NNETPSACC() NNETPSDELQ() NNETQSRVS()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson