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

 Syntax:
 lpszQueueServer = PrnQueueFSGet()

 Parameters:
 None.

 Returns:
 A character string of length 47.

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

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

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

 PrnQueueFSGet() is called after a successful call to PrnQueueList() to
 return the file server of the latest queue returned by PrnQueueList().

 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 = PrnQueueList( 0, TRUE )
    do while !Empty( lpszQueue )
       ? "Print Queue ",lpszQueue," on server ", PrnQueueFSGet()
       ?? " priority ", PrnQueuePriorityGet()
       lpszQueue = PrnQueueList( 0, FALSE )
    enddo
 endif

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

See Also: PrnQueuePriorityGet() PSWSLogin() PSWSLogout()

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