Registers an exception handler for the current thread.
#define INCL_DOSEXCEPTIONS #include <os2.h> PEXCEPTIONREGISTRATIONRECORD pERegRec; /* A pointer to the exception registration record that describes the exception handler to be registered. */ APIRET ulrc; /* Return Code. */ ulrc = DosSetExceptionHandler(pERegRec);