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>nnetpspmod()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSPMOD()
 Sets or determines the queue service mode
------------------------------------------------------------------------------
 Syntax

     NNETPSPMOD(<cPServer>,<nPrinter>,<nMode>,[<cServer>|
        <nConId>]) --> nMode

     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 an optional parameter that must be passed to set
     a new queue service mode for <nPrinter>.  For possible queue service
     modes see the description.

     <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

     NNETPSPMOD() returns the queue service mode of <nPrinter> on <cPServer>.
     For possible service modes see the description.  If an error occurs, the
     function returns -1.

 Description

     NOVELL NET PRINT SERVER PRINTER MODE
     For print server printers, various service modes regarding the form
     change are possible.  The following table shows the four standard queue
     service modes:

     Table 27.9:  Queue Service Modes
     ------------------------------------------------------------------------
     Value   CTPS.CH        Definition
     ------------------------------------------------------------------------
     1       QSM_NEED       Change forms as requested
     2       QSM_MINQ       Minimize form change within a queue
     4       QSM_NEVER      Avoid form change
     8       QSM_MINACROSS  Minimize form change between queues
     ------------------------------------------------------------------------

 Example

     .  Determine the current queue service mode of printer 0 on print
        server PSERVER:

        IF (nMode:=NNETPSPMOD('PSERVER',0))>=0
           ? 'Queue service mode:',nMode
        ELSE
           ? 'Error!'
        ENDIF

     .  Set the queue service mode for printer 0 on print server
        PSERVER to QSM_MINQ:

        #include "ctnet.ch"

        IF NNETPSPMOD('PSERVER',0,QSM_MINQ)>=0
           ? 'Queue service mode set successfully!'
        ELSE
           ? 'Error!'
        ENDIF

See Also: NNETPSNMOD()

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