术语 | geterrormode |
释义 | GetErrorMode 语法: C++ UINT WINAPI GetErrorMode(void); GetErrorMode功能 获取当前进程的错误模式。 参数 这个函数没有参数。 返回值 该进程的错误模式。这个函数返回下列值之一。 返回代码/ valueDescription SEM_FAILCRITICALERRORS 0x0001The系统不显示关键错误处理消息框。相反,系统发送错误给调用进程。 SEM_NOALIGNMENTFAULTEXCEPT 0x0004The系统会自动修复故障和内存对齐使他们看不见的应用程序。它为调用进程和任何后代处理此。此功能只支持某些处理器架构。有关更多信息,请参阅SetErrorMode。 SEM_NOGPFAULTERRORBOX 0x0002The系统不显示一般保护错误消息框。 SEM_NOOPENFILEERRORBOX 0x8000The系统无法显示一个消息框时,无法找到一个文件。相反,错误返回给调用过程。 备注 每个进程都有一个关联的错误模式,指出该系统的应用程序如何去应对严重的错误。子进程将继承父进程的错误模式。 要改变这一进程的错误模式,使用SetErrorMode功能。 要求: client最低支持Vista server最低支持 Windows Server 2008 HeaderWinbase.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 错误处理函数 过程错误模式 SetErrorMode 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月30日 ==英文原文==GetErrorMode Function Retrieves the error mode for the current process. Syntax C++ UINT WINAPI GetErrorMode(void); Parameters This function has no parameters. Return Value The process error mode. This function returns one of the following values. Return code/valueDescription SEM_FAILCRITICALERRORS 0x0001The system does not display the critical-error-handler message box. Instead, the system sends the error to the calling process. SEM_NOALIGNMENTFAULTEXCEPT 0x0004The 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 SetErrorMode . SEM_NOGPFAULTERRORBOX 0x0002The system does not display the general-protection-fault message box. SEM_NOOPENFILEERRORBOX 0x8000The system does not display a message box when it fails to find a file. Instead, the error is returned to the calling process. Remarks Each process has an associated error mode that indicates to the system how the application is going to respond to serious errors. A child process inherits the error mode of its parent process. To change the error mode for the process, use the SetErrorMode function. Requirements Minimum supported clientWindows Vista Minimum supported serverWindows Server 2008 HeaderWinbase.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll See Also Error Handling Functions Process Error Mode SetErrorMode Send comments about this topic to Microsoft Build date: 7/30/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms679355(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。