C# DLL to search for connected devices


For windows system, information about connected devices can be found in the registry using the combination of the vendor ID and product ID.
The following DLL search through all connected devices by GUID to get a list of XIA devices, the index of this list is used as "device_number" in the configuration file. And vendor ID and product ID can be used to identify the device type.