mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
e1b2e7a30f
- add a resource svn path=/trunk/; revision=29284
18 lines
426 B
C
18 lines
426 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;
|
|
}
|