From: Jochen Kalmbach [MVP] on
Hi j_3140!

> When our application starts up we call SetUnhandledExceptionFIlter()
> and save off the address it returns as the current exception handler.
> When we're exiting we pass this saved value back into
> SetUnhandledExceptionFIlter() to re-establish the exception handler
> that existed before we started. We also start a couple of threads.

IMHO there is no need to restore the original handler...

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/