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> dosgetexceptionhandler()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DosGetExceptionHandler()
------------------------------------------------------------------------------
 Purpose:
 Get the protected mode address of an exception handler.

 Syntax:
 USHORT BLXAPI DosGetExceptionHandler(USHORT exception,
                                      PEXCHAN __far *handler);

 Parameters:
 exception  Exception number (0-13).
 handler    Pointer to a function pointer to receive the address of the
            exception handler.

 Returns:
 Address of the exception handler.

 Description:
 DosGetExceptionHandler() returns the address of the current handler for the
 specified exception number.

 Example:
 #include <stdio.h>                                                          
 #include <blx286.h>                                                         
                                                                             
 void main(void)                                                             
 {                                                                           
 EXCHAN   handler;                                                           
                                                                             
 /* Get current exception handler */                                         
 if (DosGetExceptionHandler(0x0D, &handler) == 0)                            
    printf("Exception 13 handler : %Fp\n",handler);                          
 }                                                                           

See Also: DosSetExceptionHandler()

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