2 /* SDK/DDK/NDK Headers. */
7 #include <dll/directx/d3d8thk.h>
12 * Test see if we getting a DirectDrawObject from win32k
16 test_NtGdiDdCreateDirectDrawObject()
20 HDC hdc
=CreateDCW(L
"Display",NULL
,NULL
,NULL
);
24 printf("No hdc was created with Display, trying now with DISPLAY\n");
25 hdc
=CreateDCW(L
"DISPLAY",NULL
,NULL
,NULL
);
28 printf("No hdc was created with DISPLAY, trying now with NULL\n");
29 hdc
=CreateDCW(NULL
,NULL
,NULL
,NULL
);
35 printf("No hdc was created at all perpare all test will fail\n");
39 printf("Start testing of NtGdiDdCreateDirectDrawObject\n");
41 retValue
= OsThunkDdCreateDirectDrawObject(NULL
);
42 testing_noteq(retValue
,NULL
,fails
,"NtGdiDdCreateDirectDrawObject(NULL);\0");
44 retValue
= OsThunkDdCreateDirectDrawObject(hdc
);
45 testing_eq(retValue
,NULL
,fails
,"NtGdiDdCreateDirectDrawObject(hdc);\0");
47 show_status(fails
, "NtGdiDdCreateDirectDrawObject\0");