LibUsbDotNet 2.2.8
OpenDeviceWithVidPid Method (sessionHandle, vendorID, productID)
Library ReferenceMonoLibUsbMonoUsbApiOpenDeviceWithVidPid(MonoUsbSessionHandle, Int16, Int16)
LibUsbDotNet on SourceForge
Convenience function for finding a device with a particular idVendor/idProduct combination.
Declaration Syntax
C#Visual BasicVisual 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

Assembly: LibUsbDotNet (Module: LibUsbDotNet) Version: 2.2.8.104 (2.2.8.104)