简体   繁体   English

将具有可移动Storgae \\ Map网络驱动器的设备添加到Windows

[英]Add Device with Removable Storgae\Map Network Drive to Windows

my client asked me to replicate the services provided by this SpeedyDrive software. 我的客户要求我复制此SpeedyDrive软件提供的服务。

SpeedyDrive is a tool which basically uploads your selected files to a remote server which you can access from anywhere with legitimate account credentials. SpeedyDrive是一种工具,基本上可以将您选择的文件上传到远程服务器,您可以使用合法帐户凭据从任何地方访问该服务器。

  1. On the non basic side, to enhance usability , it "SAYS" that it has mapped a network drive which you can access when you log-in. 在非基本方面,为了增强可用性 ,它“说”它已映射了一个网络驱动器,您可以在登录时访问它。 You can see it's icon in the screen shot below which appears when you log-in and disappears when you log-out. 您可以在下面的屏幕快照中看到它的图标,该图标在您登录时显示,而在您退出时消失。

    快速驾驶

  2. Further more, you don't select files to be uploaded(SAVED ONLINE), you copy-paste them in this drive and it does this uploading abstractly. 此外,您无需选择要上传的文件(“在线保存”),而是将其复制粘贴到此驱动器中,然后抽象地进行上传。

  3. Further more more, it even shows 4TB of space and and its file system named DOKAN. 更进一步,它甚至显示了4TB的空间以及其名为DOKAN的文件系统。

My Question is how to do 1,2,3 with C#, if not then HOW WITH C++ ? 我的问题是如何使用C#进行1,2,3,如果没有,那么如何使用C ++?

I don't believe this is possible with pure C#. 我不相信纯C#可以做到这一点。 In order to do this you have to create a hardware driver that emulates a drive (which to my knowledge cannot be done in the CLR), but in actuality does what you want (like displaying whatever amount of space you want). 为此,您必须创建一个模拟驱动器的硬件驱动程序(据我所知,这不能在CLR中完成),但实际上是您想要的(例如显示所需的任何空间)。 This is by no means a small project. 这绝不是一个小项目。

As already stated by Hans and Erik, there is no reliable way to implement this type of functionality in pure C#. 正如Hans和Erik所说的那样,没有可靠的方法可以在纯C#中实现这种功能。 It requires a windows driver, and drivers cannot be created with C#. 它需要Windows驱动程序,并且无法使用C#创建驱动程序。 However, there are 3rd party drivers you can use. 但是,您可以使用第三方驱动程序。 Here are a two products that have C# libraries that enable code interaction with an underlying file system driver: 以下是两个具有C#库的产品,这些库允许与基础文件系统驱动程序进行代码交互:

http://www.eldos.com/cbfs/ <-- Callback File System "Create and manage virtual filesystems and disks from your Windows applications" http://www.eldos.com/cbfs/ <-回调文件系统“从Windows应用程序创建和管理虚拟文件系统和磁盘”

http://dokan-dev.net/en/ <-- the Dokan "user mode file system for windows" ... looks like SpeedyDrive uses this http://dokan-dev.net/en/ <-Dokan“ Windows的用户模式文件系统” ...看来SpeedyDrive使用此

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM