Adding rostests as part of the tree restructure
[reactos.git] / rosapps / dxtest / win32kdxtest / main.c
1
2
3 /* All testcase are base how windows 2000 sp4 acting */
4
5
6 #include <stdio.h>
7 /* SDK/DDK/NDK Headers. */
8 #include <windows.h>
9 #include <wingdi.h>
10 #include <winddi.h>
11 #include <d3dnthal.h>
12 #include <dll/directx/d3d8thk.h>
13 #include "test.h"
14
15 BOOL dumping_on =FALSE;
16
17 /* we using d3d8thk.dll it is doing the real syscall in windows 2000
18 * in ReactOS and Windows XP and higher d3d8thk.dll it linking to
19 * gdi32.dll instead doing syscall, gdi32.dll export DdEntry1-56
20 * and doing the syscall direcly. I did forget about it, This
21 * test program are now working on any Windows and ReactOS
22 * that got d3d8thk.dll
23 */
24
25 int main(int argc, char **argv)
26 {
27 HANDLE hDirectDrawLocal;
28
29 if (argc == 2)
30 {
31 if (stricmp(argv[1],"-dump")==0)
32 {
33 dumping_on = TRUE;
34 }
35 }
36
37 hDirectDrawLocal = test_NtGdiDdCreateDirectDrawObject();
38
39 test_NtGdiDdQueryDirectDrawObject(hDirectDrawLocal);
40
41 test_NtGdiDdDeleteDirectDrawObject(hDirectDrawLocal);
42 return 0;
43 }
44
45
46
47
48
49
50
51
52
53
54
55