In C++ I can use this function to get the device properties. Frankly I am interested in getting the friendly name of the device (fname), so I know exactly which com ports exist.
bool bSuccess = SetupDiGetDeviceRegistryProperty(hDevInfo, &devdata, SPDRP_FRIENDLYNAME, NULL, (PBYTE)fname, sizeof(fname), NULL);
But I can not find anything that just look alike in C#. Any suggestion ?.