Files
ReLibreHardwareMonitor/LibreHardwareMonitorLib/Hardware/Storage/StorageInfo.cs
T

40 lines
1.2 KiB
C#

// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
// If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
// Copyright (C) LibreHardwareMonitor and Contributors.
// Partial Copyright (C) Michael Möller <mmoeller@openhardwaremonitor.org> and Contributors.
// All Rights Reserved.
using Windows.Win32.Storage.FileSystem;
using Microsoft.Win32.SafeHandles;
namespace LibreHardwareMonitor.Hardware.Storage;
internal abstract class StorageInfo
{
public STORAGE_BUS_TYPE BusType { get; protected set; }
public string DeviceId { get; set; }
public ulong DiskSize { get; set; }
public SafeFileHandle Handle { get; set; }
public int Index { get; protected set; }
public string Name => (Vendor + " " + Product).Trim();
public string Product { get; protected set; }
public byte[] RawData { get; protected set; }
public bool Removable { get; protected set; }
public string Revision { get; protected set; }
public string Scsi { get; set; }
public string Serial { get; protected set; }
public string Vendor { get; protected set; }
}