FltCreateFile returns STATUS_OPLOCK_BREAK_IN_PROGRESS

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

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.

1 Like