CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2002
    Posts
    1

    Serial Port Detection

    Hi,

    Does anyone know how to detect all communication ports avaliable on PC and retrieve information about these ports (the way Windows Device Manager does)? Some applications add virtual comm ports (i.e. Bluetooth communication program adds several virtual ports, like "(3Com) Bluetooth Serial Host (COM4)") which are properly detected and listed by the Device Manager. I did not find so far an appropriate API call to retrieve such information. Any advice will be greately appreciated.

    Thanks,
    Michael


  2. #2
    Join Date
    Jan 2003
    Location
    Pune, India
    Posts
    42
    Although it is long back u posted this question but i am looking at it today only ..

    One of the solution(workaround) which i c try poening each port one by one.
    If u succeed opening ..com port is live.
    Try opening next

    At last you will get the information of all the com ports.

    Do write if u found some other solution.



    Anurag
    "The stars are constantly shining, but often we do not see them until the darkest hours."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured