fixed all dam warings before some start nag on me
[reactos.git] / rosapps / dxtest / win32kdxtest / test.h
1
2
3 HANDLE test_NtGdiDdCreateDirectDrawObject();
4 void test_NtGdiDdDeleteDirectDrawObject(HANDLE hDirectDrawLocal);
5 void test_NtGdiDdQueryDirectDrawObject( HANDLE hDirectDrawLocal);
6
7
8
9 HANDLE sysNtGdiDdCreateDirectDrawObject(HDC hdc);
10 BOOL sysNtGdiDdDeleteDirectDrawObject( HANDLE hDirectDrawLocal);
11 BOOL sysNtGdiDdQueryDirectDrawObject( HANDLE hDirectDrawLocal, DD_HALINFO *pHalInfo,
12 DWORD *pCallBackFlags,
13 LPD3DNTHAL_CALLBACKS puD3dCallbacks,
14 LPD3DNTHAL_GLOBALDRIVERDATA puD3dDriverData,
15 PDD_D3DBUFCALLBACKS puD3dBufferCallbacks,
16 LPDDSURFACEDESC puD3dTextureFormats,
17 DWORD *puNumHeaps, VIDEOMEMORY *puvmList,
18 DWORD *puNumFourCC, DWORD *puFourCC);
19
20 HANDLE NtGdiDdCreateDirectDrawObject(HDC hdc);
21 BOOL NtGdiDdDeleteDirectDrawObject( HANDLE hDirectDrawLocal);
22
23 BOOL NtGdiDdQueryDirectDrawObject( HANDLE hDirectDrawLocal, DD_HALINFO *pHalInfo,
24 DWORD *pCallBackFlags,
25 LPD3DNTHAL_CALLBACKS puD3dCallbacks,
26 LPD3DNTHAL_GLOBALDRIVERDATA puD3dDriverData,
27 PDD_D3DBUFCALLBACKS puD3dBufferCallbacks,
28 LPDDSURFACEDESC puD3dTextureFormats,
29 DWORD *puNumHeaps, VIDEOMEMORY *puvmList,
30 DWORD *puNumFourCC, DWORD *puFourCC);
31
32
33
34 #define testing_eq(input,value,counter,text) \
35 if (input == value) \
36 { \
37 counter++; \
38 printf("FAIL ret=%s, %d != %d )\n",text,(int)input,(int)value); \
39 }
40
41
42 #define testing_noteq(input,value,counter,text) \
43 if (input != value) \
44 { \
45 counter++; \
46 printf("FAIL ret=%s, %d == %d )\n",text,(int)input,(int)value); \
47 }
48
49
50 #define show_status(counter, text) \
51 if (counter == 0) \
52 { \
53 printf("End testing of %s Status : ok\n\n",text); \
54 } \
55 else \
56 { \
57 printf("End testing of %s Status : fail\n\n",text); \
58 }
59
60
61 #if !defined(__REACTOS__)
62
63 #define win_syscall(inValue,outValue,syscallid) \
64 __asm { mov eax, syscallid }; \
65 __asm { lea edx, [inValue] }; \
66 __asm { int 0x2E }; \
67 __asm { mov outValue,eax};
68
69
70
71 #endif