Which comm ports exist? Win32

Posted by myforwik on Stack Overflow See other posts from Stack Overflow or by myforwik
Published on 2009-03-31T06:13:02Z Indexed on 2010/03/20 20:51 UTC
Read the original article Hit count: 369

Filed under:
|

On win32, using winapi, is there anyway to know which comports (from com0 upwards) actually exist as devices?

At the moment I am just attemping to open them all (0 to 9), but I can't figure out the difference of failure between one not existing, and one not simply being available for use because someone else is using it. Both situations seem to return the same last error, so I was wondering if I could list all the comports available on the system.

© Stack Overflow or respective owner

Related posts about winapi

Related posts about serial-port