简体   繁体   中英

How can I create a drive in Windows backed by a custom storage?

I have a use-case where I need to make a block of storage (think any cloud based storage provider or a Database) available as a Windows drive.

I am happy to do the coding but haven't got a clue where to start.

you have to work with Windows Drivers SDK, there are some samples online about this, something "similar" but not 100% saem as what you need is teh RAM drive implementation whcih creates a new drive which uses RAM memory as storage,

have a look here for some source code you can compile in Visual Studio and to see how you have to setup/prepare your machine for Windows drivers development.

https://github.com/Microsoft/Windows-driver-samples/tree/master/storage/ramdisk

See this question:

creating virtual hard Drive

You would need to create a folder location, probably somewhere in the user's folder tree and map the drive as in the answer in the above link. Then use that folder to sync files with your cloud storage. I doubt you'd want to have the files in memory as you may end up with a drive containing gigabytes of data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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