/* * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS Kernel * FILE: ntoskrnl/include/ntoskrnl.h * PURPOSE: Main Kernel Header * PROGRAMMER: Alex Ionescu (alex@relsoft.net) */ #ifndef _NTOSKRNL_PCH #define _NTOSKRNL_PCH /* INCLUDES ******************************************************************/ /* ARM Bringup Hack */ #ifdef _M_ARM #define DbgPrint DbgPrintEarly #endif /* WDK hacks */ #ifdef _M_AMD64 #define IoAllocateAdapterChannel _IoAllocateAdapterChannel #define KeGetCurrentThread _KeGetCurrentThread #define RtlFillMemoryUlong _RtlFillMemoryUlong #endif /* Version Data */ #undef __MSVCRT__ #include /* DDK/IFS/NDK Headers */ #define _REALLY_GET_CALLERS_CALLER #include #include #include #include #include #include #undef NTHALAPI #define NTHALAPI __declspec(dllimport) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #undef TEXT #define TEXT(s) L##s #include #include #include #include /* C Headers */ #include #include #include #include #include /* SEH support with PSEH */ #include /* SetupLDR Support */ #include /* KD Support */ #define NOEXTAPI #include #include #include #ifndef _WINKD_ #include #endif /* PNP GUIDs */ #include /* SRM header */ #include #define ExRaiseStatus RtlRaiseStatus /* Also defined in fltkernel.h, but we don't want the entire header */ #ifndef Add2Ptr #define Add2Ptr(P,I) ((PVOID)((PUCHAR)(P) + (I))) #endif #ifndef PtrOffset #define PtrOffset(B,O) ((ULONG)((ULONG_PTR)(O) - (ULONG_PTR)(B))) #endif // // Switch for enabling global page support // //#define _GLOBAL_PAGES_ARE_AWESOME_ /* Internal Headers */ #include "internal/ntoskrnl.h" #include "config.h" #include #include "internal/probe.h" #include "resource.h" #endif /* _NTOSKRNL_PCH */