LONG NTAPI VEHandler(PEXCEPTION_POINTERS pExceptionInfo)
{
// 异常处理函数
OutputDebugString("Catch an exception by VEH!/r/n");
return EXCEPTION_CONTINUE_SEARCH;
}
If the application has no debugger, the system debugger displays the string if the filter mask allows it. (Note that this function calls the DbgPrint function to display the string. For details on how the filter mask controls what the system debugger displays, see the DbgPrint function in the Microsoft Windows Driver Kit (WDK) on MSDN.) If the application has no debugger and the system debugger is not active, OutputDebugString does nothing.