Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>getvect() get interrupt vector entry</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getvect()               Get Interrupt Vector Entry

 #include   <dos.h>

 void       interrupt(*getvect(intr_num))();
 int        intr_num;                    Specific vector

    getvect() gets the four-byte address that is the interrupt vector for
    one of the interrupts (0 to 255) built into MS-DOS.  The vector named
    in 'intr_num' is interpreted as a far pointer to the corresponding
    interrupt function.

       Returns:     The 4-byte value representing the address of the
                    interrupt function pointed to by the interrupt vector
                    in 'intr-num'.

   Portability:     MS-DOS only.

   -------------------------------- Example ---------------------------------

    The following statements get the address of the control-break
    interrupt handler.

           #include <dos.h>     /* for getvect */

           main()
           {

              void (*ctrl_break)();

               ctrl_break = getvect(0x23);
           }


See Also: disable() setvect()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson