From: Kais Dukes Newsgroups: comp.os.msdos.djgpp Subject: Hmmm ... I think this works ... Date: Thu, 26 Aug 1999 13:44:36 +0100 Organization: Imperial College of Science Technology anddd Medicine Lines: 51 Message-ID: <37C536B4.FF55C20A@ic.ac.uk> References: <37C429BC DOT E9737C29 AT ic DOT ac DOT uk> NNTP-Posting-Host: vector.ma.ic.ac.uk Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------F262B4214E00BB1EA571174A" X-Mailer: Mozilla 4.61 [en] (WinNT; I) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com --------------F262B4214E00BB1EA571174A Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I think that this works ... int net_exec(NCB *ncb){ __dpmi_regs regs; dosmemput(ncb,sizeof(NCB),__tb); regs.x.es=__tb>>4; regs.x.bx=__tb&0x0f; __dpmi_int(0x5c,®s); dosmemget(__tb,sizeof(NCB),ncb); return(regs.h.al); } But any help would be GREATLY appreciated ... :) Some one reply please ... :)) Thanks! --------------F262B4214E00BB1EA571174A Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I think that this works ...

int net_exec(NCB *ncb){
    __dpmi_regs regs;
    dosmemput(ncb,sizeof(NCB),__tb);
    regs.x.es=__tb>>4;
    regs.x.bx=__tb&0x0f;
    __dpmi_int(0x5c,&regs);
    dosmemget(__tb,sizeof(NCB),ncb);
    return(regs.h.al);
}

But any help would be GREATLY appreciated ... :)

Some one reply please ... :))

Thanks!
 
 
  --------------F262B4214E00BB1EA571174A--