ThreadErrorMode Enumeration

Specifies a thread error mode.

Enumeration used by SetThreadErrorMode(ThreadErrorMode, ThreadErrorMode) function.

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 ThreadErrorMode

Remarks

Members

SystemDefault 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 thread.

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.

NoGPUFaultErrorBox 2 The system does not display the Windows Error Reporting dialog.
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 thread.

See Also