I'm trying to delete a value in the registry in my program, but I have a question. The RegDeleteValue key will work but it only has two parameters. The hKey and the Value. If I want to delete a key in say HKEY_CURRENT_USER\Software\MyCompany then how do I put that in hKey? I've tried HKEY_CURRENT_USER & "Software\MyCompany" but that doesn't seem to work. What to do?