Programatically grant "full control" to "everyone" on a registry key?
delphi, permissions, registry
Solution
The function you need is `SetNamedSecurityInfo`. This topic on MSDN has sample code that will meet your needs: Modifying the ACLs of an Object in C++.
Problem
I'm trying to figure out how to programatically grant "Everyone" "Full Control" over our software's registry key so non-administrators are able to write to it. However, I cannot find this, the only solution I have found is a third-party registry component that allows you to. I don't want to install a whole third-party library just to be able to do this. Is there perhaps a Windows API call I could make to do this? This will be done inside a custom application installer of mine. Of course it would have to be done under elevated administrative access, which is another story.