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> fsdown()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FSDown()
------------------------------------------------------------------------------
 Warning:
 USE WITH EXTREME CAUTION.

 This function will force the file server to down and cause open network
 files to be closed immediately without changes necessarily being written to
 disk. This will almost certainly result in file corruption. USE WITH CARE.
 This function requires that the user is logged in as console operator or is
 security equivalent to console operator.

 Purpose:
 Down the file server.

 Syntax:
 bResult = FSDown( bForceFlag )

 Parameters:
 bForceFlag The forcing down flag.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 FSDown() forces the file server down. If bForceFlag is specified with a
 TRUE value, the file server is forced down even if there are network
 files open at other workstations. If bForceFlag is specified with a FALSE
 value, the file server is only downed if there are no network files open
 at other workstations.

 Returns TRUE if the file server is successfully downed and FALSE if not.

 If the file server is successfully downed, the workstation is no longer
 able to communicate with it. Although the program will continue to execute,
 it will not be able to access network files.

 Example:
 // To bring down the file server if there are no open network files:
 if ( FSDown(FALSE) )
    ? "The file server was successfully brought down"
 endif

 Notes:
 If FALSE is returned, check NWErrorGet().

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