Controls whether the system will handle the specified types of serious errors or whether the process will handle them
#include <WinAPIDiag.au3>
_WinAPI_SetErrorMode ( $iMode )
$iMode | The process error mode. This parameter can be one or more of the following values. $SEM_FAILCRITICALERRORS $SEM_NOALIGNMENTFAULTEXCEPT $SEM_NOGPFAULTERRORBOX $SEM_NOOPENFILEERRORBOX |
Search SetErrorMode in MSDN Library.