[NTDLL_APITEST] Add a PCH.
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 2 Dec 2017 20:05:46 +0000 (21:05 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 2 Dec 2017 21:15:04 +0000 (22:15 +0100)
57 files changed:
modules/rostests/apitests/ntdll/CMakeLists.txt
modules/rostests/apitests/ntdll/LdrEnumResources.c
modules/rostests/apitests/ntdll/NtAcceptConnectPort.c
modules/rostests/apitests/ntdll/NtAllocateVirtualMemory.c
modules/rostests/apitests/ntdll/NtApphelpCacheControl.c
modules/rostests/apitests/ntdll/NtContinue.c
modules/rostests/apitests/ntdll/NtCreateFile.c
modules/rostests/apitests/ntdll/NtCreateKey.c
modules/rostests/apitests/ntdll/NtCreateThread.c
modules/rostests/apitests/ntdll/NtDeleteKey.c
modules/rostests/apitests/ntdll/NtFreeVirtualMemory.c
modules/rostests/apitests/ntdll/NtLoadUnloadKey.c
modules/rostests/apitests/ntdll/NtMapViewOfSection.c
modules/rostests/apitests/ntdll/NtMutant.c
modules/rostests/apitests/ntdll/NtOpenKey.c
modules/rostests/apitests/ntdll/NtOpenProcessToken.c
modules/rostests/apitests/ntdll/NtOpenThreadToken.c
modules/rostests/apitests/ntdll/NtProtectVirtualMemory.c
modules/rostests/apitests/ntdll/NtQueryInformationProcess.c
modules/rostests/apitests/ntdll/NtQueryKey.c
modules/rostests/apitests/ntdll/NtQuerySystemEnvironmentValue.c
modules/rostests/apitests/ntdll/NtQueryVolumeInformationFile.c
modules/rostests/apitests/ntdll/NtReadFile.c
modules/rostests/apitests/ntdll/NtSaveKey.c
modules/rostests/apitests/ntdll/NtSetValueKey.c
modules/rostests/apitests/ntdll/NtWriteFile.c
modules/rostests/apitests/ntdll/RtlAllocateHeap.c
modules/rostests/apitests/ntdll/RtlBitmap.c
modules/rostests/apitests/ntdll/RtlCopyMappedMemory.c
modules/rostests/apitests/ntdll/RtlDeleteAce.c
modules/rostests/apitests/ntdll/RtlDetermineDosPathNameType.c
modules/rostests/apitests/ntdll/RtlDoesFileExists.c
modules/rostests/apitests/ntdll/RtlDosApplyFileIsolationRedirection_Ustr.c
modules/rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c
modules/rostests/apitests/ntdll/RtlDosSearchPath_U.c
modules/rostests/apitests/ntdll/RtlDosSearchPath_Ustr.c
modules/rostests/apitests/ntdll/RtlFirstFreeAce.c
modules/rostests/apitests/ntdll/RtlGenerate8dot3Name.c
modules/rostests/apitests/ntdll/RtlGetFullPathName_U.c
modules/rostests/apitests/ntdll/RtlGetFullPathName_Ustr.c
modules/rostests/apitests/ntdll/RtlGetFullPathName_UstrEx.c
modules/rostests/apitests/ntdll/RtlGetLengthWithoutTrailingPathSeperators.c
modules/rostests/apitests/ntdll/RtlGetLongestNtPathLength.c
modules/rostests/apitests/ntdll/RtlHandle.c
modules/rostests/apitests/ntdll/RtlImageRvaToVa.c
modules/rostests/apitests/ntdll/RtlInitializeBitMap.c
modules/rostests/apitests/ntdll/RtlIsNameLegalDOS8Dot3.c
modules/rostests/apitests/ntdll/RtlMemoryStream.c
modules/rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c
modules/rostests/apitests/ntdll/RtlReAllocateHeap.c
modules/rostests/apitests/ntdll/RtlUnicodeStringToAnsiString.c
modules/rostests/apitests/ntdll/RtlUpcaseUnicodeStringToCountedOemString.c
modules/rostests/apitests/ntdll/RtlpEnsureBufferSize.c
modules/rostests/apitests/ntdll/StackOverflow.c
modules/rostests/apitests/ntdll/SystemInfo.c
modules/rostests/apitests/ntdll/Timer.c
modules/rostests/apitests/ntdll/precomp.h [new file with mode: 0644]

index 23da6c5..42fc3fb 100644 (file)
@@ -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")
index 84478c2..7d63ecc 100644 (file)
@@ -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
 {
index 38dd4d4..359f063 100644 (file)
@@ -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
index 748fc26..d1a73cc 100644 (file)
@@ -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;
index aee3928..ea9cb29 100644 (file)
@@ -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
 {
index 1f619f1..e2b254b 100644 (file)
@@ -5,8 +5,7 @@
  * PROGRAMMER:
  */
 
-#include <apitest.h>
-#include <ndk/kefuncs.h>
+#include "precomp.h"
 
 #include <setjmp.h>
 #include <time.h>
index a0f256d..147028d 100644 (file)
@@ -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)
 {
index a8ead33..98fc236 100644 (file)
@@ -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
index dcb1921..b31fc1f 100644 (file)
@@ -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)
 {
index fc49cf3..57774a7 100644 (file)
@@ -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
index d5cf23b..7a0b4bc 100644 (file)
@@ -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)
 {
index b8339af..bc4f4b9 100644 (file)
@@ -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
index ad93b1f..000c4a2 100644 (file)
@@ -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)
index a274bb4..d80f1e5 100644 (file)
@@ -1,8 +1,5 @@
 
-#include <apitest.h>
-
-#include <ndk/exfuncs.h>
-
+#include "precomp.h"
 
 VOID
 Test_Release(VOID)
index e5520fb..e30ee39 100644 (file)
@@ -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;
index 009f890..93acea8 100644 (file)
@@ -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)
 {
index 6ad67bb..66769e3 100644 (file)
@@ -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)
 {
index 60ef9a0..0d30b0a 100644 (file)
@@ -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
index 66798a3..ec6c56d 100644 (file)
@@ -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;
 
index b254363..01ecd7b 100644 (file)
@@ -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
index a554a3e..e01cba4 100644 (file)
@@ -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
index de6edca..b361d26 100644 (file)
@@ -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
index 0d6ceae..6ec6b23 100644 (file)
@@ -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
index cea4225..273e2c1 100644 (file)
@@ -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
index 6da3c9e..7a77839 100644 (file)
@@ -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)
 {
index c6f13c7..f9f1e70 100644 (file)
@@ -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
index 829983c..77e72f3 100644 (file)
@@ -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];
 
index 99ff3a9..82a2eff 100644 (file)
@@ -1,9 +1,5 @@
 
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/mmfuncs.h>
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
 
 static
 PVOID
index 5a8f3be..d6c3149 100644 (file)
@@ -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)
 {
index fbf4313..4c4aaf5 100644 (file)
@@ -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
index 7edc7d1..3f99a38 100644 (file)
@@ -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
index 155e8da..d113ccb 100644 (file)
@@ -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)                                                           \
index 9a77f04..9b9f159 100644 (file)
@@ -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)
index 63dbcf2..3b0dcb2 100644 (file)
 # 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
 
 /*
index d785ac1..7261877 100644 (file)
@@ -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
index df66d13..6a4de4e 100644 (file)
@@ -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
index ebe12e0..0022945 100644 (file)
@@ -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
index f13ebb7..0c1da43 100644 (file)
@@ -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
index f6f8e30..fd8c8d8 100644 (file)
@@ -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
index bb3f435..72b7423 100644 (file)
@@ -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
index 41d0850..b96d748 100644 (file)
@@ -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
index f336c94..189ccdb 100644 (file)
@@ -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__ }
index d80f1c8..3f6b81f 100644 (file)
@@ -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
index 74b4cef..2e598fd 100644 (file)
@@ -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
 {
index 2671f86..9d15c58 100644 (file)
@@ -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
index 2e2ab49..6dc1e19 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
 
 void Test_RtlInitializeBitmap()
 {
index 40a52c3..ab7f51b 100644 (file)
@@ -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)
 {
index 5df2230..0cde75e 100644 (file)
@@ -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>
 
index 7cf99f5..311dfd8 100644 (file)
@@ -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);
 
index 23225cc..311b01b 100644 (file)
@@ -5,8 +5,7 @@
  * PROGRAMMERS:     Thomas Faber <thomas.faber@reactos.org>
  */
 
-#include <apitest.h>
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
 
 static
 BOOLEAN
index a517299..3ed5dd6 100644 (file)
@@ -5,8 +5,7 @@
  * PROGRAMMERS:     Pierre Schweitzer <pierre@reactos.org>
  */
 
-#include <apitest.h>
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
 
 START_TEST(RtlUnicodeStringToAnsiString)
 {
index 0febe21..645449b 100644 (file)
@@ -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)
 {
index 116ada9..79bf5dd 100644 (file)
@@ -5,10 +5,8 @@
  * PROGRAMMER:      Mark Jansen
  */
 
-#include <apitest.h>
+#include "precomp.h"
 
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
 #include <tlhelp32.h>
 
 
index 9cd7107..794e2fe 100644 (file)
@@ -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;
index 7ba1158..0d9613d 100644 (file)
@@ -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)
 
index 0152c44..23fe697 100644 (file)
@@ -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 (file)
index 0000000..1552223
--- /dev/null
@@ -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_ */