Determine if a kernel driver is active on an interface.
Declaration Syntax
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 )
Parameters
- deviceHandle (MonoUsbDeviceHandle)
- A device handle.
- interfaceNumber (Int32)
- The interface to check.
Return Value
- 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.
Remarks
Note:
Member documentation was originally generated using the Libusb-1.0 API documentation:
Device handling and enumeration