Added the hard drive firmware version to the report. This could be important if the SMART attribute layout changes with firmware versions on some drives.

This commit is contained in:
Michael Möller
2012-01-01 10:14:42 +00:00
parent de089a3d28
commit a0b8e326eb
9 changed files with 65 additions and 43 deletions

View File

@@ -16,7 +16,7 @@
The Initial Developer of the Original Code is
Michael Möller <m.moeller@gmx.ch>.
Portions created by the Initial Developer are Copyright (C) 2011
Portions created by the Initial Developer are Copyright (C) 2011-2012
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -219,11 +219,14 @@ namespace OpenHardwareMonitor.Hardware.HDD {
return drives[driveNumber].DriveThresholdValues;
}
public string ReadName(IntPtr handle, int driveNumber) {
public bool ReadNameAndFirmwareRevision(IntPtr handle, int driveNumber,
out string name, out string firmwareRevision) {
if (handle != (IntPtr)driveNumber)
throw new ArgumentOutOfRangeException();
return drives[driveNumber].Name;
name = drives[driveNumber].Name;
firmwareRevision = "";
return true;
}
public void CloseHandle(IntPtr handle) { }