Do you know how to use the getProps to get more than one property, I
can't seem to get more than one, so I thought the code maybe faster if I
used the GetOneProp, but that may just use the GetProps as your code
does. So do you know how to get more than one at a time?
jason
-----Original Message-----
From: Max Nilson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 25 July 2001 10:59 a.m.
To: Multiple recipients of list delphi
Subject: RE: [DUG]: hrGetOneProp
Jason Coley asked:
> Does anyone no of a delphi version of the MAPI hrGetOneProp function?
The code I hacked up to get a single property is the following:
function TFullMAPIManager.GetProperty(pmp: IMAPIProp; Tag: ULONG;
var pprop: PSPropValue): HRESULT;
var
TagArray: TSPropTagArray;
PropCount: ULONG;
begin
TagArray.cValues := 1;
TagArray.aulPropTag[0] := Tag;
Result := pmp.GetProps(@TagArray, 0, PropCount, pprop);
if Result = MAPI_W_ERRORS_RETURNED then
MAPIFreeBuffer(pprop)
end;
I'm not sure how close it is to the hrGetOneProp C library utility
function,
but it certainly dones what I needed it to.
Cheers, Max.
------------------------------------------------------------------------
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/