Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 199 of file except.c.
Referenced by SetErrorMode(), and UnhandledExceptionFilter().
{ NTSTATUS Status; UINT ErrMode; /* Query the current setting */ Status = NtQueryInformationProcess(NtCurrentProcess(), ProcessDefaultHardErrorMode, (PVOID)&ErrMode, sizeof(ErrMode), NULL); if (!NT_SUCCESS(Status)) { /* Fail if we couldn't query */ BaseSetLastNTError(Status); return 0; } /* Check if NOT failing critical errors was requested */ if (ErrMode & SEM_FAILCRITICALERRORS) { /* Mask it out, since the native API works differently */ ErrMode &= ~SEM_FAILCRITICALERRORS; } else { /* OR it if the caller didn't, due to different native semantics */ ErrMode |= SEM_FAILCRITICALERRORS; } /* Return the mode */ return ErrMode; }