LibUsbDotNet 2.2.8
GetDescriptor Method (descriptorType, index, langId, buffer, bufferLength, transferLength)
Library Reference ► LibUsbDotNet ► IUsbInterface ► GetDescriptor(Byte, Byte, Int16, Object, Int32, Int32%)
|
Gets a specific descriptor from the device. See DescriptorType for more information.
Declaration Syntax
C# | Visual Basic | Visual C++ |
bool GetDescriptor( byte descriptorType, byte index, short langId, Object buffer, int bufferLength, out int transferLength )
Function GetDescriptor ( _ descriptorType As Byte, _ index As Byte, _ langId As Short, _ buffer As Object, _ bufferLength As Integer, _ <OutAttribute> ByRef transferLength As Integer _ ) As Boolean
bool GetDescriptor( unsigned char descriptorType, unsigned char index, short langId, Object^ buffer, int bufferLength, [OutAttribute] int% transferLength )
Parameters
- descriptorType (Byte)
- The descriptor type ID to retrieve; this is usually one of the DescriptorType enumerations.
- index (Byte)
- Descriptor index.
- langId (Int16)
- Descriptor language id.
- buffer (Object)
- Memory to store the returned descriptor in.
- bufferLength (Int32)
- Length of the buffer parameter in bytes.
- transferLength (Int32%)
- The number of bytes transferred to buffer upon success.
Return Value
True on success.