Is there a way to get the COM port number for a device through DeviceInformation ? I can see COM port numbers when I look at them through the device manager.
I just came across several devices that do not list the COM port number as part of the Name property. I included them in two, and there is no way to distinguish them from each other. Ideally, I would like to see a COM port. Is there any other way to get this information?
string _serialSelector = SerialDevice.GetDeviceSelector(); DeviceInformationCollection tempInfo = await DeviceInformation.FindAllAsync(_serialSelector); if (tempInfo.Count > 0) { foreach (var efefe in tempInfo) { if (efefe.Kind.Equals(DeviceInformationKind.DeviceInterface)) {
c # uwp
Carlo mendoza
source share