Investigate setting the error mode of the process to SEM_FAILCRITICALERRORS via SetErrorMode[^seterrormode] as recommended in the windows docs.[^rec] [^seterrormode]: https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-seterrormode [^rec]: https://docs.microsoft.com/en-us/windows/win32/debug/error-mode
Investigate setting the error mode of the process to SEM_FAILCRITICALERRORS
via SetErrorMode1 as recommended in the windows docs.2
Footnotes
https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-seterrormode ↩
https://docs.microsoft.com/en-us/windows/win32/debug/error-mode ↩