Release an interface previously claimed with ClaimInterface(MonoUsbDeviceHandle, Int32).

C# | Visual Basic | Visual C++ |
public static int ReleaseInterface( MonoUsbDeviceHandle deviceHandle, int interfaceNumber )
Public Shared Function ReleaseInterface ( _ deviceHandle As MonoUsbDeviceHandle, _ interfaceNumber As Integer _ ) As Integer
public: static int ReleaseInterface( [InAttribute] MonoUsbDeviceHandle^ deviceHandle, int interfaceNumber )

- deviceHandle (MonoUsbDeviceHandle)
- A device handle.
- interfaceNumber (Int32)
- the bInterfaceNumber of the interface you wish to claim.

- 0 on success
- ErrorNotFound if the interface was not claimed
- ErrorNoDevice if the device has been disconnected
- another MonoUsbError code on other failure

You should release all claimed interfaces before closing a device handle.
This is a blocking function. A SET_INTERFACE control request will be sent to the device, resetting interface state to the first alternate setting.
