LibUsbDotNet 2.2.8
OpenUsbDevice Method (devInterfaceGuid, usbDevice)
Library ReferenceLibUsbDotNetUsbDeviceOpenUsbDevice(Guid%, UsbDevice%)
LibUsbDotNet on SourceForge
Opens a WinUsb device by its DeviceInterfaceGUID.
Declaration Syntax
C#Visual BasicVisual C++
public static bool OpenUsbDevice(
	ref Guid devInterfaceGuid,
	out UsbDevice usbDevice
Public Shared Function OpenUsbDevice ( _
	ByRef devInterfaceGuid As Guid, _
	<OutAttribute> ByRef usbDevice As UsbDevice _
) As Boolean
static bool OpenUsbDevice(
	Guid% devInterfaceGuid, 
	[OutAttribute] UsbDevice^% usbDevice
devInterfaceGuid (Guid%)
Device Interface GUID of the usb device to open.
usbDevice (UsbDevice%)
On success, a new UsbDevice instance.
Return Value
True on success.
This is the Microsoft-recommended way for opening a WinUsb device. LibUsb device can be opened in this way as well. In order to open LibUsb devices in this manner, an entry must be added to the driver inf file:





Assembly: LibUsbDotNet (Module: LibUsbDotNet) Version: (