home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / nettos11.zip / BINDERY / CLSBIND.PRG < prev    next >
Text File  |  1993-02-23  |  1KB  |  76 lines

  1. /*
  2.  * File......: CLSBIND.PRG
  3.  * Author....: Kevin Maher/Steve Tyrakowski
  4.  * CIS ID....: 73766,1224
  5.  * Date......: $Date$
  6.  * Revision..: $Revision$
  7.  * Log file..: $Logfile$
  8.  * 
  9.  * This is an original work by Kevin Maher and Steve Tyrakowski
  10.  * and is placed in the public domain.
  11.  *
  12.  * Modification history:
  13.  * ---------------------
  14.  *
  15.  * $Log$
  16.  *
  17.  */
  18.  
  19.  
  20. /*  $DOC$
  21.  *  $FUNCNAME$
  22.  *     FN_closBnd()
  23.  *  $CATEGORY$
  24.  *     Bindery
  25.  *  $ONELINER$
  26.  *     Close Bindery
  27.  *  $SYNTAX$
  28.  *
  29.  *     FN_closBnd() => lClosed
  30.  *
  31.  *  $ARGUMENTS$
  32.  *
  33.  *     None
  34.  *
  35.  *  $RETURNS$
  36.  *
  37.  *     <lClosed> Returns true if bindery was successfully closed
  38.  *         and false if not.
  39.  *
  40.  *  $DESCRIPTION$
  41.  *
  42.  *     This function closes both bindery files NET$BIND.SYS and
  43.  *     NET$BVAL.SYS.  You must have SUPERVISOR rights to close
  44.  *     the bindery.  When the bindery is closed the network
  45.  *     will not do much of anything.
  46.  *
  47.  *  $SEEALSO$
  48.  *     fn_openBnd()
  49.  *  $EXAMPLES$
  50.  *
  51.  *     // this will close the bindery
  52.  *     lClosed :=  FN_closBnd()
  53.  *
  54.  *  $END$
  55.  */
  56.  
  57. #include "ftint86.ch"
  58. #include "netto.ch"
  59.  
  60. #define NW_LOG 227
  61.  
  62. #ifdef FT_TEST
  63.   FUNCTION MAIN()
  64.     IF FN_closBnd()
  65.       Qout("Bindery has been closed.")
  66.     ELSE
  67.       Qout("Bindery has not been closed.")
  68.     ENDIF
  69.  
  70.   RETURN ( nil )
  71.  
  72. #endif
  73.  
  74. FUNCTION FN_closBnd()
  75. RETURN _fnReq(NW_LOG,Chr(68),"") == ESUCCESS  // 44h API request code
  76.