mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 12:54:51 +00:00
![Timo Kreuzer](/assets/img/avatar_default.png)
- change test function return type to INT - add ASSERT macro - include some more headers svn path=/trunk/; revision=28160
26 lines
470 B
C
26 lines
470 B
C
#include "../w32knapi.h"
|
|
|
|
W32KAPI
|
|
HANDLE
|
|
APIENTRY
|
|
NtGdiDdCreateDirectDrawObject(
|
|
IN HDC hdc
|
|
)
|
|
{
|
|
return (HANDLE)Syscall(L"NtGdiDdCreateDirectDrawObject", 1, &hdc);
|
|
}
|
|
|
|
INT
|
|
Test_NtGdiDdCreateDirectDrawObject(PTESTINFO pti)
|
|
{
|
|
HDC hdc=CreateDCW(L"Display",NULL,NULL,NULL);
|
|
|
|
RTEST(NtGdiDdCreateDirectDrawObject(NULL) == NULL);
|
|
|
|
TEST(NtGdiDdCreateDirectDrawObject(hdc) != NULL);
|
|
|
|
DeleteDC(hdc);
|
|
|
|
return APISTATUS_NORMAL;
|
|
}
|