ReactOS 0.4.15-dev-7788-g1ad9096
test.h
Go to the documentation of this file.
1
2
4void test_NtGdiDdDeleteDirectDrawObject(HANDLE hDirectDrawLocal);
5void test_NtGdiDdQueryDirectDrawObject(HANDLE hDirectDrawLocal);
6void test_NtGdiDdGetScanLine(HANDLE hDirectDrawLocal);
7void test_NtGdiDdWaitForVerticalBlank(HANDLE hDirectDrawLocal);
8void test_NtGdiDdCanCreateSurface(HANDLE hDirectDrawLocal);
9
10
12void dump_CallBackFlags(DWORD *pCallBackFlags, char *text);
13void dump_D3dCallbacks(D3DNTHAL_CALLBACKS *puD3dCallbacks, char *text);
14void dump_D3dDriverData(D3DNTHAL_GLOBALDRIVERDATA *puD3dDriverData, char *text);
15void dump_D3dBufferCallbacks(DD_D3DBUFCALLBACKS *puD3dCallbacks, char *text);
16void 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
const WCHAR * text
Definition: package.c:1799
unsigned long DWORD
Definition: ntddk_ex.h:95
void dump_D3dBufferCallbacks(DD_D3DBUFCALLBACKS *puD3dCallbacks, char *text)
Definition: dump.c:1126
void test_NtGdiDdQueryDirectDrawObject(HANDLE hDirectDrawLocal)
void test_NtGdiDdWaitForVerticalBlank(HANDLE hDirectDrawLocal)
void dump_D3dDriverData(D3DNTHAL_GLOBALDRIVERDATA *puD3dDriverData, char *text)
Definition: dump.c:601
void test_NtGdiDdGetScanLine(HANDLE hDirectDrawLocal)
void test_NtGdiDdDeleteDirectDrawObject(HANDLE hDirectDrawLocal)
void test_NtGdiDdCanCreateSurface(HANDLE hDirectDrawLocal)
void dump_halinfo(DD_HALINFO *pHalInfo, char *text)
Definition: dump.c:92
void dump_D3dCallbacks(D3DNTHAL_CALLBACKS *puD3dCallbacks, char *text)
Definition: dump.c:552
void dump_CallBackFlags(DWORD *pCallBackFlags, char *text)
Definition: dump.c:41
HANDLE test_NtGdiDdCreateDirectDrawObject(void)
void dump_D3dTextureFormats(DDSURFACEDESC *puD3dTextureFormats, int dwNum, char *text)
Definition: dump.c:1164
_Out_ DD_HALINFO * pHalInfo
Definition: winddi.h:4226