UtilDevices Class

Contains devices related utilities.

Definition

Namespace: DevCase.Core.IO.Devices
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class UtilDevices
Inheritance
Object    UtilDevices

Properties

BiosVersion Gets the version of the motherboard BIOS.
ComputerHardwareIdFromMicrosoftHwIdType Gets a unique computer hardware identifier (CHID) that matches the current computer.

This identifier is generated following Microsoft's PC Device Metadata packages schemas:

https://docs.microsoft.com/en-us/windows-hardware/drivers/install/specifying-hardware-ids-for-a-computer

In fact, this function generates the exact same identifiers as the 'computerhardwareids.exe' program included in the Windows SDK: https://docs.microsoft.com/es-es/windows-hardware/drivers/devtest/computerhardwareids

https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/

Use HardwareID-3 or HardwareID-4 as the first choice if the software matches a computer that has a specific make, family, and model. This allows a software to match the specified computer, which provides the most precise metadata for the computer.

Use HardwareID-5, as the second choice if the software covers the entire family of computers. In this case, the computer family is unique and is not branded with more than one product line.

Use HardwareID-6 or HardwareID-7 as the third choice if the software covers all of your computers or those computers with a specific enclosure type.

ComputerHardwareIdFromWmi Gets a unique computer hardware identifier (CHID) that matches the current computer.

This identifier is obtained through the UUID field from Win32_ComputerSystemProduct WMI class.

Note that in some exceptional scenarios the identifier could be empty. So it is responsibility of the programmer to verify that the value is not empty, and in which case is recommended to use the ComputerHardwareIdFromMicrosoftHwIdTypeComputerHardwareIdMicrosoftType property instead.

MotherboardId Gets the identifier of the current motherboard.
ProcessorId Gets the identifier of the current CPU.
ProcessorMaxSpeed Gets the maximum speed of the current CPU, in Mhz.
ProcessorSpeed Gets the current speed of the current CPU, in Mhz.

Methods

BlockInput Blocks the keyboard and mouse input events.

When blocked, the user cannot send keystrokes or use the mouse.

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)
UnblockInput Blocks the keyboard and mouse input.

When blocked, the user cannot send keystrokes or use the mouse.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also