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")
* PROGRAMMER: Timo Kreuzer
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/ldrfuncs.h>
+#include "precomp.h"
typedef struct _TEST_RESOURCES
{
* 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
* 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;
* PROGRAMMER: Mark Jansen
*/
-#include <apitest.h>
+#include "precomp.h"
-#include <windows.h>
-
-#define WIN32_NO_STATUS
-#include <ntndk.h>
+#include <winsvc.h>
enum ServiceCommands
{
* PROGRAMMER:
*/
-#include <apitest.h>
-#include <ndk/kefuncs.h>
+#include "precomp.h"
#include <setjmp.h>
#include <time.h>
* 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)
{
* 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
* 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)
{
* 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
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/pstypes.h>
-#include <ndk/mmfuncs.h>
+#include "precomp.h"
static void Test_NtFreeVirtualMemory(void)
{
* 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
* Thomas Faber
*/
-#include <apitest.h>
-#include <strsafe.h>
-#define WIN32_NO_STATUS
-#include <ndk/ntndk.h>
+#include "precomp.h"
void
Test_PageFileSection(void)
-#include <apitest.h>
-
-#include <ndk/exfuncs.h>
-
+#include "precomp.h"
VOID
Test_Release(VOID)
* 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;
* 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)
{
* 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)
{
* 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
* 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;
* 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
* 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
* 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
* 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
* 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
* 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)
{
* 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
* PROGRAMMER: Pierre Schweitzer <pierre@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
PVOID Buffers[0x100];
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/mmfuncs.h>
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
static
PVOID
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
START_TEST(RtlCopyMappedMemory)
{
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-#include <ndk/mmfuncs.h>
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
static
PVOID
* 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
* 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) \
* 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)
# 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
/*
* 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
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
/*
NTSTATUS
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-#include <ndk/mmfuncs.h>
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
static
PVOID
* 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
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
/*
ULONG
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
/*
ULONG
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
/*
NTSTATUS
* 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__ }
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
/*
ULONG
* 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
{
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-#include <ndk/mmfuncs.h>
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
static
PVOID
* PROGRAMMERS: Timo Kreuzer
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
void Test_RtlInitializeBitmap()
{
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
START_TEST(RtlIsNameLegalDOS8Dot3)
{
* 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>
* 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);
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
static
BOOLEAN
* PROGRAMMERS: Pierre Schweitzer <pierre@reactos.org>
*/
-#include <apitest.h>
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
START_TEST(RtlUnicodeStringToAnsiString)
{
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
+#include "precomp.h"
START_TEST(RtlUpcaseUnicodeStringToCountedOemString)
{
* PROGRAMMER: Mark Jansen
*/
-#include <apitest.h>
+#include "precomp.h"
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
#include <tlhelp32.h>
* 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;
* 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)
* 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)
{
--- /dev/null
+#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_ */