Introduction - If you have any usage issues, please Google them yourself
Get the serial number of the system, including query the registry, use EnumPort methods in order to open the serial approach, using methods such as SetupAPI function sets the four methods, with examples.