Debugging Tools for Windows

IsKernelDebuggerEnabled

The IsKernelDebuggerEnabled method checks whether kernel debugging is enabled for the local kernel.

HRESULT
  IDebugClient2::IsKernelDebuggerEnabled();

Parameters

None

Return Value

S_OK
Kernel debugging is enabled for the local kernel.
S_FALSE
Kernel debugging is not enabled for the local kernel.

This method may also return error values. See Return Values for more details.

Interface Version

IsKernelDebuggerEnabled is available in IDebugClient2 and later versions.

Comments

Kernel debugging is available for the local computer if the computer was booted by using the /debug boot switch. In some Windows installations, local kernel debugging is supported when other switches—such as /debugport—are used, but this is not a guaranteed feature of Windows and should not be relied on. For more information about kernel debugging on a single computer, see Performing Local Kernel Debugging.

For more information about connecting to live kernel-mode targets, see Live Kernel-Mode Targets.

Requirements

Headers: Defined in dbgeng.h. Include dbgeng.h.

See Also

AttachKernel

Build machine: CAPEBUILD