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