使用dokan模拟Windows应用程序api [英] simulating the windows applications apis using dokan

查看:65
本文介绍了使用dokan模拟Windows应用程序api的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否可以通过dokan文件系统模拟虚拟的寡妇应用程序以返回大量特定于应用程序的数据.
示例-:可以使用wiondows上的dokan和Linux上融合的文件系统来模拟更大尺寸的文件系统,而没有实际的磁盘空间大小,类似于应用程序情况下,我们可以做些什么.

Hi ,

Is it possible to simulate a widows application virtually to return huge amount of application specific data with help of dokan file system.
Example-: file system with larger size can be simulated with help of dokan on wiondows and fuse on linux without having the actual size of disk space,similar to that in case of application can we do something.

推荐答案

我不能特别说说dokan,但总的来说,虚拟文件​​系统(VFS)模块可让您向OS表示一个虚拟文件系统,而文件则不需要存在于任何物理存储上. IE.您可以将远程文件表示为本地虚拟磁盘上的虚拟文件.文件的大小几乎可以是任何大小-您只需要保持文件大小与以前报告的大小一致即可(即,如果您在目录枚举过程中报告文件具有1024字节,则必须能够让操作系统准确读取1024字节) .

这里的限制是VFS在Windows中具有单独的驱动器名称(由于内核模式驱动程序的性质).您无法在现有目录中的现有磁盘上创建虚拟文件.要实现后者,您需要使用过滤器驱动程序,但是目前市场上没有解决方案可以让您做到这一点.我们的 CallbackFilter 将在下一个版本(3.0)中扩展此功能.
I can''t say about dokan in particular, but in general the virtual file system (VFS) module lets you represent a namely virtual file system to the OS and the files don''t need to exist on any physical storage. I.e. you can represent remote files as virtual files on local virtual disk. The files can be of virtually any size - you just need to keep the file size consistent with previously reported one (i.e. if you reported that the file has 1024 bytes during directory enumeration, you must be able to let the OS read exactly 1024 bytes).

The restriction here is that VFS has a separate drive name in Windows (due to the nature of the kernel-mode driver). You can''t create a virtual file on existing disk in existing directory. To do the latter you''d need to employ a filter driver, but at the moment there are no solutions on the market to let you do this. Our CallbackFilter will be extended with this functionality in the next release (3.0).


这篇关于使用dokan模拟Windows应用程序api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆