KdDisableDebugger - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

NTSTATUS KdDisableDebugger();
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-kddisabledebugger)

KdDisableDebugger function

Description

The KdDisableDebugger routine disables the kernel debugger.

Return value

KdDisableDebugger returns STATUS_SUCCESS if the kernel debugger was successfully disabled. Otherwise, the return value can be one of the following error status codes:

STATUS_ACCESS_DENIED

STATUS_DEBUGGER_INACTIVE

Remarks

If the operating system was booted with no debug controls, KdDisableDebugger returns STATUS_DEBUGGER_INACTIVE.

If the kernel debugger is blocked (that is, the KdBlockEnable system variable is set to a value other than FALSE), KdDisableDebugger returns STATUS_ACCESS_DENIED.

After a caller calls KdDisableDebugger to disable the kernel debugger, the caller can call the KdEnableDebugger routine to re-enable the kernel debugger.

See also

KdEnableDebugger