home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_02_02 / 2n02047b < prev    next >
Text File  |  1990-12-30  |  669b  |  24 lines

  1.  
  2. #include        <dos.h>
  3. #include        "netbios.h"
  4.  
  5. extern  int     net_error;
  6.  
  7. /**********************************************************
  8. * int_netbios - interrupt NetBIOS with net control block
  9. * Parameters: ncb (in/out) - initialized net control block
  10. * Global:
  11. *      _ES - ES register
  12. *      _BX - BX register
  13. *      net_error - set to command return code
  14. * History: Original code by William H. Roetzheim
  15. ***********************************************************/
  16.  
  17. void    int_netbios(struct net_control_block *ncb)
  18. {
  19.         _ES = FP_SEG(ncb);
  20.         _BX = FP_OFF(ncb);
  21.         geninterrupt(0x5C);
  22.         net_error = ncb->retcode;
  23. }
  24.