Note: Do not make Presentation Manager calls from exception handlers.
DosSetExceptionHandler registers an exception handler for the current thread.
If you register more than one exception handler within the same procedure, each handler's exception registration record must have a lower storage address (a higher position on the stack) than the exception registration record of the previously installed handler.
For a detailed list of the system exceptions, see System Exceptions.