Controls whether the system will handle the specified types of serious errors or whether the calling thread will handle them.
#Include <WinAPIEx.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_*). |
失败: | 返回 0 并设置 @error 标志为非 0 值. |
在MSDN中搜索