Lines Matching refs:hKey
97 HKEY hKey = NULL; in CheckExtensionInRegistry() local
98 LONG lResult = RegOpenKeyExA( HKEY_CLASSES_ROOT, lpSubKey, 0, KEY_QUERY_VALUE, &hKey ); in CheckExtensionInRegistry()
105 lResult = RegQueryValueExA( hKey, "", NULL, NULL, (LPBYTE)szBuffer, &nSize ); in CheckExtensionInRegistry()
131 … lResult = RegOpenKeyExA( hKey, "OpenWithList", 0, KEY_ENUMERATE_SUB_KEYS, &hSubKey ); in CheckExtensionInRegistry()
160 RegCloseKey( hKey ); in CheckExtensionInRegistry()
171 HKEY hKey; in DeleteSubKeyTree() local
172 LONG rc = RegOpenKeyExA( RootKey, lpKey, 0, KEY_READ | DELETE, &hKey ); in DeleteSubKeyTree()
179 rc = RegQueryInfoKeyA( hKey, 0, 0, 0, 0, &nMaxSubKeyLen, 0, 0, 0, 0, 0, 0 ); in DeleteSubKeyTree()
186 rc = RegEnumKeyExA( hKey, 0, (LPSTR)lpSubKey, &nLen, 0, 0, 0, 0); // always index zero in DeleteSubKeyTree()
199 rc = DeleteSubKeyTree( hKey, lpSubKey ); in DeleteSubKeyTree()
205 RegCloseKey(hKey); in DeleteSubKeyTree()
220 HKEY hKey = NULL; in RemoveExtensionInRegistry() local
222 …G lResult = RegOpenKeyExA( HKEY_LOCAL_MACHINE, "SOFTWARE\\Classes", 0, KEY_QUERY_VALUE, &hKey ); in RemoveExtensionInRegistry()
226 lResult = RegOpenKeyExA( hKey, lpSubKey, 0, KEY_QUERY_VALUE, &hSubKey ); in RemoveExtensionInRegistry()
246 DeleteSubKeyTree( hKey, lpSubKey ); in RemoveExtensionInRegistry()
250 lResult = RegOpenKeyExA( hKey, lpSubKey, 0, KEY_SET_VALUE, &hSubKey ); in RemoveExtensionInRegistry()
259 RegCloseKey( hKey ); in RemoveExtensionInRegistry()