You need to set rights on one HKEY_LOCAL_MACHINE key.
This should get you on your way:

http://blogs.msdn.com/aaron_margosis/archive/2005/02/09/370263.aspx
_________________________
The Code is out there