_dos_getvect

Description

Gets the current value of the interrupt vector, using system call 0x35.

#include <dos.h>

void ( __cdecl __interrupt __far *_dos_getvect( unsigned intnum))();

intnum Target interrupt vector  

Remarks

The _dos_getvect routine uses system call 0x35 to get the current value of the interrupt vector specified by intnum.

This routine is typically used in conjunction with the _dos_setvect function. To replace an interrupt vector, first save the current vector of the interrupt using _dos_getvect. Then set the vector to your own interrupt routine with _dos_setvect. The saved vector can later be restored, if necessary, using _dos_setvect. The user-defined routine may also need the original vector in order to call that vector or chain to it with _chain_intr.

Return Value

The function returns a far pointer for the intnum interrupt to the current handler, if there is one.

Compatibility

Standards:None

16-Bit:DOS, QWIN, WIN, WIN DLL

32-Bit:None

See Also

_chain_intr, _dos_keep, _dos_setvect