That link may fix your issue about hidden files and folders. But if your computer is really infected(which I doubt is infected cuz the settings are getting reset), I would suggest you to first remove the infection rather than tweaking the registry cuz tweaking the registry won't take care of the virus problem.
You can download the following file and run it, it should take care of the almost every malware/virus:
http://download.bleepingcomputer.com/sUBs/ComboFix.exe
Do not do anything on the computer while its running. Let it finish and then it would reboot the computer. Once the computer is backup it would generate a log of what it has removed. Wait for the log to get generated(meaning do not do until the log is generated). Total time taken to remove the infection/s may vary. So be patient.
Hope this helps.