Programmatically allow write access for a Registry key
Posted
by Kerido
on Stack Overflow
See other posts from Stack Overflow
or by Kerido
Published on 2010-03-13T12:21:35Z
Indexed on
2010/03/13
12:25 UTC
Read the original article
Hit count: 313
Hi everybody,
I need to programmatically modify the Access Descriptors on a known Registry key during product installation. The way I want it to work is:
- The installer is run in Administrative mode.
- A Registry key is created.
- A function (the one I need) queries the ACL from the key.
- If this function finds that the group 'Users' already has write access, nothing should be done.
- If not, it should add a new permission allowing write access to the 'Users' group.
- The permissions are saved for the Registry key.
This question is similar to Setting Registry key write permissions using .NET, however, I need a C++/Win32 implementation.
Thanks in advance
© Stack Overflow or respective owner