DeleteRegistryKey
From Solid Graphics Wiki
| ||||||||||||
The DeleteRegistryValue function deletes the specified registry key. The key to be deleted must not have subkeys.
bool DeleteRegistryKey
(
RegistryRoot regRoot,
const char* keyName
);
Parameters
| regRoot | Root of the registry key. This can be either SKL::ClassesRoot, or SKL::CurrentUser or SKL::LocalMachine. |
| keyName | The registry key name, for example "SOFTWARE\\Microsoft\\DevStudio" |
Return value
The function returns true if the registry key was successfully deleted, false if the key could not be deleted (for example because of access denied error) of the key did not exist.
See Also
- ImportRegistryData
- GetRegistrySubKeyNames
- GetRegistryValueNames
- GetRegistryValue
- SetRegistryValue
- RegistryKeyExist
- RegistryValueExist
- DeleteRegistryValue
