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> queoprlst()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 QueOprLst()
------------------------------------------------------------------------------
 Purpose:
 List the queue operators.

 Syntax:
 lpszOprName = QueOprLst(lpszQueueName, wIndex)

 Parameters:
 lpszQueueName The print queue name.
 wIndex        The index into the list of operators.

 Returns:
 A character string of length 47.

 Description:
 QueOprLst() is used to obtain a list of a print queue's authorised
 operators. lpszQueueName is the name of the print queue whose operator
 list is to be returned. wIndex is the index into the list.

 QueOprLst() should be called initially with wIndex set to 1, and then
 called repeatedly incrementing wIndex each time until an empty string (NULL
 string) is returned.

 QueOprLst() returns an empty string on the first call if there are no
 queue operators for this queue or if an error occurs.

 Returns an empty string once the end of the list has been reached.

 Example:
 // To return a complete list of operators of print queue PRINTQ_0:
 wIndex = 1
 lpszOperators = QueOprLst( "PRINTQ_0", wIndex )
 do while ( NWErrorGet() = 0 )
    ? lpszOperators
    lpszOperators = QueOprLst( "PRINTQ_0", ++wIndex )
 enddo

 Notes:
 QueOprLst() scans the Q_OPERATORS set property value of the
 specified queue.

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

See Also: QueOprAdd() QueOprDel() QueOprTst() SetPrpIDAdd() SetPrpIDDel() SetPrpValGet() / SetPrpValSet()

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