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>nnetpslout()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSLOUT()
 Logs out a print server from a file server
------------------------------------------------------------------------------
 Syntax

     NNETPSLOUT(<cPServer>,<cServer1>,[<lImmediate>]
        [<lJobMode>],[<cServer2>|<nConId>]) --> lSuccess

     Netware: 2.2 and 3.11

 Arguments

     <cPServer>  Designates the name of the print server that is logged
     out from <cServer1>.

     <cServer1>  Designates the file server from which <cPServer> is
     logged out.

     <lImmediate>  Designates if the operation is executed immediately
     (.T.) or if active jobs are completed (.F.).  The default value is .F..

     <nJobMode>  Designates the mode of the job that will be active,
     according to the following table.  This parameter is only taken into
     account if <lImmediate> is designated .T..

     Table 27.7:  Job Modes
     ------------------------------------------------------------------------
     Value   CTPS.CH        Definition
     ------------------------------------------------------------------------
     1       PSJ_RET2Q      Return job to queue
     2       PSJ_THROWAWAY  Discard job
     ------------------------------------------------------------------------

     The default value for <nJobMode> is 1.  To return the job to the queue,
     you must set its service restart flag (see NNETJFLAGS()).

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

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

 Returns

     NNETPSLOUT() returns .T. if the function has been executed successfully.

 Description

     NOVELL NET PRINT SERVER LOGOUT
     NNETPSLOUT() performs a logout of <cPServer> from <cServer1>.  After a
     successful logout, print queues on <cServer1> are no longer serviced by
     <cPServer>.  NNETPSLOUT() requires operator rights on <cPServer>.

 Example

     Log out the print server PSERVER from file server TOOLS1 (make sure that
     the active jobs are completed):

     IF NNETPSLIN('PSERVER','TOOLS1')
        ? 'Logout successful!'
     ELSE
        ? 'Error!'
     ENDIF

See Also: NNETPSLIN()

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