Is there a way to check if the current user can write to the registry? More specifically, if he is not an administrator, he can write HKEY_LOCAL_MACHINE or policy keys to HKEY_CURRENT_USER.
I tried with LookupPrivilegeValue () , but I don't think it is correct.
Evaluated code.
source
share