Detach a kernel driver from an interface.

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

- deviceHandle (MonoUsbDeviceHandle)
- A device handle.
- interfaceNumber (Int32)
- The interface to detach the driver from.

- 0 on success.
- ErrorNotFound if no kernel driver was active.
- ErrorInvalidParam if the interface does not exist.
- ErrorNoDevice if the device has been disconnected
- Another MonoUsbError code on other failure.

If successful, you will then be able to claim the interface and perform I/O.
