Direct Disk Access

  • Thread starter Thread starter Wrecked
  • Start date Start date
W

Wrecked

Hi,
Could someone please throw some light on the following?

I am looking for some way in c# for doing direct, disk level IO,
without using filesystems.
This is for an application to read SD card sectors. I have found some
methods in winCE 5.0 (using structures like SG_REQ) to do the same. I
didnt find a way to use the same in C#.
Is there any such methods in c# or how do i use the wince functions in
C#?

Any help will be greatly appreciated.

Thanks,
 
If you have a way to do it in C, then you just P/Invoke those same APIs.
The difficulty comes in defining all of the structs so the marshaller likes
them, but there are lots of samples on teh web for just about any general
type of marshaling necessary.
 
Back
Top