home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / nettos11.zip / BINDERY / NET386.C < prev    next >
C/C++ Source or Header  |  1993-07-23  |  4KB  |  150 lines

  1. #include "extend.h"
  2. #include "string.h"
  3.  
  4. int AsmLoginToFileServer           ( char*, int, char* );
  5. int AsmVerifyBinderyObjectPassword ( char*, int, char* );
  6. int AsmChangeBinderyObjectPassword ( char*, int, char*, char* );
  7.  
  8. /*  $DOC$
  9.  *  $FUNCNAME$
  10.  *      _fnLogFS3()
  11.  *  $CATEGORY$
  12.  *      Connection/Workstation
  13.  *  $ONELINER$
  14.  *      LogIntoFileServer (encrypted bindery)
  15.  *  $SYNTAX$
  16.  *
  17.  *      _fnLogFS3( cObjName, nObjType, cObjPassword ) -> nReturnCode
  18.  *
  19.  *  $ARGUMENTS$
  20.  *
  21.  *      cObjName is a C far pointer to a string containing the Object's
  22.  *      name.  The string must be in all Caps.
  23.  *
  24.  *      nObjType is a C INT representing the Object's type.
  25.  *
  26.  *      cObjPassword is a C far pointer to a string containing the Object's
  27.  *      password, if any.  The string must be in all Caps.
  28.  *
  29.  *  $RETURNS$
  30.  *
  31.  *      An INT representing the result of the operation.
  32.  *
  33.  *  $DESCRIPTION$
  34.  *
  35.  *      This function is used internally by fn_loginFS() to call
  36.  *      _AsmLoginToFileServer(), if encryption is enabled.  The
  37.  *      default release of Netto does not support password 
  38.  *      encryption.  See elsewhere in the Norton Guide for
  39.  *      more details on password encryption support.
  40.  *
  41.  *  $SEEALSO$
  42.  *      fn_loginFS()
  43.  *  $INCLUDE$
  44.  *
  45.  *  $END$
  46.  */
  47.  
  48. CLIPPER _fnLogFS3 ( void )
  49. {
  50.     _retni( AsmLoginToFileServer( _parc(1), _parni(2), _parc(3) ) );
  51. }
  52.  
  53. /*  $DOC$
  54.  *  $FUNCNAME$
  55.  *      _fnVerPW3()
  56.  *  $CATEGORY$
  57.  *      Bindery
  58.  *  $ONELINER$
  59.  *      VerifyBinderyObjectPassword (encrypted bindery)
  60.  *  $SYNTAX$
  61.  *
  62.  *      _fnVerPW3( cObjName, nObjType, cObjPassword ) -> nReturnCode
  63.  *
  64.  *  $ARGUMENTS$
  65.  *
  66.  *      cObjName is a C far pointer to a string containing the Object's
  67.  *      name.  The string must be in all Caps.
  68.  *
  69.  *      nObjType is a C INT representing the Object's type.
  70.  *
  71.  *      cObjPassword is a C far pointer to a string containing the Object's
  72.  *      password, if any.  The string must be in all Caps.
  73.  *
  74.  *  $RETURNS$
  75.  *
  76.  *      An INT representing the result of the operation.
  77.  *
  78.  *  $DESCRIPTION$
  79.  *
  80.  *      This function is used internally by fn_?????() to call
  81.  *      _AsmVerifyBinderyObjectPassword(), if encryption is enabled.
  82.  *      The default release of Netto does not support password 
  83.  *      encryption.  See elsewhere in the Norton Guide for
  84.  *      more details on password encryption support.
  85.  
  86.  *
  87.  *  $SEEALSO$
  88.  *
  89.  *  $INCLUDE$
  90.  *
  91.  *  $END$
  92.  */
  93.  
  94. CLIPPER _fnVerPW3 ( void )
  95. {
  96.     _retni( AsmVerifyBinderyObjectPassword( _parc(1), _parni(2),
  97.                  _parc(3) ) );
  98. }
  99.  
  100. /*  $DOC$
  101.  *  $FUNCNAME$
  102.  *      _fnChgPW3()
  103.  *  $CATEGORY$
  104.  *      Bindery
  105.  *  $ONELINER$
  106.  *      ChangeBinderyObjectPassword (encrypted bindery)
  107.  *  $SYNTAX$
  108.  *
  109.  *      _fnChgPW3( cObjName, nObjType, cOldObjPassword, ;
  110.  *                                     cNewObjPassword  ) -> nReturnCode
  111.  *
  112.  *  $ARGUMENTS$
  113.  *
  114.  *      cObjName is a C far pointer to a string containing the Object's
  115.  *      name.  The string must be in all Caps.
  116.  *
  117.  *      nObjType is a C INT representing the Object's type.
  118.  *
  119.  *      cOldObjPassword is a C far pointer to a string containing the
  120.  *      Object's existing password, if any.  The string must be in all Caps.
  121.  *
  122.  *      cNewObjPassword is a C far pointer to a string containing the
  123.  *      Object's new password, if any.  The string must be in all Caps.
  124.  *
  125.  *  $RETURNS$
  126.  *
  127.  *      An INT representing the result of the operation.
  128.  *
  129.  *  $DESCRIPTION$
  130.  *
  131.  *      This function is used internally by fn_?????() to call
  132.  *      _AsmChangeBinderyObjectPassword(), if encryption is enabled.
  133.  *      The default release of Netto does not support password 
  134.  *      encryption.  See elsewhere in the Norton Guide for
  135.  *      more details on password encryption support.
  136.  *
  137.  *  $SEEALSO$
  138.  * 
  139.  *  $INCLUDE$
  140.  *
  141.  *  $END$
  142.  */
  143.  
  144. CLIPPER _fnChgPW3 ( void )
  145. {
  146.     _retni( AsmChangeBinderyObjectPassword( _parc(1), _parni(2),
  147.                  _parc(3), _parc(4) ) );
  148. }
  149.  
  150.