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> fsbinderyclose()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FSBinderyClose()
------------------------------------------------------------------------------
 Purpose:
 Close the file server's bindery.

 Syntax:
 bResult = FSBinderyClose()

 Parameters:
 None.

 Returns:
 A boolean value (TRUE or FALSE).

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

 Description:
 FSBinderyClose() returns TRUE if the bindery was closed successfully
 and FALSE if the bindery was not closed, or if an error occurs.

 The bindery files under NetWare 286 are:

 SYS:SYSTEM\NET$BIND.SYS
 SYS:SYSTEM\NET$BVAL.SYS

 and under NetWare 386 are:

 SYS:SYSTEM\NET$OBJ.SYS
 SYS:SYSTEM\NET$PROP.SYS
 SYS:SYSTEM\NET$VAL.SYS

 The bindery files can be backed up following a successful call to this
 function. The bindery should then be reopened as soon as possible using the
 FSBinderyOpen() function.

 Example:
 // To back up the bindery files to drive A:
 if( FSBinderyClose() )
    if ( left( NWVersionNumberGet(), 1 ) = "2" )
       copy file SYS:SYSTEM\NET$BIND.SYS to a:NET$BIND.SYS
       copy file SYS:SYSTEM\NET$BVAL.SYS to a:NET$BVAL.SYS
    else
       copy file SYS:SYSTEM\NET$OBJ.SYS  to a:NET$OBJ.SYS
       copy file SYS:SYSTEM\NET$PROP.SYS to a:NET$PROP.SYS
       copy file SYS:SYSTEM\NET$VAL.SYS  to a:NET$VAL.SYS
    endif
    FSBinderyOpen()
 endif

 Notes:
 The bindery should be closed for as little time as possible,
 because closing the bindery prevents users with passwords from logging into
 the file server and disables other security checks.

 This function requires Supervisor or console operator equivalence. If FALSE
 is returned, check NWErrorGet().

See Also: FSBinderyOpen() FSObjectList()

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