How to enumerate modems?

  • Thread starter Thread starter Mike Hildner
  • Start date Start date
M

Mike Hildner

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
 
Hi,

You can get that info from the wmi. Add a reference to
system.management.dll to your app.

Dim moReturn As Management.ManagementObjectCollection

Dim moSearch As Management.ManagementObjectSearcher

Dim mo As Management.ManagementObject

moSearch = New Management.ManagementObjectSearcher("Select * from
Win32_POTSModem")

moReturn = moSearch.Get

For Each mo In moReturn

Debug.WriteLine(mo("Name"))

Next

Ken
 
Thanks, Ken. Have never even looked at system.management.dll. Interesting
stuff.

I appreciate the info,
Mike
 
Back
Top