[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

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

Posted on 2004-10-24
5
Medium Priority
?
204 Views
Last Modified: 2010-05-02
I want to know the API/Code to list all the Comm Ports present in the Computer(Virtual as well as Physical).......

Imran
0
Comment
Question by:imarshad
5 Comments
 
LVL 13

Author Comment

by:imarshad
ID: 12397690
and it should be intende for windows XP.....
0
 
LVL 10

Assisted Solution

by:NetworkArchitek
NetworkArchitek earned 200 total points
ID: 12397735
0
 
LVL 8

Assisted Solution

by:ampapa
ampapa earned 200 total points
ID: 12398777
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
 
LVL 32

Accepted Solution

by:
Erick37 earned 600 total points
ID: 12403941
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
 
LVL 13

Author Comment

by:imarshad
ID: 12408239
Thanks for the help......
Imran
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question