moel@324: /* moel@324: moel@344: This Source Code Form is subject to the terms of the Mozilla Public moel@344: License, v. 2.0. If a copy of the MPL was not distributed with this moel@344: file, You can obtain one at http://mozilla.org/MPL/2.0/. moel@324: moel@381: Copyright (C) 2011-2012 Michael Möller moel@344: moel@324: */ moel@324: moel@324: using System; moel@324: using System.Collections.Generic; moel@324: using System.Runtime.InteropServices; moel@324: moel@324: namespace OpenHardwareMonitor.Hardware.HDD { moel@324: moel@324: [StructLayout(LayoutKind.Sequential, Pack = 1)] moel@381: internal struct DriveAttributeValue { moel@324: public byte Identifier; moel@324: public short StatusFlags; moel@324: public byte AttrValue; moel@324: public byte WorstValue; moel@324: [MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)] moel@324: public byte[] RawValue; moel@324: public byte Reserved; moel@324: } moel@324: moel@324: }