Lucas Meijer
Lucas Meijer

Reputation: 4484

Is there a way to _get_ the UnhandledExceptionFilter?

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

Answers (1)

Terry Mahaffey
Terry Mahaffey

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

Related Questions