if (RegCreateKey(HKEY_CURRENT_USER, puttystr, &key) != ERROR_SUCCESS)
if (RegOpenKey(HKEY_CURRENT_USER, puttystr, &key) != ERROR_SUCCESS)
void *enum_settings_start(void){    struct enumsettings *ret;    HKEY key;    if (RegCreateKey(HKEY_CURRENT_USER, puttystr, &key) != ERROR_SUCCESS)	return NULL;    ret = smalloc(sizeof(*ret));    if (ret) {	ret->key = key;	ret->i = 0;    }    return ret;}