ReactOS 0.4.16-dev-197-g92996da
NtGdiDdCreateDirectDrawObject.c File Reference
#include "../win32nt.h"
Include dependency graph for NtGdiDdCreateDirectDrawObject.c:

Go to the source code of this file.

Functions

 START_TEST (NtGdiDdCreateDirectDrawObject)
 

Function Documentation

◆ START_TEST()

Definition at line 10 of file NtGdiDdCreateDirectDrawObject.c.

11{
12 HANDLE hDirectDraw;
13 HDC hdc = CreateDCW(L"DISPLAY", NULL, NULL, NULL);
14 ok(hdc != NULL, "CreateDCW() failed\n");
15
17 ok(hDirectDraw == NULL,
18 "NtGdiDdCreateDirectDrawObject() succeeded on NULL device context\n");
19 if (hDirectDraw != NULL)
20 {
22 "NtGdiDdDeleteDirectDrawObject() failed on unwanted object\n");
23 }
24
25 if (hdc == NULL)
26 {
27 skip("No DC\n");
28 return;
29 }
30
32 ok(hDirectDraw != NULL, "NtGdiDdCreateDirectDrawObject() failed\n");
33 if (hDirectDraw != NULL)
34 {
36 "NtGdiDdDeleteDirectDrawObject() failed\n");
37 }
38
39 ok(DeleteDC(hdc) != 0, "DeleteDC() failed\n");
40}
#define ok(value,...)
Definition: atltest.h:57
#define skip(...)
Definition: atltest.h:64
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:88
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdDeleteDirectDrawObject(_In_ HANDLE hDirectDrawLocal)
__kernel_entry W32KAPI HANDLE APIENTRY NtGdiDdCreateDirectDrawObject(_In_ HDC hdc)
#define L(x)
Definition: ntvdm.h:50
BOOL WINAPI DeleteDC(_In_ HDC)
HDC WINAPI CreateDCW(_In_opt_ LPCWSTR pszDriver, _In_opt_ LPCWSTR pszDevice, _In_opt_ LPCWSTR psz, _In_opt_ const DEVMODEW *pdmInit)