Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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;
- }
Advertisement
Add Comment
Please, Sign In to add comment