Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Open IMessage in edit view

9 views
Skip to first unread message

Hans Schmidt

unread,
Nov 26, 2009, 5:48:04 AM11/26/09
to
Hello,

i'm searching for a way to open an existing IMessage in Outlook, for
example an Appointment.
Is there a way to do this.

Or must i convert the IMessage to an AppointmentItem. If it is the
case then can you describe me how to do that.


Greets Hans

Dmitry Streblechenko

unread,
Nov 29, 2009, 10:09:18 AM11/29/09
to
ConvertAppointmentItem.EntryID property from a hex strign to a binary array
and use it to call IMAPISession::OpenEntry.
To go the other way around, read PR_ENTRYID from IMessage, convert it to a
hex string, call Namespace.GetItemFromID.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Hans Schmidt" <suffp...@googlemail.com> wrote in message
news:28b7a260-b060-4951...@w19g2000yqk.googlegroups.com...

Hans Schmidt

unread,
Nov 29, 2009, 12:05:19 PM11/29/09
to
Hello,

i think i have phrased it the wrong way. I'm searching for a method to
display
the IMessage. With a mailitem i would call Mailitem.Display(true). Is
there a possibility
to show the IMessage?

Greets Hans

On 29 Nov., 16:09, "Dmitry Streblechenko" <dmi...@dimastr.com> wrote:
> ConvertAppointmentItem.EntryID property from a hex strign to a binary array
> and use it to call IMAPISession::OpenEntry.
> To go the other way around, read PR_ENTRYID from IMessage, convert it to a
> hex string, call Namespace.GetItemFromID.
>
> --

> Dmitry Streblechenko (MVP)http://www.dimastr.com/


> OutlookSpy  - Outlook, CDO
> and MAPI Developer Tool

> -"Hans Schmidt" <suffpor...@googlemail.com> wrote in message

Dmitry Streblechenko

unread,
Nov 29, 2009, 1:31:09 PM11/29/09
to
Sure, call IMAPISession.PrepareForm, then IMAPISession.ShowForm

--
Dmitry Streblechenko (MVP)


http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-

"Hans Schmidt" <suffp...@googlemail.com> wrote in message

news:d852d894-3dd4-4939...@l13g2000yqb.googlegroups.com...

0 new messages