[CMAKE]
[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 #endif
21
22 /* Version Data */
23 #undef __MSVCRT__
24 #include <psdk/ntverp.h>
25
26 /* DDK/IFS/NDK Headers */
27 #define _REALLY_GET_CALLERS_CALLER
28 #include <excpt.h>
29 #include <ntdef.h>
30 #include <ntifs.h>
31 #include <wdmguid.h>
32 #include <arc/arc.h>
33 #undef NTHALAPI
34 #define NTHALAPI __declspec(dllimport)
35 #include <ntndk.h>
36 #undef TEXT
37 #define TEXT(s) L##s
38 #include <regstr.h>
39
40 /* FIXME: Temporary until Winldr is used */
41 #include <rosldr.h>
42
43 /* C Headers */
44 #include <stdlib.h>
45 #include <stdio.h>
46 #include <ctype.h>
47 #include <malloc.h>
48 #include <wchar.h>
49
50 /* SEH support with PSEH */
51 #include <pseh/pseh2.h>
52
53 /* ReactOS Headers */
54 #include <reactos/buildno.h>
55 #include <reactos/bugcodes.h>
56
57 /* SetupLDR Support */
58 #include <arc/setupblk.h>
59
60 /* KD Support */
61 #define NOEXTAPI
62 #include <windbgkd.h>
63 #include <wdbgexts.h>
64 #include <kddll.h>
65 #ifndef _WINKD_
66 #include <reactos/rossym.h>
67 #endif
68
69 /* PNP GUIDs */
70 #include <umpnpmgr/sysguid.h>
71
72 /* Internal Headers */
73 #include "internal/ntoskrnl.h"
74 #include "config.h"
75
76 #include <reactos/probe.h>
77 #include "internal/probe.h"
78 #include "resource.h"
79
80 //
81 // Define the internal versions of external and public global data
82 //
83 #define IoFileObjectType _IoFileObjectType
84 #define PsThreadType _PsThreadType
85 #define PsProcessType _PsProcessType
86 #define ExEventObjectType _ExEventObjectType
87 #define ExSemaphoreObjectType _ExSemaphoreObjectType
88 #define KdDebuggerEnabled _KdDebuggerEnabled
89 #define KdDebuggerNotPresent _KdDebuggerNotPresent
90 #define NlsOemLeadByteInfo _NlsOemLeadByteInfo
91 extern PUSHORT _NlsOemLeadByteInfo;
92 #define FsRtlLegalAnsiCharacterArray _FsRtlLegalAnsiCharacterArray
93 #undef LEGAL_ANSI_CHARACTER_ARRAY
94 #undef NLS_MB_CODE_PAGE_TAG
95 #undef NLS_OEM_LEAD_BYTE_INFO
96 #define LEGAL_ANSI_CHARACTER_ARRAY FsRtlLegalAnsiCharacterArray
97 #define NLS_MB_CODE_PAGE_TAG NlsMbOemCodePageTag
98 #define NLS_OEM_LEAD_BYTE_INFO _NlsOemLeadByteInfo
99 #undef KD_DEBUGGER_ENABLED
100 #undef KD_DEBUGGER_NOT_PRESENT
101 #define KD_DEBUGGER_ENABLED KdDebuggerEnabled
102 #define KD_DEBUGGER_NOT_PRESENT KdDebuggerNotPresent
103 #define HalDispatchTable _HalDispatchTable
104 #undef HALDISPATCH
105 #define HALDISPATCH (&HalDispatchTable)
106 #define ExRaiseStatus RtlRaiseStatus