Registry Permissions

  • Thread starter Thread starter Steve Harclerode
  • Start date Start date
S

Steve Harclerode

I have a registry value that I wish to read from a web page. The web page
that I wrote using "Wscript.Shell" works great, *if* I manually set up a
permission on the registry value to allow the IUSER_MYMACHINE account to
access it.

The only problem is that this registry value is deleted sometimes when a C#
Windows service that I wrote stops, as per client spec. It then re-creates
the value when it starts again. So, I need to have that service set the
permission when it starts. Is there a way to do this programmatically?

Thanks for any and all replies.
 
I have a registry value that I wish to read from a web page. The web
page that I wrote using "Wscript.Shell" works great, *if* I manually
set up a permission on the registry value to allow the IUSER_MYMACHINE
account to access it.

The only problem is that this registry value is deleted sometimes when
a C# Windows service that I wrote stops, as per client spec. It then
re-creates the value when it starts again. So, I need to have that
service set the permission when it starts. Is there a way to do this
programmatically?

Thanks for any and all replies.

Hi,

On www.gotdotnet.com is a user sample about win32 security features. It
also contains a sample how to set a discretionary access control list of an
registry object.

http://www.gotdotnet.com/Community/UserSamples/Details.aspx?
SampleGuid=e6098575-dda0-48b8-9abf-e0705af065d9

--
------ooo---OOO---ooo------

Peter Koen - www.kema.at
MCAD CAI/RS CASE/RS IAT

------ooo---OOO---ooo------
 
Back
Top