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>nnetpstop()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSTOP()
 Stops a print server printer
------------------------------------------------------------------------------
 Syntax

     NNETPSTART(<cPServer>,<nPrinter>,[<nMode>],[<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.

     <nMode>  Designates the currently active job mode.

     Table 27.15:  Job Modes
     ------------------------------------------------------------------------
     Value   CTPS.CH        Definition
     ------------------------------------------------------------------------
     0       PSJ_HOLD       Stop job
     1       PSJ_RET2Q      Return job to queue
     2       PSJ_THROWAWAY  Discard job
     ------------------------------------------------------------------------

     The default value for <nMode> is 0, the stop job mode.

     <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

     NNETPSTOP returns .T. if the function has been completed successfully.

 Description

     NOVELL NET PRINT SERVER (PRINTER) STOP
     NNETPSTOP() allows you to stop <nPrinter> on <cPServer>.  In this state
     no additional print server outputs are processed on <nPrinter>.  By
     passing a value for <nMode>, you can specify what happens to a job that
     is currently being processed.  NNETPSTOP() requires operator rights for
     <cPServer>.

 Example

     Stop printer 0 on print server PSERVER:

     IF NNETPSTOP('PSERVER',0)
        ? 'Printer 0 stopped!'
     ELSE
        ? 'Error'
     ENDIF

See Also: NNETPSTART()

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