64,637
社区成员
发帖
与我相关
我的任务
分享
int ExceptFliter(PEXCEPTION_POINTERS pEP)
{
printf("ExceptFliter \n");
DWORD dwExceptionCode = pEP->ExceptionRecord->ExceptionCode;
if(dwExceptionCode == EXCEPTION_EXECUTE_HANDLER)
return(EXCEPTION_EXECUTE_HANDLER);
return(UnhandledExceptionFilter(pEP));
}
__try
{
hFind = FindFirstFile (path, &fd);
}
__except(ExceptFliter(GetExceptionInformation()))
{
printf("FindFirstFile error code is %d\n",GetLastError());
}