ReactOS 0.4.15-dev-8058-ga7cbb60
NtGdiDdCreateDirectDrawObject.c File Reference
#include <stdio.h>
#include <windows.h>
#include <wingdi.h>
#include <winddi.h>
#include <d3dnthal.h>
#include <dll/directx/d3d8thk.h>
#include "test.h"
Include dependency graph for NtGdiDdCreateDirectDrawObject.c:

Go to the source code of this file.

Functions

HANDLE test_NtGdiDdCreateDirectDrawObject ()
 

Function Documentation

◆ test_NtGdiDdCreateDirectDrawObject()

HANDLE test_NtGdiDdCreateDirectDrawObject ( void  )

Definition at line 16 of file NtGdiDdCreateDirectDrawObject.c.

17{
18 HANDLE retValue=0;
19 int fails=0;
20 HDC hdc=CreateDCW(L"Display",NULL,NULL,NULL);
21
22 if (hdc == NULL)
23 {
24 printf("No hdc was created with Display, trying now with DISPLAY\n");
25 hdc=CreateDCW(L"DISPLAY",NULL,NULL,NULL);
26 if (hdc == NULL)
27 {
28 printf("No hdc was created with DISPLAY, trying now with NULL\n");
30 }
31 }
32
33 if (hdc == NULL)
34 {
35 printf("No hdc was created at all perpare all test will fail\n");
36 return NULL;
37 }
38
39 printf("Start testing of NtGdiDdCreateDirectDrawObject\n");
40
42 testing_noteq(retValue,NULL,fails,"NtGdiDdCreateDirectDrawObject(NULL);\0");
43
45 testing_eq(retValue,NULL,fails,"NtGdiDdCreateDirectDrawObject(hdc);\0");
46
47 show_status(fails, "NtGdiDdCreateDirectDrawObject\0");
48
49 return retValue;
50}
HANDLE WINAPI OsThunkDdCreateDirectDrawObject(HDC hdc)
#define NULL
Definition: types.h:112
#define printf
Definition: freeldr.h:97
#define testing_eq(input, value, counter, text)
Definition: test.h:24
#define show_status(counter, text)
Definition: test.h:40
#define testing_noteq(input, value, counter, text)
Definition: test.h:32
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
#define L(x)
Definition: ntvdm.h:50
HDC WINAPI CreateDCW(_In_opt_ LPCWSTR pszDriver, _In_opt_ LPCWSTR pszDevice, _In_opt_ LPCWSTR psz, _In_opt_ const DEVMODEW *pdmInit)

Referenced by main().