mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[NTOS:EX] Implement NtSystemDebugControl: SysDbgGetAutoKdEnable/SysDbgSetAutoKdEnable
This commit is contained in:
parent
4bae44e412
commit
4dc0e5cc81
1 changed files with 26 additions and 0 deletions
|
@ -291,7 +291,33 @@ NtSystemDebugControl(
|
|||
break;
|
||||
|
||||
case SysDbgGetAutoKdEnable:
|
||||
if (OutputBufferLength != sizeof(BOOLEAN))
|
||||
{
|
||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||
}
|
||||
else
|
||||
{
|
||||
*(PBOOLEAN)OutputBuffer = KdAutoEnableOnEvent;
|
||||
Status = STATUS_SUCCESS;
|
||||
}
|
||||
break;
|
||||
|
||||
case SysDbgSetAutoKdEnable:
|
||||
if (InputBufferLength != sizeof(BOOLEAN))
|
||||
{
|
||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||
}
|
||||
else if (KdPitchDebugger)
|
||||
{
|
||||
Status = STATUS_ACCESS_DENIED;
|
||||
}
|
||||
else
|
||||
{
|
||||
KdAutoEnableOnEvent = *(PBOOLEAN)InputBuffer;
|
||||
Status = STATUS_SUCCESS;
|
||||
}
|
||||
break;
|
||||
|
||||
case SysDbgGetPrintBufferSize:
|
||||
case SysDbgSetPrintBufferSize:
|
||||
case SysDbgGetKdUmExceptionEnable:
|
||||
|
|
Loading…
Reference in a new issue