reactos/rostests/apitests/win32nt/ntdd/NtGdiDdCreateDirectDrawObject.c

24 lines
586 B
C
Raw Normal View History

/*
* PROJECT: ReactOS api tests
* LICENSE: GPL - See COPYING in the top level directory
* PURPOSE: Test for NtGdiDdCreateDirectDrawObject
* PROGRAMMERS:
*/
#include <win32nt.h>
START_TEST(NtGdiDdCreateDirectDrawObject)
{
HANDLE hDirectDraw;
HDC hdc = CreateDCW(L"DISPLAY",NULL,NULL,NULL);
ok(hdc != NULL, "\n");
/* Test ReactX */
ok(NtGdiDdCreateDirectDrawObject(NULL) == NULL, "\n");
ok((hDirectDraw = NtGdiDdCreateDirectDrawObject(hdc)) != NULL, "\n");
/* Cleanup ReactX setup */
DeleteDC(hdc);
NtGdiDdDeleteDirectDrawObject(hDirectDraw);
}