AlphaOmega.DeviceIoControl
1.0.8418.35733
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AlphaOmega.DeviceIoControl --version 1.0.8418.35733
NuGet\Install-Package AlphaOmega.DeviceIoControl -Version 1.0.8418.35733
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.0.8418.35733" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AlphaOmega.DeviceIoControl" Version="1.0.8418.35733" />
<PackageReference Include="AlphaOmega.DeviceIoControl" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AlphaOmega.DeviceIoControl --version 1.0.8418.35733
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AlphaOmega.DeviceIoControl, 1.0.8418.35733"
#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.
#:package AlphaOmega.DeviceIoControl@1.0.8418.35733
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AlphaOmega.DeviceIoControl&version=1.0.8418.35733
#tool nuget:?package=AlphaOmega.DeviceIoControl&version=1.0.8418.35733
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 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 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 | 293 | 12/5/2023 |
1.0.8418.35733 | 272 | 1/18/2023 |