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