hi,

just wonder if somebody has a perspective.

I am attempting to try out in c# some of the things was happy with in VB6....

I have looked for many code samples and to read the registry I am using something like
Code:
RegistryKey testkey = Registry.LocalMachine.OpenSubKey("Software", true);
I have tried load of slighty different code - always I get a System.Security.SecurityException from mscorlib.dll.

I am a local admin of the machine I am running on and can regedit to the key I am viewing.


questions

- do .net form apps run in the context of the user involking them?

or

- is there additional security on the registry calls (over and above the usual reg-key protection that I can play with via Regedt32)

or am I just barking mad!!

cheers AJP