Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTFSD

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Drv_2_Drv Communication!!!

NtDev_GeekNtDev_Geek Member - All Emails Posts: 124

Hi All,

I am trying to establish a communication between my mini-filter and disk lower filter driver using ExCallback APIs. The implementation is as per the buddy driver tutorial, and things are working fine, except the callback in my mini-filter is not called.

Disk Filter:
1. success call to ExCreateCallback in disk filter.
2. Notifying Minifilter with ExNotifyCallback along with context.

MiniFilter:
1. Sucess call to ExCreateCallback in mini-filter (The obj pointer matched).
2. Registering callback success.
3. Custom callback never called.

I am trying to send some data from my disk filter to mini-filter and want to act accordingly in the InstanceSetup. But the registered custom callback was never invoked. Since the notification call is sync in nature, then why was my custom callback function never invoked?

Can anyone give me some pointers? I appreciate any help you can provide.

Comments

  • Scott_Noone_(OSR)Scott_Noone_(OSR) Administrator Posts: 3,514

    No idea...You'll have to debug it. Have you stepped into your call to ExNotifyCallback? You'll be in assembly but that's where I'd start. There are also plenty of code examples on Google.

    -scott
    OSR

  • NtDev_GeekNtDev_Geek Member - All Emails Posts: 124

    Thank you for the information.

    As you said, I tried digging it and stepped into the debugger while keeping a breakpoint in my custom callback routine, but no luck.

  • Scott_Noone_(OSR)Scott_Noone_(OSR) Administrator Posts: 3,514

    You can post the relevant code somewhere I can try to spot the problem. It really should "just work"

    -scott
    OSR

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 12 September 2022 Live, Online
Internals & Software Drivers 23 October 2022 Live, Online
Kernel Debugging 14 November 2022 Live, Online
Developing Minifilters 5 December 2022 Live, Online