Hi

I am not completely sure, what you try to achieve. I'd have answered
similiar to Phish . Since it seems you need some more information, here
are a few, which might be relevant.

When you create your registry keys using RegCreateKeyEx[1] (with whatever
language), you can set the security options as a parameter[2]. If the key exists
and you want to alter the key security, RegSetKeySecurity[3] will do the job.
However, as an administrator, you can take ownership of the registry key (by
first giving yourself the necessary priviledge), modify its security settings and
change the entry (I should test this, before writing it ... ). Users, with limited
accounts, are "safe" using your tool though. Not sure about Win98-capabilities...

You also could alter the permissions using regini.exe[4] from the resource tool kit.
But then, this should be part of your program.

If you have troubles with stage 3, I am willing to help you.
However, this will have to wait till next Monday (travelling - again - pfff).

Cheers.


[1] http://msdn.microsoft.com/library/de...reatekeyex.asp
[2] http://msdn.microsoft.com/library/de...ess_rights.asp
[3] http://msdn.microsoft.com/library/de...eysecurity.asp
[4] http://support.microsoft.com/kb/237607/en-us