2015-12-28 20:31:10 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS api tests
|
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
|
|
* PURPOSE: Test for NtGdiDdCreateDirectDrawObject
|
|
|
|
* PROGRAMMERS:
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <win32nt.h>
|
|
|
|
|
|
|
|
START_TEST(NtGdiDdCreateDirectDrawObject)
|
|
|
|
{
|
2019-01-30 13:55:10 +00:00
|
|
|
HANDLE hDirectDraw;
|
|
|
|
HDC hdc = CreateDCW(L"DISPLAY",NULL,NULL,NULL);
|
|
|
|
ok(hdc != NULL, "\n");
|
2015-12-28 20:31:10 +00:00
|
|
|
|
2019-01-30 13:55:10 +00:00
|
|
|
/* Test ReactX */
|
|
|
|
ok(NtGdiDdCreateDirectDrawObject(NULL) == NULL, "\n");
|
|
|
|
ok((hDirectDraw = NtGdiDdCreateDirectDrawObject(hdc)) != NULL, "\n");
|
2015-12-28 20:31:10 +00:00
|
|
|
|
2019-01-30 13:55:10 +00:00
|
|
|
/* Cleanup ReactX setup */
|
|
|
|
DeleteDC(hdc);
|
|
|
|
NtGdiDdDeleteDirectDrawObject(hDirectDraw);
|
2015-12-28 20:31:10 +00:00
|
|
|
}
|