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