LibUsbDotNet 2.2.8
KernelDriverActive Method (deviceHandle, interfaceNumber)
Library Reference ► MonoLibUsb ► MonoUsbApi ► KernelDriverActive(MonoUsbDeviceHandle, Int32)
|
![]() |
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.

