Re: Retrieving Version of IE
Re: Retrieving Version of IE
yes as VictorN told you you can follow that method.or you can directly read from registry just check in the registry.for each software OS makes entry in registry.so either read from registry or follow that method
or just follow this link it will help you
http://www.codeguru.com/forum/showth...oto=nextoldest
Re: Retrieving Version of IE
Hi Victor, hi humtpydumpty,
thank you very much for your fast replies.
GetFileVersionInfo is difficult to use, as first i have to find out where IE is installed ( also take into account which language is my win etc. ).
So i used the registry thing. Quite easy in my opinion.
Code:
HKEY hKey;
char szVersion[ 80 ];
DWORD dwBufLen = 80;
LONG lRet;
if ( RegOpenKeyEx( HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Internet Explorer",
0, KEY_QUERY_VALUE, &hKey ) != ERROR_SUCCESS )
{
return FALSE;
}
if ( RegQueryValueEx( hKey, "Version", NULL, NULL,
(LPBYTE) szVersion, &dwBufLen) != ERROR_SUCCESS )
{
return FALSE;
}
RegCloseKey( hKey );
// Now szVersion should contain the version
Thanks again,
Matze
Re: Retrieving Version of IE