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

Home NTFSD

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/


Before Posting...

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

Network shares and minifilter callbacks when a modification is made by a remote host?

henrik_meidahenrik_meida Member Posts: 44
edited April 27 in NTFSD

Lets say that we have written a minifilter driver that needs to do stuff in its pre/post IRP_MJ_CLEANUP callbacks when a file is closed.
A problem arises when we have a file inside a shared folder. in this case, it seems like IRP_MJ_CLEANUP could never get called when the file is deleted by a remote host. how to resolve this issue?

Overall, how does network shared folders work with minifilters? for example if i want to monitor write operations on files, and a remote process/host does the modification, then my pre write callback will never get called, right? how to properly deal with this?

Post edited by Peter_Viscarola_(OSR) on

Comments

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 8,448

    Let's put this in the NTFSD Discussion Group, shall we? Where people know something about MiniFilters?

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 8,448

    then my pre write callback will never get called, right.

    Have you TRIED this? Please do.

    Because, if you had, you'd see that what you're describing isn't the way it works.

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • henrik_meidahenrik_meida Member Posts: 44

    @Peter_Viscarola_(OSR) said:

    then my pre write callback will never get called, right.

    Have you TRIED this? Please do.

    Because, if you had, you'd see that what you're describing isn't the way it works.

    Peter

    I'm mostly concern about how things work actually so i can learn.

    So if i a file exist on a remote share, and i have set a context on it and need to free it in my post clean up, and then some user on another remote machine deletes this file, then how can my kernel know about it and call my post clean up? will there be any issues?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

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!
Developing Minifilters 24 May 2021 Live, Online
Writing WDF Drivers 14 June 2021 Live, Online
Internals & Software Drivers 27 September 2021 Live, Online
Kernel Debugging TBD 2021 Live, Online