GetDescriptor Method (descriptorType, index, langId, buffer, bufferLength, transferLength)

LibUsbDotNet

LibUsbDotNet 2.2.8 GetDescriptor Method (descriptorType, index, langId, buffer, bufferLength, transferLength)
Library ReferenceLibUsbDotNetIUsbInterfaceGetDescriptor(Byte, Byte, Int16, IntPtr, Int32, Int32%)
LibUsbDotNet on SourceForge
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,
	IntPtr buffer,
	int bufferLength,
	out int transferLength
)
Function GetDescriptor ( _
	descriptorType As Byte, _
	index As Byte, _
	langId As Short, _
	buffer As IntPtr, _
	bufferLength As Integer, _
	<OutAttribute> ByRef transferLength As Integer _
) As Boolean
bool GetDescriptor(
	unsigned char descriptorType, 
	unsigned char index, 
	short langId, 
	IntPtr 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 (IntPtr)
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.

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