Retrieves the error mode for the calling thread
#include <WinAPIProc.au3> _WinAPI_GetThreadErrorMode ( )
This function requires Windows 7 or later.
Search GetThreadErrorMode in MSDN Library.