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> psuserlist()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PSUserList()
------------------------------------------------------------------------------
 Purpose:
 Get a list of print server users.

 Syntax:
 lpszUser = PSUserList( lpszPrintServer, wIndex )

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

 Returns:
 A character string of length 47.

 The CA-Clipper name for this function is:
 PSUsrLst()

 Description:
 PSUserList() 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 PSUserList() 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 = PSUserList( "PRINTERS", wIndex )
 do while !empty ( lpszPSUser )
    ? lpszPSUser      // Display operator name
    wIndex++          // Next operator
    lpszPSUser = PSUserList( "PRINTERS", wIndex )
 enddo

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

See Also: PSUserAdd() PSUserDelete() SetPropertyValueGet() / SetPropertyValueSet()

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