https://git.reactos.org/?p=reactos.git;a=commitdiff;h=283bbe734669eb09c935f8...
commit 283bbe734669eb09c935f87e29fca8ab6cff30a0 Author: Amine Khaldi amine.khaldi@reactos.org AuthorDate: Sat Dec 2 21:05:46 2017 +0100
[NTDLL_APITEST] Add a PCH. --- modules/rostests/apitests/ntdll/CMakeLists.txt | 5 +++-- modules/rostests/apitests/ntdll/LdrEnumResources.c | 5 +---- modules/rostests/apitests/ntdll/NtAcceptConnectPort.c | 6 +----- modules/rostests/apitests/ntdll/NtAllocateVirtualMemory.c | 6 +----- modules/rostests/apitests/ntdll/NtApphelpCacheControl.c | 7 ++----- modules/rostests/apitests/ntdll/NtContinue.c | 3 +-- modules/rostests/apitests/ntdll/NtCreateFile.c | 7 +------ modules/rostests/apitests/ntdll/NtCreateKey.c | 6 +----- modules/rostests/apitests/ntdll/NtCreateThread.c | 5 +---- modules/rostests/apitests/ntdll/NtDeleteKey.c | 9 +-------- modules/rostests/apitests/ntdll/NtFreeVirtualMemory.c | 6 +----- modules/rostests/apitests/ntdll/NtLoadUnloadKey.c | 13 +------------ modules/rostests/apitests/ntdll/NtMapViewOfSection.c | 5 +---- modules/rostests/apitests/ntdll/NtMutant.c | 5 +---- modules/rostests/apitests/ntdll/NtOpenKey.c | 7 +------ modules/rostests/apitests/ntdll/NtOpenProcessToken.c | 6 +----- modules/rostests/apitests/ntdll/NtOpenThreadToken.c | 6 +----- modules/rostests/apitests/ntdll/NtProtectVirtualMemory.c | 6 +----- modules/rostests/apitests/ntdll/NtQueryInformationProcess.c | 7 +------ modules/rostests/apitests/ntdll/NtQueryKey.c | 8 +------- .../rostests/apitests/ntdll/NtQuerySystemEnvironmentValue.c | 7 +------ .../rostests/apitests/ntdll/NtQueryVolumeInformationFile.c | 5 +---- modules/rostests/apitests/ntdll/NtReadFile.c | 11 +---------- modules/rostests/apitests/ntdll/NtSaveKey.c | 8 +------- modules/rostests/apitests/ntdll/NtSetValueKey.c | 9 +-------- modules/rostests/apitests/ntdll/NtWriteFile.c | 11 +---------- modules/rostests/apitests/ntdll/RtlAllocateHeap.c | 5 +---- modules/rostests/apitests/ntdll/RtlBitmap.c | 6 +----- modules/rostests/apitests/ntdll/RtlCopyMappedMemory.c | 5 +---- modules/rostests/apitests/ntdll/RtlDeleteAce.c | 4 +--- .../rostests/apitests/ntdll/RtlDetermineDosPathNameType.c | 6 +----- modules/rostests/apitests/ntdll/RtlDoesFileExists.c | 6 +----- .../ntdll/RtlDosApplyFileIsolationRedirection_Ustr.c | 5 +---- .../rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c | 5 +---- modules/rostests/apitests/ntdll/RtlDosSearchPath_U.c | 6 +----- modules/rostests/apitests/ntdll/RtlDosSearchPath_Ustr.c | 5 +---- modules/rostests/apitests/ntdll/RtlFirstFreeAce.c | 4 +--- modules/rostests/apitests/ntdll/RtlGenerate8dot3Name.c | 6 +----- modules/rostests/apitests/ntdll/RtlGetFullPathName_U.c | 5 +---- modules/rostests/apitests/ntdll/RtlGetFullPathName_Ustr.c | 5 +---- modules/rostests/apitests/ntdll/RtlGetFullPathName_UstrEx.c | 5 +---- .../ntdll/RtlGetLengthWithoutTrailingPathSeperators.c | 4 +--- modules/rostests/apitests/ntdll/RtlGetLongestNtPathLength.c | 5 +---- modules/rostests/apitests/ntdll/RtlHandle.c | 6 +----- modules/rostests/apitests/ntdll/RtlImageRvaToVa.c | 4 +--- modules/rostests/apitests/ntdll/RtlInitializeBitMap.c | 5 +---- modules/rostests/apitests/ntdll/RtlIsNameLegalDOS8Dot3.c | 5 +---- modules/rostests/apitests/ntdll/RtlMemoryStream.c | 5 ++--- .../rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c | 5 +---- modules/rostests/apitests/ntdll/RtlReAllocateHeap.c | 3 +-- .../rostests/apitests/ntdll/RtlUnicodeStringToAnsiString.c | 3 +-- .../ntdll/RtlUpcaseUnicodeStringToCountedOemString.c | 5 +---- modules/rostests/apitests/ntdll/RtlpEnsureBufferSize.c | 4 +--- modules/rostests/apitests/ntdll/StackOverflow.c | 6 +----- modules/rostests/apitests/ntdll/SystemInfo.c | 7 +------ modules/rostests/apitests/ntdll/Timer.c | 8 +------- modules/rostests/apitests/ntdll/precomp.h | 11 +++++++++++ 57 files changed, 71 insertions(+), 272 deletions(-)
diff --git a/modules/rostests/apitests/ntdll/CMakeLists.txt b/modules/rostests/apitests/ntdll/CMakeLists.txt index 23da6c5570..42fc3fbdb8 100644 --- a/modules/rostests/apitests/ntdll/CMakeLists.txt +++ b/modules/rostests/apitests/ntdll/CMakeLists.txt @@ -55,16 +55,17 @@ list(APPEND SOURCE StackOverflow.c SystemInfo.c Timer.c - testlist.c) + precomp.h)
if(ARCH STREQUAL "i386") add_asm_files(ntdll_apitest_asm i386/NtContinue.S) endif()
-add_executable(ntdll_apitest ${SOURCE} ${ntdll_apitest_asm}) +add_executable(ntdll_apitest ${SOURCE} ${ntdll_apitest_asm} testlist.c) target_link_libraries(ntdll_apitest wine uuid ${PSEH_LIB}) set_module_type(ntdll_apitest win32cui) add_importlibs(ntdll_apitest msvcrt advapi32 kernel32 ntdll) +add_pch(ntdll_apitest precomp.h SOURCE)
if(NOT MSVC) set_source_files_properties(RtlGetFullPathName_UstrEx.c PROPERTIES COMPILE_FLAGS "-Wno-format") diff --git a/modules/rostests/apitests/ntdll/LdrEnumResources.c b/modules/rostests/apitests/ntdll/LdrEnumResources.c index 84478c287e..7d63ecc90a 100644 --- a/modules/rostests/apitests/ntdll/LdrEnumResources.c +++ b/modules/rostests/apitests/ntdll/LdrEnumResources.c @@ -5,10 +5,7 @@ * PROGRAMMER: Timo Kreuzer */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/ldrfuncs.h> +#include "precomp.h"
typedef struct _TEST_RESOURCES { diff --git a/modules/rostests/apitests/ntdll/NtAcceptConnectPort.c b/modules/rostests/apitests/ntdll/NtAcceptConnectPort.c index 38dd4d46e6..359f06382f 100644 --- a/modules/rostests/apitests/ntdll/NtAcceptConnectPort.c +++ b/modules/rostests/apitests/ntdll/NtAcceptConnectPort.c @@ -5,12 +5,8 @@ * PROGRAMMERS: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> +#include "precomp.h"
-#define WIN32_NO_STATUS -#include <ndk/lpcfuncs.h> -#include <ndk/obfuncs.h> -#include <ndk/rtlfuncs.h> #include <process.h>
#define TEST_CONNECTION_INFO_SIGNATURE1 0xaabb0123 diff --git a/modules/rostests/apitests/ntdll/NtAllocateVirtualMemory.c b/modules/rostests/apitests/ntdll/NtAllocateVirtualMemory.c index 748fc2610b..d1a73cc9a5 100644 --- a/modules/rostests/apitests/ntdll/NtAllocateVirtualMemory.c +++ b/modules/rostests/apitests/ntdll/NtAllocateVirtualMemory.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> -#include <ndk/mmfuncs.h> +#include "precomp.h"
static PVOID Allocations[4096] = { NULL }; static ULONG CurrentAllocation = 0; diff --git a/modules/rostests/apitests/ntdll/NtApphelpCacheControl.c b/modules/rostests/apitests/ntdll/NtApphelpCacheControl.c index aee392844a..ea9cb2920c 100644 --- a/modules/rostests/apitests/ntdll/NtApphelpCacheControl.c +++ b/modules/rostests/apitests/ntdll/NtApphelpCacheControl.c @@ -5,12 +5,9 @@ * PROGRAMMER: Mark Jansen */
-#include <apitest.h> +#include "precomp.h"
-#include <windows.h> - -#define WIN32_NO_STATUS -#include <ntndk.h> +#include <winsvc.h>
enum ServiceCommands { diff --git a/modules/rostests/apitests/ntdll/NtContinue.c b/modules/rostests/apitests/ntdll/NtContinue.c index 1f619f1ffa..e2b254beda 100644 --- a/modules/rostests/apitests/ntdll/NtContinue.c +++ b/modules/rostests/apitests/ntdll/NtContinue.c @@ -5,8 +5,7 @@ * PROGRAMMER: */
-#include <apitest.h> -#include <ndk/kefuncs.h> +#include "precomp.h"
#include <setjmp.h> #include <time.h> diff --git a/modules/rostests/apitests/ntdll/NtCreateFile.c b/modules/rostests/apitests/ntdll/NtCreateFile.c index a0f256d424..147028dd4e 100644 --- a/modules/rostests/apitests/ntdll/NtCreateFile.c +++ b/modules/rostests/apitests/ntdll/NtCreateFile.c @@ -5,12 +5,7 @@ * PROGRAMMER: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org> */
-#define WIN32_NO_STATUS -#include <wine/test.h> -//#include <ndk/iotypes.h> -#include <ndk/iofuncs.h> -//#include <ndk/obtypes.h> -//#include <ndk/obfuncs.h> +#include "precomp.h"
START_TEST(NtCreateFile) { diff --git a/modules/rostests/apitests/ntdll/NtCreateKey.c b/modules/rostests/apitests/ntdll/NtCreateKey.c index a8ead335df..98fc236643 100644 --- a/modules/rostests/apitests/ntdll/NtCreateKey.c +++ b/modules/rostests/apitests/ntdll/NtCreateKey.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#include <winreg.h> -#include <ndk/cmfuncs.h> -#include <ndk/obfuncs.h> +#include "precomp.h"
static VOID diff --git a/modules/rostests/apitests/ntdll/NtCreateThread.c b/modules/rostests/apitests/ntdll/NtCreateThread.c index dcb1921572..b31fc1fb79 100644 --- a/modules/rostests/apitests/ntdll/NtCreateThread.c +++ b/modules/rostests/apitests/ntdll/NtCreateThread.c @@ -5,10 +5,7 @@ * PROGRAMMER: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org> */
-#define WIN32_NO_STATUS -#include <wine/test.h> -#include <ndk/pstypes.h> -#include <ndk/psfuncs.h> +#include "precomp.h"
START_TEST(NtCreateThread) { diff --git a/modules/rostests/apitests/ntdll/NtDeleteKey.c b/modules/rostests/apitests/ntdll/NtDeleteKey.c index fc49cf37fe..57774a7445 100644 --- a/modules/rostests/apitests/ntdll/NtDeleteKey.c +++ b/modules/rostests/apitests/ntdll/NtDeleteKey.c @@ -4,14 +4,7 @@ * PURPOSE: Test for NtDeleteKey */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <stdio.h> -#include <ndk/rtlfuncs.h> -#include <ndk/cmfuncs.h> -#include <ndk/obfuncs.h> -#include <ndk/setypes.h> +#include "precomp.h"
static NTSTATUS diff --git a/modules/rostests/apitests/ntdll/NtFreeVirtualMemory.c b/modules/rostests/apitests/ntdll/NtFreeVirtualMemory.c index d5cf23b349..7a0b4bc99c 100644 --- a/modules/rostests/apitests/ntdll/NtFreeVirtualMemory.c +++ b/modules/rostests/apitests/ntdll/NtFreeVirtualMemory.c @@ -1,9 +1,5 @@
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/pstypes.h> -#include <ndk/mmfuncs.h> +#include "precomp.h"
static void Test_NtFreeVirtualMemory(void) { diff --git a/modules/rostests/apitests/ntdll/NtLoadUnloadKey.c b/modules/rostests/apitests/ntdll/NtLoadUnloadKey.c index b8339af8e5..bc4f4b967a 100644 --- a/modules/rostests/apitests/ntdll/NtLoadUnloadKey.c +++ b/modules/rostests/apitests/ntdll/NtLoadUnloadKey.c @@ -5,18 +5,7 @@ * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr) */
-#include <stdio.h> - -#include <apitest.h> -#include <strsafe.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> -#include <ndk/cmfuncs.h> -#include <ndk/cmtypes.h> -#include <ndk/iofuncs.h> -#include <ndk/obfuncs.h> -#include <ndk/setypes.h> +#include "precomp.h"
/* See xdk/cmtypes.h */ #define REG_CREATED_NEW_KEY 1 diff --git a/modules/rostests/apitests/ntdll/NtMapViewOfSection.c b/modules/rostests/apitests/ntdll/NtMapViewOfSection.c index ad93b1fcb8..000c4a2738 100644 --- a/modules/rostests/apitests/ntdll/NtMapViewOfSection.c +++ b/modules/rostests/apitests/ntdll/NtMapViewOfSection.c @@ -6,10 +6,7 @@ * Thomas Faber */
-#include <apitest.h> -#include <strsafe.h> -#define WIN32_NO_STATUS -#include <ndk/ntndk.h> +#include "precomp.h"
void Test_PageFileSection(void) diff --git a/modules/rostests/apitests/ntdll/NtMutant.c b/modules/rostests/apitests/ntdll/NtMutant.c index a274bb44b7..d80f1e5804 100644 --- a/modules/rostests/apitests/ntdll/NtMutant.c +++ b/modules/rostests/apitests/ntdll/NtMutant.c @@ -1,8 +1,5 @@
-#include <apitest.h> - -#include <ndk/exfuncs.h> - +#include "precomp.h"
VOID Test_Release(VOID) diff --git a/modules/rostests/apitests/ntdll/NtOpenKey.c b/modules/rostests/apitests/ntdll/NtOpenKey.c index e5520fb07d..e30ee395c6 100644 --- a/modules/rostests/apitests/ntdll/NtOpenKey.c +++ b/modules/rostests/apitests/ntdll/NtOpenKey.c @@ -5,15 +5,10 @@ * PROGRAMMER: Mark Jansen (mark.jansen@reactos.org) */
-#include <apitest.h> - -#include <ntndk.h> - +#include "precomp.h"
#define TEST_STR L"\Registry\Machine\SOFTWARE"
- - START_TEST(NtOpenKey) { OBJECT_ATTRIBUTES Object; diff --git a/modules/rostests/apitests/ntdll/NtOpenProcessToken.c b/modules/rostests/apitests/ntdll/NtOpenProcessToken.c index 009f8903df..93acea876b 100644 --- a/modules/rostests/apitests/ntdll/NtOpenProcessToken.c +++ b/modules/rostests/apitests/ntdll/NtOpenProcessToken.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#include <ndk/obfuncs.h> -#include <ndk/psfuncs.h> -#include <ndk/sefuncs.h> +#include "precomp.h"
START_TEST(NtOpenProcessToken) { diff --git a/modules/rostests/apitests/ntdll/NtOpenThreadToken.c b/modules/rostests/apitests/ntdll/NtOpenThreadToken.c index 6ad67bb9a6..66769e3722 100644 --- a/modules/rostests/apitests/ntdll/NtOpenThreadToken.c +++ b/modules/rostests/apitests/ntdll/NtOpenThreadToken.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#include <ndk/obfuncs.h> -#include <ndk/psfuncs.h> -#include <ndk/rtlfuncs.h> +#include "precomp.h"
START_TEST(NtOpenThreadToken) { diff --git a/modules/rostests/apitests/ntdll/NtProtectVirtualMemory.c b/modules/rostests/apitests/ntdll/NtProtectVirtualMemory.c index 60ef9a01bc..0d30b0a875 100644 --- a/modules/rostests/apitests/ntdll/NtProtectVirtualMemory.c +++ b/modules/rostests/apitests/ntdll/NtProtectVirtualMemory.c @@ -6,11 +6,7 @@ * Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> -#include <ndk/mmfuncs.h> +#include "precomp.h"
static void diff --git a/modules/rostests/apitests/ntdll/NtQueryInformationProcess.c b/modules/rostests/apitests/ntdll/NtQueryInformationProcess.c index 66798a3ae6..ec6c56d170 100644 --- a/modules/rostests/apitests/ntdll/NtQueryInformationProcess.c +++ b/modules/rostests/apitests/ntdll/NtQueryInformationProcess.c @@ -5,12 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> -#include <ndk/kefuncs.h> -#include <ndk/psfuncs.h> +#include "precomp.h"
static LARGE_INTEGER TestStartTime;
diff --git a/modules/rostests/apitests/ntdll/NtQueryKey.c b/modules/rostests/apitests/ntdll/NtQueryKey.c index b254363d95..01ecd7bd76 100644 --- a/modules/rostests/apitests/ntdll/NtQueryKey.c +++ b/modules/rostests/apitests/ntdll/NtQueryKey.c @@ -6,13 +6,7 @@ * Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> -#include <ndk/cmfuncs.h> -#include <ndk/cmtypes.h> -#include <ndk/obfuncs.h> +#include "precomp.h"
static void diff --git a/modules/rostests/apitests/ntdll/NtQuerySystemEnvironmentValue.c b/modules/rostests/apitests/ntdll/NtQuerySystemEnvironmentValue.c index a554a3eb09..e01cba4105 100644 --- a/modules/rostests/apitests/ntdll/NtQuerySystemEnvironmentValue.c +++ b/modules/rostests/apitests/ntdll/NtQuerySystemEnvironmentValue.c @@ -5,12 +5,7 @@ * PROGRAMMER: Hermès BÉLUSCA - MAÏTO hermes.belusca@sfr.fr */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/setypes.h> -#include <ndk/rtlfuncs.h> -#include <ndk/exfuncs.h> +#include "precomp.h"
// Arbitrary-defined constants #define MIN_BUFFER_LENGTH 4L diff --git a/modules/rostests/apitests/ntdll/NtQueryVolumeInformationFile.c b/modules/rostests/apitests/ntdll/NtQueryVolumeInformationFile.c index de6edcadd6..b361d26681 100644 --- a/modules/rostests/apitests/ntdll/NtQueryVolumeInformationFile.c +++ b/modules/rostests/apitests/ntdll/NtQueryVolumeInformationFile.c @@ -5,10 +5,7 @@ * PROGRAMMER: Víctor Martínez Calvo vicmarcal@gmail.com */
-#define WIN32_NO_STATUS -#include <stdio.h> -#include <wine/test.h> -#include <ndk/ntndk.h> +#include "precomp.h"
static VOID diff --git a/modules/rostests/apitests/ntdll/NtReadFile.c b/modules/rostests/apitests/ntdll/NtReadFile.c index 0d6ceaea9e..6ec6b23b80 100644 --- a/modules/rostests/apitests/ntdll/NtReadFile.c +++ b/modules/rostests/apitests/ntdll/NtReadFile.c @@ -5,16 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <winreg.h> -#include <ndk/cmfuncs.h> -#include <ndk/iofuncs.h> -#include <ndk/mmfuncs.h> -#include <ndk/obfuncs.h> -#include <ndk/psfuncs.h> -#include <ndk/rtlfuncs.h> +#include "precomp.h"
static BOOL diff --git a/modules/rostests/apitests/ntdll/NtSaveKey.c b/modules/rostests/apitests/ntdll/NtSaveKey.c index cea4225142..273e2c14b9 100644 --- a/modules/rostests/apitests/ntdll/NtSaveKey.c +++ b/modules/rostests/apitests/ntdll/NtSaveKey.c @@ -5,13 +5,7 @@ * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org> */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> -#include <ndk/cmfuncs.h> -#include <ndk/obfuncs.h> -#include <ndk/setypes.h> +#include "precomp.h"
static NTSTATUS diff --git a/modules/rostests/apitests/ntdll/NtSetValueKey.c b/modules/rostests/apitests/ntdll/NtSetValueKey.c index 6da3c9ea54..7a77839a19 100644 --- a/modules/rostests/apitests/ntdll/NtSetValueKey.c +++ b/modules/rostests/apitests/ntdll/NtSetValueKey.c @@ -5,14 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#include <winreg.h> -#define WIN32_NO_STATUS -#include <ndk/cmfuncs.h> -#include <ndk/obfuncs.h> -#include <ndk/rtlfuncs.h> -#include <strsafe.h> +#include "precomp.h"
START_TEST(NtSetValueKey) { diff --git a/modules/rostests/apitests/ntdll/NtWriteFile.c b/modules/rostests/apitests/ntdll/NtWriteFile.c index c6f13c7b39..f9f1e70236 100644 --- a/modules/rostests/apitests/ntdll/NtWriteFile.c +++ b/modules/rostests/apitests/ntdll/NtWriteFile.c @@ -5,16 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <winreg.h> -#include <ndk/cmfuncs.h> -#include <ndk/iofuncs.h> -#include <ndk/mmfuncs.h> -#include <ndk/obfuncs.h> -#include <ndk/psfuncs.h> -#include <ndk/rtlfuncs.h> +#include "precomp.h"
static BOOL diff --git a/modules/rostests/apitests/ntdll/RtlAllocateHeap.c b/modules/rostests/apitests/ntdll/RtlAllocateHeap.c index 829983cd39..77e72f3370 100644 --- a/modules/rostests/apitests/ntdll/RtlAllocateHeap.c +++ b/modules/rostests/apitests/ntdll/RtlAllocateHeap.c @@ -5,10 +5,7 @@ * PROGRAMMER: Pierre Schweitzer pierre@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> +#include "precomp.h"
PVOID Buffers[0x100];
diff --git a/modules/rostests/apitests/ntdll/RtlBitmap.c b/modules/rostests/apitests/ntdll/RtlBitmap.c index 99ff3a9806..82a2eff3ac 100644 --- a/modules/rostests/apitests/ntdll/RtlBitmap.c +++ b/modules/rostests/apitests/ntdll/RtlBitmap.c @@ -1,9 +1,5 @@
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/mmfuncs.h> -#include <ndk/rtlfuncs.h> +#include "precomp.h"
static PVOID diff --git a/modules/rostests/apitests/ntdll/RtlCopyMappedMemory.c b/modules/rostests/apitests/ntdll/RtlCopyMappedMemory.c index 5a8f3be13e..d6c3149096 100644 --- a/modules/rostests/apitests/ntdll/RtlCopyMappedMemory.c +++ b/modules/rostests/apitests/ntdll/RtlCopyMappedMemory.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> +#include "precomp.h"
START_TEST(RtlCopyMappedMemory) { diff --git a/modules/rostests/apitests/ntdll/RtlDeleteAce.c b/modules/rostests/apitests/ntdll/RtlDeleteAce.c index fbf4313680..4c4aaf58cd 100644 --- a/modules/rostests/apitests/ntdll/RtlDeleteAce.c +++ b/modules/rostests/apitests/ntdll/RtlDeleteAce.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> -#include <ndk/mmfuncs.h> -#include <ndk/rtlfuncs.h> +#include "precomp.h"
static PVOID diff --git a/modules/rostests/apitests/ntdll/RtlDetermineDosPathNameType.c b/modules/rostests/apitests/ntdll/RtlDetermineDosPathNameType.c index 7edc7d12f9..3f99a38a9b 100644 --- a/modules/rostests/apitests/ntdll/RtlDetermineDosPathNameType.c +++ b/modules/rostests/apitests/ntdll/RtlDetermineDosPathNameType.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/mmfuncs.h> -#include <ndk/rtlfuncs.h> +#include "precomp.h"
/* ULONG diff --git a/modules/rostests/apitests/ntdll/RtlDoesFileExists.c b/modules/rostests/apitests/ntdll/RtlDoesFileExists.c index 155e8da870..d113ccbea2 100644 --- a/modules/rostests/apitests/ntdll/RtlDoesFileExists.c +++ b/modules/rostests/apitests/ntdll/RtlDoesFileExists.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <stdio.h> -#include <ndk/rtlfuncs.h> +#include "precomp.h"
#define ok_bool_file(value, expected, file) do { \ if (expected) \ diff --git a/modules/rostests/apitests/ntdll/RtlDosApplyFileIsolationRedirection_Ustr.c b/modules/rostests/apitests/ntdll/RtlDosApplyFileIsolationRedirection_Ustr.c index 9a77f04296..9b9f15955b 100644 --- a/modules/rostests/apitests/ntdll/RtlDosApplyFileIsolationRedirection_Ustr.c +++ b/modules/rostests/apitests/ntdll/RtlDosApplyFileIsolationRedirection_Ustr.c @@ -5,10 +5,7 @@ * PROGRAMMER: Giannis Adamopoulos */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> +#include "precomp.h"
#define ok_eq_hex(value, expected) ok((value) == (expected), #value " = 0x%lx, expected 0x%lx\n", value, expected) #define ok_eq_pointer(value, expected) ok((value) == (expected), #value " = %p, expected %p\n", value, expected) diff --git a/modules/rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c b/modules/rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c index 63dbcf2a37..3b0dcb24c1 100644 --- a/modules/rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c +++ b/modules/rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c @@ -39,10 +39,7 @@ # include <stdio.h> # include <stddef.h> #else /* Compile for ReactOS or wine */ -# include <apitest.h> -# define WIN32_NO_STATUS -# include <stdio.h> -# include <ndk/rtlfuncs.h> +# include "precomp.h" #endif
/* diff --git a/modules/rostests/apitests/ntdll/RtlDosSearchPath_U.c b/modules/rostests/apitests/ntdll/RtlDosSearchPath_U.c index d785ac1a35..7261877699 100644 --- a/modules/rostests/apitests/ntdll/RtlDosSearchPath_U.c +++ b/modules/rostests/apitests/ntdll/RtlDosSearchPath_U.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <stdio.h> -#include <ndk/rtlfuncs.h> +#include "precomp.h"
/* ULONG diff --git a/modules/rostests/apitests/ntdll/RtlDosSearchPath_Ustr.c b/modules/rostests/apitests/ntdll/RtlDosSearchPath_Ustr.c index df66d13db9..6a4de4ee8f 100644 --- a/modules/rostests/apitests/ntdll/RtlDosSearchPath_Ustr.c +++ b/modules/rostests/apitests/ntdll/RtlDosSearchPath_Ustr.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> +#include "precomp.h"
/* NTSTATUS diff --git a/modules/rostests/apitests/ntdll/RtlFirstFreeAce.c b/modules/rostests/apitests/ntdll/RtlFirstFreeAce.c index ebe12e06d0..0022945e41 100644 --- a/modules/rostests/apitests/ntdll/RtlFirstFreeAce.c +++ b/modules/rostests/apitests/ntdll/RtlFirstFreeAce.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> -#include <ndk/mmfuncs.h> -#include <ndk/rtlfuncs.h> +#include "precomp.h"
static PVOID diff --git a/modules/rostests/apitests/ntdll/RtlGenerate8dot3Name.c b/modules/rostests/apitests/ntdll/RtlGenerate8dot3Name.c index f13ebb75f9..0c1da43bc9 100644 --- a/modules/rostests/apitests/ntdll/RtlGenerate8dot3Name.c +++ b/modules/rostests/apitests/ntdll/RtlGenerate8dot3Name.c @@ -5,11 +5,7 @@ * PROGRAMMER: Pierre Schweitzer pierre@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> -#include <stdio.h> +#include "precomp.h"
NTSYSAPI VOID diff --git a/modules/rostests/apitests/ntdll/RtlGetFullPathName_U.c b/modules/rostests/apitests/ntdll/RtlGetFullPathName_U.c index f6f8e305a3..fd8c8d8403 100644 --- a/modules/rostests/apitests/ntdll/RtlGetFullPathName_U.c +++ b/modules/rostests/apitests/ntdll/RtlGetFullPathName_U.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> +#include "precomp.h"
/* ULONG diff --git a/modules/rostests/apitests/ntdll/RtlGetFullPathName_Ustr.c b/modules/rostests/apitests/ntdll/RtlGetFullPathName_Ustr.c index bb3f4351de..72b7423b88 100644 --- a/modules/rostests/apitests/ntdll/RtlGetFullPathName_Ustr.c +++ b/modules/rostests/apitests/ntdll/RtlGetFullPathName_Ustr.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> +#include "precomp.h"
/* ULONG diff --git a/modules/rostests/apitests/ntdll/RtlGetFullPathName_UstrEx.c b/modules/rostests/apitests/ntdll/RtlGetFullPathName_UstrEx.c index 41d0850838..b96d7485ac 100644 --- a/modules/rostests/apitests/ntdll/RtlGetFullPathName_UstrEx.c +++ b/modules/rostests/apitests/ntdll/RtlGetFullPathName_UstrEx.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> +#include "precomp.h"
/* NTSTATUS diff --git a/modules/rostests/apitests/ntdll/RtlGetLengthWithoutTrailingPathSeperators.c b/modules/rostests/apitests/ntdll/RtlGetLengthWithoutTrailingPathSeperators.c index f336c940f7..189ccdb90a 100644 --- a/modules/rostests/apitests/ntdll/RtlGetLengthWithoutTrailingPathSeperators.c +++ b/modules/rostests/apitests/ntdll/RtlGetLengthWithoutTrailingPathSeperators.c @@ -5,9 +5,7 @@ * PROGRAMMER: David Quintana gigaherz@gmail.com */
-#define WIN32_NO_STATUS -#include <apitest.h> -#include <ndk/rtlfuncs.h> +#include "precomp.h"
#define MakeTestEntry_Success(str, expect) \ { str, expect, STATUS_SUCCESS, __LINE__ } diff --git a/modules/rostests/apitests/ntdll/RtlGetLongestNtPathLength.c b/modules/rostests/apitests/ntdll/RtlGetLongestNtPathLength.c index d80f1c8fa4..3f6b81f7e1 100644 --- a/modules/rostests/apitests/ntdll/RtlGetLongestNtPathLength.c +++ b/modules/rostests/apitests/ntdll/RtlGetLongestNtPathLength.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> +#include "precomp.h"
/* ULONG diff --git a/modules/rostests/apitests/ntdll/RtlHandle.c b/modules/rostests/apitests/ntdll/RtlHandle.c index 74b4cef335..2e598fd9d9 100644 --- a/modules/rostests/apitests/ntdll/RtlHandle.c +++ b/modules/rostests/apitests/ntdll/RtlHandle.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> -#include <stdio.h> +#include "precomp.h"
typedef struct _TEST_HANDLE_ENTRY { diff --git a/modules/rostests/apitests/ntdll/RtlImageRvaToVa.c b/modules/rostests/apitests/ntdll/RtlImageRvaToVa.c index 2671f86b46..9d15c58e71 100644 --- a/modules/rostests/apitests/ntdll/RtlImageRvaToVa.c +++ b/modules/rostests/apitests/ntdll/RtlImageRvaToVa.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> -#include <ndk/mmfuncs.h> -#include <ndk/rtlfuncs.h> +#include "precomp.h"
static PVOID diff --git a/modules/rostests/apitests/ntdll/RtlInitializeBitMap.c b/modules/rostests/apitests/ntdll/RtlInitializeBitMap.c index 2e2ab49c19..6dc1e193a0 100644 --- a/modules/rostests/apitests/ntdll/RtlInitializeBitMap.c +++ b/modules/rostests/apitests/ntdll/RtlInitializeBitMap.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> +#include "precomp.h"
void Test_RtlInitializeBitmap() { diff --git a/modules/rostests/apitests/ntdll/RtlIsNameLegalDOS8Dot3.c b/modules/rostests/apitests/ntdll/RtlIsNameLegalDOS8Dot3.c index 40a52c32e5..ab7f51bb82 100644 --- a/modules/rostests/apitests/ntdll/RtlIsNameLegalDOS8Dot3.c +++ b/modules/rostests/apitests/ntdll/RtlIsNameLegalDOS8Dot3.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> +#include "precomp.h"
START_TEST(RtlIsNameLegalDOS8Dot3) { diff --git a/modules/rostests/apitests/ntdll/RtlMemoryStream.c b/modules/rostests/apitests/ntdll/RtlMemoryStream.c index 5df223052c..0cde75edb4 100644 --- a/modules/rostests/apitests/ntdll/RtlMemoryStream.c +++ b/modules/rostests/apitests/ntdll/RtlMemoryStream.c @@ -5,10 +5,9 @@ * PROGRAMMER: David Quintana gigaherz@gmail.com */
-#define COBJMACROS +#include "precomp.h"
-#include <apitest.h> -#include <ndk/rtlfuncs.h> +#define COBJMACROS #include <ole2.h> #include <wtypes.h>
diff --git a/modules/rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c b/modules/rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c index 7cf99f5ea3..311dfd8d53 100644 --- a/modules/rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c +++ b/modules/rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c @@ -5,10 +5,7 @@ * PROGRAMMER: Mark Jansen */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> +#include "precomp.h"
NTSTATUS (NTAPI *pRtlNtPathNameToDosPathName)(ULONG Flags, PRTL_UNICODE_STRING_BUFFER Path, PULONG Type, PULONG Unknown4);
diff --git a/modules/rostests/apitests/ntdll/RtlReAllocateHeap.c b/modules/rostests/apitests/ntdll/RtlReAllocateHeap.c index 23225cc0a4..311b01b791 100644 --- a/modules/rostests/apitests/ntdll/RtlReAllocateHeap.c +++ b/modules/rostests/apitests/ntdll/RtlReAllocateHeap.c @@ -5,8 +5,7 @@ * PROGRAMMERS: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> -#include <ndk/rtlfuncs.h> +#include "precomp.h"
static BOOLEAN diff --git a/modules/rostests/apitests/ntdll/RtlUnicodeStringToAnsiString.c b/modules/rostests/apitests/ntdll/RtlUnicodeStringToAnsiString.c index a517299568..3ed5dd6d40 100644 --- a/modules/rostests/apitests/ntdll/RtlUnicodeStringToAnsiString.c +++ b/modules/rostests/apitests/ntdll/RtlUnicodeStringToAnsiString.c @@ -5,8 +5,7 @@ * PROGRAMMERS: Pierre Schweitzer pierre@reactos.org */
-#include <apitest.h> -#include <ndk/rtlfuncs.h> +#include "precomp.h"
START_TEST(RtlUnicodeStringToAnsiString) { diff --git a/modules/rostests/apitests/ntdll/RtlUpcaseUnicodeStringToCountedOemString.c b/modules/rostests/apitests/ntdll/RtlUpcaseUnicodeStringToCountedOemString.c index 0febe21d8e..645449bae6 100644 --- a/modules/rostests/apitests/ntdll/RtlUpcaseUnicodeStringToCountedOemString.c +++ b/modules/rostests/apitests/ntdll/RtlUpcaseUnicodeStringToCountedOemString.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> +#include "precomp.h"
START_TEST(RtlUpcaseUnicodeStringToCountedOemString) { diff --git a/modules/rostests/apitests/ntdll/RtlpEnsureBufferSize.c b/modules/rostests/apitests/ntdll/RtlpEnsureBufferSize.c index 116ada95e4..79bf5ddfb9 100644 --- a/modules/rostests/apitests/ntdll/RtlpEnsureBufferSize.c +++ b/modules/rostests/apitests/ntdll/RtlpEnsureBufferSize.c @@ -5,10 +5,8 @@ * PROGRAMMER: Mark Jansen */
-#include <apitest.h> +#include "precomp.h"
-#define WIN32_NO_STATUS -#include <ndk/rtlfuncs.h> #include <tlhelp32.h>
diff --git a/modules/rostests/apitests/ntdll/StackOverflow.c b/modules/rostests/apitests/ntdll/StackOverflow.c index 9cd710753b..794e2fe0ff 100644 --- a/modules/rostests/apitests/ntdll/StackOverflow.c +++ b/modules/rostests/apitests/ntdll/StackOverflow.c @@ -5,11 +5,7 @@ * PROGRAMMER: Jérôme Gardou */
-#define WIN32_NO_STATUS -#include <apitest.h> -#include <stdio.h> -#include <ndk/rtlfuncs.h> -#include <ndk/mmfuncs.h> +#include "precomp.h"
static int iteration = 0; static PVOID StackAllocationBase; diff --git a/modules/rostests/apitests/ntdll/SystemInfo.c b/modules/rostests/apitests/ntdll/SystemInfo.c index 7ba1158f98..0d9613d115 100644 --- a/modules/rostests/apitests/ntdll/SystemInfo.c +++ b/modules/rostests/apitests/ntdll/SystemInfo.c @@ -6,12 +6,7 @@ * Thomas Faber thomas.faber@reactos.org */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/exfuncs.h> -#include <ndk/rtlfuncs.h> -#include <ndk/setypes.h> +#include "precomp.h"
#define ntv6(x) (LOBYTE(LOWORD(GetVersion())) >= 6 ? (x) : 0)
diff --git a/modules/rostests/apitests/ntdll/Timer.c b/modules/rostests/apitests/ntdll/Timer.c index 0152c44b8c..23fe697a76 100644 --- a/modules/rostests/apitests/ntdll/Timer.c +++ b/modules/rostests/apitests/ntdll/Timer.c @@ -5,13 +5,7 @@ * PROGRAMMER: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org> */
-#include <apitest.h> - -#define WIN32_NO_STATUS -#include <ndk/ketypes.h> -#include <ndk/kefuncs.h> - -#include <stdio.h> +#include "precomp.h"
START_TEST(TimerResolution) { diff --git a/modules/rostests/apitests/ntdll/precomp.h b/modules/rostests/apitests/ntdll/precomp.h new file mode 100644 index 0000000000..1552223a0b --- /dev/null +++ b/modules/rostests/apitests/ntdll/precomp.h @@ -0,0 +1,11 @@ +#ifndef _NTDLL_APITEST_PRECOMP_H_ +#define _NTDLL_APITEST_PRECOMP_H_ + +#include <stdio.h> +#include <apitest.h> +#define WIN32_NO_STATUS +#include <ndk/ntndk.h> +#include <winreg.h> +#include <strsafe.h> + +#endif /* _NTDLL_APITEST_PRECOMP_H_ */