- use NtDd api directly instead of using old syscall function.

- remove some old definitions
- fix build to make Wax happy

svn path=/trunk/; revision=28890
This commit is contained in:
Timo Kreuzer 2007-09-06 00:42:51 +00:00
parent ccca2fc546
commit 35bf0957bc
4 changed files with 4 additions and 7 deletions

View file

@ -13,7 +13,7 @@ Test_NtGdiDdCreateDirectDrawObject(PTESTINFO pti)
/* Cleanup ReactX setup */
DeleteDC(hdc);
Syscall(L"NtGdiDdDeleteDirectDrawObject", 1, &hDirectDraw);
NtGdiDdDeleteDirectDrawObject(hDirectDraw);
return APISTATUS_NORMAL;
}

View file

@ -25,7 +25,7 @@ Test_NtGdiEngCreatePalette(PTESTINFO pti)
TEST(GDI_HANDLE_GET_TYPE(hPal) == GDI_OBJECT_TYPE_PALETTE);
pEntry = &GdiHandleTable[GDI_HANDLE_GET_INDEX(hPal)];
TEST(pEntry->KernelData != NULL);
TEST(pEntry->ProcessId == (HANDLE)GetCurrentProcessId());
TEST(pEntry->ProcessId == GetCurrentProcessId());
TEST(pEntry->UserData == 0);
TEST(pEntry->Type == (((UINT)hPal >> 16) | GDI_OBJECT_TYPE_PALETTE));

View file

@ -1,3 +1,4 @@
INT
Test_NtGdiEnumFontOpen(PTESTINFO pti)
{
@ -17,7 +18,7 @@ Test_NtGdiEnumFontOpen(PTESTINFO pti)
TEST(GDI_HANDLE_GET_TYPE(idEnum) == GDI_OBJECT_TYPE_ENUMFONT);
pEntry = &GdiHandleTable[GDI_HANDLE_GET_INDEX(idEnum)];
TEST(pEntry->KernelData != NULL);
TEST(pEntry->ProcessId == (HANDLE)GetCurrentProcessId());
TEST(pEntry->ProcessId == GetCurrentProcessId());
TEST(pEntry->UserData == 0);
TEST(pEntry->Type == ((idEnum >> 16) | GDI_OBJECT_TYPE_ENUMFONT));

View file

@ -22,10 +22,6 @@
#include "../apitest.h"
#define OS_UNSUPPORTED 0
#define OS_REACTOS 1
#define OS_WINDOWS 2
typedef struct
{
LPWSTR lpszFunction;