How do I get a list of available serial ports in Win32?

后端 未结 5 1644
青春惊慌失措
青春惊慌失措 2020-11-29 19:16

I have some legacy code that provides a list of the available COM ports on the PC by calling the EnumPorts() function and then filtering for the port names that start with \

5条回答
  •  日久生厌
    2020-11-29 19:50

    I have reorganized PJ Naughter 's EnumSerialPorts as more portable and individual forms, that is more useful.

    For better in compatibility, I use C, instead of C++.

    If you need or be interested in it, please visit the post in my blogger.

提交回复
热议问题