Retrieve a descriptor from the default control pipe.

C# | Visual Basic | Visual 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
public: 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.

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.
