Use LDR_DATA_TABLE_ENTRY instead of LDR_MODULE. the former is the actual structure...
[reactos.git] / reactos / ntoskrnl / ex / dbgctrl.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: ntoskrnl/ex/dbgctrl.c
5 * PURPOSE: System debug control
6 *
7 * PROGRAMMERS: No programmer listed.
8 */
9
10 /* INCLUDES *****************************************************************/
11
12 #include <ntoskrnl.h>
13 #define NDEBUG
14 #include <internal/debug.h>
15
16 /* FUNCTIONS *****************************************************************/
17
18 NTSTATUS
19 STDCALL
20 NtSystemDebugControl(DEBUG_CONTROL_CODE ControlCode,
21 PVOID InputBuffer,
22 ULONG InputBufferLength,
23 PVOID OutputBuffer,
24 ULONG OutputBufferLength,
25 PULONG ReturnLength)
26 {
27 switch (ControlCode)
28 {
29 case DebugGetTraceInformation:
30 case DebugSetInternalBreakpoint:
31 case DebugSetSpecialCall:
32 case DebugClearSpecialCalls:
33 case DebugQuerySpecialCalls:
34 case DebugDbgBreakPoint:
35 break;
36
37 case DebugDbgLoadSymbols:
38 KDB_LOADUSERMODULE_HOOK((PLDR_DATA_TABLE_ENTRY) InputBuffer);
39 break;
40
41 default:
42 break;
43 }
44
45 return STATUS_SUCCESS;
46 }