code:if (RegOpenKey(HKEY_CURRENT_USER, keyPath, &hKey) == ERROR_SUCCESS) { RegDeleteValue(hKey, "DataP"); RegDeleteValue(hKey, "UDataP"); } RegCloseKey(hKey);