Suppress all error messages in C

SetErrorMode function controls whether the system will handle the specified types of serious errors or whether the process will handle them.

#include <Windows.h>
 
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOALIGNMENTFAULTEXCEPT | 
SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX);
Categories: C Tags: , , ,
%d bloggers like this: