LibUsbDotNet 2.2.8
KernelDriverActive Method (deviceHandle, interfaceNumber)
Library ReferenceMonoLibUsbMonoUsbApiKernelDriverActive(MonoUsbDeviceHandle, Int32)
LibUsbDotNet on SourceForge
Determine if a kernel driver is active on an interface.
Declaration Syntax
C#Visual BasicVisual 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

Assembly: LibUsbDotNet (Module: LibUsbDotNet) Version: 2.2.8.104 (2.2.8.104)