win32api.SetErrorMode
int = SetErrorMode(errorMode)
Controls whether the system will handle the specified types of serious errors, or whether the process will handle them.
Parameters
Win32 API References
Return Value
The result is an integer containing the old error flags.