Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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

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
0 Sergey Alexandrovich Kryukov 504
1 Maciej Los 349
2 Kornfeld Eliyahu Peter 325
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,303
1 DamithSL 4,764
2 Maciej Los 4,306
3 Kornfeld Eliyahu Peter 3,914
4 Sergey Alexandrovich Kryukov 3,538


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 15 Jun 2013
Copyright © CodeProject, 1999-2014
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