Is is possible to read a disk directly with .Net? By directly I mean via the device bypassing the file system. I think I would go about this by opening the device some way "\Device\Ide\IdeDeviceP2T0L0-1" for example.
If I can't open the device with a .NET api knowing which Win32 API to use would be helpful.
Best Solution
Cool, thank you Mark, I had forgotten that CreateFile opens things too. I was looking at the volume management API and not seeing how to open things.
Here is a little class that wraps things up. It might also be possible/correct to just pass the SafeFileHandle into a FileStream.
And an example of using the class
Standard disclaimers apply, this code may be hazardous to your health.