Skip to content

Instantly share code, notes, and snippets.

@boxcounter
Created January 19, 2014 13:17
Show Gist options
  • Save boxcounter/8504883 to your computer and use it in GitHub Desktop.
Save boxcounter/8504883 to your computer and use it in GitHub Desktop.
1 VOID SehTest()
2 {
3 __try
4 {
5 ExRaiseStatus();
6 }
7 __except(ExRaiseStatus(), EXCEPTION_CONTINUE_SEARCH) // EXCEPT_FILTER_1
8 { // EXCEPT_HANDLER_1
9 }
10 }
11
12 VOID Caller()
13 {
14 __try
15 {
16 SehTest();
17 }
18 __except(EXCEPTION_EXECUTE_HANDLER) // EXCEPT_FILTER_2
19 { // EXCEPT_HANDLER_2
20 }
21 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment