tags:

views:

210

answers:

4

Hello

For those familiar with Linux, it is possible to create a module and register it as a block device. This allows the user to mount it as a regular disk (while all the block I/O is handled by the module, e.g. usb-massstorage).

Is there a way to do this in Windows ? (Need to create a volume mountable by windows. The raw data will come from propriety interface).

Thank you

A: 
Alex Ciminian
This creates a Devnode entry; while you'll be able to send IOCTLs to it, the system will never register it as a readable volume
Paul Betts
+2  A: 

The easiest way (and it's not easy!) is to write a Storport Miniport driver, you can even do this with KMDF as well. The latest issue of OSR's "The NT Insider" has an article on how to do this, but it's not going to be any kind of easy.

You will learn a ton though, so if you're interested in kernel development, this is a good way to get started!

Paul Betts
A: 

Take a look at the Truecrypt project. They have a pretty good implementation of a virtual block device.

KIV
+1  A: 

You can find some simple block device drivers at http://www.acc.umu.se/~bosse/ . Look at the FileDisk driver, which is a Windows equivalent of /dev/loop

grep