none
DbgPrintEx output not shown RRS feed

  • Question

  • Hello!

    I have DbgPrintEx call in my filesystem minifilter driver code but it does not appear to be working. I cannot receive output message neither in Visual Studio debugger on host machine nor in DebugView (running under admin rights) on target machine.

    DbgPrintEx call:

    DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_WARNING_LEVEL, "Hello, world!");

    The breakpoint at this line is hit during execution so this code is working.

    Target PC's registry is configured as follows:

    HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter: IHVDRIVER = 0x0000000f

    Any help would be appreciated.

    Thank you.
    Tuesday, May 24, 2016 6:06 AM

Answers

  • Problem solved. It is strange but Visual Studio does not replace driver .sys file in C:\Windows\System32\drivers (does not reinstall it) on republish.
    • Marked as answer by Vladimir Khil Wednesday, May 25, 2016 12:38 PM
    Wednesday, May 25, 2016 12:38 PM

All replies

  • Problem solved. It is strange but Visual Studio does not replace driver .sys file in C:\Windows\System32\drivers (does not reinstall it) on republish.
    • Marked as answer by Vladimir Khil Wednesday, May 25, 2016 12:38 PM
    Wednesday, May 25, 2016 12:38 PM
  • You could consider creating a Driver mapping file to solve the issue of driver replacement.
    Monday, June 6, 2016 12:03 PM