How to I access a drive at the block/sector level using C#?

1.7k Views Asked by At

I am working on an embedded project where data is stored on an SD card using no filesystem (I write data to specific blocks). My embedded device provides a mass-storage interface to the device, but there is no formatted filesystem on the device.

I was wondering how to access the device and read a specified sector at a time? I found a reference to pinvoke, but I wasn't able to figure out much by looking at pinvoke's website.

Any suggestions would be appreciated; thanks!

0

There are 0 best solutions below