
Untitled
By: a guest on
Jun 16th, 2012 | syntax:
C++ | size: 0.38 KB | hits: 22 | expires: Never
#include <stdio.h>
#include <windows.h>
int debugged;
LONG WINAPI Handler(struct _EXCEPTION_POINTERS *pointer)
{
printf ("NOT DEBUGGED\n");
debugged = 0;
return EXCEPTION_CONTINUE_EXECUTION;
}
int main ()
{
int a = 0;
int b = 1;
debugged = 1;
SetUnhandledExceptionFilter(Handler);
int c = b/a;
continue:
if (debugged)
return 1;
return 0;
}