I\'m currently having an issue when writing an app to set permissions on some Legacy keys. Legacy keys are quite locked down and to actually modify them in regedit you have
When you run your app with that code are you right-clicking the exe and selecting "Run As Administrator"?