243244245246247248249250251252253
handle = openKey(rootKey, subKeyName, WINNT.KEY_READ | WINNT.KEY_WRITE); if (handle != 0) { if (advapi32.RegDeleteValue(handle, name) == WINERROR.ERROR_SUCCESS) { ret = true; } advapi32.RegCloseKey(handle); }