[NTOS:EX] Implement NtSystemDebugControl: SysDbgGetKdUmExceptionEnable/SysDbgSetKdUmExceptionEnable

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

View file

@ -332,8 +332,40 @@ NtSystemDebugControl(
break;
case SysDbgSetPrintBufferSize:
UNIMPLEMENTED;
Status = STATUS_NOT_IMPLEMENTED;
break;
case SysDbgGetKdUmExceptionEnable:
if (OutputBufferLength != sizeof(BOOLEAN))
{
Status = STATUS_INFO_LENGTH_MISMATCH;
}
else
{
/* Unfortunately, the internal flag says if UM exceptions are disabled */
*(PBOOLEAN)OutputBuffer = !KdIgnoreUmExceptions;
Status = STATUS_SUCCESS;
}
break;
case SysDbgSetKdUmExceptionEnable:
if (InputBufferLength != sizeof(BOOLEAN))
{
Status = STATUS_INFO_LENGTH_MISMATCH;
}
else if (KdPitchDebugger)
{
Status = STATUS_ACCESS_DENIED;
}
else
{
/* Unfortunately, the internal flag says if UM exceptions are disabled */
KdIgnoreUmExceptions = !*(PBOOLEAN)InputBuffer;
Status = STATUS_SUCCESS;
}
break;
case SysDbgGetTriageDump:
case SysDbgGetKdBlockEnable:
case SysDbgSetKdBlockEnable: