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> psfslist()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PSFSList()
------------------------------------------------------------------------------
 Purpose:
 Get a list of file servers attached to the print server.

 Syntax:
 lpszServer = PSFSList( bStartFlag )

 Parameters:
 bStartFlag The start of list flag.

 Returns:
 A character string of length 47.

 Description:
 PSFSList() is used to obtain a list of file servers attached to the
 currently logged into print server. PSFSList() is called initially with
 bStartFlag set to TRUE to start the list, then repeatedly with bStartFlag
 set to FALSE until PSFSList() returns an empty string, signifying the end
 of the list.

 PSFSList() 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 file servers that
 // are currently attached to it:
 if( PSWSLogin( "PRINTERS" ) > 0 )
    lpszServer = PSFSList( TRUE )
    ? "File servers attached to print server PRINTERS"
    do while !Empty( lpszServer )
       ? lpszServer
       lpszServer = PSFSList( FALSE )
    enddo
 endif

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

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

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