Com port scanning


Pankaj S


Is there any way (registry entry or API) to get the active ports?

Thanks in advance,



Chris Tacke, eMVP

Just like with C++, there's no way to really know what's available short of
enumerating through COM1 to COM9 and seeing what doesn't return an error
code when you call CreateFile.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

USB Com ports 6
144hz via DVI to Display port 8
SerialPort IOException 1
Parallel Port 3
How to find an uninstalled com port? 5
COM Port Delete 1
comport is inactive 1
COM Port 4