LibUsbDotNet/LibUsbDotNet/LibUsb/UsbDevice.Interfaces.cs
/// <summary>
/// Sets an alternate interface for the most recent claimed interface.
/// </summary>
/// <param name="alternateID">The alternate interface to select for the most recent claimed interface See <see cref="ClaimInterface"/>.</param>
/// <returns>True on success.</returns>
Sets an alternate interface for the most recent claimed interface.
Sets an alternate interface for the most recent claimed interface .
public bool SetAltInterface(int interfaceID, int alternateID)
        {
            this.EnsureOpen();
            NativeMethods.SetInterfaceAltSetting(this.deviceHandle, interfaceID, alternateID).ThrowOnError();
            this.usbAltInterfaceSettings[interfaceID & (UsbConstants.MaxDeviceCount - 1)] = (byte)alternateID;
            return true;
        }
public bool SetAltInterface ( int interfaceID , int alternateID ) { this . EnsureOpen ( ) ; NativeMethods . SetInterfaceAltSetting ( this . deviceHandle , interfaceID , alternateID ) . ThrowOnError ( ) ; this . usbAltInterfaceSettings [ interfaceID & ( UsbConstants . MaxDeviceCount - 1 ) ] = ( byte ) alternateID ; return true ; }
Sets an alternate interface for the most recent claimed interface.
Sets an alternate interface for the most recent claimed interface .
True on success.
True on success .
interfaceID
int
alternateID
int
The alternate interface to select for the most recent claimed interface See .
The alternate interface to select for the most recent claimed interface See .