CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    How to Get the COM Port Collection

    Hello,

    How can I dynamically get the number of COM Ports connected to the system
    using the API. It should be a generic code irrespective of the system. This is needed to identify the COM Port and there after do some processing with the
    equipment connected to it.

    Pl. Let me know if you have any idea regarding this..

    Regards

    Prasad



  2. #2
    Guest

    Re: How to Get the COM Port Collection

    Namaskar Prasad,

    You can Get the number of COM ports from Registry key

    HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM
    There is one Value for one COM port
    Access Registry.

    Thank You

    Krishna


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