reactos/rostests/apitests/w32knapi/ntdd/NtGdiDdCreateDirectDrawObject.c
Timo Kreuzer 35bf0957bc - use NtDd api directly instead of using old syscall function.
- remove some old definitions
- fix build to make Wax happy

svn path=/trunk/; revision=28890
2007-09-06 00:42:51 +00:00

20 lines
452 B
C

#include "../w32knapi.h"
INT
Test_NtGdiDdCreateDirectDrawObject(PTESTINFO pti)
{
HANDLE hDirectDraw;
HDC hdc = CreateDCW(L"DISPLAY",NULL,NULL,NULL);
ASSERT(hdc != NULL);
/* Test ReactX */
RTEST(NtGdiDdCreateDirectDrawObject(NULL) == NULL);
RTEST((hDirectDraw=NtGdiDdCreateDirectDrawObject(hdc)) != NULL);
/* Cleanup ReactX setup */
DeleteDC(hdc);
NtGdiDdDeleteDirectDrawObject(hDirectDraw);
return APISTATUS_NORMAL;
}