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

 Syntax:
 lpszOperator = PSOperatorList(lpszPrintServer, wIndex)

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

 Returns:
 A character string of length 47.

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

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

 To obtain the entire list of users PSOperatorList() is called initially
 with wIndex set to 1 and thereafter called repeatedly, incrementing wIndex
 each time until an empty string is returned signifying 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 operators for print server PRINTERS:
 wIndex = 1
 lpszPSOperator = PSOperatorList( "PRINTERS", wIndex )
 do while !empty ( lpszPSOperator )
    ? lpszPSOperator     // Display operator name
    wIndex++          // Next operator
    lpszPSOperator = PSOperatorList( "PRINTERS", wIndex )
 enddo

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

See Also: PSOperatorAdd() PSOperatorDelete() SetPropertyValueGet() / SetPropertyValueSet()

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