网站首页  词典首页

请输入您要查询的函数:

 

术语 unhandledexceptionfilter
释义 UnhandledExceptionFilter
语法:
C++
LONG WINAPI UnhandledExceptionFilter(
__in struct _EXCEPTION_POINTERS *ExceptionInfo
);
UnhandledExceptionFilter中的作用
应用程序定义的函数,未处理的异常传递到调试器,如果这一进程正在被调试。否则,选择显示一个应用程序错误消息框,并导致异常处理程序来执行。这个功能可以只调用从一个异常处理程序过滤表达式。
参数
ExceptionInfo [in]
对一个EXCEPTION_POINTERS结构,指定异常的描述和在异常情况下的处理器时间的指针。该指针是一个调用的返回值GetExceptionInformation功能。
返回值
该函数返回下列值之一。
返回代码/ valueDescription
EXCEPTION_CONTINUE_SEARCH
0x0The进程正在调试,所以应该通过例外情况(如第二次机会)到应用程序的调试。
EXCEPTION_EXECUTE_HANDLER
0x1If的SEM_NOGPFAULTERRORBOX国旗被指定在先前的呼吁SetErrorMode,没有应用程序错误消息框。该函数返回控制异常处理程序,它是免费采取任何适当的行动。
备注
如果进程不被调试,该函数将显示一个应用程序错误消息框,根据当前的错误模式。默认行为是显示该对话框,但我们可以通过指定在调用SEM_NOGPFAULTERRORBOX的SetErrorMode功能禁用。
该系统使用UnhandledExceptionFilter中内部处理过程中发生异常进程和线程的创建。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
EXCEPTION_POINTERS
GetExceptionInformation
SetErrorMode
SetUnhandledExceptionFilter
结构化异常处理函数
结构化异常处理概述
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==UnhandledExceptionFilter Function
An application-defined function that passes unhandled exceptions to the debugger, if the process is being debugged. Otherwise, it optionally displays an Application Error message box and causes the exception handler to be executed. This function can be called only from within the filter expression of an exception handler.
Syntax
C++
LONG WINAPI UnhandledExceptionFilter(
__in struct _EXCEPTION_POINTERS *ExceptionInfo
);
Parameters
ExceptionInfo [in]
A pointer to an EXCEPTION_POINTERS structure that specifies a description of the exception and the processor context at the time of the exception. This pointer is the return value of a call to the GetExceptionInformation function.
Return Value
The function returns one of the following values.
Return code/valueDescription
EXCEPTION_CONTINUE_SEARCH
0x0The process is being debugged, so the exception should be passed (as second chance) to the application's debugger.
EXCEPTION_EXECUTE_HANDLER
0x1If the SEM_NOGPFAULTERRORBOX flag was specified in a previous call to SetErrorMode , no Application Error message box is displayed. The function returns control to the exception handler, which is free to take any appropriate action.

Remarks
If the process is not being debugged, the function displays an Application Error message box, depending on the current error mode. The default behavior is to display the dialog box, but this can be disabled by specifying SEM_NOGPFAULTERRORBOX in a call to the SetErrorMode function.
The system uses UnhandledExceptionFilter internally to handle exceptions that occur during process and thread creation.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
EXCEPTION_POINTERS
GetExceptionInformation
SetErrorMode
SetUnhandledExceptionFilter
Structured Exception Handling Functions
Structured Exception Handling Overview
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms681401(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:20:32