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

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

FltCreateFile returns STATUS_OPLOCK_BREAK_IN_PROGRESS

ramakrishnan_sramakrishnan_s Member - All Emails Posts: 21

Hi All,

I am writing a mini filter driver.
I am trying to open a file using FltCreateFile api with FILE_COMPLETE_IF_OPLOCKED, in a thread created by minifilter.
If I get the return status as STATUS_OPLOCK_BREAK_IN_PROGRESS, do I need to call FltClose api for the handle returned.
Please note I don't want to wait untill the oplock break completes.
Please clarify me.

Thanks,
Ramakrishnan

Comments

  • rod_widdowsonrod_widdowson Member - All Emails Posts: 1,112

    do I need to call FltClose api for the handle returned

    Absolutely. Its a comletely normal open except that you have stealthed past the oplocks.

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!
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 20 Apr 2020 LIVE ONLINE
Writing WDF Drivers 11 May 2020 LIVE ONLINE
Internals & Software Drivers 28 Sept 2020 Dulles, VA