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

 Syntax:
 lpszQueueServer = PrnQueFSGet()

 Parameters:
 None.

 Returns:
 A character string of length 47.

 Description:
 PrnQueFSGet() works in conjunction with PrnQueLst() to return the
 file server to which the last queue returned by PrnQueLst() belongs.

 PrnQueLst() is used to obtain a list of printer queues being serviced by
 a printer. These queues can exist on different file servers.

 PrnQueFSGet() is called after a successful call to PrnQueLst() to
 return the file server 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 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: PrnQuePtyGet() PSWSLogin() PSWSLogout()

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