简体   繁体   中英

Windows kernel driver cannot print to DebugView

I have just completed the installation of Hello World Windows Driver , the installation is success.

The code in this basically printing a line:

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

For seeing this I have downloaded the DebugView , but the expected "KmdfHelloWorld: DriverEntry" is not getting print in this.

I am running DebugView as administrator in Windows-8.1. I have checked, that it has made a device under the device manager named "KMDFHelloWorld Device" .

在此处输入图像描述 What could be the probable reason that it is not getting print? Any help is highly appreciated. Thanks in Advance.

Just enable the following 4 options:

And check if your driver is compiled with Debug configuration. As to why, see DebugView doesn't capture KdPrint output .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM