Lines Matching defs:hKey
164 static HKEY
165 openkey (HKEY hStart, const char *keys[])
167 HKEY hKey, hTmp;
168 for (hKey = hStart; *keys; keys++)
171 hTmp = hKey;
172 res = RegOpenKey (hTmp, *keys, &hKey);
180 return hKey;
187 HKEY hKey, hTmp;
194 hKey = openkey (HKEY_LOCAL_MACHINE, mingw_keys);
197 if (!hKey)
202 if (RegQueryInfoKey (hKey, NULL, NULL, NULL, NULL, &maxlen, NULL, NULL,
205 RegCloseKey (hKey);
213 RegCloseKey (hKey);
222 for (i = 0; RegEnumKey (hKey, i, namebuf, maxlen) == ERROR_SUCCESS; i++)
238 RegCloseKey (hKey);
243 res = RegOpenKey (hKey, foundbuf, &hTmp);
244 RegCloseKey (hKey);