in src/core/transport/http/server/IIS/axis2_isapi_plugin.c [343:390]
axis2_status_t AXIS2_CALL read_registery_init_data()
{
long rc = 0;
axis2_status_t ok = TRUE;
char tmpbuf[INTERNET_MAX_URL_LENGTH];
HKEY hkey;
AXIS2_IMPORT extern axis2_char_t *axis2_request_url_prefix;
rc = RegOpenKeyEx(HKEY_LOCAL_MACHINE, REGISTRY_LOCATION, (DWORD) 0, KEY_READ, &hkey);
if (ERROR_SUCCESS != rc)
{
return AXIS2_FAILURE;
}
if (get_registry_config_parameter(hkey, AXIS2_IIS_REPO_PATH_TAG, tmpbuf, sizeof(repo_path)))
{
strcpy(repo_path, tmpbuf);
}
else
{
return AXIS2_FAILURE;
}
if (get_registry_config_parameter(hkey, AXIS2_IIS_LOG_FILE_TAG, tmpbuf, sizeof(log_file)))
{
strcpy(log_file, tmpbuf);
}
else
{
return AXIS2_FAILURE;
}
if (get_registry_config_parameter(hkey, AXIS2_IIS_LOG_LEVEL_TAG, tmpbuf, sizeof(tmpbuf)))
{
log_level = axis2_iis_parse_log_level(tmpbuf);
}
else
{
return AXIS2_FAILURE;
}
if (get_registry_config_parameter(hkey, AXIS2_IIS_SERVICE_URL_PREFIX, tmpbuf, sizeof(tmpbuf)))
{
axis2_request_url_prefix = _strdup(tmpbuf);
}
if (get_registry_config_parameter(hkey, AXIS2_IIS_AXIS2_LOCATION, tmpbuf, sizeof(tmpbuf)))
{
axis2_location = _strdup(tmpbuf);
}
RegCloseKey(hkey);
return ok;
}