The online racing simulator
C# - SMART information
(3 posts, started )
#1 - ebola
C# - SMART information
Dear LFSers,

This question is not about LFS but I am posting here out of desperation. I have been searching for well over 8 hours to try and find a way of getting the SMART information from a hard drive using C#.

I know it can be done, I found a post on MSDN that had the code removed. Something is really strange it feels like it is a taboo subject and the world is against me on this! Most people recommend using WMI but I dont think this stores all of the SMART information. Please can someone help me!

Thanks in advance.
#2 - Stuff
#3 - gru
Quote from ebola :
I have been searching for well over 8 hours to try and find a way of getting the SMART information from a hard drive using C#.

.NET Framework tries to be platform independent, there's no DeviceIoControl function in C#, thats why its hard to find some solutions

U have to create wrapper for DeviceIoControl
http://www.componentsnotebook. ... ooks/csharp/deviceio.aspx

but if i were U, i would just create c++ winapi dll retrieving smart info, and then import it into c# written program
http://www.codeproject.com/info/search.aspx?artkw=s.m.a.r.t

C# - SMART information
(3 posts, started )
FGED GREDG RDFGDR GSFDG