如何将软件映射为驱动器?
我正在尝试创建一个像 Ibackup.com 这样的软件。但是,我不确定如何制作该软件,以便将其映射为本地硬盘驱动器。我不知道从哪里开始研究这个。有人请给我一些指点。
I am trying to create a software like Ibackup.com. However, I am not sure how to make the software so that it'll map as a local Harddrive. And i am not sure where to start researching on this. Someone please give me some pointers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我可以向您指出 Dokan (Windows 的用户文件系统,如 Linux 上的 FUSE),您安装驱动程序然后编写相应的软件来回复 IO 请求。
对于更复杂的答案,您必须使用 NT DDK 来编写一个驱动程序,该驱动程序将是您作为文件系统的软件(查看 IFS:可安装文件系统),请注意,它使用起来非常复杂(主要是因为崩溃)您的软件的 BSOD 意味着 BSOD ),您可能需要一些更高级别的软件,例如 Dokan,它可以在这方面为您提供帮助。
I can point you to Dokan ( a user filesystem for windows like FUSE on linux), You install the driver then write the appropriate software for replying on IO request.
On a more complex answer you have to work with the NT DDK to write a driver that would be your software for being a filesystem (look at IFS: installable file system ), note that it is very complicated to work with (mainly because a crash of your software mean a BSOD ), and you would probably like some more higher level software like Dokan that would help you in that regard.
您需要编写一个实现可安装文件系统(IFS)的设备驱动程序。
我个人还没有这样做,但我知道这是一个在 Windows 上安装 Linux (ext2/3/4) 文件系统的软件: Ext2IFS。
这是 Microsoft 提供的 SDK:IFS 套件
You need to write a device driver implementing an Installable Filesystem (IFS).
I personally haven't done this but here's a piece of software I know that mounts Linux (ext2/3/4) filesystem on Windows: Ext2IFS.
And here's the SDK from Microsoft: IFS Kit
查看 Subst 命令。我建议您从外部调用它,而不是模拟它的作用,因为所有事情都可能出错。
(旁注:正确的术语是卷,而不是驱动器。)
Take a look at the Subst command. I suggest you invoke it externally instead of simulating what it does, simply because of all the things that can go wrong.
(Side note: The correct term is a volume, not a drive.)
作为参考:可以使用我们的回调文件系统产品创建虚拟驱动器,该产品是受支持的、记录并维护解决方案。
Just as a reference: virtual drives can be created using our Callback File System product, which is a supported, documented and maintained solution.