[NTOS:EX] Implement NtSystemDebugControl: SysDbgGetAutoKdEnable/SysDbgSetAutoKdEnable

This commit is contained in:
Hervé Poussineau 2024-09-22 21:41:46 +02:00 committed by Hermès Bélusca-Maïto
parent 4bae44e412
commit 4dc0e5cc81
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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: