ReactOS 0.4.16-dev-319-g6cf4263
seh0052.c File Reference
#include <windows.h>
#include "seh.h"
Include dependency graph for seh0052.c:

Go to the source code of this file.

Functions

LONG Echo (LONG Value)
 
int main ()
 

Variables

char test [] = "seh0052.c"
 

Function Documentation

◆ Echo()

LONG Echo ( LONG  Value)

Definition at line 10 of file seh0052.c.

10{ return Value; }
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413

◆ main()

int main ( void  )

Definition at line 12 of file seh0052.c.

12 {
14 ULONG Index1;
15
16 Counter = 0;
17
18 try {
19 for (Index1 = 0; Index1 < 10; Index1 += 1) {
20 if (Echo(Index1) == Index1) {
21 Counter += 3;
22 leave;
23 }
24 Counter += 100;
25 }
26 }
27 finally {
28 if (AbnormalTermination() == 0) {
29 Counter += 5;
30 }
31 }
32 endtry
33
34 if (Counter != 8) {
35 printf("TEST 52 FAILED, Counter = %d\n", Counter);
36 return -1;
37 }
38
39 return 0;
40}
#define leave
Definition: btrfs_drv.h:138
#define printf
Definition: freeldr.h:97
#define AbnormalTermination
Definition: excpt.h:87
long LONG
Definition: pedump.c:60
#define endtry
Definition: seh.h:24
static LARGE_INTEGER Counter
Definition: clock.c:43
@ Echo
Definition: telnetd.h:64
uint32_t ULONG
Definition: typedefs.h:59

Variable Documentation

◆ test

char test[] = "seh0052.c"

Definition at line 8 of file seh0052.c.