Was zeigt folgender Code an:
Delphi-Quellcode:
function GetIEVersion: string;
var
Reg: TRegistry;
S: string;
i : integer;
begin
Reg := TRegistry.Create;
with Reg do
begin
RootKey := HKEY_LOCAL_MACHINE;
OpenKey('Software\Microsoft\Internet Explorer', False);
if ValueExists('Version') then
begin
S := ReadString('Version');
end
else
begin
S := '0';
CloseKey;
end;
Free;
end;
result := s;
end;
Was zeigt die FEATURE_BROWSER_EMULATION in der Registry an?
Man muss für jedes Programm den Wert selbst festlegen!
Beispiel zum Auslesen:
Delphi-Quellcode:
//[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
function GetIBEVersion: string;
var
Reg: TRegistry;
S: string;
i : integer;
begin
Reg := TRegistry.Create;
with Reg do
begin
RootKey := HKEY_CURRENT_USER;
OpenKey('Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION', False);
if ValueExists('EbayLogin2.exe') then
begin
S := INTTOSTR(ReadInteger('EbayLogin2.exe')); //270f = 9999 Beispiel
end
else
begin
S := '0';
CloseKey;
end;
Free;
end;
result := s;
end;
Siehe
hier.