Read data directly from harddrive
-
I am programming in C# and I want to get direct access to the harddrive to read data and maybe later also write data. I have looked at msdn but I dont really know what to search for. Maybe someone know what native functions I should call?, or point me in the right direction. Thanks! // Anders ------------------------------ http://www.anderslinder.se
-
I am programming in C# and I want to get direct access to the harddrive to read data and maybe later also write data. I have looked at msdn but I dont really know what to search for. Maybe someone know what native functions I should call?, or point me in the right direction. Thanks! // Anders ------------------------------ http://www.anderslinder.se
It's not accessing the hard drive directly, but you could call functions from the Win32 API. The page below covers the functions you can use. If you go to http://www.pinvoke.net/ you ought to be able to find the P/Invoke signatures to let you use them. Alternatively, you could created a class wrapper in Managed C++ that called the functions directly, and then consume that within your C# app. http://jan.netcomp.monash.edu.au/ssw/files/win32.html[^] -- Paul "Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office." - David Brent, from "The Office" MS Messenger: paul@oobaloo.co.uk Download my PGP public key
-
It's not accessing the hard drive directly, but you could call functions from the Win32 API. The page below covers the functions you can use. If you go to http://www.pinvoke.net/ you ought to be able to find the P/Invoke signatures to let you use them. Alternatively, you could created a class wrapper in Managed C++ that called the functions directly, and then consume that within your C# app. http://jan.netcomp.monash.edu.au/ssw/files/win32.html[^] -- Paul "Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office." - David Brent, from "The Office" MS Messenger: paul@oobaloo.co.uk Download my PGP public key
Thanks for the fast answer. I think I know what I should do now. // Anders ------------------------------ http://www.anderslinder.se