2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Kernel
4 * FILE: ntoskrnl/include/ntoskrnl.h
5 * PURPOSE: Main Kernel Header
6 * PROGRAMMER: Alex Ionescu (alex@relsoft.net)
12 /* INCLUDES ******************************************************************/
14 /* ARM Bringup Hack */
16 #define DbgPrint DbgPrintEarly
21 #define IoAllocateAdapterChannel _IoAllocateAdapterChannel
22 #define KeGetCurrentThread _KeGetCurrentThread
23 #define RtlFillMemoryUlong _RtlFillMemoryUlong
28 #include <psdk/ntverp.h>
30 /* DDK/IFS/NDK Headers */
31 #define _REALLY_GET_CALLERS_CALLER
40 #define NTHALAPI __declspec(dllimport)
42 #include <ndk/cctypes.h>
43 #include <ndk/cmfuncs.h>
44 #include <ndk/dbgkfuncs.h>
45 #include <ndk/exfuncs.h>
46 #include <ndk/halfuncs.h>
47 #include <ndk/inbvfuncs.h>
48 #include <ndk/iofuncs.h>
49 #include <ndk/kdfuncs.h>
50 #include <ndk/kefuncs.h>
51 #include <ndk/ldrfuncs.h>
52 #include <ndk/lpcfuncs.h>
53 #include <ndk/mmfuncs.h>
54 #include <ndk/muptypes.h>
55 #include <ndk/obfuncs.h>
56 #include <ndk/pofuncs.h>
57 #include <ndk/psfuncs.h>
58 #include <ndk/rtlfuncs.h>
59 #include <ndk/sefuncs.h>
60 #include <ndk/vftypes.h>
68 #include <ntstrsafe.h>
70 #define ENABLE_INTSAFE_SIGNED_FUNCTIONS
71 #include <ntintsafe.h>
72 #undef ENABLE_INTSAFE_SIGNED_FUNCTIONS
81 /* SEH support with PSEH */
82 #include <pseh/pseh2.h>
84 /* SetupLDR Support */
85 #include <arc/setupblk.h>
93 /* Define new names for these exports also present in KDBG */
94 #define KdD0Transition KdbgD0Transition
95 #define KdD3Transition KdbgD3Transition
96 #define KdSave KdbgSave
97 #define KdRestore KdbgRestore
98 #define KdSendPacket KdbgSendPacket
99 #define KdReceivePacket KdbgReceivePacket
100 /* And reload the definitions with these new names */
104 #ifdef __ROS_ROSSYM__
105 #include <reactos/rossym.h>
109 #include <umpnpmgr/sysguid.h>
114 #define ExRaiseStatus RtlRaiseStatus
116 /* Also defined in fltkernel.h, but we don't want the entire header */
118 #define Add2Ptr(P,I) ((PVOID)((PUCHAR)(P) + (I)))
121 #define PtrOffset(B,O) ((ULONG)((ULONG_PTR)(O) - (ULONG_PTR)(B)))
124 /* MAX_PATH is a Win32 concept, it doesn't belong in the kernel */
125 #define MAX_WIN32_PATH 260
126 C_ASSERT(MAX_WIN32_PATH
== MAX_PATH
);
129 /* Internal Headers */
131 #include "internal/ntoskrnl.h"
133 #include <reactos/probe.h>
134 #include "internal/probe.h"
135 #include "resource.h"
137 /* Internal Ps alignment probing header */
138 #include "internal/ps_i.h"
141 # pragma section("INITDATA", read,write,discard)
144 #endif /* _NTOSKRNL_PCH */