Click to See Complete Forum and Search --> : Serial Port Detection


mpsakhis
February 18th, 2002, 12:04 PM
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

Anurag_2003
January 3rd, 2003, 07:33 AM
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.


:cool:
Anurag