Is there a way to _get_ UnhandledExceptionFilter?

SetUnhandledExceptionFilter () allows me to set the function to be called in case of an unhandled exception. I am looking for a way to get the currently installed function, so I can save and restore it. I cannot find the equivalent of Get the equivalent of calling SetUnhandledExceptionFilter, and I am wondering if I am missing something or if it is simply not possible.

+3
source share
1 answer

SetUnhandledExceptionFilter actually returns the old unhandled exception filter, so you can check this path. Set the NULL filter, check the result and set it again.

+5
source

Source: https://habr.com/ru/post/1726682/


All Articles