Retreive First Enabled Modem Device Using .Net System.Management

 

In case we want to send some AT Command to the first workable mobile device connected to the computer, normally we start the 'devmgmt.msc' to find out which COM port is the right port, but if there is a programming way to do that?

The following is the code to retrieve the first 'Enabled' modem device,

 

 

 

 

the fields comName and baudRate will be updated for later use.

 

写在这里留着自己以后用,见笑了。

 

- iqueen.blogspot.com

 

阅读更多
个人分类: C_Cpp
想对作者说点什么? 我来说一句

获取mac地址的一个简单办法

2012年07月12日 1KB 下载

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭