Hi can anyone knows how to change the source browser from IE to Microsoft edge or google chrome etc? :handsdown:
This is not working
Code:
BOOL GetIePath( LPSTR lpPath )
{
LONG result;
HKEY hKey;
DWORD dwType;
char data[MAX_PATH];
DWORD dataSize = MAX_PATH+1;
result = ::RegOpenKeyEx ( HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\chrome.exe", 0, KEY_QUERY_VALUE, &hKey );
if (result == ERROR_SUCCESS)
{
result = ::RegQueryValueEx ( hKey, "Path", NULL, &dwType, (unsigned char *)data, &dataSize );
strcpy( lpPath, data );
lpPath[lstrlen( lpPath )-1] = '\0';
}
else
return FALSE;
RegCloseKey( hKey );
return TRUE;
}