Please, help with _NoteItem body

  • Thread starter Tatiana Andreeva
  • Start date
T

Tatiana Andreeva

Hi, All!

I have a Outlook::_NoteItem object and need to get its body.
The following line allways leads to security message box (a program is
trying to access e-mail addresses. ....)
_bstr_t bstrBody = pNoteItem->GetBody();

I'm trying to use extended MAPI to avoid this message box. For other types
of objects (TaskItem, MailItem) there is a get_MAPIOBJECT method which helps
me to retrieve properties, but there is no get_MAPIOBJECT method for
NoteItem.
Is there any way to get PR_BODY of the NoteItem using extended MAPI?

Thanks a lot.

Regards,
Tatiana
 
D

Dmitry Streblechenko

Read the value of the EntryID property, convert the hex string to binary,
use it to call IMAPISession::OpenEntry. IMAPISession can be retrieved from
the Namespace.MAPIOBJECT property (Outlook 2002 and up).

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top