Click to See Complete Forum and Search --> : How to Get the COM Port Collection


September 11th, 1999, 09:48 PM
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

May 4th, 2000, 01:33 PM
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