You don't report $^E so we are left to just guess what category the failure falls into.
I think you would need WRITE_DAC access in order to write permission settings (and READ_CONTROL to read them). WRITE_DAC is included as part of KEY_ALL_ACCESS but not KEY_WRITE (READ_CONTROL is included in nearly every defined access mask). See WinNT.h (part of MS SDKs) for more about how these values relate to each other.
- tye
In reply to Re: Win32 Registry permissions ($^E)
by tye
in thread Win32 Registry permissions
by runrig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |