DosError disables or enables end-user notification of hard errors, program exceptions, or untrapped, numeric-processor exceptions for the current process. This affects the notifications for all threads in the current process.
The CONFIG.SYS statements AUTOFAIL=ON and SUPPRESSPOPUPS=x can be used to disable these notifications for all processes in the system.
If DosError is not issued, and AUTOFAIL=ON and SUPPRESSPOPUPS=x have not been specified in CONFIG.SYS, user notification for hard errors and exceptions is enabled.
There is no corresponding function to query the current status of error notification. Care should be taken if this function is used in a DLL, since the caller may have already disabled end-user error notifications and the DLL could inadvertently enable them.