My program is trying to create an key on the
HKLM\Software\Microsoft\Shared Tools\MSCONFIG\startupreg\test\
but instead the key is created on the
HKLM\Wow6432node\Software\Microsoft\Shared Tools\MSCONFIG\startupreg\test\
and don’t work properly… Why? How can I solve it?
Registry redirection is on, because you are running a 32-bit program. If you switch to 64-bit, you will not have this redirection.