[FSUTIL]
[reactos.git] / rostests / dxtest / win32kdxtest / test.h
1
2
3 HANDLE test_NtGdiDdCreateDirectDrawObject(void);
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 void dump_D3dBufferCallbacks(DD_D3DBUFCALLBACKS *puD3dCallbacks, char *text);
16 void dump_D3dTextureFormats(DDSURFACEDESC *puD3dTextureFormats, int dwNum, char *text);
17
18
19
20
21
22
23
24 #define testing_eq(input,value,counter,text) \
25 if (input == value) \
26 { \
27 counter++; \
28 printf("FAIL ret=%s, %d != %d )\n",text,(int)input,(int)value); \
29 }
30
31
32 #define testing_noteq(input,value,counter,text) \
33 if (input != value) \
34 { \
35 counter++; \
36 printf("FAIL ret=%s, %d == %d )\n",text,(int)input,(int)value); \
37 }
38
39
40 #define show_status(counter, text) \
41 if (counter == 0) \
42 { \
43 printf("End testing of %s Status : ok\n\n",text); \
44 } \
45 else \
46 { \
47 printf("End testing of %s Status : fail\n\n",text); \
48 }
49
50
51 #if !defined(__REACTOS__)
52
53 #define win_syscall(inValue,outValue,syscallid) \
54 __asm { mov eax, syscallid }; \
55 __asm { lea edx, [inValue] }; \
56 __asm { int 0x2E }; \
57 __asm { mov outValue,eax};
58
59
60
61 #endif