Changing the registry permissions in C#

  • Thread starter Daniel Passwater via DotNetMonster.com
  • Start date
D

Daniel Passwater via DotNetMonster.com

I'm working on a app that displays according to a registry key value. The
user needs the ability to update the display, and hense the registry key
(via a click event on a popup menu). This all worked just fine until some
users were set up as power-users. I've tried to change the permissions on
that key programatically, on the fly, but to no avail.

Here's my question: While the user is logged in with limited permissions,
will the application be able to change the permissions or will it be bound
by the restrictions of the user?

Thanks.
 
D

Dan Bass

In short, from my experience, no. You're application is bound by the rights
of the user under which it is run. I has a similar situation where I was
writing a bespoke application on a corporate network and the standard users
didn't have read permissions to the registry hive I'd set up. The end result
was moving the configuration to the config file, which in my situation was
better anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top