In my small application I am trying to create a sub-key in registry. I am doing this in Windows 7. I’ve tried all the possible combinations of keys for the RegCreateKeyEx function. As I remember, in Win XP everything was fine. Nevertheless it returns me always “Access denied” result. I have found that one must to do something with User Access Control settings. This information is explained in a chaotic manner and I haven’t got what should be done. Can someone show me the way out? Thanks in advance.
In my small application I am trying to create a sub-key in registry. I
Share
According to the comments, you are trying to write to HKCR. In order to do that you need admin rights.
If you really do need to write to this key then you are going to need to run with administrator rights. That’s going to require a requireAdministrator manifest.