[NTOS:EX] Implement NtSystemDebugControl: SysDbgGetKdBlockEnable/SysDbgSetKdBlockEnable

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

View file

@ -367,12 +367,31 @@ NtSystemDebugControl(
break;
case SysDbgGetTriageDump:
case SysDbgGetKdBlockEnable:
case SysDbgSetKdBlockEnable:
UNIMPLEMENTED;
Status = STATUS_NOT_IMPLEMENTED;
break;
case SysDbgGetKdBlockEnable:
if (OutputBufferLength != sizeof(BOOLEAN))
{
Status = STATUS_INFO_LENGTH_MISMATCH;
}
else
{
*(PBOOLEAN)OutputBuffer = KdBlockEnable;
Status = STATUS_SUCCESS;
}
break;
case SysDbgSetKdBlockEnable:
Status = KdChangeOption(KD_OPTION_SET_BLOCK_ENABLE,
InputBufferLength,
InputBuffer,
OutputBufferLength,
OutputBuffer,
&Length);
break;
default:
Status = STATUS_INVALID_INFO_CLASS;
break;