Accessing attachments in Outlook using MAPI

  • Thread starter Thread starter Happy.Cerberus
  • Start date Start date
H

Happy.Cerberus

How can I access attachments using MAPI?

Somewhere on internet i found PR_ATTACH_DATA_BIN property, but this
doesn't seem to work: MAPI_W_ERRORS_RETURNED is returned.

Thx for any help...
 
How are you retrieving that property? Large string or binary properties
(such as PR_ATTACH_DATA_BIN or PR_BODY) must be opened using
IMAPIProp::OpenProperty(IStream, ...) rather than IMAPIProp::GetProps or
HrGetOneProp.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top