Quote:
system("reg add HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\ /v TEST /t REG_SZ /d CPU Name");
The backslash is the escape character in
C/C++
strings, and it must be escaped as well.
Replace every occurrence of
\
, in your string, with the sequence
\\
.