You're barking up the wrong tree, Srihari. You can't modify the Registry if
you don't have permission to use the Registry.
You certainly can modify the Registry programmatically, using the
Microsoft.Win32 .Registry and Microsoft.Win32.RegistryKey classes, but
again, you wouldn't be able to if you don't have permission.
You CAN use the WindowsIdentity class (and some unmanaged code) to
impersonate a user account that has whatever permissions your app needs, as
long as you know the domain, user name, and password for that account. See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemsecurityprincipalwindowsidentityclassimpersonatetopic.asp

Signature
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
Big things are made up of
lots of little things.
> Hi all,
> I am facing one problem while generating the entries in the EventLog in
[quoted text clipped - 26 lines]
> regards
> Srihari k