C ++ cannot write the value to the Registry HKEY_LOCAL_MACHINE \ Sofeware \ Microsoft \ Windows \ CurrentVersion \ Run to enable auto-Start application at startup ., Registry auto-Start entry
C ++ cannot write the value to the Registry HKEY_LOCAL_MACHINE \ Sofeware \ Microsoft \ Windows \ CurrentVersion \ Run to enable auto-Start application at startup.However, it can be written to HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Run, which can also achieve automatic start upon startup.
The actual write directory is:
Directory:
Under the admin user's logon permission, C ++ can write the value to the Registry HKEY_LOCAL_MACHINE \ Sofeware \ Microsoft \ Windows \ CurrentVersion \ Run. The Administrator permission can only be written
HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Microsoft \ Windows \ CurrentVersion \ Run. The implementation effect is the same as that of admin.