在MicrosoftWindowsAPI中,您可以使用SetUnhandledExceptionFilter,为未处理的异常设置处理程序。该页面上提到的最大收获是:Ifanexceptionoccursinaprocessthatisnotbeingdebugged,andtheexceptionmakesittotheunhandledexceptionfilter,thatfilterwillcalltheexceptionfilterfunctionspecifiedbythelpTopLevelExceptionFilterparameter.(添加了强调)这基本上意味着,如果