2004年8月30日

获取系统的所有串口

摘要: 第一个思路应该是用建立串口的方式来取得串口名,若建立失败,则此串口不存在voidGetComList(){CStringstrCom;intnCom=0;intcount=0;HANDLEhCom;do{nCom++;strCom.Format("COM%d",nCom);hCom=CreateFile(strCom,0,0,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMA... 阅读全文

posted @ 2004-08-30 15:45 khan 阅读(1693) 评论(0) 推荐(0) 编辑

导航