Function Reference


_WinAPI_SetThreadErrorMode

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 )

Parameters

$iMode The thread error mode. This parameter can be one or more of the following values.
    $SEM_FAILCRITICALERRORS
    $SEM_NOGPFAULTERRORBOX
    $SEM_NOOPENFILEERRORBOX

Return Value

Success: The thread's previous error mode ($SEM_*).
Failure: Sets the @error flag to non-zero.

Remarks

This function requires Windows 7 or later.

See Also

Search SetThreadErrorMode in MSDN Library.