2007-08-04 13:22:48 +00:00
|
|
|
#include "../w32knapi.h"
|
2007-08-02 21:42:37 +00:00
|
|
|
|
|
|
|
W32KAPI
|
|
|
|
BOOL
|
|
|
|
APIENTRY
|
|
|
|
NtGdiDdDeleteDirectDrawObject(
|
|
|
|
HANDLE hDirectDrawLocal
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return (BOOL)Syscall(L"NtGdiDdDeleteDirectDrawObject", 1, &hDirectDrawLocal);
|
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
ASSERT1(hdc != NULL);
|
|
|
|
|
|
|
|
/* Test ReactX */
|
|
|
|
RTEST(NtGdiDdDeleteDirectDrawObject(NULL) == FALSE);
|
|
|
|
RTEST((hDirectDraw=NtGdiDdCreateDirectDrawObject(hdc)) != NULL);
|
|
|
|
ASSERT1(hDirectDraw != NULL);
|
|
|
|
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
|
|
|
}
|