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/

Reply via email to