56 #if GTEST_HAS_SEH && !GTEST_OS_WINDOWS_MOBILE
58 LONG WINAPI ExitWithExceptionCode(
59 struct _EXCEPTION_POINTERS* exception_pointers) {
60 exit(exception_pointers->ExceptionRecord->ExceptionCode);
66 int main(
int argc,
char **argv) {
70 SetErrorMode(SEM_NOGPFAULTERRORBOX | SEM_FAILCRITICALERRORS);
72 # if GTEST_HAS_SEH && !GTEST_OS_WINDOWS_MOBILE
80 SetUnhandledExceptionFilter(ExitWithExceptionCode);