[WIN32KNT_APITEST] Improve the existing PCH and make use of it.

This commit is contained in:
Amine Khaldi 2017-12-17 12:17:19 +01:00
parent 361b6e39e3
commit 3bf31bf2ab
4 changed files with 14 additions and 22 deletions

View file

@ -61,10 +61,13 @@ list(APPEND SOURCE
ntuser/NtUserUpdatePerUserSystemParameters.c ntuser/NtUserUpdatePerUserSystemParameters.c
#osver.c #osver.c
win32nt.h)
add_executable(win32knt_apitest
${SOURCE}
testlist.c testlist.c
w32knapi.rc) w32knapi.rc)
add_executable(win32knt_apitest ${SOURCE})
target_link_libraries(win32knt_apitest ${PSEH_LIB} gditools) target_link_libraries(win32knt_apitest ${PSEH_LIB} gditools)
set_module_type(win32knt_apitest win32cui) set_module_type(win32knt_apitest win32cui)
add_importlibs(win32knt_apitest add_importlibs(win32knt_apitest
@ -78,4 +81,5 @@ add_importlibs(win32knt_apitest
ntdll) ntdll)
add_dependencies(win32knt_apitest xdk) add_dependencies(win32knt_apitest xdk)
add_pch(win32knt_apitest win32nt.h SOURCE)
add_rostests_file(TARGET win32knt_apitest) add_rostests_file(TARGET win32knt_apitest)

View file

@ -7,6 +7,8 @@
#include <win32nt.h> #include <win32nt.h>
#include <ddrawi.h>
/* Note : OsThunkDdQueryDirectDrawObject is the usermode name of NtGdiDdQueryDirectDrawObject /* Note : OsThunkDdQueryDirectDrawObject is the usermode name of NtGdiDdQueryDirectDrawObject
* it lives in d3d8thk.dll and in windows 2000 it doing syscall direcly to win32k.sus * it lives in d3d8thk.dll and in windows 2000 it doing syscall direcly to win32k.sus
* in windows xp and higher it call to gdi32.dll to DdEntry41 and it doing the syscall * in windows xp and higher it call to gdi32.dll to DdEntry41 and it doing the syscall

View file

@ -7,6 +7,8 @@
#include <win32nt.h> #include <win32nt.h>
#include <winreg.h>
static const WCHAR* KEY_MOUSE = L"Control Panel\\Mouse"; static const WCHAR* KEY_MOUSE = L"Control Panel\\Mouse";
//static const WCHAR* VAL_MOUSE1 = L"MouseThreshold1"; //static const WCHAR* VAL_MOUSE1 = L"MouseThreshold1";
//static const WCHAR* VAL_MOUSE2 = L"MouseThreshold2"; //static const WCHAR* VAL_MOUSE2 = L"MouseThreshold2";

View file

@ -1,5 +1,5 @@
#ifndef _WIN32NT_APITEST_H_
#pragma once #define _WIN32NT_APITEST_H_
/* Definitions */ /* Definitions */
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
@ -11,34 +11,18 @@
/* SDK/DDK/NDK Headers. */ /* SDK/DDK/NDK Headers. */
#include <stdio.h> #include <stdio.h>
#include <excpt.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <wingdi.h> #include <wingdi.h>
#include <winuser.h>
#include <wincon.h>
#include <winnls.h>
#include <winver.h>
#include <winnetwk.h>
#include <winreg.h>
#include <winsvc.h>
#include <objbase.h> #include <objbase.h>
#include <imm.h> #include <imm.h>
#include <winddi.h> #include <winddi.h>
#include <prntfont.h> #include <prntfont.h>
#include <winddiui.h>
#include <winspool.h>
#include <ddrawi.h>
#include <ddrawgdi.h>
#include <ndk/ntndk.h> #include <ndk/rtlfuncs.h>
#include <ndk/mmfuncs.h>
/* Public Win32K Headers */ /* Public Win32K Headers */
#include <ntusrtyp.h>
#include <ntuser.h> #include <ntuser.h>
#include <callback.h>
#include <ntgdityp.h> #include <ntgdityp.h>
#include <ntgdi.h> #include <ntgdi.h>
#include <ntgdihdl.h> #include <ntgdihdl.h>
@ -51,4 +35,4 @@
#define GdiHandleTable GdiQueryTable() #define GdiHandleTable GdiQueryTable()
#endif /* !_WIN32NT_APITEST_H_ */