Avoid using uninitialized variables
[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 VOID
101 NTAPI
102 KdRestore(VOID);
103
104 VOID
105 NTAPI
106 KdSave (VOID);
107
108 BOOLEAN
109 NTAPI
110 KdPortDisableInterrupts(VOID);
111
112 BOOLEAN
113 NTAPI
114 KdPortEnableInterrupts(VOID);
115
116 BOOLEAN
117 NTAPI
118 KdDebuggerInitialize0(
119 IN PLOADER_PARAMETER_BLOCK LoaderBlock
120 );
121
122 #endif
123
124 //
125 // Native Calls
126 //
127 NTSYSCALLAPI
128 NTSTATUS
129 NTAPI
130 NtQueryDebugFilterState(
131 ULONG ComponentId,
132 ULONG Level
133 );
134
135 NTSYSAPI
136 NTSTATUS
137 NTAPI
138 NtSetDebugFilterState(
139 ULONG ComponentId,
140 ULONG Level,
141 BOOLEAN State
142 );
143
144 NTSTATUS
145 NTAPI
146 NtSystemDebugControl(
147 DEBUG_CONTROL_CODE ControlCode,
148 PVOID InputBuffer,
149 ULONG InputBufferLength,
150 PVOID OutputBuffer,
151 ULONG OutputBufferLength,
152 PULONG ReturnLength
153 );
154
155 NTSYSCALLAPI
156 NTSTATUS
157 NTAPI
158 ZwQueryDebugFilterState(
159 ULONG ComponentId,
160 ULONG Level
161 );
162
163 NTSYSAPI
164 NTSTATUS
165 NTAPI
166 ZwSetDebugFilterState(
167 ULONG ComponentId,
168 ULONG Level,
169 BOOLEAN State
170 );
171
172 NTSTATUS
173 NTAPI
174 ZwSystemDebugControl(
175 DEBUG_CONTROL_CODE ControlCode,
176 PVOID InputBuffer,
177 ULONG InputBufferLength,
178 PVOID OutputBuffer,
179 ULONG OutputBufferLength,
180 PULONG ReturnLength
181 );
182 #endif