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