function GetDefaultEmailCommand: string;
var
Reg: TRegistry;
begin
Reg := TRegistry.Create;
try
Reg.RootKey := HKEY_CLASSES_ROOT;
if Reg.OpenKeyReadOnly('mailto\shell\open\command') then
begin
Result := Reg.ReadString('');
Reg.CloseKey;
end;
finally
Reg.Free;
end;
end;
No comments:
Post a Comment