Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results
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/
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.
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! | ||
Kernel Debugging | 30 January 2023 | Live, Online |
Developing Minifilters | 20 March 2023 | Live, Online |
Internals & Software Drivers | 17 April 2023 | Live, Online |
Writing WDF Drivers | 22 May 2023 | Live, Online |
Comments
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
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.
You can post the relevant code somewhere I can try to spot the problem. It really should "just work"
-scott
OSR