Low level operations to devices
-
I wanna know if there is a way to make low-level operations to devices (mainly the hard disk) in .Net Framework ????? (Vb.net, c++.net or c#.net) By ways I mean maybe a class or a Windows standard API library (doesnt matter if its not managed code) Specific things I want to know are (mostly consultations) : - the beginning/ending number of cluster and track of files, - the beginning/ending number of cluster and track of folders - the size in clusters of files - the volume serial number - the size in clusters and tracks of a hard disk, etc - can I do "interrupts" ??? Let me know the class or the Api library and the documentation, if there is it. thanks, fvalerin
-
I wanna know if there is a way to make low-level operations to devices (mainly the hard disk) in .Net Framework ????? (Vb.net, c++.net or c#.net) By ways I mean maybe a class or a Windows standard API library (doesnt matter if its not managed code) Specific things I want to know are (mostly consultations) : - the beginning/ending number of cluster and track of files, - the beginning/ending number of cluster and track of folders - the size in clusters of files - the volume serial number - the size in clusters and tracks of a hard disk, etc - can I do "interrupts" ??? Let me know the class or the Api library and the documentation, if there is it. thanks, fvalerin
You can call any C/C++ API from .net. That said, actaully writing any sort of kernel level code (I assume interrupts would qualify here) in .net is a bad idea. There's a performance hit with every call across the managed boundary, and with low level code you're going to have to do that very frequently. Secondly if you modify any system code that's loaded by other system apps you're injecting the version of hte .net framework you use into every one of them, and if they need a different version to work, you've just broken them. If you just want to get the values there's no harm, but modifying anything at that level is a job for C/C++. PS you're more likely to get the API names asking in the c++ forum.