Lines Matching refs:key_handle
66 HKEY key_handle;
75 if (RegOpenKeyExW (root_key, dir, 0, KEY_READ, &key_handle))
79 if (RegQueryValueExW (key_handle, name, 0, NULL, NULL, &nbytes))
81 RegCloseKey (key_handle);
89 RegCloseKey (key_handle);
92 if (RegQueryValueExW (key_handle, name, 0, &type, (LPBYTE) result_w, &nbytes))
94 RegCloseKey (key_handle);
98 RegCloseKey (key_handle);
140 HKEY root_key, key_handle;
157 if (RegOpenKeyExA (root_key, dir, 0, KEY_READ, &key_handle))
162 if (RegOpenKeyExA (HKEY_LOCAL_MACHINE, dir, 0, KEY_READ, &key_handle))
167 if (RegQueryValueExA (key_handle, name, 0, NULL, NULL, &nbytes))
172 RegCloseKey (key_handle);
173 if (RegOpenKeyExA (HKEY_LOCAL_MACHINE, dir, 0, KEY_READ, &key_handle))
175 if (RegQueryValueExA (key_handle, name, 0, NULL, NULL, &nbytes))
182 if (RegQueryValueExA (key_handle, name, 0, &type, result, &n1))
191 RegCloseKey (key_handle);