2007-08-04 13:22:48 +00:00
|
|
|
#include "../w32knapi.h"
|
2007-08-02 21:42:37 +00:00
|
|
|
|
|
|
|
W32KAPI
|
|
|
|
HANDLE
|
|
|
|
APIENTRY
|
|
|
|
NtGdiDdCreateDirectDrawObject(
|
|
|
|
IN HDC hdc
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return (HANDLE)Syscall(L"NtGdiDdCreateDirectDrawObject", 1, &hdc);
|
|
|
|
}
|
|
|
|
|
2007-08-04 16:45:12 +00:00
|
|
|
INT
|
2007-08-02 21:42:37 +00:00
|
|
|
Test_NtGdiDdCreateDirectDrawObject(PTESTINFO pti)
|
|
|
|
{
|
2007-08-05 03:32:24 +00:00
|
|
|
HDC hdc = CreateDCW(L"Display",NULL,NULL,NULL);
|
|
|
|
ASSERT1(hdc != NULL);
|
2007-08-02 21:42:37 +00:00
|
|
|
|
2007-08-05 03:32:24 +00:00
|
|
|
RTEST(NtGdiDdCreateDirectDrawObject(NULL) == NULL);
|
2007-08-02 21:42:37 +00:00
|
|
|
|
2007-08-05 03:32:24 +00:00
|
|
|
TEST(NtGdiDdCreateDirectDrawObject(hdc) != NULL);
|
2007-08-02 21:42:37 +00:00
|
|
|
|
2007-08-05 03:32:24 +00:00
|
|
|
DeleteDC(hdc);
|
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
|
|
|
}
|