Lines Matching defs:hKey
87 * @param hKey Receives storage path handle on success.
143 * @param hKey Handle to close, retrieved by
146 static int vbglR3CloseAdditionsWinStoragePath(HKEY hKey)
148 return RTErrConvertFromWin32(RegCloseKey(hKey));
185 * @param hKey Handle of registry key to use.
190 static int vbglR3QueryRegistryString(HKEY hKey, const char *pszValName, char *pszBuffer, size_t cchBuffer)
199 LONG lRet = RegQueryValueEx(hKey, pszValName, NULL, &dwType, (BYTE *)pszBuffer, &dwSize);
237 HKEY hKey;
238 int rc = vbglR3QueryAdditionsWinStoragePath(&hKey);
247 rc = vbglR3QueryRegistryString(hKey, "Version", szTemp, sizeof(szTemp));
255 rc = vbglR3QueryRegistryString(hKey, "VersionExt", szTemp, sizeof(szTemp));
266 rc = vbglR3QueryRegistryString(hKey, "Revision", szTemp, sizeof(szTemp));
271 int rc2 = vbglR3CloseAdditionsWinStoragePath(hKey);
317 HKEY hKey;
318 rc = vbglR3QueryAdditionsWinStoragePath(&hKey);
327 LONG l = RegQueryValueEx(hKey, "InstallDir", NULL, &dwType, (BYTE*)(LPCTSTR)pszTmp, &dwSize);
350 rc = vbglR3CloseAdditionsWinStoragePath(hKey);