Windows 内核驱动程序无法打印到 DebugView

问题描述

我刚刚完成了Hello World Windows Driver的安装,安装成功。

这里的代码基本上打印了一行:

KdPrintEx(( DPFLTR_IHVDRIVER_ID,DPFLTR_INFO_LEVEL,"KmdfHelloWorld: DriverEntry\n" ));

为了看到这个,我已经下载了 DebugView,但预期的 "KmdfHelloWorld: DriverEntry" 没有打印出来。

我在 Windows-8.1 中以管理员身份运行 DebugView。 我已经检查过,它已经在名为 "KMDFHelloWorld Device" 的设备管理器下创建了一个设备。

enter image description here

它没有得到印刷的可能原因是什么?任何帮助都受到高度赞赏。提前致谢。

解决方法

只需启用以下 4 个选项:

并检查您的驱动程序是否使用调试配置编译。至于原因,见DebugView doesn't capture KdPrint output

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...