Einzelnen Beitrag anzeigen

shmia

Registriert seit: 2. Mär 2004
5.508 Beiträge
 
Delphi 5 Professional
 
#4

Re: Outlook Version ermitteln (Ohne OleObj)

  Alt 1. Sep 2008, 16:56
Delphi-Quellcode:
function ProgIDExists(const ProgID:WideString):Boolean;
var
   tmp : TGUID;
begin
   Result := Succeeded(CLSIDFromProgID(PWideChar(ProgID), tmp));
end;

if ProgIDExists('Outlook.Application.12') then
  ShowMessage('Outlook Version 12 installiert')
else if ProgIDExists('Outlook.Application.11') then
  ShowMessage('Outlook Version 11 installiert') // Outlook 2003?
Andreas
  Mit Zitat antworten Zitat