Skip to content

Commit 6b89a0d

Browse files
hpoussinHBelusca
authored andcommitted
[NTOS:EX] Implement NtSystemDebugControl: SysDbgGetKdBlockEnable/SysDbgSetKdBlockEnable
1 parent d454675 commit 6b89a0d

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

ntoskrnl/ex/dbgctrl.c

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,31 @@ NtSystemDebugControl(
367367
break;
368368

369369
case SysDbgGetTriageDump:
370-
case SysDbgGetKdBlockEnable:
371-
case SysDbgSetKdBlockEnable:
372370
UNIMPLEMENTED;
373371
Status = STATUS_NOT_IMPLEMENTED;
374372
break;
375373

374+
case SysDbgGetKdBlockEnable:
375+
if (OutputBufferLength != sizeof(BOOLEAN))
376+
{
377+
Status = STATUS_INFO_LENGTH_MISMATCH;
378+
}
379+
else
380+
{
381+
*(PBOOLEAN)OutputBuffer = KdBlockEnable;
382+
Status = STATUS_SUCCESS;
383+
}
384+
break;
385+
386+
case SysDbgSetKdBlockEnable:
387+
Status = KdChangeOption(KD_OPTION_SET_BLOCK_ENABLE,
388+
InputBufferLength,
389+
InputBuffer,
390+
OutputBufferLength,
391+
OutputBuffer,
392+
&Length);
393+
break;
394+
376395
default:
377396
Status = STATUS_INVALID_INFO_CLASS;
378397
break;

0 commit comments

Comments
 (0)