home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / CLIPB52.ZIP / HUFF.ZIP / IS_NET.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-13  |  1.0 KB  |  32 lines

  1. /*--------------------------------------------------------------------------*
  2.  ** CLIPnet Library ** copyright of DataSync Technologies - Lansing, Mi
  3.  *--------------------------------------------------------------------------*/
  4. #include "nandef.h"
  5. #include "extend.h"
  6. #include "extor.h"
  7. #include "clipnet.h"
  8.  
  9. CLIPPER is_network()   /* verifies a legitimate connect a fileserver
  10.  
  11.                       Novell call: Connection Services
  12.                         NetWare API DCh "Get Connection Number"
  13.  
  14.                       Added Notes:
  15.                         required Request buffer size is .... 0 bytes
  16.                         required Reply buffer size is ...... 0 bytes        */
  17.  
  18. /*--------------------------------------------------------------------------*/
  19. {
  20.     union REGS inreg,outreg;
  21.  
  22.     inreg.h.ah = 0xDC;
  23.     intdos(&inreg,&outreg);
  24.  
  25.     if(outreg.h.al > 0 )
  26.         _retl(TRUE);            /* return .T. if successful  */
  27.     else
  28.         _retl(FALSE);            /* .F. if not */
  29.  
  30. }  /* EOF is_network */
  31. /**************************/
  32.