Reputation: 4484
SetUnhandledExceptionFilter() lets me install a function that gets called in case of an unhandled exception. I'm looking for a way to get the currently installed function, so I can store&restore it. I can't seem to find a Get equivalent of the SetUnhandledExceptionFilter call, and am wondering if I'm missing something or if it's just not possible.
Upvotes: 3
Views: 680
Reputation: 11981
SetUnhandledExceptionFilter actually returns the old unhandled exception filter, so you can check that way. Set a NULL filter, check the result, then set it again.
Upvotes: 5