ReactOS
0.4.15-dev-1618-g9c8ed68
ntoskrnl.h
Go to the documentation of this file.
1
/*
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)
7
*/
8
9
#ifndef _NTOSKRNL_PCH
10
#define _NTOSKRNL_PCH
11
12
/* INCLUDES ******************************************************************/
13
14
/* ARM Bringup Hack */
15
#ifdef _M_ARM
16
#define DbgPrint DbgPrintEarly
17
#endif
18
19
/* WDK hacks */
20
#ifdef _M_AMD64
21
#define IoAllocateAdapterChannel _IoAllocateAdapterChannel
22
#define KeGetCurrentThread _KeGetCurrentThread
23
#define RtlFillMemoryUlong _RtlFillMemoryUlong
24
#endif
25
26
/* Version Data */
27
#undef __MSVCRT__
28
#include <
psdk/ntverp.h
>
29
30
/* DDK/IFS/NDK Headers */
31
#define _REALLY_GET_CALLERS_CALLER
32
#include <excpt.h>
33
#include <ntdef.h>
34
#include <ntifs.h>
35
#include <
wdmguid.h
>
36
#include <
diskguid.h
>
37
#include <
arc/arc.h
>
38
#include <
mountmgr.h
>
39
#undef NTHALAPI
40
#define NTHALAPI __declspec(dllimport)
41
#include <
ndk/asm.h
>
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
>
61
#undef TEXT
62
#define TEXT(s) L##s
63
#include <
regstr.h
>
64
#include <
ntstrsafe.h
>
65
#include <
ntpoapi.h
>
66
#include <
ntintsafe.h
>
67
68
/* C Headers */
69
#include <stdlib.h>
70
#include <stdio.h>
71
#include <ctype.h>
72
#include <
malloc.h
>
73
#include <wchar.h>
74
75
/* SEH support with PSEH */
76
#include <
pseh/pseh2.h
>
77
78
/* SetupLDR Support */
79
#include <
arc/setupblk.h
>
80
81
/* KD Support */
82
#define NOEXTAPI
83
#include <
windbgkd.h
>
84
#include <wdbgexts.h>
85
#ifdef KDBG
86
#define KdDebuggerInitialize0 KdpDebuggerInitialize0
87
#define KdDebuggerInitialize1 KdpDebuggerInitialize1
88
#define KdSendPacket KdpSendPacket
89
#define KdReceivePacket KdpReceivePacket
90
#endif
91
#include <kddll.h>
92
#ifdef __ROS_ROSSYM__
93
#include <
reactos/rossym.h
>
94
#endif
95
96
/* PNP GUIDs */
97
#include <
umpnpmgr/sysguid.h
>
98
99
/* SRM header */
100
#include <
srmp.h
>
101
102
#define ExRaiseStatus RtlRaiseStatus
103
104
/* Also defined in fltkernel.h, but we don't want the entire header */
105
#ifndef Add2Ptr
106
#define Add2Ptr(P,I) ((PVOID)((PUCHAR)(P) + (I)))
107
#endif
108
#ifndef PtrOffset
109
#define PtrOffset(B,O) ((ULONG)((ULONG_PTR)(O) - (ULONG_PTR)(B)))
110
#endif
111
112
/* MAX_PATH is a Win32 concept, it doesn't belong in the kernel */
113
#define MAX_WIN32_PATH 260
114
C_ASSERT
(
MAX_WIN32_PATH
==
MAX_PATH
);
115
#undef MAX_PATH
116
117
/* Internal Headers */
118
#include "
config.h
"
119
#include "
internal/ntoskrnl.h
"
120
121
#include <
reactos/probe.h
>
122
#include "
internal/probe.h
"
123
#include "
resource.h
"
124
125
#endif
/* _NTOSKRNL_PCH */
ntintsafe.h
ntpoapi.h
regstr.h
iofuncs.h
lpcfuncs.h
probe.h
resource.h
asm.h
wdmguid.h
exfuncs.h
pseh2.h
diskguid.h
malloc.h
rtlfuncs.h
mountmgr.h
ntstrsafe.h
config.h
halfuncs.h
pofuncs.h
probe.h
C_ASSERT
C_ASSERT(FIELD_OFFSET(KUSER_SHARED_DATA, SystemCall)==0x300)
dbgkfuncs.h
obfuncs.h
MAX_PATH
#define MAX_PATH
Definition:
compat.h:34
psfuncs.h
muptypes.h
mmfuncs.h
kefuncs.h
kdfuncs.h
windbgkd.h
srmp.h
inbvfuncs.h
arc.h
MAX_WIN32_PATH
#define MAX_WIN32_PATH
Definition:
ntoskrnl.h:113
ntoskrnl.h
ldrfuncs.h
sysguid.h
vftypes.h
sefuncs.h
rossym.h
cctypes.h
setupblk.h
cmfuncs.h
ntverp.h
ntoskrnl
include
ntoskrnl.h
Generated on Thu Jan 14 2021 06:03:39 for ReactOS by
1.8.15