Mail Archives: djgpp/2000/09/26/12:01:29
On Thu, 14 Sep 2000, computerboy wrote:
> hi, please help me , I'm new for djgpp, I want hook real mode int 21h
> at protect mode , I use a source from mailing list - test.c, but
> my pc hung, call_dos() seem reenter! can u give a simple and complete
> code for hook 21h!
[snip]
> >static
> >void call_dos(_go32_dpmi_registers *r)
> >{
> > r->x.cs = old_int21_vector.rm_segment;
> > r->x.ip = old_int21_vector.rm_offset;
> > _go32_dpmi_simulate_fcall_iret(r);
> >}
This function should zero r->x.ss, r->x.sp, and r->x.flags, before
calling _go32_dpmi_simulate_fcall_iret.
- Raw text -