LibUsbDotNet 2.2.8
GetDeviceList Method (sessionHandle, monoUSBProfileListHandle)
Library Reference ► MonoLibUsb ► MonoUsbApi ► GetDeviceList(MonoUsbSessionHandle, MonoUsbProfileListHandle%)
|
![]() |
Returns a list of USB devices currently attached to the system.

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 )

- sessionHandle (MonoUsbSessionHandle)
- A valid MonoUsbSessionHandle.
- monoUSBProfileListHandle (MonoUsbProfileListHandle%)
- output location for a list of devices.

The number of devices in the outputted list, or ErrorNoMem on memory allocation failure.

This is your entry point into finding a USB device to operate.
