All I can say is that it does not use the setupDI WDM functions, if you donโt know EXACTLY what you are doing, this is the way back for me, but check out the Windows DDK samples. I think the DLL implementation you see in the device manager is in / ports ...
The problem is that the serial ports are very old, so they were dragged for centuries and hacked together in Windows 7, so, for example, when you make changes to the COM port, you need to write to win. ini, but win.ini does not exist (wtf, I heard you say) that since any "changes" are returned back to the registry.
Any, like, good luck ..
source share