blob: 4609fbeaac8268837990663dfafae7b6f7e703c7 (
plain)
1
2
3
4
5
6
7
8
|
// Pointer mark should be formatted (WINAPI* SetXX)
typedef DWORD (WINAPI* SetDllDirectory)(LPCSTR);
// Pointer mark should be formatted (EXCEPTION_POINTERS* pExt)
static LONG WINAPI CustomUnhandledExceptionFilter(EXCEPTION_POINTERS* pExInfo)
{
if (EXCEPTION_BREAKPOINT == pExInfo->ExceptionRecord->ExceptionCode) // Breakpoint. Don't treat this as a normal crash.
return EXCEPTION_CONTINUE_SEARCH;
}
|