* Sync to trunk HEAD (r53473).
[reactos.git] / ntoskrnl / include / ntoskrnl.h
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 /* INCLUDES ******************************************************************/
10
11 /* ARM Bringup Hack */
12 #ifdef _M_ARM
13 #define DbgPrint DbgPrintEarly
14 #endif
15
16 /* WDK hacks */
17 #ifdef _M_AMD64
18 #define IoAllocateAdapterChannel _IoAllocateAdapterChannel
19 #define KeGetCurrentThread _KeGetCurrentThread
20 #define RtlFillMemoryUlong _RtlFillMemoryUlong
21 #endif
22
23 /* Version Data */
24 #undef __MSVCRT__
25 #include <psdk/ntverp.h>
26
27 /* DDK/IFS/NDK Headers */
28 #define _REALLY_GET_CALLERS_CALLER
29 #include <excpt.h>
30 #include <ntdef.h>
31 #include <ntifs.h>
32 #include <wdmguid.h>
33 #include <arc/arc.h>
34 #undef NTHALAPI
35 #define NTHALAPI __declspec(dllimport)
36 #include <ndk/asm.h>
37 #include <ndk/cctypes.h>
38 #include <ndk/cmfuncs.h>
39 #include <ndk/dbgkfuncs.h>
40 #include <ndk/exfuncs.h>
41 #include <ndk/halfuncs.h>
42 #include <ndk/inbvfuncs.h>
43 #include <ndk/iofuncs.h>
44 #include <ndk/kdfuncs.h>
45 #include <ndk/kefuncs.h>
46 #include <ndk/ldrfuncs.h>
47 #include <ndk/lpcfuncs.h>
48 #include <ndk/mmfuncs.h>
49 #include <ndk/obfuncs.h>
50 #include <ndk/pofuncs.h>
51 #include <ndk/psfuncs.h>
52 #include <ndk/rtlfuncs.h>
53 #include <ndk/sefuncs.h>
54 #include <ndk/vftypes.h>
55 #undef TEXT
56 #define TEXT(s) L##s
57 #include <regstr.h>
58 #include <ntstrsafe.h>
59 #include <ntpoapi.h>
60
61 /* C Headers */
62 #include <stdlib.h>
63 #include <stdio.h>
64 #include <ctype.h>
65 #include <malloc.h>
66 #include <wchar.h>
67
68 /* SEH support with PSEH */
69 #include <pseh/pseh2.h>
70
71 /* ReactOS Headers */
72 #include <reactos/bugcodes.h>
73
74 /* SetupLDR Support */
75 #include <arc/setupblk.h>
76
77 /* KD Support */
78 #define NOEXTAPI
79 #include <windbgkd.h>
80 #include <wdbgexts.h>
81 #include <kddll.h>
82 #ifndef _WINKD_
83 #include <reactos/rossym.h>
84 #endif
85
86 /* PNP GUIDs */
87 #include <umpnpmgr/sysguid.h>
88
89 /* Internal Headers */
90 #include "internal/ntoskrnl.h"
91 #include "config.h"
92
93 #include <reactos/probe.h>
94 #include "internal/probe.h"
95 #include "resource.h"
96
97 //
98 // Define the internal versions of external and public global data
99 //
100 #define IoFileObjectType _IoFileObjectType
101 #define PsThreadType _PsThreadType
102 #define PsProcessType _PsProcessType
103 #define ExEventObjectType _ExEventObjectType
104 #define ExSemaphoreObjectType _ExSemaphoreObjectType
105 #define KdDebuggerEnabled _KdDebuggerEnabled
106 #define KdDebuggerNotPresent _KdDebuggerNotPresent
107 #define NlsOemLeadByteInfo _NlsOemLeadByteInfo
108 extern PUSHORT _NlsOemLeadByteInfo;
109 #define FsRtlLegalAnsiCharacterArray _FsRtlLegalAnsiCharacterArray
110 #undef LEGAL_ANSI_CHARACTER_ARRAY
111 #undef NLS_MB_CODE_PAGE_TAG
112 #undef NLS_OEM_LEAD_BYTE_INFO
113 #define LEGAL_ANSI_CHARACTER_ARRAY FsRtlLegalAnsiCharacterArray
114 #define NLS_MB_CODE_PAGE_TAG NlsMbOemCodePageTag
115 #define NLS_OEM_LEAD_BYTE_INFO _NlsOemLeadByteInfo
116 #undef KD_DEBUGGER_ENABLED
117 #undef KD_DEBUGGER_NOT_PRESENT
118 #define KD_DEBUGGER_ENABLED KdDebuggerEnabled
119 #define KD_DEBUGGER_NOT_PRESENT KdDebuggerNotPresent
120 #define HalDispatchTable _HalDispatchTable
121 #undef HALDISPATCH
122 #define HALDISPATCH (&HalDispatchTable)
123 #define ExRaiseStatus RtlRaiseStatus