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>nnetspstat()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETSPSTAT()
 Determines the status of a server printer
------------------------------------------------------------------------------
 Syntax

     NNETSPSTAT(<nServerPrinter>) --> nPrinterStatus

     Netware: 2.2 only

 Argument

     <nServerPrinter>  Designates one  of the five possible server
     printers for which the status is determined.  Values from 0 to 4 are
     valid.

 Returns

     NNETSPSTAT() returns the following status codes:

     Table 30.1:  Status Coding for Server Printer
     ------------------------------------------------------------------------
     Code    Definition
     ------------------------------------------------------------------------
     0    Server printer ready (according to the server!)
     1    Server printer off-line
     2    Server printer paused from server console
     3    Server printer off-line and paused at server console
     -1   No corresponding printer available on server
     ------------------------------------------------------------------------

 Description

     NOVELL NETWORK SERVER PRINTER STATUS
     With NNETSPSTAT(), you can determine if a particular printer on the
     default server is currently online or offline.  If you receive a return
     value that is greater than or equal to 2, then the designated printer
     has been paused from the server console.

     If there is no corresponding printer on the default server, the function
     returns -1.

 Note

     .  Further explanations regarding the returned values of 2 or 3
        can be found in the Novell Netware documentation, Versions 2.1 and
        later (in the Console Reference manual under Stop Printer).

 Examples

     .  Determine the status of server printer 0:

        ? NNETSPSTAT(0)                  // 0  Printer online

     .  Determine the status of server printer 4:

        ? NNETSPSTAT(4)                  // -1  No printer available

See Also: NNETSETSRV() NNETWORK()

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