mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 22:00:55 +00:00
d55028d26f
svn path=/trunk/; revision=33818
18 lines
408 B
C
18 lines
408 B
C
|
|
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;
|
|
}
|