MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / RegistryKeyExists

Method RegistryKeyExists

cpp/iedriver/RegistryUtilities.cpp:138–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138bool RegistryUtilities::RegistryKeyExists(HKEY root_key,
139 const std::wstring& subkey) {
140 HKEY key_handle;
141 long registry_call_result = ::RegOpenKeyEx(root_key,
142 subkey.c_str(),
143 0,
144 KEY_QUERY_VALUE,
145 &key_handle);
146 bool result = (ERROR_SUCCESS == registry_call_result);
147 if (result) {
148 ::RegCloseKey(key_handle);
149 }
150 return result;
151}
152
153bool RegistryUtilities::Is64BitWindows() {
154 SYSTEM_INFO system_info;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected