[Solved] How come GetDefaultCommConfig fails on windows 10


This had been a bug in usbser.sys and was fixed with the Windows 10 Update KB3124262 from 27.01.2016.

The Microsoft employee explained:

The COM port name in the HKLM\HARDWARE\DEVICEMAP\SERIALCOMM registry is not NULL terminated.

Related discussion on MSDN

Because of Windows 10’s update policies this issue should not appear in the future anymore.

solved How come GetDefaultCommConfig fails on windows 10