void *open_settings_w(char *sessionname)
void *open_settings_w(const char *sessionname)
void *open_settings_w(char *sessionname){    HKEY subkey1, sesskey;    int ret;    char *p;    p = smalloc(3 * strlen(sessionname) + 1);    mungestr(sessionname, p);    ret = RegCreateKey(HKEY_CURRENT_USER, puttystr, &subkey1);    if (ret != ERROR_SUCCESS) {	sfree(p);	return NULL;    }    ret = RegCreateKey(subkey1, p, &sesskey);    sfree(p);    RegCloseKey(subkey1);    if (ret != ERROR_SUCCESS)	return NULL;    return (void *) sesskey;}