2 * PROJECT: ReactOS Kernel
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: ntoskrnl/ex/dbgctrl.c
5 * PURPOSE: System debug control
6 * PROGRAMMERS: Alex Ionescu
9 /* INCLUDES *****************************************************************/
13 #include <internal/debug.h>
15 /* FUNCTIONS *****************************************************************/
18 * @name NtSystemDebugControl
21 * Perform various queries to debugger.
22 * This API is subject to test-case creation to further evaluate its
23 * abilities (if needed to at all)
25 * See: http://www.osronline.com/showthread.cfm?link=93915
26 * http://void.ru/files/Ntexapi.h
27 * http://www.codeguru.com/code/legacy/system/ntexapi.zip
28 * http://www.securityfocus.com/bid/9694
31 * Description of the parameter. Wrapped to more lines on ~70th
37 * @param InputBufferLength
43 * @param OutputBufferLength
49 * @return STATUS_SUCCESS in case of success, proper error code otherwise
56 NtSystemDebugControl(SYSDBG_COMMAND ControlCode
,
58 ULONG InputBufferLength
,
60 ULONG OutputBufferLength
,
65 case SysDbgQueryTraceInformation
:
66 case SysDbgSetTracepoint
:
67 case SysDbgSetSpecialCall
:
68 case SysDbgClearSpecialCalls
:
69 case SysDbgQuerySpecialCalls
:
70 case SysDbgBreakPoint
:
73 case SysDbgQueryVersion
:
74 KDB_LOADUSERMODULE_HOOK((PLDR_DATA_TABLE_ENTRY
) InputBuffer
);
81 return STATUS_SUCCESS
;