fe0f43a93ef102a0a0abbab9bc9740e50de2c46c
[reactos.git] / rosapps / dxtest / win32kdxtest / NtGdiDdCreateDirectDrawObject.c
1 #include <stdio.h>
2 /* SDK/DDK/NDK Headers. */
3 #include <windows.h>
4 #include <wingdi.h>
5 #include <winddi.h>
6 #include <d3dnthal.h>
7 #include <dll/directx/d3d8thk.h>
8 #include "test.h"
9
10
11 /*
12 * Test see if we getting a DirectDrawObject from win32k
13 *
14 */
15 HANDLE
16 test_NtGdiDdCreateDirectDrawObject()
17 {
18 HANDLE retValue=0;
19 int fails=0;
20 HDC hdc=CreateDCW(L"Display",NULL,NULL,NULL);
21
22 printf("Start testing of NtGdiDdCreateDirectDrawObject\n");
23
24 retValue = OsThunkDdCreateDirectDrawObject(NULL);
25 testing_noteq(retValue,NULL,fails,"NtGdiDdCreateDirectDrawObject(NULL);\0");
26
27 retValue = OsThunkDdCreateDirectDrawObject(hdc);
28 testing_eq(retValue,NULL,fails,"NtGdiDdCreateDirectDrawObject(hdc);\0");
29
30 show_status(fails, "NtGdiDdCreateDirectDrawObject\0");
31
32 return retValue;
33 }