Returns a list of USB devices currently attached to the system.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static int GetDeviceList( MonoUsbSessionHandle sessionHandle, out MonoUsbProfileListHandle monoUSBProfileListHandle )
Public Shared Function GetDeviceList ( _ sessionHandle As MonoUsbSessionHandle, _ <OutAttribute> ByRef monoUSBProfileListHandle As MonoUsbProfileListHandle _ ) As Integer
public: static int GetDeviceList( [InAttribute] MonoUsbSessionHandle^ sessionHandle, [OutAttribute] MonoUsbProfileListHandle^% monoUSBProfileListHandle )
Parameters
- sessionHandle (MonoUsbSessionHandle)
- A valid MonoUsbSessionHandle.
- monoUSBProfileListHandle (MonoUsbProfileListHandle%)
- output location for a list of devices.
Return Value
The number of devices in the outputted list, or ErrorNoMem on memory allocation failure.
Remarks
This is your entry point into finding a USB device to operate.
Note:
Member documentation was originally generated using the Libusb-1.0 API documentation:
Device handling and enumeration