In my project, I need to add non-exist file to a directory as if the file really exist. I’ve tried to pass down the Irp to the lower driver, when lower driver returns STATUS_NO_MORE_FILES, I fill my non-exist file to Irp’s buffer and replace STATUS_NO_MORE_FILES to STATUS_SUCCESS and Irp->IoStatus.Information to the length of my non-exist file entry, but it doesn’t work, the systems hangs(I mean not crash) with cursor before winlogon. Any suggestions? Thx in advance.
This should work. I do it in my mini-filter. Once you return
STATUS_SUCCESS after filling the buffer with the vritual file
information, the system again calls you back and this time you should
return STATUS_NO_MORE_FILES. Otherwise the system things that there
are few more files and it keeps calling you back until you return
STATUS_NO_MORE_FILES or any other error codes. So please make sure you
return the correct status code.
On 6/20/07, liyuncheng@163.com wrote:
> In my project, I need to add non-exist file to a directory as if the file really exist. I’ve tried to pass down the Irp to the lower driver, when lower driver returns STATUS_NO_MORE_FILES, I fill my non-exist file to Irp’s buffer and replace STATUS_NO_MORE_FILES to STATUS_SUCCESS and Irp->IoStatus.Information to the length of my non-exist file entry, but it doesn’t work, the systems hangs(I mean not crash) with cursor before winlogon. Any suggestions? Thx in advance.
>
> —
> Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>