https://learn.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-setunhandledexceptionfilter?redirectedfrom=MSDN
SetUnhandledExceptionFilter function (errhandlingapi.h) - Win32 apps | Microsoft Learn
Enables an application to supersede the top-level exception handler of each thread of a process.
functionhappsmicrosoftlearn