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>nnetpstype()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSTYPE()
 Determines a print server.s type
------------------------------------------------------------------------------
 Syntax

     NNETPSTYPE(<cPServer>,[<cServer>|<nConId>]) --> nType

     Netware: 2.2 and 3.11

 Arguments

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

     <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

     NNETPSTYPE() returns the type of <cPServer>:

     Table 27.16:  Return Values of NNETPSTYPE()
     ------------------------------------------------------------------------
     Value   CTPS.CH        Definition
     ------------------------------------------------------------------------
     -1                     Call error
     1       PSTYP_DOS      Dedicated DOS print server
     2       PSTYP_NLM      Netware loadable module
     3       PSTYP_FSVAP    VAP on file server
     4       PSTYP_BRGVAP   VAP on bridge
     ------------------------------------------------------------------------

 Description

     NOVELL NET PRINT SERVER TYPE
     Netware print servers are available for various platforms.  A print
     server can operate on a dedicated DOS station as an NLM on a Netware 3.x
     file server, as a VAP on a Netware 2.x file server, or as a VAP on a
     bridge.  NNETPSTYPE() allows you to determine the type of <cPServer>.

 Example

     Determine and display the type of print server PSERVER:

     #include "ctps.ch"

     nType=NNETPSTYPE('PSERVER')
     DO CASE
        CASE nType=PSTYP_DOS
           ? 'Dedicated DOS'
        CASE nType=PSTYP_NLM
           ? 'Netware loadable module'
        CASE nType=PSTYP_FSVAP
           ? 'File server VAP'
        CASE nType=PSTYP_BRGVAP
           ? 'Bridge VAP'
        OTHERWISE
           ? 'Error!'
     ENDCASE

See Also: NNETPSVER()

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