next up previous contents index
Next: get_pm_interrupt Up: Functions and Procedures Previous: get_rm_interrupt

set_rm_interrupt

   

Declaration:

Function set_rm_interrupt (vector : byte; const intaddr : tseginfo) : boolean;

Description:

Sets a real mode interrupt handler

Parameters:

vector:
the interrupt vector number to set
intaddr:
address of new interrupt vector

Return values: True if successful, otherwise false.

Notes: The address supplied MUST be a real mode segment address, not a selector:offset address. So the interrupt handler must either reside in DOS memory (below 1 Mb boundary) or the application must allocate a real mode callback address with get_rm_callback .

Errors:

Check int31error variable

See also:

get_rm_interrupt, set_pm_interrupt, get_pm_interrupt, get_rm_callback



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998