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

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

filter manager resets Iopb for rename operations before post-callback

Sergey_PisarevSergey_Pisarev Member - All Emails Posts: 148

Hello !
I am filtering rename operations. In pre-callback I clear ReplaceIfExists in both FLT_PARAMETERS for IRP_MJ_SET_INFORMATION and FILE_RENAME_INFORMATION. Call FltSetCallbackDataDirty.
Before my callback called filter manager sets Iopb in FLT_CALLBACK_DATA to new value.
In post-callback I have ReplaceIfExists in FLT_PARAMETERS for IRP_MJ_SET_INFORMATION set(by fltmgr) to TRUE(should be FALSE). ReplaceIfExists in FILE_RENAME_INFORMATION still set to FALSE(as expected).
Nothing changes if I don't call FltSetCallbackDataDirty.

Is that expected behaviour ? What should I do if I want to get correct modified value in post-callback ?

Comments

  • Dejan_MaksimovicDejan_Maksimovic Member - All Emails Posts: 239
    via Email
    You don't. This is expected behavior - you get the original data in
    the Iopb in your Post Operation callback. You need to save it
    yourself.
  • rod_widdowsonrod_widdowson Member - All Emails Posts: 1,045

    ... And it could be argued that is is beholden on you to put the FILE_RENAME_INFORMATION back the way you found it.

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
Developing Minifilters 29 July 2019 OSR Seminar Space
Writing WDF Drivers 23 Sept 2019 OSR Seminar Space
Kernel Debugging 21 Oct 2019 OSR Seminar Space
Internals & Software Drivers 18 Nov 2019 Dulles, VA