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>nnetpssrm()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSSRM()
 Sets the remote printer mode
------------------------------------------------------------------------------
 Syntax

     NNETPSSRM(<cPServer>,<nPrinter>,<lMode>,[<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.

     <lMode>  Designates the remote mode for <nPrinter> on <cPServer>.
     If <lMode> is designated .F., the function selects the shared mode.  If
     <lMode> is designated .T., the function selects the private 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

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

 Description

     NOVELL NET PRINT SERVER REMOTE MODE
     Netware print servers are able to service printers that are connected to
     a workstation (remote printers).  A remote printer can operate in the
     shared or the private mode.  The default mode is the shared mode.  In
     the shared mode, the remote printer operates like a network printer that
     is directly connected to the print server.  In the private mode, the
     remote printer is used locally and cannot be used by the print server.
     NNETPSRM() allows you to select the mode of a remote printer.

 Example

     Set printer 8 on print server PSERVER to the private mode:

     IF NNETPSRM('PSERVER',8,.T.)
        ? 'Printer 8 set to private mode!'
     ELSE
        ? 'Error!'
     ENDIF

See Also: NNETPSRRP()

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