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 >
Wrap
Text File
|
1990-12-30
|
669b
|
24 lines
#include <dos.h>
#include "netbios.h"
extern int net_error;
/**********************************************************
* int_netbios - interrupt NetBIOS with net control block
* Parameters: ncb (in/out) - initialized net control block
* Global:
* _ES - ES register
* _BX - BX register
* net_error - set to command return code
* History: Original code by William H. Roetzheim
***********************************************************/
void int_netbios(struct net_control_block *ncb)
{
_ES = FP_SEG(ncb);
_BX = FP_OFF(ncb);
geninterrupt(0x5C);
net_error = ncb->retcode;
}