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> dosgetprotvec()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DosGetProtVec()
------------------------------------------------------------------------------
 Purpose:
 Get a protected mode pointer to a protected mode interrupt handler.

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

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

 Returns:
 Address of the interrupt handler.

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

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

See Also: DosGetRealProtVec() DosGetRealVec() DosSetProtVec()

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