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> pjbfsget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PJbFSGet()
------------------------------------------------------------------------------
 Purpose:
 Get the file server for the current printing job.

 Syntax:
 lpszServer = PJbFSGet( wPtrNum )

 Parameters:
 wPtrNum The printer number.

 Returns:
 A character string of length 48.

 Description:
 PJbFSGet() returns the file server name from which the print job
 currently being serviced by printer wPtrNum originated.

 Returns an empty string if an error occurs.

 Example:
 // To log in to print server PRINTERS and test printer 0 to display the
 // job number being printed, the queue and print server from which
 // it originated and its description:

 if( PSWSLogin ( "PRINTERS" ) > 0 )
    iJobNum    = PJbNumGet(0)
    lpszServer = PJbFSGet(0)
    lpszQueue  = PJbQueGet(0)
    lpszDesc   = PJbDescGet(0)
    if iJobNum > 0
       ? "Printer 0 of print server PRINTERS, is printing "
       ?? "Job number ",iJobNum," from print queue ",lpszQueue
       ? "from file server ",lpszServer
       ? "The description for this job is ",lpszDesc
    endif
 endif

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

See Also: PSFSList() PrnQueLst() PJbNumGet() PSWSLogin()

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