ReactOS  0.4.15-dev-5112-g22d8c0f
seh0051.c File Reference
#include <windows.h>
#include "seh.h"
Include dependency graph for seh0051.c:

Go to the source code of this file.

Functions

LONG Echo (LONG Value)
 
int main ()
 

Variables

char test [] = "SEH0051.c"
 

Function Documentation

◆ Echo()

LONG Echo ( LONG  Value)

Definition at line 10 of file seh0051.c.

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

Referenced by main().

◆ main()

int main ( void  )

Definition at line 12 of file seh0051.c.

12  {
13  LONG Counter;
14 
15  Counter = 0;
16 
17  try {
18  if (Echo(Counter) == Counter) {
19  Counter += 3;
20  leave;
21  } else {
22  Counter += 100;
23  }
24  }
25  finally {
26  if (AbnormalTermination() == 0) {
27  Counter += 5;
28  }
29  }
30  endtry
31 
32  if (Counter != 8) {
33  printf("test 51 failed. Counter = %d\n", Counter);
34  return -1;
35  }
36 
37  return 0;
38 }
#define endtry
Definition: seh.h:24
long LONG
Definition: pedump.c:60
#define printf
Definition: freeldr.h:94
#define AbnormalTermination()
Definition: seh.h:28
#define leave
Definition: btrfs_drv.h:138
static LARGE_INTEGER Counter
Definition: clock.c:43
LONG Echo(LONG Value)
Definition: seh0051.c:10

Variable Documentation

◆ test

char test[] = "SEH0051.c"

Definition at line 8 of file seh0051.c.