Convenience function for finding a device with a particular idVendor/idProduct combination.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static MonoUsbDeviceHandle OpenDeviceWithVidPid( MonoUsbSessionHandle sessionHandle, short vendorID, short productID )
Public Shared Function OpenDeviceWithVidPid ( _ sessionHandle As MonoUsbSessionHandle, _ vendorID As Short, _ productID As Short _ ) As MonoUsbDeviceHandle
public: static MonoUsbDeviceHandle^ OpenDeviceWithVidPid( [InAttribute] MonoUsbSessionHandle^ sessionHandle, short vendorID, short productID )
Parameters
- sessionHandle (MonoUsbSessionHandle)
- A valid MonoUsbSessionHandle.
- vendorID (Int16)
- The idVendor value to search for.
- productID (Int16)
- The idProduct value to search for.
Return Value
Null if the device was not opened or not found, otherwise an opened device handle.
Remarks
Note:
Member documentation was originally generated using the Libusb-1.0 API documentation:
Device handling and enumeration