Click here to Skip to main content
12,063,909 members (65,046 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Windows Driver Kernel
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 14-Jun-13 4:01am
Amit KD440

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web04 | 2.8.160204.4 | Last Updated 15 Jun 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100