473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Modems

gad
How do i get a list of modems that are connectes to my ports?
Jan 4 '06 #1
2 1788
On Wed, 4 Jan 2006 06:09:03 -0800, gad <ga*@discussions.microsoft.com>
wrote:
How do i get a list of modems that are connectes to my ports?


Slightly modified from http://www.vbfrance.com/code.aspx?ID=20345

---snip---
Private Sub LoadModemList()
Try
Dim mngSearch As New ManagementObjectSearcher("Select *
From Win32_POTSModem")
Dim mngColl As ManagementObjectCollection = mngSearch.Get
Dim mngObj As ManagementObject

For Each mngObj In mngColl
Debug.WriteLine(CType(mngObj.Item("AttachedTo"),
String) & " - " & CType(mngObj.Item("Name"), String))
Next

Catch ex As Exception

End Try

End Sub
---snip---

Remember to add a reference to System.Management in your project
in order to access the objects in the System.Management namespace.

The sample is nearly two years old. Perhaps there is something better
in VS2005?

/Joergen Bech

Jan 4 '06 #2

Additional note: You can find a list of Win32_POTSModem properties
here:
http://msdn.microsoft.com/library/de..._potsmodem.asp

/Joergen Bech

On Wed, 04 Jan 2006 15:26:05 +0100, Joergen Bech
<jbech<NOSPAM>@<NOSPAM>post1.tele.dk> wrote:
On Wed, 4 Jan 2006 06:09:03 -0800, gad <ga*@discussions.microsoft.com>
wrote:
How do i get a list of modems that are connectes to my ports?


Slightly modified from http://www.vbfrance.com/code.aspx?ID=20345

---snip---
Private Sub LoadModemList()
Try
Dim mngSearch As New ManagementObjectSearcher("Select *
From Win32_POTSModem")
Dim mngColl As ManagementObjectCollection = mngSearch.Get
Dim mngObj As ManagementObject

For Each mngObj In mngColl
Debug.WriteLine(CType(mngObj.Item("AttachedTo"),
String) & " - " & CType(mngObj.Item("Name"), String))
Next

Catch ex As Exception

End Try

End Sub
---snip---

Remember to add a reference to System.Management in your project
in order to access the objects in the System.Management namespace.

The sample is nearly two years old. Perhaps there is something better
in VS2005?

/Joergen Bech


Jan 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: zafer | last post by:
We are performing replication between computers that connected via dial-up modems. And we dont know how these computers will connect with sql server at central computer. Automatically or some...
1
by: Brayan | last post by:
I would like to know what are good sources to learn how to develop applications for faxmodems. I would like to develop an application which converts my documents to the necessary fax format...
2
by: LuCk | last post by:
Does anyone know about connecting to a modem and listening dial tones to see what button the user pressed with C++? Regards, Carl
0
by: JaffaB | last post by:
Hi, This may sound like a strange question, but is there any special access set-up or security controls around COM ports or Modems? I am trying to create a routine that sends SMS and pagers...
0
by: Bootstrap Bill | last post by:
Does anyone know if there is a Microsoft .net library for working with voice modems? Also, do standard voice modems support speach recognition? I want to write a menu system for voice modems...
1
by: Jonas Hei | last post by:
I need to develop support for communications using modems (AT compatible modems) in my application? Where do I start? Would you recommend using TAPI? Or would it be a better idea to directly...
2
by: Mike Hildner | last post by:
I've searched MSDN, but can't find a way to list all the modems on my machine. Can anyone point me in the right direction? TIA, Mike
5
by: delimiter | last post by:
Okay, this problem is a problem that arose out of .NET coding rather than a hardware problem. I have a hard time trying to figure out how I can determine the port the modem is connected to, in...
1
by: theVOID1 | last post by:
Hi guys! Im building an application where I want to be able to have 3 USB UMTS modems in one computer. Does anyone have experience in using several modems at the same time? I also want them to...
0
by: ajorge | last post by:
I'm a rookie with C# and VB programming languages, but I need to make a connection of two GSM Modems for Remote Monitoring. I've done some web research and i've found a C# code to make the two modems...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.