ProcessErrorMode Enumeration

Specifies the error mode for a process.

Flags used by GetErrorMode and SetErrorMode(ProcessErrorMode) functions.

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum ProcessErrorMode

Remarks

Members

Default 0 Use the system default, which is to display all error dialog boxes.
FailCriticalErrors 1 The system does not display the critical-error-handler message box. Instead, the system sends the error to the current process.

Best practice is that all applications call the SetErrorMode(ProcessErrorMode) function with FailCriticalErrors at startup. This is to prevent error mode dialogs from hanging the application.

NoGpFaultErrorBox 2 The system does not display the Windows Error Reporting dialog.
NoAlignmentFaultException 4 The system automatically fixes memory alignment faults and makes them invisible to the application.

It does this for the current process and any descendant processes.

This feature is only supported by certain processor architectures.

After this value is set for a process, subsequent attempts to clear the value are ignored.

NoOpenFileErrorBox 32,768 The system does not display a message box when it fails to find a file. Instead, the error is returned to the current process.

See Also