Pizzor2000
March 29th, 2010, 06:18 PM
How would I determine if the currently logged-in user has permissions to write to a registry key?
For example, I am writing an applet that allows the user to change the registered owner and organization for Windows. Since this is a system-wide setting, only administrators can change it.
What I would like to do is determine if the current user has write permissions on these registry entries, so if they don't, the program would gray out the text boxes where they enter these values.
For example, I am writing an applet that allows the user to change the registered owner and organization for Windows. Since this is a system-wide setting, only administrators can change it.
What I would like to do is determine if the current user has write permissions on these registry entries, so if they don't, the program would gray out the text boxes where they enter these values.