mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 01:53:39 +00:00

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
25 lines
459 B
C
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;
|
|
}
|