feat(diagnose): add Bonjour Service installation support

This commit is contained in:
uncor3
2026-01-26 13:29:53 +03:00
parent b65f02b88f
commit a1a610bbd2
4 changed files with 230 additions and 7 deletions
+21
View File
@@ -56,6 +56,17 @@ bool CheckRegistry(HKEY hKeyRoot, LPCSTR subKey, LPCSTR displayNameToFind)
return false;
}
bool CheckRegistryKeyExists(HKEY hKeyRoot, LPCSTR subKey)
{
HKEY hKey;
LONG result = RegOpenKeyExA(hKeyRoot, subKey, 0, KEY_READ, &hKey);
if (result == ERROR_SUCCESS) {
RegCloseKey(hKey);
return true;
}
return false;
}
bool IsAppleMobileDeviceSupportInstalled()
{
if (CheckRegistry(HKEY_LOCAL_MACHINE,
@@ -101,5 +112,15 @@ bool is_iDescriptorInstalled()
"iDescriptor")) {
return true;
}
return false;
}
bool IsBonjourServiceInstalled()
{
if (CheckRegistryKeyExists(HKEY_LOCAL_MACHINE,
"SOFTWARE\\Apple Inc.\\Bonjour")) {
return true;
}
return false;
}