[USB-BRINGUP-TRUNK]
[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 <ndk/asm.h>
37 #include <ndk/cctypes.h>
38 #include <ndk/cmfuncs.h>
39 #include <ndk/dbgkfuncs.h>
40 #include <ndk/exfuncs.h>
41 #include <ndk/halfuncs.h>
42 #include <ndk/inbvfuncs.h>
43 #include <ndk/iofuncs.h>
44 #include <ndk/kdfuncs.h>
45 #include <ndk/kefuncs.h>
46 #include <ndk/ldrfuncs.h>
47 #include <ndk/lpcfuncs.h>
48 #include <ndk/mmfuncs.h>
49 #include <ndk/obfuncs.h>
50 #include <ndk/pofuncs.h>
51 #include <ndk/psfuncs.h>
52 #include <ndk/rtlfuncs.h>
53 #include <ndk/sefuncs.h>
54 #include <ndk/vftypes.h>
55 #undef TEXT
56 #define TEXT(s) L##s
57 #include <regstr.h>
58 #include <ntstrsafe.h>
59 #include <ntpoapi.h>
60
61 /* C Headers */
62 #include <stdlib.h>
63 #include <stdio.h>
64 #include <ctype.h>
65 #include <malloc.h>
66 #include <wchar.h>
67
68 /* SEH support with PSEH */
69 #include <pseh/pseh2.h>
70
71 /* ReactOS Headers */
72 #include <reactos/bugcodes.h>
73
74 /* SetupLDR Support */
75 #include <arc/setupblk.h>
76
77 /* KD Support */
78 #define NOEXTAPI
79 #include <windbgkd.h>
80 #include <wdbgexts.h>
81 #include <kddll.h>
82 #ifndef _WINKD_
83 #include <reactos/rossym.h>
84 #endif
85
86 /* PNP GUIDs */
87 #include <umpnpmgr/sysguid.h>
88
89 //
90 // Define the internal versions of external and public global data
91 //
92 #define IoFileObjectType _IoFileObjectType
93 #define PsThreadType _PsThreadType
94 #define PsProcessType _PsProcessType
95 #define ExEventObjectType _ExEventObjectType
96 #define ExSemaphoreObjectType _ExSemaphoreObjectType
97 #define KdDebuggerEnabled _KdDebuggerEnabled
98 #define KdDebuggerNotPresent _KdDebuggerNotPresent
99 #define NlsOemLeadByteInfo _NlsOemLeadByteInfo
100 extern PUSHORT _NlsOemLeadByteInfo;
101 #define KeNumberProcessors _KeNumberProcessors
102 extern UCHAR _KeNumberProcessors;
103 #define FsRtlLegalAnsiCharacterArray _FsRtlLegalAnsiCharacterArray
104 #undef LEGAL_ANSI_CHARACTER_ARRAY
105 #undef NLS_MB_CODE_PAGE_TAG
106 #undef NLS_OEM_LEAD_BYTE_INFO
107 #define LEGAL_ANSI_CHARACTER_ARRAY FsRtlLegalAnsiCharacterArray
108 #define NLS_MB_CODE_PAGE_TAG NlsMbOemCodePageTag
109 #define NLS_OEM_LEAD_BYTE_INFO _NlsOemLeadByteInfo
110 #undef KD_DEBUGGER_ENABLED
111 #undef KD_DEBUGGER_NOT_PRESENT
112 #define KD_DEBUGGER_ENABLED KdDebuggerEnabled
113 #define KD_DEBUGGER_NOT_PRESENT KdDebuggerNotPresent
114 #define HalDispatchTable _HalDispatchTable
115 #undef HALDISPATCH
116 #define HALDISPATCH (&HalDispatchTable)
117 #define ExRaiseStatus RtlRaiseStatus
118
119 /* Internal Headers */
120 #include "internal/ntoskrnl.h"
121 #include "config.h"
122
123 #include <reactos/probe.h>
124 #include "internal/probe.h"
125 #include "resource.h"
126