mirror of
https://github.com/reactos/reactos.git
synced 2025-06-23 18:10:54 +00:00
- header update
- add a resource svn path=/trunk/; revision=29284
This commit is contained in:
parent
dda7fa8fb8
commit
e1b2e7a30f
15 changed files with 66 additions and 58 deletions
|
@ -1,4 +1,3 @@
|
||||||
#include "../w32knapi.h"
|
|
||||||
|
|
||||||
INT
|
INT
|
||||||
Test_NtGdiDdCreateDirectDrawObject(PTESTINFO pti)
|
Test_NtGdiDdCreateDirectDrawObject(PTESTINFO pti)
|
||||||
|
|
|
@ -1,14 +1,3 @@
|
||||||
#include "../w32knapi.h"
|
|
||||||
|
|
||||||
W32KAPI
|
|
||||||
BOOL
|
|
||||||
APIENTRY
|
|
||||||
NtGdiDdDeleteDirectDrawObject(
|
|
||||||
HANDLE hDirectDrawLocal
|
|
||||||
)
|
|
||||||
{
|
|
||||||
return (BOOL)Syscall(L"NtGdiDdDeleteDirectDrawObject", 1, &hDirectDrawLocal);
|
|
||||||
}
|
|
||||||
|
|
||||||
INT
|
INT
|
||||||
Test_NtGdiDdDeleteDirectDrawObject(PTESTINFO pti)
|
Test_NtGdiDdDeleteDirectDrawObject(PTESTINFO pti)
|
||||||
|
|
|
@ -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
|
INT
|
||||||
Test_NtGdiDdQueryDirectDrawObject(PTESTINFO pti)
|
Test_NtGdiDdQueryDirectDrawObject(PTESTINFO pti)
|
||||||
|
|
|
@ -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
|
INT
|
||||||
Test_NtGdiEngCreatePalette(PTESTINFO pti)
|
Test_NtGdiEngCreatePalette(PTESTINFO pti)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,7 +25,11 @@ Test_NtGdiEnumFontOpen(PTESTINFO pti)
|
||||||
/* We should not be able to use DeleteObject() on the handle */
|
/* We should not be able to use DeleteObject() on the handle */
|
||||||
TEST(DeleteObject((HGDIOBJ)idEnum) == FALSE);
|
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;
|
return APISTATUS_NORMAL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#include "../w32knapi.h"
|
|
||||||
|
|
||||||
INT
|
INT
|
||||||
Test_NtGdiSetBitmapBits(PTESTINFO pti)
|
Test_NtGdiSetBitmapBits(PTESTINFO pti)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#include "../w32knapi.h"
|
|
||||||
|
|
||||||
/* First the call stub */
|
/* First the call stub */
|
||||||
DWORD STDCALL
|
DWORD STDCALL
|
||||||
NtUserCountClipboardFormats(VOID)
|
NtUserCountClipboardFormats(VOID)
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
INT
|
||||||
|
Test_NtUserFindExistingCursoricon(PTESTINFO pti)
|
||||||
|
{
|
||||||
|
|
||||||
|
return APISTATUS_NORMAL;
|
||||||
|
}
|
||||||
|
|
30
rostests/apitests/w32knapi/ntuser/NtUserRedrawWindow.c
Normal file
30
rostests/apitests/w32knapi/ntuser/NtUserRedrawWindow.c
Normal 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;
|
||||||
|
}
|
2
rostests/apitests/w32knapi/resource.h
Normal file
2
rostests/apitests/w32knapi/resource.h
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
#define IDI_ICON 1000
|
BIN
rostests/apitests/w32knapi/resource/system.ico
Normal file
BIN
rostests/apitests/w32knapi/resource/system.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
|
@ -20,6 +20,8 @@
|
||||||
#include "ntgdi/NtGdiGetDIBits.c"
|
#include "ntgdi/NtGdiGetDIBits.c"
|
||||||
|
|
||||||
#include "ntuser/NtUserCountClipboardFormats.c"
|
#include "ntuser/NtUserCountClipboardFormats.c"
|
||||||
|
#include "ntuser/NtUserFindExistingCursorIcon.c"
|
||||||
|
#include "ntuser/NtUserRedrawWindow.c"
|
||||||
|
|
||||||
/* The List of tests */
|
/* The List of tests */
|
||||||
TESTENTRY TestList[] =
|
TESTENTRY TestList[] =
|
||||||
|
@ -44,7 +46,9 @@ TESTENTRY TestList[] =
|
||||||
{ L"NtGdiGetDIBitsInternal", Test_NtGdiGetDIBitsInternal },
|
{ L"NtGdiGetDIBitsInternal", Test_NtGdiGetDIBitsInternal },
|
||||||
|
|
||||||
/* ntuser */
|
/* 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 */
|
/* The function that gives us the number of tests */
|
||||||
|
|
|
@ -1,26 +1,29 @@
|
||||||
#ifndef _W32KNAPI_H
|
#ifndef _W32KNAPI_H
|
||||||
#define _W32KNAPI_H
|
#define _W32KNAPI_H
|
||||||
|
|
||||||
#define WIN32_NO_STATUS
|
/* SDK/NDK Headers */
|
||||||
#define NTOS_MODE_USER
|
#define NTOS_MODE_USER
|
||||||
#define WINVER 0x501
|
#define WIN32_NO_STATUS
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <winuser.h>
|
||||||
|
#include <windowsx.h>
|
||||||
|
#include <winnls32.h>
|
||||||
|
#include <ndk/ntndk.h>
|
||||||
#include <wingdi.h>
|
#include <wingdi.h>
|
||||||
#include <winddi.h>
|
#include <winddi.h>
|
||||||
#include <ntddk.h>
|
|
||||||
#include <d3dnthal.h>
|
#include <d3dnthal.h>
|
||||||
#include <prntfont.h>
|
#include <prntfont.h>
|
||||||
|
|
||||||
/* Public Win32K Headers */
|
/* Public Win32K Headers */
|
||||||
#include <win32k/callback.h>
|
|
||||||
#include <win32k/ntusrtyp.h>
|
#include <win32k/ntusrtyp.h>
|
||||||
|
#include <win32k/ntuser.h>
|
||||||
|
#include <win32k/callback.h>
|
||||||
#include <win32k/ntgdityp.h>
|
#include <win32k/ntgdityp.h>
|
||||||
|
#include <ntgdi.h>
|
||||||
#include <win32k/ntgdihdl.h>
|
#include <win32k/ntgdihdl.h>
|
||||||
|
|
||||||
#include <ntgdi.h>
|
|
||||||
|
|
||||||
#include "../apitest.h"
|
#include "../apitest.h"
|
||||||
|
#include "resource.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<include base="w32knapi">.</include>
|
<include base="w32knapi">.</include>
|
||||||
<define name="__USE_W32API" />
|
<define name="__USE_W32API" />
|
||||||
<define name="_WIN32_WINNT">0x0501</define>
|
<define name="_WIN32_WINNT">0x0501</define>
|
||||||
|
<define name="WINVER">0x501</define>
|
||||||
<library>apitest</library>
|
<library>apitest</library>
|
||||||
<library>kernel32</library>
|
<library>kernel32</library>
|
||||||
<library>user32</library>
|
<library>user32</library>
|
||||||
|
@ -10,4 +11,5 @@
|
||||||
<library>w32kdll</library>
|
<library>w32kdll</library>
|
||||||
<file>w32knapi.c</file>
|
<file>w32knapi.c</file>
|
||||||
<file>testlist.c</file>
|
<file>testlist.c</file>
|
||||||
|
<file>w32knapi.rc</file>
|
||||||
</module>
|
</module>
|
||||||
|
|
5
rostests/apitests/w32knapi/w32knapi.rc
Normal file
5
rostests/apitests/w32knapi/w32knapi.rc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#include <windows.h>
|
||||||
|
#include "resource.h"
|
||||||
|
|
||||||
|
IDI_ICON ICON "resource/system.ico"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue