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> prnqueptyget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PrnQuePtyGet()
------------------------------------------------------------------------------
 Purpose:
 Get the priority of a queue on a print server's printer.

 Syntax:
 iPriority = PrnQuePtyGet()

 Parameters:
 None.

 Returns:
 A numeric value (signed short int).

 Description:
 PrnQuePtyGet() works in conjunction with PrnQueLst() to return
 the service priority level of the last queue returned by PrnQueLst().
 The service priority level designates how important the queue is to the
 printer to which it is attached.

 PrnQueLst() is used to return a list of printer queues being serviced by
 a printer. Queues with the highest priority levels are serviced first.

 PrnQuePtyGet() can only be called after PrnQueLst(), which
 returns the priority of the latest queue returned by PrnQueLst().

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

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

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

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