Controls whether the system will handle the specified types of serious errors or whether the calling thread will handle them
#include <WinAPIProc.au3>
_WinAPI_SetThreadErrorMode ( $iMode )
$iMode | The thread error mode. This parameter can be one or more of the following values. $SEM_FAILCRITICALERRORS $SEM_NOGPFAULTERRORBOX $SEM_NOOPENFILEERRORBOX |
Success: | The thread's previous error mode ($SEM_*). |
Failure: | Sets the @error flag to non-zero. |
This function requires Windows 7 or later.
Search SetThreadErrorMode in MSDN Library.