I'm trying to write a C++ program which automatically detects the COM Port numbers of all connected arduinos.
I already found that I can get a list of all available COM Port devices in HKLM/HARDWARE/DEVICEMAP/SERIALCOMM
but there are no information about the device which is listening there. Is there a way to get for example the GUID or the device description to detect which one is the Arduino? The only other way I see is to try sending something to every port and listen for a previously defined response.
Thank you for your responses :)
EDIT: I think I should mention that I use g++ as compiler and MinGW. syam has linked me this How to auto-detect Arduino COM port? which seems to achieve what I want but is written in C# and uses .Net specific APIs when I need pure Win32.