1 /*
2  * PROJECT:         ReactOS api tests
3  * LICENSE:         GPL - See COPYING in the top level directory
4  * PURPOSE:         Test for NtGdiDdDeleteDirectDrawObject
5  * PROGRAMMERS:
6  */
7 
8 #include <win32nt.h>
9 
10 START_TEST(NtGdiDdDeleteDirectDrawObject)
11 {
12     HANDLE  hDirectDraw;
13     HDC hdc = CreateDCW(L"DISPLAY",NULL,NULL,NULL);
14     ok(hdc != NULL, "\n");
15 
16     /* Test ReactX */
17     ok(NtGdiDdDeleteDirectDrawObject(NULL) == FALSE, "\n");
18     ok((hDirectDraw=NtGdiDdCreateDirectDrawObject(hdc)) != NULL, "\n");
19     ok(NtGdiDdDeleteDirectDrawObject(hDirectDraw) == TRUE, "\n");
20 
21     /* Cleanup ReactX setup */
22     DeleteDC(hdc);
23     NtGdiDdDeleteDirectDrawObject(hDirectDraw);
24 }
25