Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Blinker 5.10 Online Reference - <b> dosgetrealvec()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DosGetRealVec()
------------------------------------------------------------------------------
 Purpose:
 Get a real mode pointer to a real mode interrupt handler.

 Syntax:
 USHORT BLXAPI DosGetRealVec(USHORT intno, PINTHAN __far *handler);

 Parameters:
 intno    Interrupt number.
 handler  Pointer to a function pointer to receive the real mode address of
          the interrupt handler.

 Returns:
 Address of the interrupt handler.

 Description:
 DosGetRealVec() returns the real mode address of the real mode interrupt
 handler for the specified interrupt number.

 Example:
 #include <stdio.h>                                                          
 #include <blx286.h>                                                         
                                                                             
 void main(void)                                                             
 {                                                                           
 REALPTR handler;                                                            
                                                                             
 if (DosGetRealVec(0x21, &handler) == 0)                                     
    {                                                                        
    printf("Real mode Int 21 handler : %Fp\n",handler);                      
    }                                                                        
 }                                                                           

See Also: DosGetProtVec() DosGetRealProtVec() DosSetRealVec()

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