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> dosgetrealprotvec()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DosGetRealProtVec()
------------------------------------------------------------------------------
 Purpose:
 Get both real and protected mode pointers to the real and protected mode
 interrupt handlers.

 Syntax:
 USHORT BLXAPI DosGetRealProtVec(USHORT intno,
                                 PINTHAN __far *prevprot,
                                 REALPTR __far *prevreal);

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

 Returns:
 Addresses of the real and protected mode interrupt handlers.

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

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

See Also: DosGetProtVec() DosGetRealVec() DosSetProtVec() DosSetRealVec()

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