#include <windows.h>
#include <setjmp.h>
#include "seh.h"
Go to the source code of this file.
◆ dojump()
Definition at line 11 of file seh0025.c.
11 {
12 try {
13 try {
14
15 (*Counter) += 1;
17 }
18 finally {
19
20 (*Counter) += 1;
21 }
23 }
24 finally {
25
26 (*Counter) += 1;
27
28 longjmp(JumpBuffer, 1);
29 }
31}
VOID WINAPI RaiseException(_In_ DWORD dwExceptionCode, _In_ DWORD dwExceptionFlags, _In_ DWORD nNumberOfArguments, _In_opt_ const ULONG_PTR *lpArguments)
#define EXCEPTION_INT_OVERFLOW
Referenced by main().
◆ main()
Definition at line 33 of file seh0025.c.
33 {
36
38
39 if (_setjmp(JumpBuffer) == 0) {
40 try {
41 try {
42 try {
43
44
47 }
48 finally {
49
50
52 }
54 }
55 finally {
56
57
59 }
61 }
63
64
65
66
67 {
68
70 }
72 } else {
73
74
76 }
77
80 return -1;
81 }
82
83 return 0;
84}
void dojump(jmp_buf JumpBuffer, PLONG Counter)
static LARGE_INTEGER Counter
◆ test
char test[] = "SEH0025.c" |