2007-08-02 21:42:37 +00:00
|
|
|
|
2007-08-04 16:45:12 +00:00
|
|
|
INT
|
2007-08-02 21:42:37 +00:00
|
|
|
Test_NtGdiDdDeleteDirectDrawObject(PTESTINFO pti)
|
|
|
|
{
|
2007-08-11 08:52:38 +00:00
|
|
|
HANDLE hDirectDraw;
|
|
|
|
HDC hdc = CreateDCW(L"DISPLAY",NULL,NULL,NULL);
|
2007-08-28 15:06:36 +00:00
|
|
|
ASSERT(hdc != NULL);
|
2007-08-11 08:52:38 +00:00
|
|
|
|
|
|
|
/* Test ReactX */
|
|
|
|
RTEST(NtGdiDdDeleteDirectDrawObject(NULL) == FALSE);
|
|
|
|
RTEST((hDirectDraw=NtGdiDdCreateDirectDrawObject(hdc)) != NULL);
|
2007-08-28 15:06:36 +00:00
|
|
|
ASSERT(hDirectDraw != NULL);
|
2007-08-11 08:52:38 +00:00
|
|
|
RTEST(NtGdiDdDeleteDirectDrawObject(hDirectDraw) == TRUE);
|
|
|
|
|
|
|
|
/* Cleanup ReactX setup */
|
|
|
|
DeleteDC(hdc);
|
|
|
|
Syscall(L"NtGdiDdDeleteDirectDrawObject", 1, &hDirectDraw);
|
2007-08-02 21:42:37 +00:00
|
|
|
|
2007-08-05 03:32:24 +00:00
|
|
|
return APISTATUS_NORMAL;
|
2007-08-02 21:42:37 +00:00
|
|
|
}
|