Determine if a kernel driver is active on an interface.

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

- deviceHandle (MonoUsbDeviceHandle)
- A device handle.
- interfaceNumber (Int32)
- The interface to check.

- 0 if no kernel driver is active.
- 1 if a kernel driver is active.
- ErrorNoDevice if the device has been disconnected.
- Another MonoUsbError code on other failure.

