Retreive First Enabled Modem Device Using .Net System.Management

原创 2010年01月18日 16:17:00

 

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

 

相关文章推荐

.net 与ios 消息推送----编写push notification之获取device token

iOS的通知(notifications)有两种形式: push notifications,从iOS3开始就有了,由远程服务器发起通知local notifications,从iOS4开始支持...

Use P/Invoke to Develop a .NET Base Class Library for Serial Device Communications

转:http://msdn.microsoft.com/zh-cn/magazine/cc301786(en-us).aspx   John Hind Code ...

Use P/Invoke to Develop a .NET Base Class Library for Serial Device Communications

Serial Comm Use P/Invoke to Develop a .NET Base Class Library for Serial Device Communications Joh...

A lightweight AJAX.NET-enabled grid control

  • 2009年06月26日 13:13
  • 1.14MB
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Retreive First Enabled Modem Device Using .Net System.Management
举报原因:
原因补充:

(最多只允许输入30个字)