- header update

- add a resource

svn path=/trunk/; revision=29284
This commit is contained in:
Timo Kreuzer 2007-09-28 17:26:29 +00:00
parent dda7fa8fb8
commit e1b2e7a30f
15 changed files with 66 additions and 58 deletions

View file

@ -1,4 +1,3 @@
#include "../w32knapi.h"
INT
Test_NtGdiDdCreateDirectDrawObject(PTESTINFO pti)

View file

@ -1,14 +1,3 @@
#include "../w32knapi.h"
W32KAPI
BOOL
APIENTRY
NtGdiDdDeleteDirectDrawObject(
HANDLE hDirectDrawLocal
)
{
return (BOOL)Syscall(L"NtGdiDdDeleteDirectDrawObject", 1, &hDirectDrawLocal);
}
INT
Test_NtGdiDdDeleteDirectDrawObject(PTESTINFO pti)

View file

@ -1,23 +1,3 @@
#include "../w32knapi.h"
W32KAPI
BOOL STDCALL
NtGdiDdQueryDirectDrawObject(
HANDLE hDirectDrawLocal,
DD_HALINFO *pHalInfo,
DWORD *pCallBackFlags,
LPD3DNTHAL_CALLBACKS puD3dCallbacks,
LPD3DNTHAL_GLOBALDRIVERDATA puD3dDriverData,
PDD_D3DBUFCALLBACKS puD3dBufferCallbacks,
LPDDSURFACEDESC puD3dTextureFormats,
DWORD *puNumHeaps,
VIDEOMEMORY *puvmList,
DWORD *puNumFourCC,
DWORD *puFourCC
)
{
return (BOOL)Syscall(L"NtGdiDdQueryDirectDrawObject", 11, &hDirectDrawLocal);
}
INT
Test_NtGdiDdQueryDirectDrawObject(PTESTINFO pti)

View file

@ -1,17 +1,4 @@
HPALETTE
APIENTRY
NtGdiEngCreatePalette(
IN ULONG iMode,
IN ULONG cColors,
IN ULONG *pulColors,
IN FLONG flRed,
IN FLONG flGreen,
IN FLONG flBlue)
{
return (HPALETTE)Syscall(L"NtGdiEngCreatePalette", 6, &iMode);
}
INT
Test_NtGdiEngCreatePalette(PTESTINFO pti)
{

View file

@ -25,7 +25,11 @@ Test_NtGdiEnumFontOpen(PTESTINFO pti)
/* We should not be able to use DeleteObject() on the handle */
TEST(DeleteObject((HGDIOBJ)idEnum) == FALSE);
// FIXME: Close the enum handle
NtGdiEnumFontClose(idEnum);
// Test no logfont (NULL): should word
// Test empty lfFaceName string: should not work
return APISTATUS_NORMAL;
}

View file

@ -1,5 +1,3 @@
#include "../w32knapi.h"
INT
Test_NtGdiSetBitmapBits(PTESTINFO pti)
{

View file

@ -1,5 +1,3 @@
#include "../w32knapi.h"
/* First the call stub */
DWORD STDCALL
NtUserCountClipboardFormats(VOID)

View file

@ -0,0 +1,7 @@
INT
Test_NtUserFindExistingCursoricon(PTESTINFO pti)
{
return APISTATUS_NORMAL;
}

View file

@ -0,0 +1,30 @@
INT
Test_NtUserRedrawWindow(PTESTINFO pti)
{
HWND hWnd;
RECT rect;
hWnd = CreateWindowA("BUTTON",
"Test",
BS_PUSHBUTTON | WS_VISIBLE,
0,
0,
50,
30,
NULL,
NULL,
g_hInstance,
0);
ASSERT(hWnd);
rect.left = 0;
rect.top = 0;
rect.right = 10;
rect.bottom = 10;
TEST(NtUserRedrawWindow(hWnd, &rect, NULL, RDW_VALIDATE) == TRUE);
DestroyWindow(hWnd);
return APISTATUS_NORMAL;
}

View file

@ -0,0 +1,2 @@
#define IDI_ICON 1000

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View file

@ -20,6 +20,8 @@
#include "ntgdi/NtGdiGetDIBits.c"
#include "ntuser/NtUserCountClipboardFormats.c"
#include "ntuser/NtUserFindExistingCursorIcon.c"
#include "ntuser/NtUserRedrawWindow.c"
/* The List of tests */
TESTENTRY TestList[] =
@ -44,7 +46,9 @@ TESTENTRY TestList[] =
{ L"NtGdiGetDIBitsInternal", Test_NtGdiGetDIBitsInternal },
/* ntuser */
{ L"NtUserCountClipboardFormats", Test_NtUserCountClipboardFormats }
{ L"NtUserCountClipboardFormats", Test_NtUserCountClipboardFormats },
{ L"NtUserFindExistingCursorIcon", Test_NtUserFindExistingCursoricon },
{ L"NtUserRedrawWindow", Test_NtUserRedrawWindow }
};
/* The function that gives us the number of tests */

View file

@ -1,26 +1,29 @@
#ifndef _W32KNAPI_H
#define _W32KNAPI_H
#define WIN32_NO_STATUS
/* SDK/NDK Headers */
#define NTOS_MODE_USER
#define WINVER 0x501
#define WIN32_NO_STATUS
#include <windows.h>
#include <winuser.h>
#include <windowsx.h>
#include <winnls32.h>
#include <ndk/ntndk.h>
#include <wingdi.h>
#include <winddi.h>
#include <ntddk.h>
#include <d3dnthal.h>
#include <prntfont.h>
/* Public Win32K Headers */
#include <win32k/callback.h>
#include <win32k/ntusrtyp.h>
#include <win32k/ntuser.h>
#include <win32k/callback.h>
#include <win32k/ntgdityp.h>
#include <ntgdi.h>
#include <win32k/ntgdihdl.h>
#include <ntgdi.h>
#include "../apitest.h"
#include "resource.h"
typedef struct
{

View file

@ -2,6 +2,7 @@
<include base="w32knapi">.</include>
<define name="__USE_W32API" />
<define name="_WIN32_WINNT">0x0501</define>
<define name="WINVER">0x501</define>
<library>apitest</library>
<library>kernel32</library>
<library>user32</library>
@ -10,4 +11,5 @@
<library>w32kdll</library>
<file>w32knapi.c</file>
<file>testlist.c</file>
<file>w32knapi.rc</file>
</module>

View file

@ -0,0 +1,5 @@
#include <windows.h>
#include "resource.h"
IDI_ICON ICON "resource/system.ico"