C# Class LibUsbDotNet.WinUsb.WinUsbRegistry

WinUsb specific members for device registry settings.
Inheritance: LibUsbDotNet.Main.UsbRegistry
Show file Open project: arvydas/BlinkStickDotNet Class Usage Examples

Public Methods

Method Description
GetDevicePathList ( System.Guid deviceInterfaceGuid, List &devicePathList ) : bool

Gets a list of WinUSB device paths for the specified interface guid.

Each device path string in the devicePathList represents a seperate WinUSB device (interface).

GetWinUsbRegistryList ( System.Guid deviceInterfaceGuid, List &deviceRegistryList ) : bool

Gets a list of WinUsbRegistry classes for the specified interface guid.

Each WinUsbRegistry in the deviceRegistryList represents a seperate WinUSB device (interface).

Open ( UsbDevice &usbDevice ) : bool

Opens the USB device for communucation.

Open ( WinUsbDevice &usbDevice ) : bool

Opens the USB device for communucation.

Private Methods

Method Description
WinUsbRegistry ( ) : System
WinUsbRegistryCallBack ( IntPtr deviceInfoSet, int deviceIndex, SetupApi &deviceInfoData, object classEnumeratorCallbackParam1 ) : bool
parseDeviceID ( ) : void

Method Details

GetDevicePathList() public static method

Gets a list of WinUSB device paths for the specified interface guid.
Each device path string in the devicePathList represents a seperate WinUSB device (interface).
public static GetDevicePathList ( System.Guid deviceInterfaceGuid, List &devicePathList ) : bool
deviceInterfaceGuid System.Guid The DeviceInterfaceGUID to search for.
devicePathList List A list of device paths associated with the .
return bool

GetWinUsbRegistryList() public static method

Gets a list of WinUsbRegistry classes for the specified interface guid.
Each WinUsbRegistry in the deviceRegistryList represents a seperate WinUSB device (interface).
public static GetWinUsbRegistryList ( System.Guid deviceInterfaceGuid, List &deviceRegistryList ) : bool
deviceInterfaceGuid System.Guid The DeviceInterfaceGUID to search for.
deviceRegistryList List A list of device paths associated with the .
return bool

Open() public method

Opens the USB device for communucation.
public Open ( UsbDevice &usbDevice ) : bool
usbDevice UsbDevice The newly created UsbDevice.
return bool

Open() public method

Opens the USB device for communucation.
public Open ( WinUsbDevice &usbDevice ) : bool
usbDevice WinUsbDevice Returns an opened WinUsb device on success, null on failure.
return bool