Saturday, December 29, 2007

C#: Delete all sub keys under a registry key

public bool DeleteRegistrySubkey(Microsoft.Win32.RegistryKey regHive, string regKey)
{
bool response = false;

regHive.DeleteSubKeyTree(regKey);
response = true;

return response;
}

No comments:

Post a Comment

Please use your common sense before making a comment, and I truly appreciate your constructive criticisms.