AlphaOmega.DeviceIoControl
1.2.2
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 2.0
This package targets .NET Framework 2.0. The package is compatible with this framework or higher.
dotnet add package AlphaOmega.DeviceIoControl --version 1.2.2
NuGet\Install-Package AlphaOmega.DeviceIoControl -Version 1.2.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AlphaOmega.DeviceIoControl" Version="1.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AlphaOmega.DeviceIoControl --version 1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AlphaOmega.DeviceIoControl, 1.2.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AlphaOmega.DeviceIoControl as a Cake Addin #addin nuget:?package=AlphaOmega.DeviceIoControl&version=1.2.2 // Install AlphaOmega.DeviceIoControl as a Cake Tool #tool nuget:?package=AlphaOmega.DeviceIoControl&version=1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DeviceIoControl assembly
Wrapper for DeviceIoControl function. Primary task of this assembly was to read SMART data from supported devices. S.M.A.R.T.rar contains original source code written by Andrew I. Reshin (11.02.2001) in C++
Usage:
using(DeviceIoControl device = new DeviceIoControl(@"c:\"))
{
Boolean isOn = device.IsDeviceOn;
Console.WriteLine(String.Format("Device is {0}", isOn ? "on" : "off"));
if(device.Disc.Version != null)
{
String capabilities = "Capabilities: ";
if(device.Disc.Version.Value.IsAtaSupported)
capabilities += "ATA,";
if(device.Disc.Version.Value.IsAtapiSupported)
capabilities += "ATAPI,";
if(device.Disc.Version.Value.IsSmartSupported)
capabilities += "SCSI";
Console.WriteLine(capabilities);
}
if(device.Disc.Smart != null)
{
Console.WriteLine("===INFO===");
//Info
String deviceInfo = String.Format(@"Type: {0}
Serial number: {1}\
Firmware version: {2}
Model number: {3}
Capabilities: 0x{4:X}
User addressable space {5:n0} sectors (LBA mode only)",
device.Disc.Smart.SystemParams.Type,
device.Disc.Smart.SystemParams.SerialNumber,
device.Disc.Smart.SystemParams.FirmwareRev,
device.Disc.Smart.SystemParams.ModelNumber,
device.Disc.Smart.SystemParams.wCapabilities,
device.Disc.Smart.SystemParams.ulTotalAddressableSectors);
Console.WriteLine(deviceInfo);
String deviceParams = String.Format(@"Number of cylinders: {0:n0}
Number of heads: {1:n0}
Current number of cylinders: {2:n0}
Current number of heads: {3:n0}
Current Sectors per track: {4:n0}
Current Sector capacity: {5:n0}",
device.Disc.Smart.SystemParams.wNumCyls,
device.Disc.Smart.SystemParams.wNumHeads,
device.Disc.Smart.SystemParams.wNumCurrentCyls,
device.Disc.Smart.SystemParams.wNumCurrentHeads,
device.Disc.Smart.SystemParams.wNumCurrentSectorsPerTrack,
device.Disc.Smart.SystemParams.ulCurrentSectorCapacity);
Console.WriteLine(deviceParams);
}
}
Supported structures:
- IOCTL_VOLUME
- GET_VOLUME_DISK_EXTENTS
- IS_CLUSTERED
- IOCTL_DISC
- PERFORMANCE
- IS_WRITABLE
- PERFORMANCE_OFF
- SMART_GET_VERSION
- SMART_SEND_DRIVE_COMMAND
- SMART_RCV_DRIVE_DATA
- GET_DRIVE_GEOMETRY_EX
- IOCTL_STORAGE
- CHECK_VERIFY
- CHECK_VERIFY2
- MEDIA_REMOVAL
- EJECT_MEDIA
- GET_MEDIA_TYPES_EX
- GET_MEDIA_SERIAL_NUMBER
- GET_HOTPLUG_INFO
- GET_DEVICE_NUMBER
- PREDICT_FAILURE
- QUERY_PROPERTY
- FSCTL
- LOCK_VOLUME
- UNLOCK_VOLUME
- DISMOUNT_VOLUME
- IS_VOLUME_MOUNTED
- FILESYSTEM_GET_STATISTICS
- GET_NTFS_VOLUME_DATA
- GET_VOLUME_BITMAP
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net20 is compatible. net35 was computed. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 2.0
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.2 | 225 | 12/5/2023 |
1.0.8418.35733 | 193 | 1/18/2023 |