Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> psusrlst()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PSUsrLst()
------------------------------------------------------------------------------
 Purpose:
 Get a list of print server users.

 Syntax:
 lpszUser = PSUsrLst( lpszPrintServer, wIndex )

 Parameters:
 lpszPrintServer The print server name.
 wIndex          The offset into the list.

 Returns:
 A character string of length 47.

 Description:
 PSUsrLst() is used to obtain a list of authorised users of the
 specified print server. lpszPrintServer is the name of the print server,
 wIndex is the index into the list.

 To obtain an entire list of users PSUsrLst() is called initially with
 wIndex set to 1 and thereafter called repeatedly, incrementing wIndex each
 time until an empty string is returned which signifies the end of the list.

 Returns an empty string on the first call if an error occurs, or if the end
 of the list is reached.

 Example:
 // To return a list of the authorised users of print server PRINTERS:
 wIndex = 1
 lpszPSUser = PSUsrLst( "PRINTERS", wIndex )
 do while !empty ( lpszPSUser )
    ? lpszPSUser      // Display operator name
    wIndex++          // Next operator
    lpszPSUser = PSUsrLst( "PRINTERS", wIndex )
 enddo

 Notes:
 After an empty string is returned, check NWErrorGet().

See Also: PSUsrAdd() PSUsrDel() SetPrpValGet() / SetPrpValSet()

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