Lines Matching defs:root

1325 addEnvironmentInfo(EnvironmentInfo **root, EnvironmentInfo* parent, EnvironmentInfo *node)
1327 EnvironmentInfo *r = *root;
1329 *root = node;
1366 // If node has no parent, then it is the root.
1367 *root = node;
1389 _registryReadString(const wchar_t **dest, HKEY root, const wchar_t *subkey, const wchar_t *value)
1395 if (ERROR_SUCCESS != RegGetValueW(root, subkey, value, flags, NULL, NULL, &cbData)) {
1404 if (ERROR_SUCCESS == RegGetValueW(root, subkey, value, flags, NULL, buffer, &cbData)) {
1451 _registryReadLegacyEnvironment(const SearchInfo *search, HKEY root, EnvironmentInfo *env, const wchar_t *fallbackArch)
1465 exitCode = _registryReadString(&env->executableArgs, root, L"InstallPath", L"WindowedExecutableArguments");
1468 exitCode = _registryReadString(&env->executableArgs, root, L"InstallPath", L"ExecutableArguments");
1525 _registryReadEnvironment(const SearchInfo *search, HKEY root, EnvironmentInfo *env, const wchar_t *fallbackArch)
1527 int exitCode = _registryReadString(&env->installDir, root, L"InstallPath", NULL);
1536 return _registryReadLegacyEnvironment(search, root, env, fallbackArch);
1541 exitCode = _registryReadString(&env->executablePath, root, L"InstallPath", L"WindowedExecutablePath");
1543 exitCode = _registryReadString(&env->executableArgs, root, L"InstallPath", L"WindowedExecutableArguments");
1552 exitCode = _registryReadString(&env->executablePath, root, L"InstallPath", L"ExecutablePath");
1554 exitCode = _registryReadString(&env->executableArgs, root, L"InstallPath", L"ExecutableArguments");
1566 exitCode = _registryReadString(&env->architecture, root, NULL, L"SysArchitecture");
1571 exitCode = _registryReadString(&env->displayName, root, NULL, L"DisplayName");
1580 _registrySearchTags(const SearchInfo *search, EnvironmentInfo **result, HKEY root, int sortKey, const wchar_t *company, const wchar_t *fallbackArch)
1587 err = RegEnumKeyExW(root, i, buffer, &cchBuffer, NULL, NULL, NULL, NULL);
1595 if (ERROR_SUCCESS == RegOpenKeyExW(root, buffer, 0, KEY_READ, &subkey)) {
1619 registrySearch(const SearchInfo *search, EnvironmentInfo **result, HKEY root, int sortKey, const wchar_t *fallbackArch)
1626 err = RegEnumKeyExW(root, i, buffer, &cchBuffer, NULL, NULL, NULL, NULL);
1638 if (ERROR_SUCCESS == RegOpenKeyExW(root, buffer, 0, KEY_READ, &subkey)) {
1882 HKEY root;
1906 if (ERROR_SUCCESS == RegOpenKeyExW(info->hive, info->subkey, 0, info->flags, &root)) {
1907 exitCode = registrySearch(search, result, root, info->sortKey, info->fallbackArch);
1908 RegCloseKey(root);
2177 selectEnvironment(const SearchInfo *search, EnvironmentInfo *root, EnvironmentInfo **best)
2182 if (!root) {
2188 int exitCode = _selectEnvironment(search, root, &result);