adding flag translations for allot different value for D3DNTHAL_CALLBACKS
[reactos.git] / rostests / dxtest / win32kdxtest / test.h
1
2
3 HANDLE test_NtGdiDdCreateDirectDrawObject();
4 void test_NtGdiDdDeleteDirectDrawObject(HANDLE hDirectDrawLocal);
5 void test_NtGdiDdQueryDirectDrawObject( HANDLE hDirectDrawLocal);
6 void test_NtGdiDdGetScanLine(HANDLE hDirectDrawLocal);
7 void test_NtGdiDdWaitForVerticalBlank(HANDLE hDirectDrawLocal);
8 void test_NtGdiDdCanCreateSurface(HANDLE hDirectDrawLocal);
9
10
11 void dump_halinfo(DD_HALINFO *pHalInfo, char *text);
12 void dump_CallBackFlags(DWORD *pCallBackFlags, char *text);
13 void dump_D3dCallbacks(D3DNTHAL_CALLBACKS *puD3dCallbacks, char *text);
14 void dump_D3dDriverData(D3DNTHAL_GLOBALDRIVERDATA *puD3dDriverData, char *text);
15
16
17
18 #define testing_eq(input,value,counter,text) \
19 if (input == value) \
20 { \
21 counter++; \
22 printf("FAIL ret=%s, %d != %d )\n",text,(int)input,(int)value); \
23 }
24
25
26 #define testing_noteq(input,value,counter,text) \
27 if (input != value) \
28 { \
29 counter++; \
30 printf("FAIL ret=%s, %d == %d )\n",text,(int)input,(int)value); \
31 }
32
33
34 #define show_status(counter, text) \
35 if (counter == 0) \
36 { \
37 printf("End testing of %s Status : ok\n\n",text); \
38 } \
39 else \
40 { \
41 printf("End testing of %s Status : fail\n\n",text); \
42 }
43
44
45 #if !defined(__REACTOS__)
46
47 #define win_syscall(inValue,outValue,syscallid) \
48 __asm { mov eax, syscallid }; \
49 __asm { lea edx, [inValue] }; \
50 __asm { int 0x2E }; \
51 __asm { mov outValue,eax};
52
53
54
55 #endif