3 /* All testcase are base how windows 2000 sp4 acting */
7 /* SDK/DDK/NDK Headers. */
12 #include <dll/directx/d3d8thk.h>
15 BOOL dumping_on
=FALSE
;
18 /* we using d3d8thk.dll it is doing the real syscall in windows 2000
19 * in ReactOS and Windows XP and higher d3d8thk.dll it linking to
20 * gdi32.dll instead doing syscall, gdi32.dll export DdEntry1-56
21 * and doing the syscall direcly. I did forget about it, This
22 * test program are now working on any Windows and ReactOS
23 * that got d3d8thk.dll
26 int main(int argc
, char **argv
)
28 HANDLE hDirectDrawLocal
;
32 if (stricmp(argv
[1],"-dump")==0)
37 if ( (stricmp(argv
[1],"-help")==0) ||
38 (stricmp(argv
[1],"-?")==0) ||
39 (stricmp(argv
[1],"/help")==0) ||
40 (stricmp(argv
[1],"/?")==0) )
42 printf("the %s support follow param \n",argv
[0]);
43 printf("-dump : It dump all data it resvie to screen \n");
44 printf("-dumpfile filename : It dump all data it resvie to file \n");
45 printf("\nrember u can only use one of them at time \n");
52 if (stricmp(argv
[1],"-dumpfile")==0)
54 /* create or over write a file in binary mode, and redirect printf to the file */
55 if ( (fs_file
= freopen(argv
[2], "wb", stdout
)) != NULL
)
62 hDirectDrawLocal
= test_NtGdiDdCreateDirectDrawObject();
64 test_NtGdiDdQueryDirectDrawObject(hDirectDrawLocal
);
66 test_NtGdiDdGetScanLine(hDirectDrawLocal
);
68 test_NtGdiDdWaitForVerticalBlank(hDirectDrawLocal
);
70 test_NtGdiDdCanCreateSurface(hDirectDrawLocal
);
72 test_NtGdiDdDeleteDirectDrawObject(hDirectDrawLocal
);