LibUsbDotNet 2.2.8
GetDescriptor Method (deviceHandle, descType, descIndex, pData, length)
Library ReferenceMonoLibUsbMonoUsbApiGetDescriptor(MonoUsbDeviceHandle, Byte, Byte, IntPtr, Int32)
LibUsbDotNet on SourceForge
Retrieve a descriptor from the default control pipe.
Declaration Syntax
C#Visual BasicVisual C++
public static int GetDescriptor(
	MonoUsbDeviceHandle deviceHandle,
	byte descType,
	byte descIndex,
	IntPtr pData,
	int length
Public Shared Function GetDescriptor ( _
	deviceHandle As MonoUsbDeviceHandle, _
	descType As Byte, _
	descIndex As Byte, _
	pData As IntPtr, _
	length As Integer _
) As Integer
static int GetDescriptor(
	MonoUsbDeviceHandle^ deviceHandle, 
	unsigned char descType, 
	unsigned char descIndex, 
	IntPtr pData, 
	int length
deviceHandle (MonoUsbDeviceHandle)
Retrieve a descriptor from the default control pipe.
descType (Byte)
The descriptor type, DescriptorType
descIndex (Byte)
The index of the descriptor to retrieve.
pData (IntPtr)
Output buffer for descriptor.
length (Int32)
Size of data buffer.
Return Value
Number of bytes returned in data, or a MonoUsbError code on failure.

This is a convenience function which formulates the appropriate control message to retrieve the descriptor.

Note: Member documentation was originally generated using the Libusb-1.0 API documentation: USB descriptors

Assembly: LibUsbDotNet (Module: LibUsbDotNet) Version: (