Solved

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

Posted on 2004-10-24
202 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
Question by:imarshad
    5 Comments
     
    LVL 13

    Author Comment

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

    Assisted Solution

    by:NetworkArchitek
    0
     
    LVL 8

    Assisted Solution

    by:ampapa
    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:
    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
    Thanks for the help......
    Imran
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    The Complete Ruby on Rails Developer Course

    Ruby on Rails is one of the most popular web development frameworks, and a useful tool used by both startups and more established companies to build strong graphic user interfaces, and responsive websites and apps.

    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…
    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    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…

    857 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now