sharing access viloation problem with file system filter driver

Hi All,

I have a file system filter driver on Windows XP, which is similar to
antivirus filesystem driver, which monitors all the file activity and read
the file to identify few things. What I do in my driver is that first I send
the CREATE request down to the file system driver and on completion I send
the file information to my application to identify the problem because of
this I face sharing access violation problems with few files, this I think
is because of incompatible share access flags and this happens because the
original request has been seen by the file system.

I am trying to solve this problem and I wanted to know how the antivirus
software handle this scenario, because those software too should be getting
sharing access problem.

Please give any information or pointers, your help would be appreciated.

Regards,
Kedar.

Do you open this file in your user-mode application? In this case you have
to take care, that your filter pends all other create-requests as long as
your application has this file open. Otherwise you will run into sharing
violations.

“Kedar” schrieb im Newsbeitrag news:xxxxx@ntfsd…
> Hi All,
>
> I have a file system filter driver on Windows XP, which is similar to
> antivirus filesystem driver, which monitors all the file activity and read
> the file to identify few things. What I do in my driver is that first I
> send the CREATE request down to the file system driver and on completion I
> send the file information to my application to identify the problem
> because of this I face sharing access violation problems with few files,
> this I think is because of incompatible share access flags and this
> happens because the original request has been seen by the file system.
>
> I am trying to solve this problem and I wanted to know how the antivirus
> software handle this scenario, because those software too should be
> getting sharing access problem.
>
> Please give any information or pointers, your help would be appreciated.
>
> Regards,
> Kedar.
>
>