hi,everybody~~
I want to know a CreateFile is the first open for a file in local system.
I don’t care CreateFile without DATA access.
For a local file,it’s very simple.We just send a exclusive FILE_READ_DATA,if
return ACCESS_DENY,it’s the first open.(don’t care CreateFile without DATA
access)
But for a remote file,it’s difficult.Because other client have Opened the
file,we send a exclusive FILE_READ_DATA will ACCESS_DENY.
How can I know it is the first open for the remote file in my local system?
thanks~~~for help~
and I can’t use reference count for all files.That will be very slow.
In my filter,if the filter is Stop status,I will passthrough everything.
So,when a createfile(for a remote file) come,how can I know this is the
first?I just care the createfile with data-access.
It puzzled me many days,God!
In a simple resolvent,I can say if the handleCount is 0(all fileobject for
the FCB),that is the first createfile with data-access(Yes,if there are some
handles by createfile without data-access,I will result in mistake.But in
fact,the case is infrequent.
So,Can I find all fileobject by the FCB?I think can’t.
“ecore” дÈëÏûÏ¢ÐÂÎÅ:xxxxx@ntfsd…
> hi,everybody~~
> I want to know a CreateFile is the first open for a file in local system.
> I don’t care CreateFile without DATA access.
>
> For a local file,it’s very simple.We just send a exclusive
> FILE_READ_DATA,if
> return ACCESS_DENY,it’s the first open.(don’t care CreateFile without DATA
> access)
> But for a remote file,it’s difficult.Because other client have Opened the
> file,we send a exclusive FILE_READ_DATA will ACCESS_DENY.
> How can I know it is the first open for the remote file in my local
> system?
>
> thanks~~~for help~
>
>
>
>