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>nnetpsnotl()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSNOTL()
 Determines the list of notified objects for the print server printer
------------------------------------------------------------------------------
 Syntax

     NNETPSNOTL(<cPServer>,<nPrinter>,[<cServer>|<nConId>)
        --> aNoti

     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.

     <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

     NNETPSNOTL() returns an array with subarrays (two-dimensional array).
     Each subarray contains information about a file entry found.  For the
     structure of the subarrays, see the following table:

     Table 27.8:  NNETPSNOTL() Subarray Structure
     ------------------------------------------------------------------------
     Position     Metasymbol     CTPS.CH      Definition
     ------------------------------------------------------------------------
     1            cServer        NL_SERVER    File server
     2            nObjName       NL_NAME      Object name
     3            nType          NL_TYPE      Object type
     4            nFirst         NL_FIRST     Time to the first message
     5            nNext          NL_NEXT      Time between messages
     ------------------------------------------------------------------------

     If an error occurs, the function returns an empty array.

 Description

     NOVELL NET PRINT SERVER NOTIFY LIST
     For each print server printer, objects (normally users) that are
     notified if printer problems occur (printer offline, no paper) can be
     defined.  NNETPSNOTL() allows you to determine a list of the objects
     defined for <nPrinter>.

 Example

     Determine the notified objects for printer 0 on print server PSERVER,
     and display the file server and the names of the objects found:

     #include "ctnet.ch"

     aObjs=NNETPSNOTL('PSERVER',0)
     FOR i=1 TO LEN(aObjs)
        ? aObjs[i,NL_SERVER],aObjs[i,NL_NAME]
     NEXT i

See Also: NNETPSANO()

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