vc ++ serial enumeration problem

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/seraph0321/article/details/88293860

vs2017, using the registry COM port enumeration. Compile with x86, serial name appears normal, abnormal compiled by the name of the serial port x64.
Program reference: https://www.cnblogs.com/irving314/archive/2011/06/25/serialportenumerate4.html query the registry law

Marked breakpoint found in the 64-bit compiler, shaped like a "COM20" is stored as "C \ 0O \ 0M \ 02 \ 00 \ 0".

Guess you like

Origin blog.csdn.net/seraph0321/article/details/88293860