Accessing attachments in Outlook using MAPI

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...
 
D

Dmitry Streblechenko

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
 
Top