Click here to Skip to main content
15,878,748 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I'm debugging KmdfSmall driver installed on target VM by using VS2012 which is on Host.

But, 'Debugger Immediate Window' in VS 2012 on host not printing any msg. Here I'm using KdPrintEx((DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, "\n KmdfSmallEvtDeviceAdd has been called\n")) as it is given in msdn http://msdn.microsoft.com/en-us/library/windows/hardware/hh439665(v=vs.85).aspx.

I updated the value of flag as well as described in OSRonline http://www.osronline.com/article.cfm?article=295

"HKLM\SYSTEM\CCS\Control\Session Manager\Debug Print Filter". Under this key, created a value with the name "DEFAULT" and Set the value of this key equal to the DWORD value 0xf".

But nothing changed. Might be I'm looking on wrong place for "KdPrintEx" msg o/p.
One thing is clear return value of KdPrintEx is correct i.e. STATUS_SUCCESS. I've checked it.

So, please let me know where do m wrong.
Regards
matt
Posted

1 solution

Hey Solved!,

changed the value of Component Filter Mask on target machine where driver has been installed to debug.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter.

Under this key, created a value with the name "IHVDRIVER" and Set the value of this key equal to the DWORD value 0x8".

I choose "IHVDRIVER" because in my KdPrintEx((DPFLTR_"IHVDRIVER"_ID, DPFLTR_INFO_LEVEL, "\n KmdfSmallEvtDeviceAdd has been called\n"))
And DWORD value 0x8 because Leveling.

For detail: http://msdn.microsoft.com/en-us/library/windows/hardware/ff551519(v=vs.85).aspx

thanks you

regards
matt
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900