Hi
There is some folder. Also there is reparse point to this folder. That is, access to files in this folder can be by
- C:\folder\file.ext
- d:\reparsePoint\file.ext
I am developing minifliter which waits different names of files in dependence on path to files. For example, if the path d:\reparsePoint.… is used then additional extension must be added. That is, for file c:\folder\info.txt the path d:\reparsePoint\file.ext.prv has to be used. I can separate these cases in IRP_MJ_CREATE and all works more or less good. But function GetFileAttributes() uses IRP_MJ_QUERY_INFORMATION. This request does not require IRP_MJ_CREATE and specifies direct path(C:\folder.…) independently from path specified in GetFileAttributes(). As result GetFileAttributes returns error for path d:\reparsePoint.… that specified file is absent. Of course, it is correct as name contains additional extension.
What does have to be made that GetFileAttributes() returns attributes for both paths?
Thanks in advance
FastIoQueryOpen is the solution
wrote in message news:xxxxx@ntfsd…
> Hi
>
> There is some folder. Also there is reparse point to this folder. That is, access to files in this folder can be by
> 1. C:\folder\file.ext
> 2. d:\reparsePoint\file.ext
> I am developing minifliter which waits different names of files in dependence on path to files. For example, if the path d:\reparsePoint.… is used then additional extension must be added. That is, for file c:\folder\info.txt the path d:\reparsePoint\file.ext.prv has to be used. I can separate these cases in IRP_MJ_CREATE and all works more or less good. But function GetFileAttributes() uses IRP_MJ_QUERY_INFORMATION. This request does not require IRP_MJ_CREATE and specifies direct path(C:\folder.…) independently from path specified in GetFileAttributes(). As result GetFileAttributes returns error for path d:\reparsePoint.… that specified file is absent. Of course, it is correct as name contains additional extension.
> What does have to be made that GetFileAttributes() returns attributes for both paths?
>
> Thanks in advance
>
More exactly, it is needed to filter IRP_MJ_NETWORK_QUERY_OPEN
Yes, this is the representation of FastIoQueryOpen in minifilter world.
wrote in message news:xxxxx@ntfsd…
> More exactly, it is needed to filter IRP_MJ_NETWORK_QUERY_OPEN
>