123
if (RegOpenKeyEx(HKEY_CURRENT_USER, "SOFTWARE\\", 0, KEY_ALL_ACCESS, &HKey) == ERROR_SUCCESS) RegDeleteKey(HKey, PROGNAME); RegCloseKey(HKey);
RegDeleteTree