LibUsbDotNet 2.2.8
ClaimInterface Method (deviceHandle, interfaceNumber)
Library ReferenceMonoLibUsbMonoUsbApiClaimInterface(MonoUsbDeviceHandle, Int32)
LibUsbDotNet on SourceForge
Claim an interface on a given device handle.
Declaration Syntax
C#Visual BasicVisual C++
public static int ClaimInterface(
	MonoUsbDeviceHandle deviceHandle,
	int interfaceNumber
Public Shared Function ClaimInterface ( _
	deviceHandle As MonoUsbDeviceHandle, _
	interfaceNumber As Integer _
) As Integer
static int ClaimInterface(
	[InAttribute] MonoUsbDeviceHandle^ deviceHandle, 
	int interfaceNumber
deviceHandle (MonoUsbDeviceHandle)
A device handle.
interfaceNumber (Int32)
the bInterfaceNumber of the interface you wish to claim.
Return Value

You must claim the interface you wish to use before you can perform I/O on any of its endpoints.

It is legal to attempt to claim an already-claimed interface, in which case libusb just returns 0 without doing anything.

Claiming of interfaces is a purely logical operation; it does not cause any requests to be sent over the bus. Interface claiming is used to instruct the underlying operating system that your application wishes to take ownership of the interface.

Note: Member documentation was originally generated using the Libusb-1.0 API documentation: Device handling and enumeration

Assembly: LibUsbDotNet (Module: LibUsbDotNet) Version: (