Get the USB configuration descriptor for the currently active configuration.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static int GetActiveConfigDescriptor( MonoUsbProfileHandle deviceProfileHandle, out MonoUsbConfigHandle configHandle )
Public Shared Function GetActiveConfigDescriptor ( _ deviceProfileHandle As MonoUsbProfileHandle, _ <OutAttribute> ByRef configHandle As MonoUsbConfigHandle _ ) As Integer
public: static int GetActiveConfigDescriptor( [InAttribute] MonoUsbProfileHandle^ deviceProfileHandle, [OutAttribute] MonoUsbConfigHandle^% configHandle )
Parameters
- deviceProfileHandle (MonoUsbProfileHandle)
- A device profile handle.
- configHandle (MonoUsbConfigHandle%)
- A config handle.
Return Value
- 0 on success
- ErrorNotFound if the device is in unconfigured state
- another MonoUsbError code on error
Remarks
Note:This is a non-blocking function which does not involve any requests being sent to the device.
Note:
Member documentation was originally generated using the Libusb-1.0 API documentation:
USB descriptors