reactos/rostests/apitests/win32nt/ntdd/NtGdiDdDeleteDirectDrawObject.c
Timo Kreuzer 7ad21a4425 [APOTESTS]
- Convert win32k native api test to actual wine style api-tests
- Hack around a bit with the win32k dlls, some renaming, etc.
- Delete old apitest stuff

svn path=/trunk/; revision=70458
2015-12-28 20:31:10 +00:00

25 lines
648 B
C

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