reactos/rostests/apitests/w32knapi/ntdd/NtGdiDdCreateDirectDrawObject.c
Timo Kreuzer 603ac00e50 an API test kit + win32k native API test app.
It does syscalls on ros by linking to w32kdll.dll
On windows it uses syscall tables (only winxp sp2 available atm)

svn path=/trunk/; revision=28106
2007-08-02 21:42:37 +00:00

25 lines
459 B
C

#include "..\w32knapi.h"
W32KAPI
HANDLE
APIENTRY
NtGdiDdCreateDirectDrawObject(
IN HDC hdc
)
{
return (HANDLE)Syscall(L"NtGdiDdCreateDirectDrawObject", 1, &hdc);
}
BOOL
Test_NtGdiDdCreateDirectDrawObject(PTESTINFO pti)
{
HDC hdc=CreateDCW(L"Display",NULL,NULL,NULL);
RTEST(NtGdiDdCreateDirectDrawObject(NULL) == NULL);
TEST(NtGdiDdCreateDirectDrawObject(hdc) != NULL);
DeleteDC(hdc);
return TRUE;
}