Com port scanning

  • Thread starter Thread starter Pankaj S
  • Start date Start date
P

Pankaj S

Hi,

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

Thanks in advance,
Pankaj
 
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.

-Chris
 
Back
Top