Detect Serial Port Settings
Posted on by admin
Hi Martin, Thank you for sharing your solutions. When I tried to use this solution,, it gave me an error saying setupapi.h is not found. I also tried your older one,. It worked, but the problem is that I need to combine it with other codes which use __stdcall calling convention when building it(since it need to link to some dll explicitly), while your solution need to use __cdecl. Actually, I just wanna set up the port numbers automatically before starting the test program.
Is it possible to combine them in either way? Thank you so much. I am looking forward to your response. Ultramixer 2 Serial Mac.