
91
CHAPTER
4 Exception
Handling
Windows Structured Exception Handling (SEH) is the principal focus of this
cha pter, which also describes console control handlers and vectored exception
handling.
SEH provi d es a robust mechanism that allows applications to respond to
unexpected events, such as addressing exceptions, a
rithmetic faults, and sy stem
errors. SEH also allows a program to exit from anywhere in a code block and auto-
matically perform programmer-specified processing and error recovery. SEH
ensures that the program will be able to free resources and perform other cleanup
processing before the block, thread, or process terminates either under ...