USBDeviceGetSingleDevice Method (Guid) |
Finds the first WinUSB device with a GUID matching the parameter guid.
If multiple WinUSB devices match the GUID only the first one is returned.
Namespace:
MadWizard.WinUSBNet
Assembly:
WinUSBNet (in WinUSBNet.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic static USBDevice GetSingleDevice(
Guid guid
)
Public Shared Function GetSingleDevice (
guid As Guid
) As USBDevice
public:
static USBDevice^ GetSingleDevice(
Guid guid
)
Parameters
- guid
- Type: SystemGuid
The GUID that the device should match.
Return Value
Type:
USBDeviceAn UsbDevice object representing the device if found. If
no device with the given GUID could be found null is returned.
See Also