以下代码给你参考下.
...get all the outlook contacts?
{$IFDEF SYN_COMPILER_6}
uses
ComObj, Outlook2000;
{$ELSE}
uses
ComObj, Outlook8;
{$ENDIF}
procedure TForm1.Button1Click(Sender: TObject);
var
Outlook: TOutlookApplication;
DefNamespace: NameSpace;
Contacts: MAPIFolder;
Contact: ContactItem;
iCnt: Integer;
begin
// Instancing Outlook's main object
Outlook := TOutlookApplication.Create(Self);
// Getting the Namespace (always MAPI)
DefNameSpace := Outlook.GetNamespace('MAPI');
// Getting the default folder for contactitems
Contacts := DefNameSpace.GetDefaultFolder(olFolderContacts);
// Iterating through all items withing the folder
for iCnt := 1 to Contacts.Items.Count do
begin
// Getting a single Item
Contact := Contacts.Items.Item(iCnt) as ContactItem;
// Display Name & eMail
ShowMessage(Contact.FirstName + ' ' + Contact.Email1Address);
end;
// Free the instance
Outlook.Free;
end;