• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

List the Comm ports present in the system.....

I want to know the API/Code to list all the Comm Ports present in the Computer(Virtual as well as Physical).......

Imran
0
imarshad
Asked:
imarshad
3 Solutions
 
imarshadAuthor Commented:
and it should be intende for windows XP.....
0
 
NetworkArchitekCommented:
0
 
ampapaCommented:
Take a look at this link I think this is what your after: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=43685&lngWId=1
0
 
Erick37Commented:
Two ways, first with API:

Using CreateFile to Determine Available COM Ports
http://vbnet.mvps.org/code/system/comtestapi.htm

And using the MSComm control:

Using the MSCOMM Control to Determine Available COM Ports
http://vbnet.mvps.org/code/system/comtestmscomm.htm
0
 
imarshadAuthor Commented:
Thanks for the help......
Imran
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now