DeviceListGetHidDevices Method (NullableInt32, NullableInt32, NullableInt32, String)HIDSharp
Gets a list of connected HID devices, filtered by some criteria.

Namespace: HidSharp
Assembly: HidSharp (in HidSharp.dll) Version: 2.0.0
Syntax

public IEnumerable<HidDevice> GetHidDevices(
	Nullable<int> vendorID = null,
	Nullable<int> productID = null,
	Nullable<int> releaseNumberBcd = null,
	string serialNumber = null
)

Parameters

vendorID (Optional)
Type: SystemNullableInt32
The vendor ID, or null to not filter by vendor ID.
productID (Optional)
Type: SystemNullableInt32
The product ID, or null to not filter by product ID.
releaseNumberBcd (Optional)
Type: SystemNullableInt32
The device release number in binary-coded decimal, or null to not filter by device release number.
serialNumber (Optional)
Type: SystemString
The serial number, or null to not filter by serial number.

Return Value

Type: IEnumerableHidDevice
The filtered device list.
See Also

Reference