public void GetComList() { RegistryKey keyCom = Registry.LocalMachine.OpenSubKey("Hardware/DeviceMap/SerialComm"); if (keyCom != null) { string[] sSubKeys = keyCom.GetValueNames(); this.comboBox3.Items.Clear(); foreach (string sName in sSubKeys) { string sValue = (string)keyCom.GetValue(sName); this.comboBox3.Items.Add(sValue); } }
获取本机可用串口
最新推荐文章于 2024-11-15 16:56:14 发布
1万+

被折叠的 条评论
为什么被折叠?



