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