- Fix KeAttackProcess, KeStackAttachProcess, KeUnstackDetachProcess and KeDetachProce...
[reactos.git] / reactos / include / ndk / kdfuncs.h
1 /*++ NDK Version: 0095
2
3 Copyright (c) Alex Ionescu. All rights reserved.
4
5 Header Name:
6
7 kdfuncs.h
8
9 Abstract:
10
11 Function definitions for the Kernel Debugger.
12
13 Author:
14
15 Alex Ionescu (alex.ionescu@reactos.com) 06-Oct-2004
16
17 --*/
18
19 #ifndef _KDFUNCS_H
20 #define _KDFUNCS_H
21
22 //
23 // Dependencies
24 //
25 #include <umtypes.h>
26 #include <kdtypes.h>
27
28 #ifndef NTOS_MODE_USER
29
30 //
31 // Port Functions
32 //
33 UCHAR
34 NTAPI
35 KdPollBreakIn(VOID);
36
37 BOOLEAN
38 NTAPI
39 KdPortInitialize(
40 PKD_PORT_INFORMATION PortInformation,
41 ULONG Unknown1,
42 ULONG Unknown2
43 );
44
45 BOOLEAN
46 NTAPI
47 KdPortInitializeEx(
48 PKD_PORT_INFORMATION PortInformation,
49 ULONG Unknown1,
50 ULONG Unknown2
51 );
52
53 BOOLEAN
54 NTAPI
55 KdPortGetByte(
56 PUCHAR ByteRecieved
57 );
58
59 BOOLEAN
60 NTAPI
61 KdPortGetByteEx(
62 PKD_PORT_INFORMATION PortInformation,
63 PUCHAR ByteRecieved
64 );
65
66 BOOLEAN
67 NTAPI
68 KdPortPollByte(
69 PUCHAR ByteRecieved
70 );
71
72 BOOLEAN
73 NTAPI
74 KdPortPollByteEx(
75 PKD_PORT_INFORMATION PortInformation,
76 PUCHAR ByteRecieved
77 );
78
79 VOID
80 NTAPI
81 KdPortPutByte(
82 UCHAR ByteToSend
83 );
84
85 VOID
86 NTAPI
87 KdPortPutByteEx(
88 PKD_PORT_INFORMATION PortInformation,
89 UCHAR ByteToSend
90 );
91
92 VOID
93 NTAPI
94 KdPortRestore(VOID);
95
96 VOID
97 NTAPI
98 KdPortSave (VOID);
99
100 BOOLEAN
101 NTAPI
102 KdPortDisableInterrupts(VOID);
103
104 BOOLEAN
105 NTAPI
106 KdPortEnableInterrupts(VOID);
107
108 BOOLEAN
109 NTAPI
110 KdDebuggerInitialize0(
111 IN PLOADER_PARAMETER_BLOCK LoaderBlock
112 );
113
114 #endif
115
116 //
117 // Native Calls
118 //
119 NTSYSCALLAPI
120 NTSTATUS
121 NTAPI
122 NtQueryDebugFilterState(
123 ULONG ComponentId,
124 ULONG Level
125 );
126
127 NTSYSAPI
128 NTSTATUS
129 NTAPI
130 NtSetDebugFilterState(
131 ULONG ComponentId,
132 ULONG Level,
133 BOOLEAN State
134 );
135
136 NTSTATUS
137 NTAPI
138 NtSystemDebugControl(
139 DEBUG_CONTROL_CODE ControlCode,
140 PVOID InputBuffer,
141 ULONG InputBufferLength,
142 PVOID OutputBuffer,
143 ULONG OutputBufferLength,
144 PULONG ReturnLength
145 );
146
147 NTSYSCALLAPI
148 NTSTATUS
149 NTAPI
150 ZwQueryDebugFilterState(
151 ULONG ComponentId,
152 ULONG Level
153 );
154
155 NTSYSAPI
156 NTSTATUS
157 NTAPI
158 ZwSetDebugFilterState(
159 ULONG ComponentId,
160 ULONG Level,
161 BOOLEAN State
162 );
163
164 NTSTATUS
165 NTAPI
166 ZwSystemDebugControl(
167 DEBUG_CONTROL_CODE ControlCode,
168 PVOID InputBuffer,
169 ULONG InputBufferLength,
170 PVOID OutputBuffer,
171 ULONG OutputBufferLength,
172 PULONG ReturnLength
173 );
174 #endif