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> prnquelst()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PrnQueLst()
------------------------------------------------------------------------------
 Purpose:
 Get a list of queues serviced by a printer on the print server.

 Syntax:
 lpszQueue = PrnQueLst( wPtrNum, bStartFlag )

 Parameters:
 wPtrNum    The printer number.
 bStartFlag The start of list flag

 Returns:
 A character string of length 47.

 Description:
 PrnQueLst() is used to obtain a list of print queues being serviced
 by printer wPtrNum on the currently logged into print server.

 PrnQueLst() is called initially with bStartFlag set to TRUE and then
 repeatedly with bStartFlag set to FALSE until PrnQueLst() returns an
 empty string, signifying the end of the list.

 PrnQueLst() returns an empty string on the first call if an error occurs
 or if the list is empty.

 Example:
 // To log in to print server PRINTERS and list all the print queues, the
 // file servers they are on, and their priorities for printer 0:
 if( PSWSLogin ( "PRINTERS" ) > 0 )
    lpszQueue = PrnQueLst( 0, TRUE )
    do while !Empty( lpszQueue )
       ? "Print Queue ",lpszQueue," on server ",PrnQueFSGet()
       ?? " priority ",PrnQuePtyGet()
       lpszQueue = PrnQueLst( 0, FALSE )
    enddo
 endif

 Notes:
 It is only possible to be logged in to one print server at a time.

See Also: PrnQueFSGet() PrnQuePtyGet() PSWSLogin() PSWSLogout()

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