deleteValue method
Removes a named value from the specified Registry key. Note that value names are not case sensitive.
Implementation
void deleteValue(String valueName) {
final lpValueName = valueName.toNativeUtf16();
try {
final retcode = RegDeleteValue(hkey, lpValueName);
if (retcode != WIN32_ERROR.ERROR_SUCCESS) {
throw WindowsException(HRESULT_FROM_WIN32(retcode));
}
} finally {
free(lpValueName);
}
}