SetErrorMode Function
2010-07-03 12:09
309 查看
Controls whether the system will handle the specified types of serious errors or whether the process will handle them.
系统或者进程是否处理指定类型错误
UINT WINAPI SetErrorMode(
__in UINT uMode
);
Parameters uMode The process error mode. This parameter can be one or more of the following values.
进程错误模式,参数值可以是以下一个或多个值
Value
Meaning
0
Use the system default, which is to display all error dialog boxes.使用系统用默认有的全球错误对话框显示
SEM_FAILCRITICALERRORS
0x0001
The system does not display the critical-error-handler message box. Instead, the system sends the error to the calling process.
系统不显示critical-error-handler 消息对话框,只是把错误信息发到调用进程
SEM_NOALIGNMENTFAULTEXCEPT
0x0004
The system automatically fixes memory alignment faults and makes them invisible to the application. It does this for the calling process and any descendant processes. This feature is only supported by certain processor architectures. For more information, see the Remarks section.
After this value is set for a process, subsequent attempts to clear the value are ignored.
系统自动处理内存队列中的错误,对应用程序来说是不可见的。
SEM_NOGPFAULTERRORBOX
0x0002
The system does not display the general-protection-fault message box. This flag should only be set by debugging applications that handle general protection (GP) faults themselves with an exception handler.
系统不显示 一般默认的消息对话框。
SEM_NOOPENFILEERRORBOX
0x8000
The system does not display a message box when it fails to find a file. Instead, the error is returned to the calling process.
系统或者进程是否处理指定类型错误
UINT WINAPI SetErrorMode(
__in UINT uMode
);
Parameters uMode The process error mode. This parameter can be one or more of the following values.
进程错误模式,参数值可以是以下一个或多个值
Value
Meaning
0
Use the system default, which is to display all error dialog boxes.使用系统用默认有的全球错误对话框显示
SEM_FAILCRITICALERRORS
0x0001
The system does not display the critical-error-handler message box. Instead, the system sends the error to the calling process.
系统不显示critical-error-handler 消息对话框,只是把错误信息发到调用进程
SEM_NOALIGNMENTFAULTEXCEPT
0x0004
The system automatically fixes memory alignment faults and makes them invisible to the application. It does this for the calling process and any descendant processes. This feature is only supported by certain processor architectures. For more information, see the Remarks section.
After this value is set for a process, subsequent attempts to clear the value are ignored.
系统自动处理内存队列中的错误,对应用程序来说是不可见的。
SEM_NOGPFAULTERRORBOX
0x0002
The system does not display the general-protection-fault message box. This flag should only be set by debugging applications that handle general protection (GP) faults themselves with an exception handler.
系统不显示 一般默认的消息对话框。
SEM_NOOPENFILEERRORBOX
0x8000
The system does not display a message box when it fails to find a file. Instead, the error is returned to the calling process.
相关文章推荐
- [笔记]MSDN: SetErrorMode Function
- objc-setassociatedobject-function-error-in-64bit-mode-not-in-32bit
- ERROR 1839 (HY000): @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_MODE = ON
- 编译时出现如下警告“implicit declaration of function Set_Disp_Port_SpeedMode"
- 论微信小程序的坑:thirdScriptError TypeError: this.setData is not a function
- Perl Debug error: SetConsoleMode failed, LastError=|6|
- Error:'Please set up the forwarding function parameter "wipnp" in the workstation startup function!'
- SetErrorMode(SEM_NOGPFAULTERRORBOX); 去除错误对话框.
- Discuz遇到错误Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime()
- 如何解决Uncaught TypeError: this.setState is not a function
- PHP 的异常处理、错误处理:error_reporting,try-catch,trigger_error,set_error_handler,set_exception_handler,register_shutdown_function
- Fatal error: Call to a member function setAttribute() on a non-object in Magento
- 小程序之坑一TypeError: this.setData is not a function
- SetErrorMode禁弹出软盘对话框
- 解决Error for wireless request "Set Mode" (8B06) 问题 (转载)
- Drupal8安装:Fatal error: Call to a member function setRecipients()......
- 微信小程序中的坑:thirdScriptError this.setData is not a function;
- Error using fmincon (line 816), Hessian option set to 'on' but no Hessian function provided in optio
- ExtJS 5.1 - tabpanel setActiveTab: Uncaught TypeError: c.isFocusable is not a function
- Missing error handler on `socket`. TypeError: socket.set is not a function