|C#||Visual Basic||Visual C++|
public static int SetInterfaceAltSetting( MonoUsbDeviceHandle deviceHandle, int interfaceNumber, int alternateSetting )
Public Shared Function SetInterfaceAltSetting ( _ deviceHandle As MonoUsbDeviceHandle, _ interfaceNumber As Integer, _ alternateSetting As Integer _ ) As Integer
The interface must have been previously claimed with ClaimInterface(MonoUsbDeviceHandle, Int32).
You should always use this function rather than formulating your own SET_INTERFACE control request. This is because the underlying operating system needs to know when such changes happen.
This is a blocking function.