Mail Archives: djgpp/1995/03/06/11:31:33
Matthew Lamari writes:
>
> Can anyone recommend a solution for either or both of my keyboard and
> SoundBlaster dilemma? Does the user merely have to pray that a
>
>
The following functions provide a method in which you can get a real
mode interrupt to call your protected mode code
_go32_dpmi_allocate_real_mode_callback_iret
_go32_dpmi_set_real_mode_interrupt_vector
eg.
_go32_dpmi_seginfo rm_si;
rm_si.pm_offset = (int) <address of protected mode code to call>;
if (_go32_dpmi_allocate_real_mode_callback_iret (&rm_si, &Rm_regs))
*** error ***
else
{ disable ();
_go32_dpmi_set_real_mode_interrupt_vector(<vector>, &rm_si);
enable ();
}
Hope this helps.
==============================================================
Hung Bui Internet: h DOT bui AT ieee DOT org
Netrix Corporation Phone: +1 703 793 1016
13595 Dulles Technology Drive Fax: +1 703 713 3805
Herndon Va 22071
==============================================================
- Raw text -